$val){ eval("\$".$key."=\$val;"); } foreach($HTTP_GET_VARS as $key=>$val){ eval("\$".$key."key=\$val;"); } $page_id=isSet($HTTP_POST_VARS['page_id'])?$HTTP_POST_VARS['page_id']:$HTTP_GET_VARS['page_id']; if(!isSet($page_id)) $page_id=16; $formAction=isSet($HTTP_POST_VARS['formAction'])?$HTTP_POST_VARS['formAction']:""; $database=new CDatabase(); if($_SESSION['authenticated']&&($page_id==12)){ $_SESSION['authenticated']=false; $page_id=3; } if($formAction=="login"){ if(($HTTP_POST_VARS['username']=="administrator")&&($HTTP_POST_VARS['password']=="jp19mall7329")){ header("Location: admin/index.php"); }else{ $SQL="select id from kandidaten where username='".$HTTP_POST_VARS['username']."' and password='".$HTTP_POST_VARS['password']."' and status!=4"; $result=mysql_query($SQL); echo mysql_error(); if(mysql_num_rows($result)==1){ $_SESSION['vacature']=false; $_SESSION['kandidaat']=true; $_SESSION['opdracht']=false; $_SESSION['user_id']=mysql_result($result,0,0); $_SESSION['username']=$username; $_SESSION['password']=$password; $_SESSION['authenticated']=true; $page_id=13; }else{ $SQL="select id from vacature where username='".$HTTP_POST_VARS['username']."' and password='".$HTTP_POST_VARS['password']."'"; $result=mysql_query($SQL); echo mysql_error(); if(mysql_num_rows($result)==1){ $_SESSION['kandidaat']=false; $_SESSION['opdracht']=false; $_SESSION['vacature']=true; $_SESSION['vacature_id']=mysql_result($result,0,0); $_SESSION['username']=$username; $_SESSION['password']=$password; $_SESSION['authenticated']=true; $page_id=24; }else{ $SQL="select id from opdracht where username='".$HTTP_POST_VARS['username']."' and password='".$HTTP_POST_VARS['password']."'"; $result=mysql_query($SQL); echo mysql_error(); if(mysql_num_rows($result)==1){ $_SESSION['kandidaat']=false; $_SESSION['vacature']=false; $_SESSION['opdracht']=true; $_SESSION['opdracht_id']=mysql_result($result,0,0); $_SESSION['username']=$username; $_SESSION['password']=$password; $_SESSION['authenticated']=true; $page_id=26; }else{ $_SESSION['vacature']=false; $_SESSION['kandidaat']=false; $_SESSION['authenticated']=false; $_SESSION['opdracht']=false; $page_id=12; } } } } } $content=$database->selectRecord("content",$page_id,true); switch($content['background']){ case 'wit': $background="body.gif"; $background_color="#ffffff"; $button="button.gif"; break; case 'grijs': $background="body_grijs.gif"; $background_color="#B2B2B2"; $button="button_grijs.gif"; break; } ?>
> > "; } ?>
  
 >
 >
 >
 >
 >
 
valign=top align=center> "; echo "
disclaimer  |  privacy statement  |  algemene voorwaarden  |   
align=right> 
"; include $page; echo ""; }else{ echo "
".$content['title']."
"; echo fixFont($content['body']); } function fixFont($str){ $str=str_replace(" ","  ",$str); $str=str_replace("

","",$str); $str=str_replace("

","
\r\n",$str); $str=str_replace("","",$str); $str=str_replace("")+1; $tag=substr($str,0,$pos2); $str=substr($str,$pos2); if($pos3=strpos($tag,"size=\"")){ $newtag=substr($tag,0,$pos3+6); $tag=substr($tag,$pos3+6); if($pos4=strpos($tag,"\"")){ $val=substr($tag,0,$pos4); $newtag.=$fontsize[$val]; $newtag.=substr($tag,$pos4); } } $text.=$newtag; } $text.=$str; return($text); } ?>

> valign=top>