brahmnoor / prebook Goto Github PK
View Code? Open in Web Editor NEWMovie booking website, with user login, a seat booking page (showing the available seats), commenting, and movie history. (Implemented in PHP and mySQL)
License: MIT License
Movie booking website, with user login, a seat booking page (showing the available seats), commenting, and movie history. (Implemented in PHP and mySQL)
License: MIT License
This should be a crime. The simplistic solution is to add a hashing mechanism before the passwords are sent to the server.
There should be a way to put a seat on hold, so that two users can simultaneously book a seat in the same theatre.
A few things you should fix immediately:
Read up on "mysql injections" and "prepared statements"
https://github.com/brahmnoor/PreBook/blob/master/create.php#L38
Read up on XSS attachs
https://github.com/brahmnoor/PreBook/blob/master/buyticket.php#L52
You should (can) not send http headers after any content has been sent to the client.
https://github.com/brahmnoor/PreBook/blob/master/create.php#L48
Move your credentials out to a separate config file (take a look at env files)
https://github.com/brahmnoor/PreBook/blob/master/db.php#L5
PHP config belongs into the server's php.ini. Don't overwrite values in your code
https://github.com/brahmnoor/PreBook/blob/master/db.php#L3
Separate your logic from your views. Don't execute queries in your views. Look up MVC architecture.
https://github.com/brahmnoor/PreBook/blob/master/buyticket.php#L39
Don't die
in the middle of your page. Catch exceptions and handle them gracefully.
https://github.com/brahmnoor/PreBook/blob/master/buyticket.php#L48
Don't put CSS in your markup.
https://github.com/brahmnoor/PreBook/blob/master/buyticket.php#L63
Extract common markup into their own files and include
them.
https://github.com/brahmnoor/PreBook/blob/master/seatplantry.php#L23
Hash your passwords
https://apzentral.github.io/php-the-right-way/#password_hashing
https://github.com/brahmnoor/PreBook/blob/master/create.php#L38
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.