@@ -2,6 +2,6 @@ |
||
2 | 2 | include_once(ROOT.'libs/ckeditor/ckeditor.php'); |
3 | 3 | require_once(ROOT.'libs/ckfinder/ckfinder.php'); |
4 | 4 | $ckeditor = new CKEditor(); |
5 | - $ckeditor->basePath = WEBROOT.'libs/ckeditor/'; |
|
5 | + $ckeditor->basePath = WEBROOT.'libs/ckeditor/'; |
|
6 | 6 | CKFinder::SetupCKEditor($ckeditor, WEBROOT.'libs/ckfinder/'); |
7 | 7 | ?> |
8 | 8 | \ 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($_GET['id_page'], $_GET['contenu']); |
8 | 8 |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | <button id="supprimer-page-contenu" type="button" class="submit-contenu supprimer-page supprimer open-popup" popup="supprimer-page" href="<?=ADMWEBROOT?>gestion-contenus/modifier-contenu?id=<?=$id_page_courante?>"><i class="fa fa-times"></i>Annuler</button> |
20 | 20 | |
21 | 21 | |
22 | -<?php if ($config->getResponsive() == 1){?> |
|
22 | +<?php if ($config->getResponsive() == 1) {?> |
|
23 | 23 | <link rel="stylesheet" type="text/css" href="<?=WEBROOT?>admin/views/template/css/foundation-inline.css"> |
24 | 24 | <?php }?> |
25 | 25 | <link rel="stylesheet" type="text/css" href="<?=TPLWEBROOT?>css/page.css"> |
@@ -35,9 +35,9 @@ discard block |
||
35 | 35 | <script> |
36 | 36 | CKEDITOR.disableAutoInline = true; |
37 | 37 | |
38 | - <?php for($i=0 ; $i<$bloc_editable ; $i++):?> |
|
38 | + <?php for ($i = 0; $i < $bloc_editable; $i++):?> |
|
39 | 39 | var editor<?=$i?> = CKEDITOR.inline("editor<?=$i?>", { customConfig: "<?=WEBROOT?>config/config_ckeditor.js" }); |
40 | 40 | CKFinder.setupCKEditor( editor<?=$i?>, "<?=LIBSWEBROOT?>ckfinder/" ); |
41 | - <?php endfor;?> |
|
41 | + <?php endfor; ?> |
|
42 | 42 | </script> |
43 | -<?php require_once(ROOT."admin/views/gestion-contenus/js/inline.php");?> |
|
44 | 43 | \ No newline at end of file |
44 | +<?php require_once(ROOT."admin/views/gestion-contenus/js/inline.php"); ?> |
|
45 | 45 | \ No newline at end of file |
@@ -5,20 +5,20 @@ |
||
5 | 5 | use core\HTML\flashmessage\FlashMessage; |
6 | 6 | use core\Navigation; |
7 | 7 | |
8 | - class AdminNavigation extends Navigation{ |
|
8 | + class AdminNavigation extends Navigation { |
|
9 | 9 | |
10 | 10 | public function setOrdreNavigation($nav) { |
11 | 11 | $dbc = App::getDb(); |
12 | 12 | $count_nav = count($nav); |
13 | 13 | |
14 | - for ($i=0 ; $i<$count_nav ; $i++) { |
|
14 | + for ($i = 0; $i < $count_nav; $i++) { |
|
15 | 15 | $lien = explode(".", $nav[$i]); |
16 | 16 | |
17 | 17 | if ($lien[1] == "page") { |
18 | - $dbc->update("ordre", $i+1)->from("navigation")->where("ID_page", "=", $lien[0])->set(); |
|
18 | + $dbc->update("ordre", $i + 1)->from("navigation")->where("ID_page", "=", $lien[0])->set(); |
|
19 | 19 | } |
20 | 20 | else { |
21 | - $dbc->update("ordre", $i+1)->from("navigation")->where("ID_module", "=", $lien[0])->set(); |
|
21 | + $dbc->update("ordre", $i + 1)->from("navigation")->where("ID_module", "=", $lien[0])->set(); |
|
22 | 22 | } |
23 | 23 | } |
24 | 24 |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | <link rel="stylesheet" type="text/css" href="<?=LIBSWEBROOT?>reset_css/reset.css"> |
10 | 10 | <link rel="stylesheet" type="text/css" href="<?=WEBROOT?>admin/views/template/css/style.css"> |
11 | 11 | <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script> |
12 | - <?php require_once(ROOT."admin/views/template/js/menu.php");?> |
|
12 | + <?php require_once(ROOT."admin/views/template/js/menu.php"); ?> |
|
13 | 13 | |
14 | 14 | <!-- Les librairies utlisées --> |
15 | 15 | <link rel="stylesheet" type="text/css" href="<?=LIBSWEBROOT?>popup/css/style.css"> |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | </head> |
20 | 20 | <?=\core\HTML\flashmessage\FlashMessage::getFlash(); ?> |
21 | 21 | <body> |
22 | - <nav class="menu <?php if (($_SESSION["menu_plie".CLEF_SITE] == "deplie") || (!isset($_SESSION["menu_plie".CLEF_SITE]))):?>active<?php endif;?>"> |
|
22 | + <nav class="menu <?php if (($_SESSION["menu_plie".CLEF_SITE] == "deplie") || (!isset($_SESSION["menu_plie".CLEF_SITE]))):?>active<?php endif; ?>"> |
|
23 | 23 | <div class="titre"> |
24 | 24 | <h1>Ribs V2.3.5.2</h1> |
25 | 25 | <i class="fa fa-bars"></i> |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | <ul> |
35 | 35 | <?php if ($droit_acces->getDroitAccesAction("CREATION COMPTE ADMIN")):?> |
36 | 36 | <li><i class="fa fa-user"></i><a href="<?=ADMWEBROOT?>gestion-comptes/creer-utilisateur">Créer un utilisateur</a></li> |
37 | - <?php endif;?> |
|
37 | + <?php endif; ?> |
|
38 | 38 | </ul> |
39 | 39 | </li> |
40 | 40 | <?php endif; ?> |
@@ -44,7 +44,7 @@ |
||
44 | 44 | //definit le chemin sachant que l'on part de index.php |
45 | 45 | $chemin = str_replace("\\", "/", str_replace("index.php", "", $_SERVER['SCRIPT_NAME']).__NAMESPACE__."/view/"); |
46 | 46 | } |
47 | - else if (strstr($_SERVER['SCRIPT_NAME'], "installation.php")) { |
|
47 | + else if (strstr($_SERVER['SCRIPT_NAME'], "installation.php")) { |
|
48 | 48 | //definit le chemin sachant que l'on part de admin.php |
49 | 49 | $chemin = str_replace("\\", "/", str_replace("installation.php", "", $_SERVER['SCRIPT_NAME']).__NAMESPACE__."/view/"); |
50 | 50 | } |