include_once("global.php"); include("./includes/models/users.php"); // $role = 'user'; if (!checkGlobalPermission('signupEnabled')) { // header("Location: ./"); } if (isset($_GET['customer_id'])) { $customer_id = $_GET['customer_id']; } else { $customer_id = $session_userId; } $getCustomer = getRow($con, "select * from jeoXillityCrm_users where id='$customer_id' "); if (isset($_FILES['profile_pic'])) { $customer_id = $_GET['customer_id']; $profile_pic = storeFile($_FILES['profile_pic']); if ($profile_pic != "") { $query = "UPDATE jeoXillityCrm_users SET profile_pic='$profile_pic' WHERE id='$customer_id'"; if (mysqli_query($con, $query)) { $session_profile_pic = $profile_pic; echo 'Profile picture updated successfully!'; } else { echo 'Error updating profile picture: ' . mysqli_error($con); } } else { echo 'File upload failed!'; } } ?>
include("./includes/views/head2.php"); ?> include("./includes/views/navbar.php"); ?> include("./includes/views/rightsidebar.php"); ?> include("./includes/views/leftmenu.php"); ?>