????JFIF??x?x????'
| Server IP : 79.136.114.73 / Your IP : 216.73.217.114 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/www.supervision-online.se/login/ |
Upload File : |
<?php
session_start();
if( (($_SESSION['SUPERVISION_SSO_INFO'])=='' )){
header('location: https://www.supervision-online.se/loggain.php');
}
$fakturadatum = $_POST['year']."-".$_POST['month']."-".$_POST['day'];
$period = $_POST['period'];
$antal = $_POST['antal'];
$gps = $_POST['gps'];
$link = mysql_connect ("localhost", "root", "root123");
mysql_select_db ("supervision");
//Faktura
$sql = "Insert into tblFaktura VALUES (NULL,".$_SESSION['SUPERVISION_SSO_INFO'][1].",'".$fakturadatum."')";
mysql_query($sql);
$fakturanr = mysql_insert_id();
//Period
$sql = "Insert into tblFakturaData VALUES (NULL,12,'Licensavgift',".$period*$antal.",'1990','". (($antal*1990*$period)) ."',".$fakturanr.")";
mysql_query($sql);
if($gps == "1"){
//GPS-positioner
$sql = "Insert into tblFakturaData VALUES (NULL,14,'GPS-positioner','".($antal*$period)."','45','".($antal*$period*45)."',".$fakturanr.")";
mysql_query($sql);
}
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= "Content-type: text/html; charset=UTF-8\r\n";
$headers .= "From: noreply@astacus.se\r\n";
mail("carl.hoffstedt@astacus.se,info@astacus.se", "Supervision Online - ORDER", "Orderinfo: <a href='https://www.supervision-online.se/login/faktura_print.php?nr=".$fakturanr."&hash=".md5(($fakturanr + 324234))."'>Klicka här</a><br><br>Vänliga hälsningar, Supervision Online", $headers);
header("Location: abonnemang.php?message=Tack! Vi kontaktar dig inom kort!");
?>