Online Bus Booking System Project Using PHP/MySQL

Language

The Online Bus Booking System is a project using PHP/MySQL. This project also used jQuery and Ajax to make user interaction or experience be much better when handling a form. To develop the system, I used HTML5, CSS, JavaScript (jQuery/ Ajax), and Bootsrap.

About the Project

The Online Bus Booking System is a system that manages the bus company booking or ticketing processes. On the system administrator side, admin can manage the list of buses, locations, schedules and list of booked schedules. Passenger can simply go the site and find his/her desired schedule and location and copy the reference number for his/her booking ticket. Admin will update the passenger booked schedule for payment when they arrive to the departure location.

Features

Admin Side

  • Home Page - This page is the welcoming page of administrator after logging into the system.
  • Bus List Page - This is the page where buses are listed and also where can admin users can manage the buses.
  • Location - This page helps to organize the bus company location route. At this page, admin can manage the list of locations.
  • Schedule Page - This is the page where all bus route schedules are listed. At this page, admin can create, update and delete and bus route schedule for booking.
  • Booked Page - The page where the passengers booked schedules are listed. Admin can update the details and payment status of passenger schedule.
  • Users Page - The page where are admin users of the system are listed and can be managed.

Passenger Side

  • Home Page - The welcoming page for the passenger when he/she browses the website. On this page, passenger can find his/her desired location and schedules.
  • Schedule Page - The page where can passenger see all bus company route schedules.

Installation

  1. Download the source code and extract the zip file.
  2. Download or set up any local web server that runs PHP script.
  3. Open your web server database and create a new database name it bus_booking.
  4. Import the SQL file located in the database folder of the source code.
  5. Copy and paste the source code to the location where your local web server accessing your local projects. Example for XAMPP('C:\xampp\htdocs')
  6. Open a web browser and browse the project. e.g [ http://localhost/online-bus-booking-system ]

Then there you go, you can now explore and modify the system.

Admin Default Access

Username: admin

Password: admin123

Note

To access the admin login page, browse the admin.php in your URL . For example http://localhost/online-bus-booking-system/admin.php 

I hope this project will help you for what you are looking for. Feel free to download and modify.

Explore to this website for more source code or tutorial.

Enjoy!

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Comments

Submitted byFeras Al Kassar (not verified)on Tue, 05/11/2021 - 23:41

After checking CVE-2020-25273 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-25273 We found the reason that. there is the extract function in the file "login_auth.php". which will generate variables from the $_POST and these variables will pass to the DB without sanitizing. After checking the whole project. There 49 vulnerable variables pass to to the DB. with 12 function extract($_POST); and 20 different sinks (DB query). The affected files (each file has one source and one or more sinks). 1) bus_booking\book_now.php 2) bus_booking\delete_bus.php 3) bus_booking\delete_location.php 4) bus_booking\delete_schedule.php 5) bus_booking\delete_user.php 6) bus_booking\load_schedule2.php 7) bus_booking\login_auth.php (CVE-2020-25273) 8) bus_booking\save_bus.php 9) bus_booking\save_location.php 10) bus_booking\save_schedule.php 11) bus_booking\save_user.php 12) bus_booking\update_account.php
Submitted byprabhath chathuranga (not verified)on Fri, 02/25/2022 - 01:19

thank you very much. I download it and give it a full edit.
Submitted byAnonymous (not verified)on Mon, 07/31/2023 - 03:28

after click on View bus schedule only shows loading and in admin manage schedule

Add new comment