From dc3fee953cde366d4b89c06c306e82e025b020a4 Mon Sep 17 00:00:00 2001 From: bx khateri <bx@bxs-MacBook-Pro.local> Date: Thu, 2 Nov 2023 18:13:55 +0100 Subject: [PATCH] majeur update --- Register.php | 2 +- admin.php | 1 - api.php | 17 +++++++++++++++++ forgotpassword.php | 2 +- login.php | 7 +++---- 5 files changed, 22 insertions(+), 7 deletions(-) create mode 100644 api.php diff --git a/Register.php b/Register.php index eca4b5b..d7be8e2 100644 --- a/Register.php +++ b/Register.php @@ -145,7 +145,7 @@ if (isset($provided_email) && isset($provided_password) && isset($provided_age)) <div class="d-flex justify-content-between"> - <button type="submit" class="btn btn-primary">Signup</button> + <button type="submit" class="btn btn-primary btn-sm">Signup</button> </div> </form> </div> diff --git a/admin.php b/admin.php index ae2d19b..ba26f32 100644 --- a/admin.php +++ b/admin.php @@ -51,5 +51,4 @@ $users = $obj->executeQuery($query); ?> </tbody> </table> - </div> \ No newline at end of file diff --git a/api.php b/api.php new file mode 100644 index 0000000..164e13d --- /dev/null +++ b/api.php @@ -0,0 +1,17 @@ +<?php + +$base_path = $_SERVER['PHP_SELF']; +$array_of_path = explode('/', $base_path); + +echo $array_of_path[0], "<br>"; +echo $array_of_path[1], "<br>"; + +echo $array_of_path[2], "<br>"; +echo $array_of_path[3], "<br>"; + + + + + + +?> \ No newline at end of file diff --git a/forgotpassword.php b/forgotpassword.php index ba4a0d5..1c20418 100644 --- a/forgotpassword.php +++ b/forgotpassword.php @@ -105,7 +105,7 @@ if (!empty($_POST['email']) && !empty($_POST['password'])) { </div> <div class="d-flex justify-content-between"> - <button type="submit" class="btn btn-primary">Reset</button> + <button type="submit" class="btn btn-primary btn-sm">Reset</button> </div> </form> </div> diff --git a/login.php b/login.php index e582149..15cd122 100644 --- a/login.php +++ b/login.php @@ -23,7 +23,6 @@ if (isset($provided_email) && isset($provided_password)) { // check if user exists with provided email $query = "SELECT * FROM users where email = '$provided_email';"; - $result = $obj->executeQuery($query); $email = ''; $password = ''; @@ -75,11 +74,11 @@ if (isset($provided_email) && isset($provided_password)) { </div> <div class="d-flex justify-content-between"> - <button type="submit" class="btn btn-primary">Login</button> - <a class="btn btn-outline-info" href="register.php">Sign up</a> + <button type="submit" class="btn btn-primary btn-sm">Login</button> + <a class="btn btn-outline-info btn-sm" href="register.php">Sign up</a> </div> <div class="mt-3"> - <a class="btn btn-outline-danger" href="forgotpassword.php">forgot password</a> + <a class="btn btn-outline-danger btn-sm" href="forgotpassword.php">forgot password</a> </div> </form> </div> -- GitLab