Commit 4c10ad96 authored by slopez's avatar slopez

bleh

parent ce758564
......@@ -64,10 +64,9 @@ if ( $_REQUEST["action"] == "validcertif" )
$site->error_not_found();
exit();
}
print_r($_REQUEST['date_fin']);
if(strtotime($_REQUEST['date_fin']) > time())
if($_REQUEST['date_fin'] > time())
{
$user->set_certificat(strtotime($_REQUEST['date_fin']));
$user->set_certificat($_REQUEST['date_fin']);
$info = new contents("Enregistrement certificat","Certificats enregistré, <a href='".$topdir."user.php?id_utilisateur=".$_REQUEST['id_utilisateur']."'>Voir la fiche</a>.");
}
else
......
......@@ -357,6 +357,7 @@ class utilisateur extends stdentity
function set_certificat($date)
{
$this->date_limit_certificat=date("Y-m-d",strtotime($date));
print_r($this->date_limit_certificat);
$req = new requete($this->db,
"SELECT `date_fin` ".
"FROM `certificats` ".
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment