Server IP : 80.241.246.6 / Your IP : 216.73.216.188 Web Server : Apache/2.4.25 (Debian) System : Linux kharagauli 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64 User : www-data ( 33) PHP Version : 7.0.33-0+deb9u12 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/kharagauli1/moduls/video_gallery/admin/ |
Upload File : |
<?php /* @author suxoza <suxoza@gmail.com> */ if(realpath(__FILE__) == realpath($_SERVER['SCRIPT_FILENAME']))die("__main__"); //$_->pre($select_body); $_->smarty->template_dir = realpath(__DIR__).'/templates_1'; $_dd = explode('/',__DIR__); $menu['self_dir'] = $_->admin_dir().'moduls/'.$_dd[count($_dd) - 2].'/'.$_dd[count($_dd) - 1]; $menu['select_menu'] = $select_menu; $obj = new stdClass(); $obj->c_type = "answer"; $obj->navig_name = '/'.$url[1].'/'.$url[2]; $obj->navigation = (isset($url[4]) && is_numeric($url[4]))?$url[4]:1; $obj->sort_algorithm = 'date'; $obj->list_count_on_one_page = 24; $select_body = $_->select("*","body",$obj,["page_id",$select_menu['id']]); if(isset($select_body['body'])){ $length = count($select_body['body']); for($i = 0; $i < $length; $i++){ if($select_body['body'][$i]['logo']){ $select_body['body'][$i]['logo_name'] = ($_->startsWith($select_body['body'][$i]['logo'],'http'))? $select_body['body'][$i]['logo']: $_->admin_dir().'/img/banners/video/img/small/'.str_replace('mp4','jpg',$select_body['body'][$i]['logo']); $select_body['body'][$i]['fancy_name'] = ($_->startsWith($select_body['body'][$i]['logo'],'http'))? json_decode($select_body['body'][$i]['attributes'])->url: $_->admin_dir().'/img/banners/video/'.$select_body['body'][$i]['logo']; }else $select_body['body'][$i]['logo_name'] = '/img/video.png'; } } $menu['select_body'] = $select_body; if(isset($menu['select_body']['navigation'])) $menu['select_body']['navigation'] = $_->navigation($menu['select_body']['navigation'],$obj->navigation); //$menu['select_body']['page_date'] = ($menu['select_body']['page_date'])?date("d/m/Y",$menu['select_body']['page_date']):date("d/m/Y"); //$_->pre($select_body); $_->render('index', ["menu" => $menu] ); ?>