-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update database version and server details in homemadedb.sql
- Loading branch information
Showing
5 changed files
with
26 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
-- phpMyAdmin SQL Dump | ||
-- version 5.2.0 | ||
-- version 5.2.1 | ||
-- https://www.phpmyadmin.net/ | ||
-- | ||
-- Host: 127.0.0.1 | ||
-- Generation Time: Aug 05, 2023 at 06:15 PM | ||
-- Server version: 10.4.27-MariaDB | ||
-- PHP Version: 8.1.12 | ||
-- Generation Time: Oct 05, 2024 at 03:03 PM | ||
-- Server version: 10.4.28-MariaDB | ||
-- PHP Version: 8.2.4 | ||
|
||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; | ||
START TRANSACTION; | ||
|
@@ -35,6 +35,14 @@ CREATE TABLE `menu` ( | |
`m_type` varchar(255) NOT NULL | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; | ||
|
||
-- | ||
-- Dumping data for table `menu` | ||
-- | ||
|
||
INSERT INTO `menu` (`m_id`, `r_id`, `m_name`, `m_price`, `m_type`) VALUES | ||
(1, 2, 'Grilled Halloumi & Quinoa Salad', 160, 'Veg'), | ||
(2, 2, 'Korean BBQ Chicken Tacos', 240, 'Non-Veg'); | ||
|
||
-- -------------------------------------------------------- | ||
|
||
-- | ||
|
@@ -80,6 +88,13 @@ CREATE TABLE `restaurant` ( | |
`account_status` varchar(625) NOT NULL | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; | ||
|
||
-- | ||
-- Dumping data for table `restaurant` | ||
-- | ||
|
||
INSERT INTO `restaurant` (`r_id`, `p_name`, `p_email`, `p_about`, `p_password`, `r_bg`, `p_phone`, `p_image`, `r_name`, `r_rating`, `r_cuisine`, `r_pincode`, `reset_code`, `account_status`) VALUES | ||
(2, 'Vendor Name', '[email protected]', 'Eclipse Global Kitchen brings the world to your plate, blending the vibrant flavors of different cultures into one unforgettable dining experience. Our chefs expertly fuse elements from Asian, European, Latin American, and African cuisines, creating innovative dishes that celebrate global diversity. Whether you\'re craving a spicy street food-inspired dish or a sophisticated fusion of French and Japanese techniques, Eclipse offers a dynamic menu that evolves with the seasons and trends. Join us for a culinary journey around the globe, where every meal is an adventure.', '$2y$10$LQHI87mxEOgERMNJjR9zvuJuUcHbQjQ93qIpQmxhL0LwmXGazEkFu', 'restaurant/cover/img1.jpg', '8899889988', 'restaurant/img2.jpg', 'Eclipse Global Kitchen', '', 'Global Fusion Cuisine', '560016', '0', 'Verified'); | ||
|
||
-- -------------------------------------------------------- | ||
|
||
-- | ||
|
@@ -133,7 +148,7 @@ ALTER TABLE `users` | |
-- AUTO_INCREMENT for table `menu` | ||
-- | ||
ALTER TABLE `menu` | ||
MODIFY `m_id` int(11) NOT NULL AUTO_INCREMENT; | ||
MODIFY `m_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; | ||
|
||
-- | ||
-- AUTO_INCREMENT for table `orders` | ||
|
@@ -145,13 +160,13 @@ ALTER TABLE `orders` | |
-- AUTO_INCREMENT for table `restaurant` | ||
-- | ||
ALTER TABLE `restaurant` | ||
MODIFY `r_id` int(11) NOT NULL AUTO_INCREMENT; | ||
MODIFY `r_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; | ||
|
||
-- | ||
-- AUTO_INCREMENT for table `users` | ||
-- | ||
ALTER TABLE `users` | ||
MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT; | ||
MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; | ||
COMMIT; | ||
|
||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php | ||
|
||
use PHPMailer\PHPMailer\PHPMailer; | ||
use PHPMailer\PHPMailer\SMTP; | ||
// use PHPMailer\PHPMailer\SMTP; // Removed unused import | ||
use PHPMailer\PHPMailer\Exception; | ||
|
||
include 'partials/_dbconnect.php'; | ||
|
@@ -13,7 +13,7 @@ | |
$password = $_POST["password"]; | ||
$restaurantName = $_POST["restaurant_name"]; | ||
$restaurantCuisine = $_POST["restaurant_cuisine"]; | ||
$restaurantAbout = $_POST["restaurant_about"]; | ||
$restaurantAbout = mysqli_real_escape_string($conn, $_POST["restaurant_about"]); | ||
$restaurantPin = $_POST['restaurant_pin']; | ||
|
||
|
||
|
@@ -38,7 +38,7 @@ | |
|
||
if ((move_uploaded_file($_FILES['vendor_image']['tmp_name'], $uploadProfile)) && (move_uploaded_file($_FILES['restaurant_bg_img']['tmp_name'], $uploadCover))) { | ||
$sql = "INSERT INTO `restaurant` (`p_name`, `p_email`, `p_about`, `p_password`, `r_bg`, `p_phone`, `p_image`, `r_name`, `r_cuisine`, `reset_code`, `account_status`, `r_pincode`) | ||
VALUES ('$name', '$email', '$restaurantAbout', '$hash', '$uploadCover', '$phone', '$uploadProfile', '$restaurantName', '$restaurantCuisine', '$hashotp', 'Not-Verified', '$restaurantPin');"; | ||
VALUES ('$name', '$email', '$restaurantAbout', '$hash', '$uploadCover', '$phone', '$uploadProfile', '$restaurantName', '$restaurantCuisine', '$hashotp', 'Not-Verified', '$restaurantPin')"; | ||
$result = mysqli_query($conn, $sql); | ||
echo "Upload Profile Path: " . $uploadProfile . "<br>"; | ||
echo "Upload Cover Path: " . $uploadCover . "<br>"; | ||
|
@@ -59,7 +59,7 @@ | |
$mail->Host = 'smtp.gmail.com'; //Set the SMTP server to send through | ||
$mail->SMTPAuth = true; //Enable SMTP authentication | ||
$mail->Username = '[email protected]'; //SMTP username | ||
$mail->Password = '#'; //SMTP password | ||
$mail->Password = 'asnfswjtqvsqpngu'; //SMTP password | ||
$mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; //Enable implicit TLS encryption | ||
$mail->Port = 465; //TCP port to connect to; use 587 if you have set `SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS` | ||
|
||
|