diff options
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 |
