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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/kharagauli_new/moduls/banners/admin/post.php
<?php
/*
@author suxoza <suxoza@gmail.com>
*/
if(realpath(__FILE__) == realpath($_SERVER['SCRIPT_FILENAME']))die("__main__");
    
//$_->pre($_POST);
//$_->pre($_FILES);

$iterator = 0;

$select = $_->select("*","banners","big");
$select = (isset($select['body']))?$select['body']:'';




foreach($_POST as $key => $value){
    $boolas = false;
    if(!isset($_POST['file_'.$iterator]))continue;
    
        if(isset($_POST['_id_'.$iterator])){  
             $boolas = true;
             $id = $_->clier($_POST['_id_'.$iterator]);
             $file = $_POST['file_'.$iterator];
        }else
            $file = $_POST['file_'.$iterator];
            
    
  
        $window = ($_POST['new_window_'.$iterator])?1:0;
        $insert = ['ind','src','url','date','new_window','category'];
        $values = [$_->clier($_POST['index_'.$iterator]),
                   $file,$_->clier($_POST['url_'.$iterator]),time(),
                   $window,
                   $_POST['category_'.$iterator]];

            for($i = 0; $i < count($_->language_config); $i++){
                    $insert[] = "title_".$_->language_config[$i];
                    $insert[] = "alt_".$_->language_config[$i];
                    $values[] = $_->clier($_POST['t_title_'.$_->language_config[$i].'_'.$iterator]);
                    $values[] = $_->clier($_POST['t_alt_'.$_->language_config[$i].'_'.$iterator]);
             }
     
         if($boolas){
             array_splice($insert, 3,1);
             array_splice($values, 3,1);
             $_->update("banners",[$insert,$values,["id",$id]]);
         }else
             $_->insert('banners',[$insert,$values]); 
             
//         $_->pre($insert);
//         $_->pre($values);

    
    $iterator++;
}

header("Location:".$_SERVER['HTTP_REFERER']."#changed");
    die;

Youez - 2016 - github.com/yon3zu
LinuXploit