diff --git a/code/serveur/php/ressources/simple.css b/code/serveur/php/ressources/simple.css index 9d62ec9..bb70a18 100644 --- a/code/serveur/php/ressources/simple.css +++ b/code/serveur/php/ressources/simple.css @@ -119,20 +119,6 @@ h2#tache-description { clear:both; } - -.warning { - width : 40%; - display : block; - border : 1px dashed red; - - padding : 5px; - padding-left : 30px; - margin-top : 10px; - margin-bottom : 10px; - margin-right : 6%; - margin-left : 6%; -} - .message { width : 40%; display : block; @@ -144,12 +130,12 @@ h2#tache-description { margin-left : 6%; } -.message .warning { +.warning { border : 1px dashed red; background-color : #F0C060 } -.message .success { +.success { border : 1px dashed red; background-color : #90FF90 } \ No newline at end of file diff --git a/code/serveur/php/signup.php b/code/serveur/php/signup.php index 324b694..6ea0320 100644 --- a/code/serveur/php/signup.php +++ b/code/serveur/php/signup.php @@ -144,8 +144,9 @@ if(isset($_GET['d']) && $_GET['d'] == "true") { else if($newpage == false){ $ok = ($db->query("INSERT INTO user(mail, login, hash_passwd, score) VALUES ('" . SQLite3::escapeString($signupemail) . "', '" . SQLite3::escapeString($signupid) - . "', '" . SQLite3::escapeString($signuppswd1) + . "', '" . SQLite3::escapeString(md5($signuppswd1)) . "', 0);")); + if($ok == true) echo "insertion worked!!!!!"; else