From f3ec4c66e19b025c1a17932238a2acb68de9fc7f Mon Sep 17 00:00:00 2001 From: suren_s <surenkumar2105@gmail.com> Date: Wed, 12 Oct 2022 16:20:19 +0000 Subject: [PATCH] modified --- lib/{Userdeatils.class.php => Userdetails.class.php} | 2 +- lib/user.class.php | 2 +- login.php | 3 +++ signup.php | 8 +++++--- 4 files changed, 10 insertions(+), 5 deletions(-) rename lib/{Userdeatils.class.php => Userdetails.class.php} (95%) diff --git a/lib/Userdeatils.class.php b/lib/Userdetails.class.php similarity index 95% rename from lib/Userdeatils.class.php rename to lib/Userdetails.class.php index 67e1c41..0c133c0 100644 --- a/lib/Userdeatils.class.php +++ b/lib/Userdetails.class.php @@ -1,5 +1,5 @@ <?php -include 'lib/Database.class.php'; +include_once 'lib/Database.class.php'; class Userdetails{ public function __construct($id){ diff --git a/lib/user.class.php b/lib/user.class.php index feede70..7a10595 100644 --- a/lib/user.class.php +++ b/lib/user.class.php @@ -1,5 +1,5 @@ <?php - +include_once 'lib/Database.class.php'; class User { diff --git a/login.php b/login.php index af25b35..c693b16 100644 --- a/login.php +++ b/login.php @@ -1,5 +1,8 @@ <?php +include_once 'lib/user.class.php'; +include_once 'lib/Userdetails.class.php'; +include_once 'lib/Database.class.php'; $login = false; if (isset($_POST['username']) and isset($_POST['password'])) { diff --git a/signup.php b/signup.php index b1bdf3e..640d88f 100644 --- a/signup.php +++ b/signup.php @@ -1,5 +1,7 @@ <?php - +include_once 'lib/user.class.php'; +include_once 'lib/Userdetails.class.php'; +include_once 'lib/Database.class.php'; ?> <html lang="en"> <head> @@ -119,7 +121,7 @@ if($sigin){?> <main class="form-signin w-100 text-center"> <form action="signup.php" method="post"> <!-- <img class="mb-4" src="/docs/5.2/assets/brand/bootstrap-logo.svg" alt="" width="72" height="57"> --> - <h1 class="h3 mt-4 mb-5 fw-normal">Please SIGN IN</h1> + <h1 class="h3 mt-4 mb-5 fw-normal">Please SIGN UP</h1> <div class="form-floating"> <input type="email" name="email" class="form-control" id="floatingInput" placeholder="name@example.com"> <label for="floatingPassword">Email</label> @@ -142,7 +144,7 @@ if($sigin){?> <input type="checkbox" value="remember-me"> Remember me </label> </div> - <button class="btn1" type="submit"><span>Sign in</span></button> + <button class="btn1" type="submit"><span>Sign up</span></button> <p class="mt-5 mb-3 text-white">© 2022–2023</p> </form> </main> -- GitLab