From 1897a3eaadc37a204d053992b3fd30db1886542c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Batuhan=20Berk=20Ba=C5=9Fo=C4=9Flu?= Date: Sat, 8 Jun 2024 16:35:17 -0400 Subject: [PATCH] Fixed the registration. --- .gitattributes | 2 ++ README.md | 6 ++-- database/storedatabase.sql | 8 ++--- header.php | 2 +- register.php | 64 ++++---------------------------------- 5 files changed, 16 insertions(+), 66 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..b2baa1e --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +* linguist-vendored +*.php linguist-vendored=false diff --git a/README.md b/README.md index 1fb5051..5811982 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ A cool shopping site made using PHP, CSS, Javascript and MySQL. -Note: Adding and Removing items to Carts/Wishlist and Registration needs be fixed. +Note: Adding and Removing items to Carts/Wishlist needs to be fixed. # Installation @@ -31,11 +31,11 @@ Note: Adding and Removing items to Carts/Wishlist and Registration needs be fixe Here are some existing users for login * Admin: - * E-Mail: admin@gmail.com + * E-Mail: admin@domain.com * Password: 123456789 * User 1: - * E-Mail: sample@gmail.com + * E-Mail: user@domain.com * Password: password # Mirrors diff --git a/database/storedatabase.sql b/database/storedatabase.sql index 5fbc5fa..dfa6694 100644 --- a/database/storedatabase.sql +++ b/database/storedatabase.sql @@ -3,7 +3,7 @@ -- https://www.phpmyadmin.net/ -- -- Host: localhost --- Generation Time: May 16, 2024 at 05:54 AM +-- Generation Time: Jun 08, 2024 at 10:33 PM -- Server version: 10.4.32-MariaDB -- PHP Version: 8.1.25 @@ -47,7 +47,7 @@ CREATE TABLE `admin_info` ( -- INSERT INTO `admin_info` (`admin_id`, `admin_name`, `admin_email`, `admin_password`) VALUES -(1, 'admin', 'admin@gmail.com', '25f9e794323b453885f5181f1b624d0b'); +(1, 'admin', 'admin@domain.com', '25f9e794323b453885f5181f1b624d0b'); -- -------------------------------------------------------- @@ -358,7 +358,7 @@ CREATE TABLE `user_info` ( -- INSERT INTO `user_info` (`user_id`, `first_name`, `last_name`, `email`, `password`, `mobile`, `address1`, `address2`) VALUES -(25, 'John', 'Doe', 'sample@gmail.com', 'password', '1234567890', 'Montreal', ''); +(1, 'John', 'Doe', 'user@domain.com', 'password', '1234567890', 'Montreal', ''); -- -- Triggers `user_info` @@ -392,7 +392,7 @@ CREATE TABLE `user_info_backup` ( -- INSERT INTO `user_info_backup` (`user_id`, `first_name`, `last_name`, `email`, `password`, `mobile`, `address1`, `address2`) VALUES -(25, 'John', 'Doe', 'sample@gmail.com', 'password', '1234567890', 'Montreal', ''); +(1, 'John', 'Doe', 'user@domain.com', 'password', '1234567890', 'Montreal', ''); -- -------------------------------------------------------- diff --git a/header.php b/header.php index 81993e5..0c655d2 100644 --- a/header.php +++ b/header.php @@ -138,7 +138,7 @@ session_start(); echo '