@@ -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 |
@@ -2,7 +2,7 @@ |
||
2 | 2 | $gestion_contenu = new \core\admin\contenus\GestionContenus(); |
3 | 3 | $droit_acces = new \core\admin\droitsacces\DroitAcces(); |
4 | 4 | |
5 | - if ((($droit_acces->getDroitAccesContenu("GESTION CONTENU PAGE", $_POST['id_page']) == true) && ($droit_acces->getModifContenu() != 0)) || ($droit_acces->getSuperAdmin() == 1)) { |
|
5 | + if ((($droit_acces->getDroitAccesContenu("GESTION CONTENU PAGE", $_POST['id_page']) == true) && ($droit_acces->getModifContenu() != 0)) || ($droit_acces->getSuperAdmin() == 1)) { |
|
6 | 6 | |
7 | 7 | $gestion_contenu->setModifierContenu($_POST['id_page'], $_POST['contenu']); |
8 | 8 |
@@ -9,8 +9,7 @@ |
||
9 | 9 | if ((\core\App::getErreur() !== true) && ($gestion_contenu->getErreur() !== true)) { |
10 | 10 | \core\HTML\flashmessage\FlashMessage::setFlash("La page ".$_POST['titre_page']." a été mise à jour", "success"); |
11 | 11 | } |
12 | - } |
|
13 | - else { |
|
12 | + } else { |
|
14 | 13 | \core\HTML\flashmessage\FlashMessage::setFlash("Vous n'avez pas l'autorisation de modifier cette page !"); |
15 | 14 | } |
16 | 15 |
@@ -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 | } |