diff --git a/.cpanel.yml b/.cpanel.yml index 944de66e..d35aa4ec 100644 --- a/.cpanel.yml +++ b/.cpanel.yml @@ -1,5 +1,5 @@ --- deployment: tasks: - - export DEPLOYPATH=/home/example/public_html/ - - /bin/cp . $DEPLOYPATH \ No newline at end of file + - export DEPLOYPATH=home3/venbaehn/public_html/nhance/devauto/ + - /bin/cp -r home3/venbaehn/repositories/nhance_dev/* $DEPLOYPATH \ No newline at end of file diff --git a/app/Controllers/LoginController.php b/app/Controllers/LoginController.php index 4e677e88..37d78ae3 100644 --- a/app/Controllers/LoginController.php +++ b/app/Controllers/LoginController.php @@ -41,8 +41,12 @@ class LoginController extends BaseController $user = $UserModel->getUserByEmail($value->email); if($user){ if($user->is_active !== '0'){ - - $session_data = ['isLoggedIn' => True ,'userid' => $user->id, 'userData' => $user]; + $session_data = [ + 'isLoggedIn' => True , + 'userid' => $user->id, + 'userData' => $user, + 'userProfile' => $value->picture, + ]; set_session_data($session_data); log_message('error', 'Set The UserId : `'. $user->id .'` in Session'); log_message('error', 'User Login Sucessfully'); diff --git a/app/Helpers/session_helper.php b/app/Helpers/session_helper.php index 29255bcc..6e879e4b 100644 --- a/app/Helpers/session_helper.php +++ b/app/Helpers/session_helper.php @@ -28,6 +28,15 @@ if (!function_exists('get_session_userdata')) { } } +if (!function_exists('get_userProfile')) { + function get_userProfile() + { + // $ci =& get_instance(); + $session = \Config\Services::session(); + return $session->get('userProfile'); + } +} + if (!function_exists('get_session_user')) { function get_session_user() { diff --git a/app/Views/client_basic_info.php b/app/Views/client_basic_info.php index 75df3188..d2034521 100644 --- a/app/Views/client_basic_info.php +++ b/app/Views/client_basic_info.php @@ -375,6 +375,7 @@ input:checked + .slider:before { var fileExtension = file.name.split('.').pop().toLowerCase(); if (!allowedExtensions.includes(fileExtension) || file.size > 200 * 1024) { + toastr.warning('Maximum file size allowed is 200KB.', 'File size exceeds limit.'); fileInput.value = ""; // Clear the file input document.getElementById("uploadPreview").src = "http://ssl.gstatic.com/accounts/ui/avatar_2x.png"; // Remove the preview image } else { @@ -408,6 +409,7 @@ input:checked + .slider:before { if (fileSize > 200) { toastr.warning('Maximum file size allowed is 200KB.', 'File size exceeds limit.'); $("#uploadPreview").attr("src", "http://ssl.gstatic.com/accounts/ui/avatar_2x.png"); + input.value = ""; } // Check image dimensions diff --git a/app/Views/client_list.php b/app/Views/client_list.php index 771c2fda..d6c876a2 100644 --- a/app/Views/client_list.php +++ b/app/Views/client_list.php @@ -1,3 +1,14 @@ + +