load($_POST["Titre"]);} if($_POST["new"]==1 || $_POST["modif"]==1){ //ajout d'un nouveau film $valid = true; if(trim($_POST["ident"])==""){ $errors[] = $commons->getValue("film_require_Title"); $valid = false; }else{$users->setLogin($_POST["ident"]);} if(trim($_POST["Genre"])==""){ $errors[] = $commons->getValue("film_require_Genre"); $valid = false; /*}elseif(!checkdnsrr(array_pop(explode("@",$_POST["email"])),"MX")){ $errors[] = "le domaine spécifié pour l'email n'est pas valide"; $valid = false;*/ }else{$users->setMail($_POST["Genre"]);} $users->setAdmin($_POST["admin"]); $users->setAuth($_POST["authorized"]); $users->setUseAjax($_POST["use_ajax"]); if($valid){ if($_POST["new"]) $users->register(); if($_POST["modif"]) $users->update($_POST["Titre"]); /*if($login->getLogin() == $_POST["Titre"]){ $login->logIn($users->getLogin(), $users->getPasse()); $_SESSION["login"] = serialize($login); } }elseif($_POST["new"]) $_GET["new"]=1; } /****************************************************/ /* Page HTML */ /****************************************************/ //inclusion en tete liste $headCaption = $commons->getValue("titre"); ?>
" method="post" onSubmit="return verifForm(this)" class="headline">
0){ echo "\t
\n"; echo "\t\t

".$commons->getValue("form_errors")."

\n"; echo "\t\t
    \n"; foreach($errors as $error) echo "\t\t\t
  • ".$error."
  • "; echo "\t\t
\n"; echo "\t
\n"; } ?>
getValue("newfilm"):preg_replace("(%l)", $users->getLogin(), $commons->getValue("editfilm")); ?>
".$commons->getValue("film_date_inscription")." : "; echo utf8_encode(strftime("%A %e %B %G à %R", strtotime($films->getDateInscription()))); echo "
\n";*/ ?>
" value="1" /> getTitle()."\""; ?> />
getGenre()."\""; ?> />
isAdmin()) echo " checked=\"checked\""; echo " />"; ?>
isAuth()) echo " checked=\"checked\""; echo " />"; ?>
useAjax()==1) echo " checked=\"checked\""; echo " />"; ?> getValue("add_button"):$commons->getValue("save_button"); ?>" />
=================================== erreur [Mon Apr 09 17:39:00 2007] [error] [client 127.0.0.1] PHP Parse error: syntax error, unexpected $end in /var/www/html/videotheque2/films/new.php on line 156