0) { $_SESSION['partners'][0]=0; $passfile = fopen("./oscerfolio/grades/oscerroster.csv", "rb"); if($passfile) { flock($passfile,LOCK_SH); while (!feof($passfile)) { $line_of_text = fgets($passfile); $parts = explode(',', $line_of_text); if($_SESSION['status']==$parts[4]&&intval($_SESSION['group'])==trim($parts[5])) { $_SESSION['partners'][0]++; $_SESSION['partners'][$_SESSION['partners'][0]]=$parts[0]; $_SESSION['partnersfirst'][$_SESSION['partners'][0]]=$parts[3]; $_SESSION['partnerslast'][$_SESSION['partners'][0]]=$parts[2]; } } } } if($_POST['gone']) { $_SESSION['status']=''; $_SESSION['firstname']=''; $_SESSION['lastname']=''; $_SESSION['id']=''; $_SESSION['studentcourse']=''; $_SESSION['power']=0; $_SESSION['login']=''; session_destroy(); $status=''; $firstname=''; $lastname=''; } ?> The quiz ends: '.date('l jS \of F Y \a\t h:i A',$quizend); function authorizesections() { global $sectionname; global $sectionauth; global $numsec; $sectionfile = fopen('sections.csv', "w"); flock($sectionfile,LOCK_SH); for ($i=1;$i<=30;$i++) { $string = sprintf("%s,%d\r\n",$sectionname[$i],$sectionauth[$i]); fwrite($sectionfile,$string); } flock($sectionfile,LOCK_UN); fclose($sectionfile); return; } function checksection($sec) { global $sectionname; global $sectionauth; global $numsec; $authorize=2; $sectionfile = fopen('sections.csv', "rb"); flock($sectionfile,LOCK_SH); $numsec=0; while (!feof($sectionfile) ) { $line_of_text = fgets($sectionfile); $parts = explode(',', $line_of_text); $numsec++; $sectionname[$numsec]= $parts[0]; $sectionauth[$numsec]= $parts[1]; if($sec==$sectionname[$numsec]) { $authorize=$sectionauth[$numsec];} } flock($sectionfile,LOCK_UN); fclose($sectionfile); return $authorize; } ?> Oscer's Log-In

CHE 133 General Chemistry Laboratory I Summer 2019

Welcome: Please Log-In or Continue as a Guest


Log-In with Net-ID

OSCERFOLIOCOURSE HOME PAGE