403Webshell
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/kharagauli_new/moduls/big_logo/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/kharagauli_new/moduls/big_logo/admin/get.php
<?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!!!");

                   $sql = "
                      select 
                          t1.menu_id as id,
                          t.name_".$_->_lang." as name
                         from menu_body t1
                         join menu t on t.id = t1.menu_id
                         where t1.body_id = ".$url[4]." 
                  ";  

                  $menu_categoryes = $_->select_([$sql,"new_big"]);
                  for($i = 0; $i < count($menu['all_without_small_pages']); $i++)
                      for($j = 0; $j < count($menu_categoryes); $j++)
                          if($menu['all_without_small_pages'][$i]['id'] == $menu_categoryes[$j]['id'])
                              $menu['all_without_small_pages'][$i]['selected'] = 1;


                  $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(!$_->permission_($select_menu['id'],'remove'))
                      throw new Exception("Error Processing Request", 1);
                  if(!isset($url[4]))throw new Exception("bad uri format!!!"); 

                  $select_body = $_->select("*","body","small",["id",$url[4]]); 
                  list_delete($select_body,$select_menu['id'],$_);  
            }else{
                $obj = new stdClass();
                $obj->c_type = "navigation";
                $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->count_on_one_page = $_->returt_cookie('list_count_on_one_page',10);

                $sql = "
                    select 
                        t1.body_id, 
                        t.* 
                       from menu_body t1
                       join body t on t.id = t1.body_id
                      where t1.menu_id = ".$select_menu['id']."  
                "; 

                $select_body = $_->select_([$sql,$obj]);
               
                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,$id,$_){
          //$_->delete("body",["id",$select_body['id']])
          $slct = $_->select_(["*","menu_body","count",["body_id",$select_body['id']]]);
          if($slct == 1)
            $_->delete("body",["id",$select_body['id']]);
          $_->delete("menu_body",["menu_id",$id,"body_id",$select_body['id']]);
          header("Location:".$_SERVER['HTTP_REFERER'].$_COOKIE['location_href_menu']."/deleted/");
       exit;
   }

?>

Youez - 2016 - github.com/yon3zu
LinuXploit