Rename and move dbcheck.php to includes
Renamed dbcheck.php to initialize_database.php and moved it to the includes folder.
Update reference to dbcheck.php
Updated reference of dbcheck.php to ../includes/initialize_database.php
Rename upload_file.php to upload.php
Update references to upload_file.php
Updated references to upload_file.php and added expanded relative path
Move include.php to includes
Update references to include.php
Updated references to point to include.php's new location
Used expanded relative path where possible
Rename vin-decoder.php to match naming scheme
Replaced dash with underscore
Revert "Rename vin-decoder.php to match naming scheme"
This reverts commit c999797fe387491539669f0c925718f039dc06dd.
Fix renaming mistake
According to #50, file names should have dashes, not underscores.
Fix renaming mistake
According to #50, file names should have dashes, not underscores.
Move admin.js to scripts
Move edit.js to scripts
Update reference to JavaScript files
Updated references of JavaScript files to new scripts folder
Move style.css to css
Moved slider.css to css
Update references to css files
Delete green.jpg
Closes #62 - Replace loading GIF with CSS
Replace loading_anim.gif with CSS solution from https://loading.io/css
Create spinner.css file
Call spinner.css file in edit.php
Replace img elements with divs from CSS solution
Update input elements to call progress_spinner() JavaScript function onclick
Create progress_spinner() function to replace loading1() and loading2() functions in edit.js
Delete loading_anim.gif
Moved noimage.jpg files to images folder
Moved file and updated reference to new location
Move and rename log files
Rename log.txt to traffic.log
Update traffic.log and qr.log to save into new logs folder
Updated comments
Move config.ini.php to includes folder
Moved the reading and writing of config.ini.php to the includes folder
Closes #57 - Removed unnecessary code
Removed the $currentPath, $admin, and $files code section since it wasn't needed anymore
Fix bug caused by last commit
Removed code in last commit, but discovered its concept was needed.
Rewrote code to simplify.
Moved vehicles folder contents into files folder
Replaced the vehicles folder with the files folder
Closes #36 - Updated tableExists() function (#73)
Renamed tableExists() function to check_tables()
Updated all references in code to reflect new function name
Added splat operator to function's $tables argument to allow for multiple arguments
Added check for existence of $tables variable - if doesn't exist, set $table equal to array of all table names (this allows for function to be called with no arguments when testing all tables)
Expanded descriptive comment
Added foreach loop to loop through and test all table names
Consolidated connection query test with foreach into one line
Added custom error logging on try/catch
Removed all additional calls to the function when testing multiple tables
Added isset() to prevent error when $_POST['createTables'] doesn't exist
Update spacing #50
Fix errors on install
Fix 'Undefined array key "branch" on line 11
Fix isset($ini['host'] returning true on blank value
Fix Undefined variable $dbChk on line 292
Update references to settings.php
Updated all references of settings.php to point to new location in admin folder.
Used expanded relative path where possible.
Move settings.php to admin folder
Fix bug on install after moving settings.php to admin folder
Only require secure.php if config.ini.php exists.
If it doesn't exist, there's no database to connect to in order to verify a login.
Also updated spacing on if statement - #50
Update install.php
Added else statement to only show HTML if $_POST['branches'] doesn't exist - Fixes flash of page updating after submit button was pressed
Replaced all <?php echo with <?= - #50
Changed "the default" text to display the $repBranch value in bold
Rename vehicle.php to listing.php
Updated references for vehicle.php
Updated all references for vehicle.php to use new name of listing.php
Also updated vehicle CSS class and comments
Fix spelling mistake in URL
Forgot the 't' in listing.php
Update spacing and formatting
Renamed updateConfig() to update_config
Renamed TRUE to true
Added spacing around if statements
Fixed tab spacing
Multiple updates in accordance with #50
Closes #53
menu.php
to includespasswords.php
to includespassword.php
header.php
to includesheader.php
dbcheck.php
to includes Renameddbcheck.php
toinitialize_database.php
and moved it to the includes folder.dbcheck.php
Updated reference ofdbcheck.php
to../includes/initialize_database.php
upload_file.php
toupload.php
upload_file.php
Updated references toupload_file.php
and added expanded relative pathinclude.php
to includesinclude.php
Updated references to point toinclude.php
's new location Used expanded relative path where possiblevin-decoder.php
to match naming scheme Replaced dash with underscorevin-decoder.php
to match naming scheme" This reverts commit c999797fe387491539669f0c925718f039dc06dd.admin.js
to scriptsedit.js
to scriptsstyle.css
to cssslider.css
to cssloading_anim.gif
with CSS solution from https://loading.io/cssspinner.css
filespinner.css
file inedit.php
img
elements withdiv
s from CSS solutioninput
elements to callprogress_spinner()
JavaScript functiononclick
progress_spinner()
function to replaceloading1()
andloading2()
functions inedit.js
loading_anim.gif
noimage.jpg
files to images folderconfig.ini.php
to includes folderconfig.ini.php
to the includes folder$currentPath
,$admin
, and$files
code section since it wasn't needed anymoretableExists()
function (#73)tableExists()
function tocheck_tables()
$tables
argument to allow for multiple arguments$tables
variable - if doesn't exist, set$table
equal to array of all table names (this allows for function to be called with no arguments when testing all tables)foreach
loop to loop through and test all table namesforeach
into one lineisset()
to prevent error when$_POST['createTables']
doesn't existisset($ini['host']
returning true on blank valuesettings.php
Updated all references ofsettings.php
to point to new location in admin folder. Used expanded relative path where possible.settings.php
to admin foldersettings.php
to admin folder Only requiresecure.php
ifconfig.ini.php
exists. If it doesn't exist, there's no database to connect to in order to verify a login. Also updated spacing onif
statement - #50else
statement to only show HTML if$_POST['branches']
doesn't exist - Fixes flash of page updating after submit button was pressed<?php echo
with<?=
- #50$repBranch
value in boldvehicle.php
tolisting.php
vehicle.php
vehicle.php
to use new name oflisting.php
vehicle
CSS class and commentslisting.php
updateConfig()
toupdate_config
TRUE
totrue
if
statementsMultiple updates in accordance with #50 Closes #53