403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/HostingSpaces/admin/chatme24.com/wwwroot/_server/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/HostingSpaces/admin/chatme24.com/wwwroot/_server//server_mobile.js
var timeout,
    last_id=0,
    updateStart=false,
    isFbMode='false',
    isFirstLoad=true,
    status_writing=0,
    blink=[],
    users_list={},
    timeoutSec=10000,
    timeoutSecServer=timeoutSec/1000*1.5,
    userTo=0,
    limitStart=0,
    requestUserId=0,
    isOneChat='',
    users_list_general={},
    getReadMsgFromIm=0;

function updateServer(){
    if(updateStart){
        var isGetRead;
        if (isOneChat=='general_chat') {
            var status={};
            getReadMsgFromIm={};
            isGetRead = typeof userAllowedFeature != 'undefined' ? false : true;
            if(isGetRead){//for impact mobile disabled
                $('[data-msg-user-id='+siteGuid+'].im_msg_one .msg_read.hide').each(function(){
                    var $el=$(this).closest('.im_msg_one');
                    getReadMsgFromIm[$el.data('toUserId')]=1;
                })
            }
            getReadMsgFromIm=JSON.stringify(getReadMsgFromIm);
        } else {
            prepareStatusWritingImOne();
            var status=status_writing;
            getReadMsgFromIm=0;
            isGetRead = typeof userAllowedFeature != 'undefined' ? userAllowedFeature['message_read_receipts'] : true;
            if (isGetRead && $('[data-msg-user-id='+siteGuid+'].im_msg_one .msg_read.hide')[0]) {
                getReadMsgFromIm=1;
            }
        }

		var data = {
			cmd:'update_im',
            users_list:JSON.stringify(users_list),
			user_to:userTo,
			display:isOneChat,
			last_id:last_id,
            status_writing:status,
            get_read_msg_from_im:getReadMsgFromIm,
            is_mode_fb:isFbMode,
            timeout_server:timeoutSecServer,
            page:activePage,
            request_user_id:requestUserId,
            city_counter_street_chat: $('#user_menu_counter_street_chat, .counter_street_chat').length,
            city_counter_games: $('#user_menu_counter_game_choose, .counter_game_choose').length,
            city_counter: $('#user_menu_counter_3d_city, .counter_3d_city').length,
            geo_position:geoPoint
        }

		/* Live */
		var liveId = 1;
		var liveId = typeof _lsLiveId == 'undefined' ? 0 : _lsLiveId,
			liveIdEnd = typeof _lsLiveIdEnd == 'undefined' ? 0 : _lsLiveIdEnd;

		if (!liveId) {
			liveId = liveIdEnd;
		}
		if (liveId) {
			data.live_id=liveId;
			data.live_id_end=liveIdEnd;
			data.live_info=JSON.stringify(clStream.getInfo(liveId));
			//data.last_id=clStream.getLastId();
			if (_lsIsUserPresenter) {
				data.live_viewer=0;
				data.live_time=parseInt(new Date()/1000);
				data.live_list_viewers=JSON.stringify(listViwersUsers);
			} else {
				data.live_viewer=1;
				data.live_demo_viewer=_lsDemoViewerUrl?1:0;
			}

			data.comments_all = JSON.stringify(clStream.commentsCacheAll);
			data.comments = JSON.stringify(clStream.commentsCache);
			data.comments_replies = JSON.stringify(clStream.commentsReplyCache);
			data.comments_first = JSON.stringify(clStream.commentsFirst);
			data.comments_reply_last = JSON.stringify(clStream.itemCommentsReplyLast);
		}
		/* Live */

        //console.log('AJAX:',isOneChat, getReadMsgFromIm, userAllowedFeature);
        $.post(url_main+'update_server_ajax.php', data,
                function(res){
                    var data=$.trim(checkDataAjax(res));
                    if (data!==false) {
                        if(isOneChat=='general_chat'){
                            messages.update(data)
                        }else{
                            messages.updateOneChat(data)
                        }
						/* Live */
						if (liveId) {
							clStream.updater(liveId, $(data).filter('div.update_comments_live'));
						}
						/* Live */
                    }
                }
        );
    }
    clearTimeout(timeout);
    timeout=setTimeout('updateServer()', timeoutSec);
}

function initServer(){
    if(!ajax_login_status)return;
    updateStart=true;
    timeout=setTimeout('updateServer()', timeoutSec);
}

$(function(){
    if (activePage=='messages.php') {
        $.winFocus({
            blur: function(e) {
                if (ajax_login_status) {
                    localStorage.setItem('is_fb_mode', 'true');
                    isFbMode = 'true';
                }
            },
            focus: function(e) {
                if (ajax_login_status) {
                    if(isFirstLoad){
                        isFirstLoad=false;
                        return;
                    }
                    localStorage.setItem('is_fb_mode', 'false');
                    isFbMode = 'false';
                    $.post(url_main+'update_server_ajax.php?cmd=read_msg',{user_id:userTo,is_mode_fb:'false'});
                }
            }
        });
        $(window).on('storage', function(e) {
            var event = e.originalEvent;
            if (event.key === 'is_fb_mode') {
                isFbMode = event.newValue;
            }
        });
    }

});

Youez - 2016 - github.com/yon3zu
LinuXploit