diff options
| author | Debulois <quentin@debulois.fr> | 2022-03-31 14:56:45 +0200 |
|---|---|---|
| committer | Debulois <quentin@debulois.fr> | 2022-03-31 14:56:45 +0200 |
| commit | b637d625216e50602d0bde8a544c281ca00af5fa (patch) | |
| tree | 5e44ad1048f8a3583cc854fe3bc21086ede4d88a /Wrapper/Functions/func_info.php | |
| parent | c9d4c87b21f1050a780f5296961d24bd17c9cdc8 (diff) | |
Grosse maj encore avec ajout de fonctionnalités dans l'admin principalement et grosse remise en page / rennomage et preparation pour retravailler le CSS
Diffstat (limited to 'Wrapper/Functions/func_info.php')
| -rw-r--r-- | Wrapper/Functions/func_info.php | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/Wrapper/Functions/func_info.php b/Wrapper/Functions/func_info.php deleted file mode 100644 index ca97bc0..0000000 --- a/Wrapper/Functions/func_info.php +++ /dev/null @@ -1,32 +0,0 @@ -<?php -// **************************************************************************** -// Description: Fonction de modifications des informations de l'utilisateur par ID -// **************************************************************************** -function modify_user_info($userInfos, $userId, $userStatus) { - $dbuser = new DbUser; - $dbsearch = new DbSearch; - switch ($userStatus) { - case 1: - $isPro = true; - break; - default: - $isPro = false; - break; - } - if ($isPro) { - $userJobs = $dbsearch->get_pro_job_category($userId); - $userJobsId = []; - for ($i = 0; $i < count($userJobs); $i++) { - array_push($userJobsId, $userJobs[$i]["jobCategoryId"]); - } - $dbuser->user_infos_update($userInfos, $userId, $isPro, $userJobsId); - } else { - $dbuser->user_infos_update($userInfos, $userId, $isPro); - } - // Redirection vers message avec l'index du message à afficher. - $message = ["infosUpdate", "success"]; - $_SESSION["message"] = $message; - header("Location: /Views/message.php"); - die(); -} -?>
\ No newline at end of file |
