From 58c349be1bf4b47e1f9ef653295cc819c72fee67 Mon Sep 17 00:00:00 2001 From: Kevin MONDEJAR Date: Wed, 23 Oct 2024 15:15:20 +0200 Subject: [PATCH] Supprimer 'models/user.php' --- models/user.php | 49 ------------------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 models/user.php diff --git a/models/user.php b/models/user.php deleted file mode 100644 index 4a2b0c0..0000000 --- a/models/user.php +++ /dev/null @@ -1,49 +0,0 @@ -id = $id; - $this->username = $pseudo; - $this->passwd = $password; - $this->hidenPasswd = hidenPassWd($password); - $this->img = $image; - $this->email = $mail; - } - - public function updateUsername(string $newUsername){ - if(isset($newUsername)){ - $this->username = $newUsername; - } - } - - public function updateEmail(string $newEmail) { - if(isset($newEmail)){ - $this->email = $newEmail; - } - } - - - public function modifyImage(string $image){ - if(isset($image)){ - $u->img = $image; - } - } -} - -$u = new User('Testeur', 'motDepasse', '../images/imageProfil.png', 'testeur.compte@wikifantasy.com'); /*Test*/ - -function hidenPassWd(string $passwd){ - if(strlen($passwd) >= 16) return str_repeat('*', 16); - return str_repeat('*', strlen($passwd)); -} - - - - -?> \ No newline at end of file