Initial work on making the update function functionable

This commit is contained in:
johnnyq
2021-11-20 16:36:55 -05:00
parent cfd7333a1b
commit 1551ea7c9b
2 changed files with 49 additions and 1 deletions

View File

@@ -846,6 +846,12 @@ if(isset($_GET['download_database'])){
mysqli_query($mysqli,"INSERT INTO logs SET log_type = 'Settings', log_action = 'Downloaded', log_description = 'Database', log_created_at = NOW(), company_id = $session_company_id, log_user_id = $session_user_id");
}
if(isset($_GET['update'])){
//Stuff will go here..
//also check to make sure someone has admin before running this function
}
if(isset($_POST['add_client'])){
$name = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['name'])));