403Webshell
Server IP : 192.249.121.117  /  Your IP : 216.73.216.251
Web Server : Apache
System : Linux ded4606.inmotionhosting.com 3.10.0-1160.81.1.el7.x86_64 #1 SMP Fri Dec 16 17:29:43 UTC 2022 x86_64
User : oakben5 ( 1001)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/oakben5/public_html/docsearch/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/oakben5/public_html/docsearch/1index.php
<?php

include_once('config.php');

include_once('dbmanager.php');

include_once('batchprgmanager.php');

$db								= new dbmanager($dbHost,$dbUser,$dbPwd,$dbName);

$user							= new batchprgmanager($db);

$isEnabledLEN					= $user->isEnabledLENAction($LEN_ID);

if($isEnabledLEN=='1')

{

	$today						= date('Y-m-d');

	$listEmpLceExpires			= $user->getEmpsLcneExpToday($today);

	$listEmpDrvLceExpires		= $user->getEmpsDrvLcneExpToday($today);

	if(count($listEmpLceExpires) || count($listEmpDrvLceExpires)) {

		$listOfSubs				= $user->getAllSubscribers($LEN_ID);

		$toArr0					= $user->getEmailStr($listOfSubs,'email');

		foreach ($listEmpLceExpires as $key=>$value) {

			$allSuperiorsForEmp	= $user->getAllSuperiors($value['emp_number']);

			$toArr1				= $user->getEmailStr($allSuperiorsForEmp,'emp_work_email');

			array_push($toArr1,trim($value['emp_work_email']));

			$toArr				= array_unique(array_merge($toArr0,$toArr1));

			$toStr				= implode(",", $toArr);	

			$nameFrom			= "OakbenHRM - admin";

			$email 				= "oakbendhrm@gmail.com";

			echo $recipient 			= $toStr;

			/*echo "<pre>";

			print_r($value);

			echo "</pre>";	*/		

			$mail_body 	= $user->getMailBody1($value);

			$subject 			= "License Expiry Notification";

			$header				= "From: ". $nameFrom . " <" . $email . ">\r\n";

			$header				.= "Content-Type: text/html";

			//$recipient			= 'jimmy.bastine@gmail.com;jimmy.infoteq@gmail.com';			

			var_dump( mail($recipient, $subject, $mail_body, $header));		

		}

		foreach ($listEmpDrvLceExpires as $key=>$value) {

			$allSuperiorsForEmp	= $user->getAllSuperiors($value['emp_number']);

			$toArr1				= $user->getEmailStr($allSuperiorsForEmp,'emp_work_email');

			array_push($toArr1,trim($value['emp_work_email']));

			$toArr				= array_unique(array_merge($toArr0,$toArr1));

			$toStr				= implode(",", $toArr);

			$value['name']		= 'Driving';

			$value['license_no']= $value['emp_dri_lice_num'];

			$nameFrom			= "OakbendHRM - admin";

			$email 				= "oakbendhrm@gmail.com";

			echo $recipient 	= $toStr; 

			$mail_body 	= $user->getMailBody1($value);

			$subject 			= "License Expiry Notification";

			$header 			= "From: ". $nameFrom . " <" . $email . ">\r\n";

			//$recipient			= 'jimmy.bastine@gmail.com;jimmy.infoteq@gmail.com';						

			$header				.= "Content-Type: text/html";			

			var_dump(  mail($recipient, $subject, $mail_body, $header));

		}

	}

}

?>

Youez - 2016 - github.com/yon3zu
LinuXploit