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/_frameworks/mobile/urban_mobile/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/HostingSpaces/admin/chatme24.com/wwwroot/_frameworks/mobile/urban_mobile/js/city_street_chat.js
var CCityStreetChat = function(isAllowed) {

    var $this=this;

    this.dur=300;
    this.langParts = {};
	this.isAllowed = isAllowed*1;
    this.isDemoUser = 0;

    this.showLoadrBtn = function(){
        if($this.$inviteBtn[0]){
            $('img',$this.$inviteBtn).hide();
            getLoaderCl('loader_media_chat','loader_btn').appendTo($this.$inviteBtn)
        }
    }

    this.hideLoadrBtn = function(){
        if($this.$inviteBtn[0]){
            $('#loader_media_chat').remove();
            $('img',$this.$inviteBtn).show();
        }
    }

    this.invite = function(){
        if(!checkLoginStatus())return;
		if(!$this.isAllowed){
            window.location.href=url_main+'upgrade.php';
            return;
        }
        var uid=userTo;
        $this.showLoadrBtn();
        $.post(url_server+'?cmd=city_street_chat_invite',{user_id:uid},function(res){
            $this.hideLoadrBtn();
            var data=checkDataAjax(res);
            if(data){
                if (data===true) {
                    var msg=$this.langParts.invitation_sent+'<br>'+$this.langParts.please_wait_for;
                    setTimeout(function(){showAlert(msg,'.st-content','blue')},220);
                }else if (data=='upgrade') {//you can remove
                    window.location.href=url_main+'upgrade.php';
                }else{
                    setTimeout(function(){showAlert(data, 0, 0, 0, 1)},220);
                }
            }else{
                setTimeout(function(){showAlert(siteLangParts.server_error_try_again, 0, 0, 0, 1)},220);
            }
        })
    }

    this.request = function(data){
        try{
            hideConfirm();
            if(data.action=='request'){
                var title=$this.langParts.chat_from_user.replace(/{name}/,data.user_name)
                                                        .replace(/{user_id}/,data.user_id);
                var fnTalk=function(){$this.start(data)},
                    fnReject=function(){$this.reject(data.user_id)};
                    title += '<br>' + $this.langParts.chat_nowe;
                setTimeout(function(){showConfirm(title, $this.langParts.ok, $this.langParts.cancel, fnTalk, 'blue', 0, fnReject)},220);
            }else if(data.action=='reject'){
                setTimeout(function(){showAlert($this.langParts.refused,0,'blue')},220)
            }else if(data.action=='start'){
                $this.toCity(data.url);
            }else{return false}
        }catch(e){return false}
    }

    this.reject = function(uid){
        hideConfirm();
        $.post(url_server+'?cmd=city_street_chat_reject',{user_id:uid},function(res){
            if(checkDataAjax(res)){}
        })
    }

    this.start = function(data){
        hideConfirm();
        if(!$this.isAllowed){
            window.location.href=url_main+'upgrade.php';
            return;
        }
        var uid=data.user_id;
        $.post(url_server+'?cmd=city_street_chat_start',{user_id:uid, data:data.data},function(res){
            var data=checkDataAjax(res);
            if(data){
                $this.toCity(data.url);
            }
        })
    }

    this.isLoadCity = function(){
        return typeof city == 'object' && city.isSceneLoaded;
    }

    this.toCity = function(url){
        hideConfirm();
        window.location.href=url;
    }

    $(function(){
        $this.$inviteBtn=$('#invite_streetchat');
    })

    return this;
}

Youez - 2016 - github.com/yon3zu
LinuXploit