@@ -18,13 +18,11 @@ |
||
| 18 | 18 | |
| 19 | 19 | //si c'est un controleur de base on va cerhcer dans core/admin |
| 20 | 20 | require_once("installation/controller/".$lien.".php"); |
| 21 | - } |
|
| 22 | - else { |
|
| 21 | + } else { |
|
| 23 | 22 | require("installation/controller/initialise_all.php"); |
| 24 | 23 | require("installation/views/template/principal.php"); |
| 25 | 24 | } |
| 26 | - } |
|
| 27 | - else { |
|
| 25 | + } else { |
|
| 28 | 26 | $page = "installation/views/index"; |
| 29 | 27 | require("installation/views/template/principal.php"); |
| 30 | 28 | } |
@@ -21,8 +21,7 @@ discard block |
||
| 21 | 21 | |
| 22 | 22 | if ($this->erreur == true) { |
| 23 | 23 | FlashMessage::setFlash("<ul>".$this->nom.$this->prenom.$this->pseudo.$this->mdp."</ul>"); |
| 24 | - } |
|
| 25 | - else { |
|
| 24 | + } else { |
|
| 26 | 25 | $this->setInscrireUtilisateur(); |
| 27 | 26 | |
| 28 | 27 | FlashMessage::setFlash("Le compte super admin a bien été créé", "success"); |
@@ -64,8 +63,7 @@ discard block |
||
| 64 | 63 | if ($mdp != $verif_mdp) { |
| 65 | 64 | $this->erreur = true; |
| 66 | 65 | return "<li>Vos mots de passe sont différents</li>"; |
| 67 | - } |
|
| 68 | - else { |
|
| 66 | + } else { |
|
| 69 | 67 | return $mdp; |
| 70 | 68 | } |
| 71 | 69 | } |
@@ -8,8 +8,7 @@ |
||
| 8 | 8 | $_SESSION['err_user'] = true; |
| 9 | 9 | |
| 10 | 10 | header("location:".WEBROOT."installation-ribs/utilisateur"); |
| 11 | - } |
|
| 12 | - else { |
|
| 11 | + } else { |
|
| 13 | 12 | \core\App::supprimerDossier(ROOT."installation"); |
| 14 | 13 | |
| 15 | 14 | header("location:".WEBROOT."administrator"); |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | $_SESSION['err_db'] = true; |
| 11 | 11 | |
| 12 | 12 | header("location:".WEBROOT."installation-ribs/bdd"); |
| 13 | - } |
|
| 14 | - else { |
|
| 13 | + } else { |
|
| 15 | 14 | header("location:".WEBROOT."installation-ribs/configuration"); |
| 16 | 15 | } |
| 17 | 16 | \ No newline at end of file |
@@ -58,8 +58,7 @@ |
||
| 58 | 58 | ->from("page") |
| 59 | 59 | ->where("ID_page", "=", $id_page) |
| 60 | 60 | ->get(); |
| 61 | - } |
|
| 62 | - else { |
|
| 61 | + } else { |
|
| 63 | 62 | $query = $dbc->select("balise_title")->select("meta_description")->select("ID_page") |
| 64 | 63 | ->from("page") |
| 65 | 64 | ->where("url", " LIKE ", $url) |
@@ -60,8 +60,7 @@ discard block |
||
| 60 | 60 | $this->reload_cache = $obj->reload_cache; |
| 61 | 61 | $this->no_cache = $obj->no_cache; |
| 62 | 62 | } |
| 63 | - } |
|
| 64 | - else { |
|
| 63 | + } else { |
|
| 65 | 64 | $dbc->insert("nom_fichier", $this->page)->insert("reload_cache", 0)->into("cache")->set(); |
| 66 | 65 | |
| 67 | 66 | $this->reload_cache = 0; |
@@ -107,16 +106,14 @@ discard block |
||
| 107 | 106 | require_once($this->chemin_cache); |
| 108 | 107 | |
| 109 | 108 | return true; |
| 110 | - } |
|
| 111 | - else { |
|
| 109 | + } else { |
|
| 112 | 110 | if ($this->no_cache == null) { |
| 113 | 111 | ob_start(); |
| 114 | 112 | } |
| 115 | 113 | |
| 116 | 114 | return false; |
| 117 | 115 | } |
| 118 | - } |
|
| 119 | - else { |
|
| 116 | + } else { |
|
| 120 | 117 | return false; |
| 121 | 118 | } |
| 122 | 119 | } |
@@ -44,8 +44,7 @@ discard block |
||
| 44 | 44 | public static function FindInString($string, $find) { |
| 45 | 45 | if (strpos($string, $find) !== false) { |
| 46 | 46 | return true; |
| 47 | - } |
|
| 48 | - else { |
|
| 47 | + } else { |
|
| 49 | 48 | return false; |
| 50 | 49 | } |
| 51 | 50 | } |
@@ -58,8 +57,7 @@ discard block |
||
| 58 | 57 | public static function alphaNumeric($string) { |
| 59 | 58 | if (!preg_match('/^[a-zA-Z0-9]+$/', $string)) { |
| 60 | 59 | return false; |
| 61 | - } |
|
| 62 | - else { |
|
| 60 | + } else { |
|
| 63 | 61 | return true; |
| 64 | 62 | } |
| 65 | 63 | } |
@@ -6,7 +6,6 @@ |
||
| 6 | 6 | if ((\core\App::getErreur() !== true) && ($gestion_contenu->getErreur() !== true)) { |
| 7 | 7 | \core\HTML\flashmessage\FlashMessage::setFlash("La page ".$_POST['titre_page']." a bien été crée", "success"); |
| 8 | 8 | header("location:".ADMWEBROOT."gestion-contenus/modifier-contenu?id=".$gestion_contenu->getIdPage()); |
| 9 | - } |
|
| 10 | - else { |
|
| 9 | + } else { |
|
| 11 | 10 | header("location:".ADMWEBROOT."gestion-contenus/creer-une-page"); |
| 12 | 11 | } |
| 13 | 12 | \ No newline at end of file |
@@ -10,29 +10,24 @@ |
||
| 10 | 10 | if ($gestion_contenu->getErreur() !== true) { |
| 11 | 11 | \core\HTML\flashmessage\FlashMessage::setFlash("La page a bien été supprimée", "success"); |
| 12 | 12 | header("location:".ADMWEBROOT."gestion-contenus/index"); |
| 13 | - } |
|
| 14 | - else { |
|
| 13 | + } else { |
|
| 15 | 14 | header("location:".ADMWEBROOT."gestion-contenus/modifier-contenu?id=".$_GET['id']); |
| 16 | 15 | } |
| 17 | - } |
|
| 18 | - else { |
|
| 16 | + } else { |
|
| 19 | 17 | \core\HTML\flashmessage\FlashMessage::setFlash("Vous n'avez pas le droit de supprimer cette page"); |
| 20 | 18 | |
| 21 | 19 | if (isset($_GET['id'])) { |
| 22 | 20 | header("location:".ADMWEBROOT."gestion-contenus/modifier-contenu?id=".$_GET['id']); |
| 23 | - } |
|
| 24 | - else { |
|
| 21 | + } else { |
|
| 25 | 22 | header("location:".ADMWEBROOT."gestion-contenus/index"); |
| 26 | 23 | } |
| 27 | 24 | } |
| 28 | - } |
|
| 29 | - else { |
|
| 25 | + } else { |
|
| 30 | 26 | \core\HTML\flashmessage\FlashMessage::setFlash("Vous n'avez pas le droit de supprimer cette page"); |
| 31 | 27 | |
| 32 | 28 | if (isset($_GET['id'])) { |
| 33 | 29 | header("location:".ADMWEBROOT."gestion-contenus/modifier-contenu?id=".$_GET['id']); |
| 34 | - } |
|
| 35 | - else { |
|
| 30 | + } else { |
|
| 36 | 31 | header("location:".ADMWEBROOT."gestion-contenus/index"); |
| 37 | 32 | } |
| 38 | 33 | } |
| 39 | 34 | \ No newline at end of file |