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_2/site/ |
Upload File : |
<?php /* @author suxoza <suxoza@gmail.com> */ if(realpath(__FILE__) == realpath($_SERVER['SCRIPT_FILENAME']))die("__main__"); $_->smarty->template_dir = realpath(__DIR__).'/templates_1'; //$_->pre($_->smarty->template_dir); $menu = $_->_menu_; $_dd = explode('/',__DIR__); $menu['self_dir'] = $_->admin_dir().'moduls/'.$_dd[count($_dd) - 2].'/'.$_dd[count($_dd) - 1]; $menu['select_menu'] = $select_menu; try{ if(in_array('more', $url)){ if(!isset($url[3]) || !is_numeric($url[3]))throw new Exception("bad uri format!!!"); $select_body = $_->select("*","body","small",["id",(int)$url[3]]); if(!$select_body)throw new Exception("bad uri format!!!"); $menu['select_body'] = $select_body; $menu['select_body']['page_date'] = ($menu['select_body']['page_date'])?date("d/m/Y",$menu['select_body']['page_date']):date("d/m/Y"); $file_name = 'index'; }else{ //$_->pre($url); $obj = new stdClass(); $obj->c_type = "answer"; $obj->navig_name = $url[1]; $__style = 3; $__count = 30; $__height = 130; $list_share = '_display_none'; if(strlen($select_menu['attributes']) > 5){ $json = json_decode($select_menu['attributes']); if(!json_last_error()){ $json = $json->desinger; //$_->pre($json); list($__style,$__count,$__height,$list_share) = array_values((array)$json); } } //echo $obj->navig_name; $obj->navigation = (isset($url[3]) && is_numeric($url[3]))?$url[3]:1; $obj->list_count_on_one_page = $__count; $select_body = $_->select("*","body",$obj,["page_id",$select_menu['id']]); //$_->pre($select_body); if(!isset($select_body['body']))throw new Exception("coming soon!!!"); $select_body['more_name_'] = $url[1]; $select_body['desinger'] = ['height' => $__height,'style' => $__style,'list_share' => $list_share]; $all_count = ceil(count($select_body['body']) / ($__style + 1)); $select_body['list_height'] = round((($all_count*$__height)+ $__height)+$all_count*(ceil(count($select_body['body']) / 2)))+ $all_count; $ll = $list_share?100:50; $select_body['strlen_text'] = 500;//$__height/($__style + 1)+$ll; // echo $select_body['counter']; //echo $select_body['list_height']; 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']: '/img/video.png';//$_->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'))? $select_body['body'][$i]['unikal_key']://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']['referer'] = $obj->navig_name; //$_->pre($menu['select_body']); ///how_to_view_big_pages $menu['select_body']['menu_id'] = $select_menu['id']; ///how_to_view_big_pages $file_name = 'index'; } }catch(Exception $exc) { $_->smarty->template_dir = $_->_dir.'/view/templates_1'; die($_->render('404', ["menu" => $menu,'message' => $exc->getMessage()])); } //$_->pre($menu); $_->render($file_name, ["menu" => $menu] ); function list_delete($select_body,$_){ if($select_body['logo']){ if(file_exists($_->_dir.'img/banners/'.$select_body['logo']))@unlink($_->_dir.'img/banners/'.$select_body['logo']); if(file_exists($_->_dir.'img/banners/small/'.$select_body['logo']))@unlink($_->_dir.'img/banners/small/'.$select_body['logo']); } if($_->delete("body",["id",$select_body['id']]))header("Location:".$_SERVER['HTTP_REFERER'].$_COOKIE['location_href_menu']."/deleted/"); else die("error while delete!!!"); exit; } ?>