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/big_logo/admin/ |
Upload File : |
<?php /* @author suxoza <suxoza@gmail.com> */ if(realpath(__FILE__) == realpath($_SERVER['SCRIPT_FILENAME']))die("__main__"); $_->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['img_dir'] = $_->admin_dir(); $menu['select_menu'] = $select_menu; $bj = new stdClass(); $bj->c_type = "big"; $bj->sql = " and category in(0,1)"; $menu['select_banners'] = $_->select_(["name,id","banners",$bj]); try{ if(in_array('more', $url)){ if(!isset($url[4]))throw new Exception("bad uri format!!!"); $select_body = $_->select("*","body","small",["id",$url[4]]); $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'; //$_->pre($menu['select_banners']); }elseif(in_array('new', $url)){ $menu['select_body'] = []; $menu['select_body']['page_date'] = date("d/m/Y"); $file_name = 'new'; }elseif(in_array('delete', $url)){ if(!isset($url[4]))throw new Exception("bad uri format!!!"); $select_body = $_->select("*","body","small",["id",$url[4]]); list_delete($select_body,$_); }else{ $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 = $_->returt_cookie('sort_algorithm','date'); $obj->list_count_on_one_page = $_->returt_cookie('list_count_on_one_page',10); $select_body = $_->select("*","body",$obj,["page_id",$select_menu['id']]); if(isset($_COOKIE['list_count_on_one_page']) && $_COOKIE['list_count_on_one_page'] > $select_body['counter']){ setcookie("list_count_on_one_page", NULL, time()-360,'/'); //setcookie('list_count_on_one_page',10); } $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; ///how_to_view_big_pages $menu['select_body']['menu_id'] = $select_menu['id']; ///how_to_view_big_pages $file_name = 'list'; } }catch(Exception $exc) { die($exc->getMessage()); } $_->render($file_name, ["menu" => $menu] ); function list_delete($select_body,$_){ $img = []; $img = _files::custom_delete_images($select_body['body_Georgia']); if($select_body['logo']) $img[] = $select_body['logo']; array_map(function($var){ if($var) _files::delete_image($var); },$img); if($_->delete("body",["id",$select_body['id']]))header("Location:".$_SERVER['HTTP_REFERER'].$_COOKIE['location_href_menu']."/deleted/"); else die("error while delete!!!"); exit; } ?>