‘;
}
else if(isset($_SESSION[‘candidato_user’])){
$candidato_user = $_SESSION[‘candidato_user’];
$sql = mysql_query(“SELECT * FROM AF_conf_temp_users_info, thuliumy_users
WHERE thuliumy_users.user_login=’$candidato_user’ AND thuliumy_users.user_login = AF_conf_temp_users_info.user_login”);
$rows = mysql_fetch_assoc($sql);
echo ‘
- “Benvenuto ‘.$rows[‘user_login’].’, Verifica gli annunci di Lavoro. Per uscire.
- Logout
‘;
}
else {
if($_POST){
//print_r($_POST);
$codice=$_POST[‘codice’];
$password=$_POST[‘password’];
$query = mysql_query(“SELECT id FROM azienda WHERE codice=’$codice’ && password=’$password’ && status=1”);
$row = mysql_fetch_assoc($query);
if(empty($row)){
$notify = ‘
‘;
}
else{
//print_r($row);
$_SESSION[‘azienda_id’] = $row[‘id’];
echo ‘‘;
}
}
echo $notify;
$login_content = ‘
‘;
echo $login_content;
}
?>