approve-admin_rights.php | This script handles the approval of a user request for admin rights by updating the value of admin column in users database |
authFailurePopUp.php | Script for dynamically constructing the error message interface and content according to the error context taken as a GET request parameter |
confirm-publish.php | This script handles the approval of publishing of the particular insertion gived by website administrators. Upadates insertion status from "waiting" to "published" |
connection.php | This file handles the default database connection. Is imported in all the scripts that require one |
decline-admin_rights.php | This script handles the decline of user requests for admin rights by updating the value of admin column in users database |
delete_insertion.php | This script handles the deletion of the particular insertion from the database by website admins or insertion owners |
editdata.php | Form for user data editing |
get_admin_rights_requests.php | This script executes retrieving and displaying of the user requests for admin rights with options to aprrove or decline them |
get_insertions.php | This script executes retrieving and displaying insertions to the user in various modes according to the parameters of GET request |
get_makes.php | This script retrieves the unqiue values of the 'make' column of the 'models' table and sends them as .json response |
get_models.php | This script retrieves the values of the 'model' column of the 'models' table according to 'make' parameter of the GET request and sends them back as .json response |
getDataErrorPopup.php | Script for dynamically constructing the error message interface and content according to the error context taken as a GET request parameter |
header.php | Script for dispaying the page header. Most of the buttons are displayed and available to user according to his authorization status ('user_id' and 'admin' parameters of $_SESSION) |
index.php | Script for displaying the main website page. Includes components. Displays error message pop-up in case of error context parameter set in GET request |
insertion.php | This script handles retrieving of detailed data of the particular insertion from the database and displaying it as a separate page with some insertion management interface provided for the authorized users |
login.php | Form for user login |
myprofile.php | This scripts handles displaying user his profile with some account managing interface |
process-accountDelete.php | This script handles the deletion of the user account initiated by the user himself |
process-adminRightsRequest.php | This script handles reflecting in the database the fact that the user has requested for the admin rights |
process-editdata.php | This script provides validation of user editdata form inputs and updating user data in the database in case of successful validation |
process-login.php | This script provides validation of user login form inputs, comparison of user authorization data from the input with the one set in the database for this user, and starting a session with set parameters of 'user_id' and 'admin' |
process-logout.php | This script handles logout initiated by the user. Unsets and destroys session, clears cookies, redirects back to the main page |
process-publishInsertion.php | This script provides validation of inputs of user publish-insertion form, including the attached files |
process-register.php | This script provides validation of user registration form inputs, saving new user data to the database in case of successful validation and starting a session for the new user |
publish-insertion.php | Form for posting the insertion |
register.php | Form for user registration |
searchbar.php | This script handles the display and behaviour of the searchbar for the user detailed search among the exisiting insertions by make and model |