Welcome, . Click on "Get Started" to begin the New Student Orientation.
include ('/web/omni/formmail_auth/session_check.php'); require('/web/db_conn/oci_connect.php'); //$knumber set to $_SESSION['Knum'] in session_check.php file //echo $knumber; $curs = oci_new_cursor($conn);// create a new cursor $stmt = oci_parse($conn,"begin sbcc.szk_get_comevo.orientation('$knumber',:data); end;"); //pass knum to function oci_bind_by_name($stmt,'data',$curs,-1,OCI_B_CURSOR); //bind variable data to out variable in package/procedure oci_execute($stmt); oci_execute($curs); while ($data = oci_fetch_assoc($curs)) { $output[]=$data;//store data in array } if (empty($output)) {echo '
No data was found associated with your knumber. Please contact student support about this issue.
'; die;} oci_free_statement($curs); oci_free_statement($stmt); //print_r($output); foreach ($output as $info) { /* $url = 'http://www.atschoolorientation.net/authenticate.aspx?th=sbcc&stage=true'; $myvars = '&FirstName=' . $info['FNAME']. '&LastName=' . $info['LNAME'].'&OrganizationIdValue='. $info['KNUM'].'&DOB='. $info['DOB']; $ch = curl_init( $url ); curl_setopt( $ch, CURLOPT_POST, 1); curl_setopt( $ch, CURLOPT_POSTFIELDS, $myvars); curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt( $ch, CURLOPT_HEADER, 1); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1); $resp = curl_exec($ch); echo $resp; */ //header( 'Location: http://www.atschoolorientation.net/authenticate.aspx?th=sbcc&FirstName='.$info['FNAME'].'&lname='.$info['LNAME'].'&knum='.$info['KNUM'].'&dob='.$info['DOB'] ) ; } $url = "https://www.comevoservice.com/api/training/obtainaccesskey/sbcc-nso/gezEDUsp3t/179"; $data = array( "FirstName" => $info['FNAME'], "LastName" => $info['LNAME'], "OrganizationIdValue" => $knum, "DOB" => $info['DOB'] ); $data_json = "=".json_encode($data); //echo $data_json; // $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); //curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json')); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS,$data_json); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); // $data_decode = json_decode($response, true); $accessKey = $data_decode["AccessKey"]; ////echo "TEST"; ////echo $accessKey; ?>Welcome, . Click on "Get Started" to begin the New Student Orientation.