ÿØÿà JFIF ÿÛ „ ( %"1"%)+...383,7(-.-
![]() 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/okanime.top/code/home/ |
<?php $where = " AND truyen_active_status='Active' AND truyen_sochuong is not NULL "; $order_by = ' time_update DESC '; $pageNum = isset($_GET['pageNum']) ? intval($_GET['pageNum']) : 1; $pageSize = 35; $from = (($pageNum * $pageSize) - $pageSize); $key_total_news = md5("SELECT count(*) as total FROM tb_truyen WHERE 12 ".$where); $cache_total_news = $memcache->get($key_total_news); if($cache_total_news){ $total = $cache_total_news; }else { $t = $DB->fetch_row($DB->query("SELECT count(*) as total FROM tb_truyen WHERE 1 " . $where)); $total = $t['total']; $memcache->set($key_total_news, $total, MEMCACHE_COMPRESSED, 600); } $totalPage = ceil($total / $pageSize); $key_list_new = md5("SELECT * FROM tb_truyen WHERE 12 ".$where." ORDER BY ".$order_by." LIMIT $from, $pageSize"); // Unique Words $cache_result_list_phim = $memcache->get($key_list_new); // Memcached object if($cache_result_list_phim){ $list = $cache_result_list_phim; }else { $query = $DB->query("SELECT * FROM tb_truyen WHERE 1 " . $where . " ORDER BY " . $order_by . " LIMIT $from, $pageSize"); $list = ''; while ($row = $DB->fetch_row($query)) { $truyen_othername = ($row['truyen_othername'] != '') ? $row['truyen_othername'] : 'Updating'; $list_chap = ''; $txt_new = date('F j, Y', strtotime($row['truyen_chuong_moinhat_time'])); if ((time() - strtotime($row['truyen_chuong_moinhat_time'])) < 86400) { $txt_new = '<span class="text-danger">New</span>'; } $txt_new2 = date('F j, Y', strtotime($row['truyen_chuong_moinhi_time'])); if ((time() - strtotime($row['truyen_chuong_moinhi_time'])) < 86400) { $txt_new2 = '<span class="text-danger">New</span>'; } if(!empty($row['truyen_chuong_moinhat_lock']) and strtotime($row['truyen_chuong_moinhat_lock'])>time()){ $txt_new = '<span class="text-warning"><i class="fas fa-crown"></i></span>'; } if(!empty($row['truyen_chuong_moinhi_lock']) and strtotime($row['truyen_chuong_moinhi_lock'])>time()){ $txt_new2 = '<span class="text-warning"><i class="fas fa-crown"></i></span>'; } $list_chap .= '<li class="list-group-item-custom list-group-item"><a href="/' . $row['truyen_fname'] . '-' . $row['truyen_id'] . '/' . $row['truyen_chuong_moinhat_fname'] . '-' . $row['truyen_chuong_moinhat_id'] . '/" class="text-secondary list-2-chap" title="' . $row['truyen_chuong_moinhat_name'] . '">' . $row['truyen_chuong_moinhat_name'] . '</a> <span class="blockquote-footer"><cite title="' . $row['truyen_chuong_moinhat_name'] . '">' . $txt_new . '</cite></span></li>'; $list_chap .= '<li class="list-group-item-custom list-group-item"><a href="/' . $row['truyen_fname'] . '-' . $row['truyen_id'] . '/' . $row['truyen_chuong_moinhi_fname'] . '-' . $row['truyen_chuong_moinhi_id'] . '/" class="text-secondary list-2-chap" title="' . $row['truyen_chuong_moinhi_name'] . '">' . $row['truyen_chuong_moinhi_name'] . '</a> <span class="blockquote-footer"><cite title="' . $row['truyen_chuong_moinhi_name'] . '">' . $txt_new2 . '</cite></span></li>'; $txt_update = date('F j, Y', strtotime($row['truyen_chuong_moinhat_time'])); /*$list .= '<div class="col-lg-3 col-md-4 col-sm-4 col-6 video position-relative mb-2"> <div class="card"> <div class="view home clearfix"> <span class="pull-left"> <i class="far fa-eye"> </i> ' . shortNumber($row['truyen_hit']) . ' <i class="far fa-comment"></i> ' . shortNumber($row['truyen_hitcomment']) . ' <i class="far fa-heart"></i> ' . shortNumber($row['truyen_theodoi']) . ' </span> </div> <a href="/' . $row['truyen_fname'] . '-' . $row['truyen_id'] . '/"><img src="' . $row['truyen_thumb'] . '" class="jtip card-img-top" alt="' . $row['truyen_name'] . '" data-jtip="#manga-tooltip-' . $row['truyen_id'] . '"></a> <div class="card-body list-left-8-manga"> <p class="card-text title-manga"><a href="/' . $row['truyen_fname'] . '-' . $row['truyen_id'] . '/" class="jtip text-body" data-jtip="#manga-tooltip-' . $row['truyen_id'] . '">' . $row['truyen_name'] . '</a></p> </div> <ul class="list-group list-group-flush" style="font-size: 12px;"> ' . $list_chap . ' </ul> </div> </div>';*/ $list .= '<li class="TPostMv"> <article id="post-' . $row['truyen_id'] . '" class="TPost C post-' . $row['truyen_id'] . ' post type-post status-publish format-standard has-post-thumbnail hentry"> <a href="/' . $row['truyen_fname'] . '-' . $row['truyen_id'] . '/"> <div class="Image"> <figure class="Objf TpMvPlay AAIco-play_arrow"><img width="215" height="320" src="' . $row['truyen_thumb'] . '" class="attachment-thumbnail size-thumbnail wp-post-image" loading="lazy" alt="' . $row['truyen_name'] . '" title="' . $row['truyen_name'] . '"> </figure> <span class="mli-eps"><i>' . $row['truyen_chuong_moinhat_name'] . '</i></span> <div class="anime-extras"> <div class="anime-avg-user-rating"><i class="fa fa-star"></i>' . $row['truyen_danhgia'] . ' </div> </div> </div> <h2 class="Title">' . $row['truyen_name'] . '</h2> <span class="Year">View ' . shortNumber($row['truyen_hit']) . '</span> </a> </article> </li> '; //$list .= $title_tooltip; } $memcache->set($key_list_new, $list, MEMCACHE_COMPRESSED, 600); } $nav = $print->Pagination($totalPage,$pageNum,'pages','?act=home'); ?> <?php $CORE->title_page = 'Home'; include 'layout/'.$INFO['path_skin'].'/header.php'; include 'layout/'.$INFO['path_skin'].'/menu.php'; ?> <div class="Body Container"> <div class="Content"> <div class="MovieListTopCn"> <div class="MovieListTop owl-carousel"> <?php echo recommendation(50);?> </div> </div> <div class="TpRwCont"> <main> <div class="Top anime-home"> LATEST ANIME RELEASES <i class="fa fa-angle-right"></i> <div class="card-tools"><a class="text-info" title="Search advanced manga" href="/searchadvance/"><i class="fal fa-filter"></i> </a></div> </div> <section id="single-home"> <ul class="MovieList Rows AX A06 B04 C03 E20"> <?php echo $list;?> </ul> <nav aria-label="Page navigation example" class="text-center"> <ul class="pagination"> <?php echo $nav;?> </ul> </nav> </section> </main> <aside class="widget-area" role="complementary"> <?php $txt_follow = follow_manga(); if(!empty($txt_follow)){ ?> <section class="Wdgt" id="showFollow"> <div class="Title">Follow</div> <ul class="MovieList"> <?php echo $txt_follow;?> <!--<li><a href="danh-muc.html">Xem thêm..</a></li>--> </ul> </section> <?php } ?> <?php $txt_history = history_manga(); if(!empty($txt_history)){ ?> <section class="Wdgt" id="showHistory"> <div class="Title">History</div> <ul class="MovieList"> <?php echo $txt_history;?> </ul> </section> <?php } ?> <ul class="nav nav-tabs bg-dark <?php if(!empty($txt_history) or !empty($txt_follow)){echo'mt-2';}?>" id="top_manga" data-bs-theme="dark"> <li class="nav-item"> <a class="nav-link active" href="javascript:void(0);" data-bs-toggle="tab" data-tab-target="topmonth-tab-pane">Top month</a> </li> <li class="nav-item"> <a class="nav-link" href="javascript:void(0);" data-bs-toggle="tab" data-tab-target="topweek-tab-pane">Top week</a> </li> <li class="nav-item"> <a class="nav-link" data-bs-toggle="tab" data-tab-target="topday-tab-pane" href="javascript:void(0);">Top day</a> </li> </ul> <section class="Wdgt my_tab_content" id="topmonth-tab-pane"> <ul class="MovieList mt-2"> <?php echo top_manga_month();?> </ul> </section> <section class="Wdgt my_tab_content" id="topweek-tab-pane"> <ul class="MovieList mt-2"> <?php echo top_manga_week();?> </ul> </section> <section class="Wdgt my_tab_content" id="topday-tab-pane"> <ul class="MovieList mt-2"> <?php echo top_manga_date();?> </ul> </section> <section class="Wdgt" id="showFollow"> <div class="Title">Top member</div> <div class="darkBox"> <ul class="list-unstyled"> <?php echo top_member(5);?> </ul> </div> </section> <section class="Wdgt" id="showLastComment"> <div class="Title">Lastest comment</div> <div class="darkBox"> <ul class="list-unstyled"> <?php echo lasted_comment(5);?> </ul> </div> </section> <div class="Dvr-300"></div> </aside> </div> </div> </div> <?php include 'layout/'.$INFO['path_skin'].'/footer.php'; ?>