403Webshell
Server IP : 10.200.247.200  /  Your IP : 216.73.217.19
Web Server : Apache
System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64
User : jeremy ( 1001)
PHP Version : 8.4.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/surf_sites/workathomeapplication.com/cronx/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/surf_sites/workathomeapplication.com/cronx/send_application_reminder.php
<?
$_SERVER['DOCUMENT_ROOT'] = "/home/workathome/public_html";
include($_SERVER['DOCUMENT_ROOT'].'/lib/inc.php');

$cutoffDate = date("Y-m-d", strtotime("-2 months"));
$needsRecording = $db->query("
									SELECT 
											*
									FROM potential_employees
									WHERE 
										(
											recording_url = ''
											OR
											recording_url IS NULL
										)
										AND
											recording_reminder = 1
										AND
											position_applying_for = 'position_work_from_home'
										AND
											ts > '".$cutoffDate."'
									ORDER BY ts DESC
								");
for($i=0; $i<count($needsRecording); $i++)
{
	ob_start();
	?>
	<html>
		<body style="margin:0px; font-family:Segoe, 'Segoe UI', 'DejaVu Sans', 'Trebuchet MS', Verdana, sans-serif;">
			<table cellpadding="10px" cellspacing="10px">
            	<tr>
                	<td>
                    	<div style="font-size:18px; font-weight:bold; color:#264c65;">
                        	<?=$needsRecording[$i]['first_name']?> <?=$needsRecording[$i]['last_name']?>, we still need a recording of your voice!	
                        </div>
                        <div style="font-size:16px; color:#3D3D3D; margin-top:10px;">
                        	There is no recording attached to your Work at Home online application.
                            <br>
                            <a href="https://workathomeapplication.com/applicants/?ea=<?=base64_encode($needsRecording[$i]['email_address'])?>">Click here</a> to record a sample using our app or upload your own.
                        </div>
                    </td>
                </tr>
                <tr>
                	<td>
                        <div style="font-size:12px; color:#747474; margin-top:10px;">
                            <a href="https://workathomeapplication.com/applicants/stop/?ea=<?=base64_encode($needsRecording[$i]['email_address'])?>" style="color:#A4A4A4;">Unsubscribe</a> to cancel your application and stop these reminders.
                            <br>
                            <?=date("l F d, Y H:i a")?>
                        </div>
                    </td>
                </tr>
            </table>
		</body>
	</html>
	<?
	$body = ob_get_clean();
	$to = $needsRecording[$i]['email_address'];
	if(!empty($to)) 
	{
		$subject = $needsRecording[$i]['first_name'] . ' your application is missing something!';
		$headers = 'From: Work at Home <workathomeapplication@gmail.com>' . "\r\n";
		$headers .= 'MIME-Version: 1.0' . "\r\n";
		$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
		$headers .= 'Bcc: aaron@synergyproconsulting.com' . "\r\n";
		$db->query("
						UPDATE potential_employees 
						SET disposition = 'No Recording'
						WHERE id = '".$needsRecording[$i]['id']."'
					");
		if(!mail($to, $subject, $body, $headers))
		{
			//echo "mail error";	
		}
		else
		{
			//echo "sent";	
		}
	}
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit