set_file(array( "testata" => $app->getLang()."/$TEMPLATEDIR/testata2.htm", "body" => $app->getLang()."/$TEMPLATEDIR/$page.htm", "spalla_sx" => $app->getLang()."/$TEMPLATEDIR/menu/mnt_blank.htm", "spallanews" => $app->getLang()."/$TEMPLATEDIR/blank.htm" )); //$t1->def_block("body","rowpopUp"); if (isset($action)) switch ($action){ case "login": if (isset($_POST["username"])) $username = $_POST["username"]; if (isset($_POST["password"])) $password = $_POST["password"]; page_open(array("sess" => "mySession", "auth" => "myAuth", "perm" => "myPerm" , "user" => "myUser", "username" => $username, "password" => $password)); $app->setUser($auth->auth_validatelogin()); $today = sprintf("%d-%02d-%02d %02d:%02d:%02d",date("Y"), date("m"), date("d"), date("H"), date("m"), date("s")); $app->user->setLastLogin($today); $app->user->setAccessOk(); header("Location:index.php"); //$t1->parse_block("rowpopUp"); break; } /*else{ $t1->set_var("_rowpopUp",""); }*/ $t1->set_var("codice_conc",$codice_conc); $t1->set_var("password",$password); //le chiavi da inserire nelle pagine per i motori di ricerca $arraymetakeys = array("Il sito ".$app->getSiteName().", home"); $myMetaKey->setMetaKeysArray($arraymetakeys); $myMetaKey->setTitle($app->getSiteName()); $myMetaKey->setDescription("Il sito ".$app->getSiteName()." pagina home ".$app->getSiteName()); include dirname(__FILE__)."/include/end.inc"; ?>