@@ -84,8 +84,7 @@ discard block |
||
| 84 | 84 | |
| 85 | 85 | if (($config->getValiderInscription() == 1) && ($valide == 0)) { |
| 86 | 86 | return "<a href=".ADMWEBROOT."controller/core/admin/comptes/valider_compte?id_identite=$id_identite>Valider cet utilisateur</a>"; |
| 87 | - } |
|
| 88 | - else { |
|
| 87 | + } else { |
|
| 89 | 88 | return "Utilisateur validé"; |
| 90 | 89 | } |
| 91 | 90 | } |
@@ -180,8 +179,7 @@ discard block |
||
| 180 | 179 | |
| 181 | 180 | $mail = new Mail(); |
| 182 | 181 | $mail->setEnvoyerMail("Réinitialisation de votre E-mail effectuée", "Votre mot de passe a été réinitialisé", $this->mail); |
| 183 | - } |
|
| 184 | - else { |
|
| 182 | + } else { |
|
| 185 | 183 | FlashMessage::setFlash("le mot de passe de $this->pseudo ne peu pas être réinitialisé car il ne possède pas d'E-mail"); |
| 186 | 184 | $this->erreur = true; |
| 187 | 185 | } |
@@ -24,8 +24,7 @@ |
||
| 24 | 24 | $_SESSION['acces_admin'] = $inscription->getAccesAdministration(); |
| 25 | 25 | |
| 26 | 26 | \core\HTML\flashmessage\FlashMessage::setFlash("<ul>".$inscription->getErreur()."</ul>"); |
| 27 | - } |
|
| 28 | - else { |
|
| 27 | + } else { |
|
| 29 | 28 | \core\HTML\flashmessage\FlashMessage::setFlash("L'utilisateur ".$inscription->getNom()." ".$inscription->getPrenom()."a bien été inscrit", "success"); |
| 30 | 29 | $inscription->setInscrireUtilisateur(); |
| 31 | 30 | } |
@@ -30,8 +30,7 @@ |
||
| 30 | 30 | public function __construct($id_liste_droit_acces = null) { |
| 31 | 31 | if ($id_liste_droit_acces === null) { |
| 32 | 32 | $this->getListeDroitAccesAdmin(); |
| 33 | - } |
|
| 34 | - else { |
|
| 33 | + } else { |
|
| 35 | 34 | $this->id_liste_droit_acces = $id_liste_droit_acces; |
| 36 | 35 | } |
| 37 | 36 | } |
@@ -2,11 +2,9 @@ |
||
| 2 | 2 | if (isset($_SESSION['err_modification_droitsacces'])) { |
| 3 | 3 | |
| 4 | 4 | unset($_SESSION['err_modification_droitsacces']); |
| 5 | - } |
|
| 6 | - else if ($page == "gestion-droits-acces/modifier-liste") { |
|
| 5 | + } else if ($page == "gestion-droits-acces/modifier-liste") { |
|
| 7 | 6 | $gestion_droit_acces = new \core\admin\droitsacces\GestionDroitAcces($_GET['id_liste']); |
| 8 | - } |
|
| 9 | - else { |
|
| 7 | + } else { |
|
| 10 | 8 | $balise_title = null; |
| 11 | 9 | $url = null; |
| 12 | 10 | $meta_description = null; |
@@ -15,8 +15,7 @@ discard block |
||
| 15 | 15 | public function getParse($file) { |
| 16 | 16 | if (file_exists($file)) { |
| 17 | 17 | return parse_ini_file($file); |
| 18 | - } |
|
| 19 | - else { |
|
| 18 | + } else { |
|
| 20 | 19 | return false; |
| 21 | 20 | } |
| 22 | 21 | } |
@@ -34,8 +33,7 @@ discard block |
||
| 34 | 33 | public function setModifierConfigIni($developpement, $dev_info, $prod_info) { |
| 35 | 34 | if ($developpement == "on") { |
| 36 | 35 | $developpement = 1; |
| 37 | - } |
|
| 38 | - else { |
|
| 36 | + } else { |
|
| 39 | 37 | $developpement = 0; |
| 40 | 38 | } |
| 41 | 39 | |
@@ -28,8 +28,7 @@ discard block |
||
| 28 | 28 | $params = $obj->mdp_params; |
| 29 | 29 | } |
| 30 | 30 | } |
| 31 | - } |
|
| 32 | - else { |
|
| 31 | + } else { |
|
| 33 | 32 | $params = self::$params; |
| 34 | 33 | } |
| 35 | 34 | |
@@ -81,8 +80,7 @@ discard block |
||
| 81 | 80 | |
| 82 | 81 | if ($id_identite != null) { |
| 83 | 82 | self::setSaveParams("$taille_bout1, $debut_bout2, $nb_aleatoire_mdp, $taille_bout2, $debut_bout1, ".ChaineCaractere::random(20), $id_identite); |
| 84 | - } |
|
| 85 | - else { |
|
| 83 | + } else { |
|
| 86 | 84 | self::$params = "$taille_bout1, $debut_bout2, $nb_aleatoire_mdp, $taille_bout2, $debut_bout1, ".ChaineCaractere::random(20); |
| 87 | 85 | } |
| 88 | 86 | |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | if (isset($_POST['admin'])) { |
| 6 | 6 | \core\auth\Connexion::setLogin($pseudo, $mdp, WEBROOT."administrator/login", WEBROOT."administrator", 0); |
| 7 | - } |
|
| 8 | - else { |
|
| 7 | + } else { |
|
| 9 | 8 | \core\auth\Connexion::setLogin($pseudo, $mdp, WEBROOT."login", WEBROOT."index.php", 0); |
| 10 | 9 | } |
| 11 | 10 | \ No newline at end of file |
@@ -13,20 +13,17 @@ |
||
| 13 | 13 | if ($membre->getErreur() != "") { |
| 14 | 14 | FlashMessage::setFlash($membre->getErreur()); |
| 15 | 15 | header("location:".ADMWEBROOT."configuration/mon-compte"); |
| 16 | - } |
|
| 17 | - else { |
|
| 16 | + } else { |
|
| 18 | 17 | \core\auth\Connexion::setDeconnexion(WEBROOT."administrator/login"); |
| 19 | 18 | FlashMessage::setFlash("Votre mot de passe a été changé avec succès, vous pouvez vous reconnecter avec votre nouveau mot de passe", "info"); |
| 20 | 19 | } |
| 21 | - } |
|
| 22 | - else { |
|
| 20 | + } else { |
|
| 23 | 21 | $membre->setMdp($mdp, $new_mdp, $verif_new_mdp); |
| 24 | 22 | |
| 25 | 23 | if ($membre->getErreur() != "") { |
| 26 | 24 | FlashMessage::setFlash($membre->getErreur()); |
| 27 | 25 | header("location:index.php"); |
| 28 | - } |
|
| 29 | - else { |
|
| 26 | + } else { |
|
| 30 | 27 | \core\auth\Connexion::setDeconnexion("index.php?page=login"); |
| 31 | 28 | FlashMessage::setFlash("Votre mot de passe a été changé avec succès, vous pouvez vous reconnecter avec votre nouveau mot de passe", "info"); |
| 32 | 29 | } |
@@ -21,8 +21,7 @@ discard block |
||
| 21 | 21 | |
| 22 | 22 | if ($no_module === null) { |
| 23 | 23 | $query = $dbc->select()->from("navigation")->orderBy("ordre")->get(); |
| 24 | - } |
|
| 25 | - else { |
|
| 24 | + } else { |
|
| 26 | 25 | $query = $dbc->select()->from("navigation")->where("ID_page", " IS NOT ", "NULL", "", true)->orderBy("ordre")->get(); |
| 27 | 26 | } |
| 28 | 27 | |
@@ -30,8 +29,7 @@ discard block |
||
| 30 | 29 | foreach ($query as $obj) { |
| 31 | 30 | if ($obj->ID_page === null) { |
| 32 | 31 | $navigation[] = $this->getLienNavigationModule($obj->ID_module); |
| 33 | - } |
|
| 34 | - else { |
|
| 32 | + } else { |
|
| 35 | 33 | $navigation[] = $this->getLienNavigationPage($obj->ID_page); |
| 36 | 34 | } |
| 37 | 35 | $last_ordre = $obj->ordre; |
@@ -138,8 +136,7 @@ discard block |
||
| 138 | 136 | private function getLienPage($url) { |
| 139 | 137 | if (ChaineCaractere::FindInString($url, "http://")) { |
| 140 | 138 | return $url; |
| 141 | - } |
|
| 142 | - else { |
|
| 139 | + } else { |
|
| 143 | 140 | return WEBROOT.$url; |
| 144 | 141 | } |
| 145 | 142 | } |