prepare("SELECT name,surname,password_salt,password_hash FROM users WHERE username=? AND active=1"); $stmt->bindValue(1,$username,SQLITE3_TEXT); $results=$stmt->execute(); while($row=$results->fetchArray(SQLITE3_ASSOC)){ if(hash("sha256",$row["password_salt"].$password)==$row["password_hash"]){ $_SESSION["logged_username"]=$row["name"]." ".$row["surname"]; return true; } } return false; } $page_bodyid="domandeOfferte"; $menu_selected="domandeofferte"; //--- POST Handling ---// if(isset($_POST["action_login"])){ if(checkLogin($_POST["txt_username"],$_POST["txt_password"])){ $_SESSION["logged_offerte"]=1; } } if(isset($_POST["action_logout"])){ unset($_SESSION["logged_offerte"]); unset($_SESSION["logged_username"]); } $selected_section = (isset($_GET["section"])) ? intval($_GET["section"]) : 1; $logged=(isset($_SESSION["logged_offerte"]) && $_SESSION["logged_offerte"]==1); if(!$logged)$selected_section=0; $sections=array( "", "Partecipazioni", "Acquisti", "Vendite", "Cerco lavoro", "Offro lavoro", "Arredi", "Varie" ); //Get section items $section_items=array(); if($selected_section>0){ $xml=simplexml_load_file("xml/annunci.xml"); $tempitems=$xml->xpath("//annuncio[tipo='".$selected_section."']"); foreach($tempitems as $item){ if(strtotime($item->data)>strtotime("-2 months")){ $section_items[]=$item; } } } ?>

Archivio

">

Benvenuto

Per accedere all'area riservata di farmamese.it, effettua il login:

 

stai accedendo all'area riservata del sito

data))?>

titolo?>

testo ?>

telefono)>0){?>

telefono: telefono?>

email)>0){?>

email:email?>

riferimento)>0){?>

riferimentoriferimento?>