Passed
Push — master ( 85a890...b3b09d )
by Anthony
03:14
created
admin/views/gestion-comptes/index.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -6,10 +6,10 @@  discard block
 block discarded – undo
6 6
 <div class="inner">
7 7
 	<?php if ($droit_acces->getDroitAccesAction("CREATION COMPTE ADMIN")):?>
8 8
 		<a class="submit-contenu" href="<?=ADMWEBROOT?>gestion-comptes/creer-utilisateur"><i class="fa fa-user"></i>Créer un utilisateur</a>
9
-	<?php endif;?>
9
+	<?php endif; ?>
10 10
 	<div class="contenu modifier-contenu gestion-comptes">
11 11
 		<h2>Comptes actifs sur le site</h2>
12
-		<?php $admin->getAllUser();?>
12
+		<?php $admin->getAllUser(); ?>
13 13
 
14 14
 		<table>
15 15
 			<thead>
@@ -19,32 +19,32 @@  discard block
 block discarded – undo
19 19
 					<td>Pseudo</td>
20 20
 					<?php if ($config->getValiderInscription() == 1): ?>
21 21
 						<td>Valider le compte</td>
22
-					<?php endif;?>
22
+					<?php endif; ?>
23 23
 					<td>Réinitialiser le mot de passe</td>
24 24
 					<td>Archiver le compte</td>
25 25
 					<td>Supprimer le compte</td>
26 26
 				</tr>
27 27
 			</thead>
28
-			<?php for ($i=0 ; $i<count($admin->getIdidentite()) ; $i++):?>
28
+			<?php for ($i = 0; $i < count($admin->getIdidentite()); $i++):?>
29 29
 				<tr>
30 30
 					<td><img src="<?=IMGROOT.$admin->getImg()[$i]?>"></td>
31 31
 					<td><?=$admin->getPrenom()[$i]?> <?=$admin->getNom()[$i]?></td>
32 32
 					<td><?=$admin->getPseudo()[$i]?></td>
33 33
 					<?php if ($config->getValiderInscription() == 1): ?>
34 34
 						<td><?=$admin->getValide()[$i]?></td>
35
-					<?php endif;?>
35
+					<?php endif; ?>
36 36
 					<td><a href="<?=ADMWEBROOT?>controller/core/admin/comptes/reinitialiser_mdp?id_identite=<?=$admin->getIdidentite()[$i]?>">Réinitialiser le mot de passe</a></td>
37 37
 					<td><a href="<?=ADMWEBROOT?>controller/core/admin/comptes/archiver_compte?id_identite=<?=$admin->getIdidentite()[$i]?>"  class="supprimer open-popup" popup="popup-archiver-utilisateur">Archiver ce compte</a></td>
38 38
 					<td><a href="<?=ADMWEBROOT?>controller/core/admin/comptes/supprimer_compte?id_identite=<?=$admin->getIdidentite()[$i]?>" class="supprimer open-popup" popup="popup-supprimer-utilisateur">Supprimer ce compte</a></td>
39 39
 				</tr>
40
-			<?php endfor;?>
40
+			<?php endfor; ?>
41 41
 		</table>
42 42
 	</div>
43 43
 
44 44
 	<div class="contenu modifier-contenu gestion-comptes">
45 45
 		<h2>Comptes archivés sur le site</h2>
46 46
 
47
-		<?php $admin->getAllUser(1);?>
47
+		<?php $admin->getAllUser(1); ?>
48 48
 
49 49
 		<table>
50 50
 			<thead>
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 					<td>Supprimer le compte</td>
58 58
 				</tr>
59 59
 			</thead>
60
-			<?php for ($i=0 ; $i<count($admin->getIdidentite()) ; $i++):?>
60
+			<?php for ($i = 0; $i < count($admin->getIdidentite()); $i++):?>
61 61
 				<tr>
62 62
 					<td><img src="<?=IMGROOT.$admin->getImg()[$i]?>"></td>
63 63
 					<td><?=$admin->getPrenom()[$i]?> <?=$admin->getNom()[$i]?></td>
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 					<td><a href="<?=ADMWEBROOT?>controller/core/admin/comptes/activer_compte?id_identite=<?=$admin->getIdidentite()[$i]?>"  class="supprimer open-popup" popup="popup-archiver-utilisateur">Activer ce compte</a></td>
67 67
 					<td><a href="<?=ADMWEBROOT?>controller/core/admin/comptes/supprimer_compte?id_identite=<?=$admin->getIdidentite()[$i]?>" class="supprimer open-popup" popup="popup-supprimer-utilisateur">Supprimer ce compte</a></td>
68 68
 				</tr>
69
-			<?php endfor;?>
69
+			<?php endfor; ?>
70 70
 		</table>
71 71
 	</div>
72 72
 </div>
Please login to merge, or discard this patch.
admin/views/gestion-comptes/mon-compte.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?=\core\HTML\flashmessage\FlashMessage::getFlash();?>
1
+<?=\core\HTML\flashmessage\FlashMessage::getFlash(); ?>
2 2
 <header>
3 3
 	<div class="inner">
4 4
 		<h1>Mon compte</h1>
Please login to merge, or discard this patch.
admin/views/contacter-support.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 	</div>
5 5
 </header>
6 6
 
7
-<?php require_once("admin/controller/ckeditor.php");?>
7
+<?php require_once("admin/controller/ckeditor.php"); ?>
8 8
 
9 9
 
10 10
 <form action="<?=ADMWEBROOT?>controller/core/form/support/envoyer_message.php" method="post">
Please login to merge, or discard this patch.
admin/views/configuration/infos-generales.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -8,11 +8,11 @@  discard block
 block discarded – undo
8 8
 <script src="<?=LIBSWEBROOT?>popup/js/popup.js"></script>
9 9
 <link rel="stylesheet" type="text/css" href="<?=LIBSWEBROOT?>checkbox/css/style.css">
10 10
 <script src="<?=LIBSWEBROOT?>checkbox/js/anim.js"></script>
11
-<?php require_once(ROOT."admin/views/configuration/js/infos_generales.php");?>
12
-<?php require_once('header.php');?>
11
+<?php require_once(ROOT."admin/views/configuration/js/infos_generales.php"); ?>
12
+<?php require_once('header.php'); ?>
13 13
 
14 14
 <div class="inner">
15
-	<?php require_once(LIBSROOT."barre_chargement/index.php");?>
15
+	<?php require_once(LIBSROOT."barre_chargement/index.php"); ?>
16 16
 	<a class="submit-contenu supprimer-page link" href="<?=ADMWEBROOT?>configuration/index"><i class="fa fa-times"></i>Annuler</a>
17 17
 	<form action="<?=ADMWEBROOT?>controller/core/admin/configuration/modifier" method="post">
18 18
 		<div class="contenu modifier-contenu">
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 					<td>Responsive</td>
78 78
 					<td>
79 79
 						<label for="responsive" class="checkbox-perso switched">
80
-							<input type="checkbox" class="test-check" id="responsive" <?php if ($responsive == 1): ?>checked<?php endif;?>>
80
+							<input type="checkbox" class="test-check" id="responsive" <?php if ($responsive == 1): ?>checked<?php endif; ?>>
81 81
 						</label>
82 82
 					</td>
83 83
 				</tr>
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 					<td>Contenu dynamique</td>
86 86
 					<td>
87 87
 						<label for="contenu_dynamique" class="checkbox-perso switched">
88
-							<input type="checkbox" class="test-check" id="contenu_dynamique" <?php if ($contenu_dynamique == 1): ?>checked<?php endif;?>>
88
+							<input type="checkbox" class="test-check" id="contenu_dynamique" <?php if ($contenu_dynamique == 1): ?>checked<?php endif; ?>>
89 89
 						</label>
90 90
 					</td>
91 91
 				</tr>
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 					<td>Cache</td>
94 94
 					<td>
95 95
 						<label for="cache_config" class="checkbox-perso switched">
96
-							<input type="checkbox" class="test-check" id="cache_config" <?php if ($cache_config == 1): ?>checked<?php endif;?>>
96
+							<input type="checkbox" class="test-check" id="cache_config" <?php if ($cache_config == 1): ?>checked<?php endif; ?>>
97 97
 						</label>
98 98
 					</td>
99 99
 				</tr>
Please login to merge, or discard this patch.
admin/views/configuration/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,4 +3,4 @@
 block discarded – undo
3 3
 		<h1>Configuration</h1>
4 4
 	</div>
5 5
 </header>
6
-<?php require_once('header.php');?>
7 6
\ No newline at end of file
7
+<?php require_once('header.php'); ?>
8 8
\ No newline at end of file
Please login to merge, or discard this patch.
admin/views/configuration/module.php 2 patches
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -7,11 +7,11 @@  discard block
 block discarded – undo
7 7
 <script src="<?=LIBSWEBROOT?>checkbox/js/anim.js"></script>
8 8
 <link rel="stylesheet" type="text/css" href="<?=LIBSWEBROOT?>popup/css/style.css">
9 9
 <script src="<?=LIBSWEBROOT?>popup/js/popup.js"></script>
10
-<?php require_once(ROOT."admin/views/configuration/js/configuration.php");?>
11
-<?php require_once('header.php');?>
10
+<?php require_once(ROOT."admin/views/configuration/js/configuration.php"); ?>
11
+<?php require_once('header.php'); ?>
12 12
 
13 13
 <div class="inner">
14
-	<?php require_once(LIBSROOT."barre_chargement/index.php");?>
14
+	<?php require_once(LIBSROOT."barre_chargement/index.php"); ?>
15 15
 	<div class="contenu modifier-contenu">
16 16
 		<h2>Ajouter un module</h2>
17 17
 		<form action="<?=ADMWEBROOT?>controller/core/modules/installation/installer" method="get" id="form-install">
@@ -36,23 +36,23 @@  discard block
 block discarded – undo
36 36
 				</tr>
37 37
 			</thead>
38 38
 			<tbody>
39
-				<?php for ($i=0 ; $i<count($gestion_module_page_syst->getIdModule()) ; $i++):?>
39
+				<?php for ($i = 0; $i < count($gestion_module_page_syst->getIdModule()); $i++):?>
40 40
 					<tr>
41 41
 						<td><?=$gestion_module_page_syst->getNom()[$i]?></td>
42 42
 						<td>
43 43
 							<label for="<?=$gestion_module_page_syst->getUrl()[$i]?>" class="checkbox-perso switched">
44
-								<input type="checkbox" class="test-check" id="<?=$gestion_module_page_syst->getUrl()[$i]?>" <?php if (\core\modules\GestionModule::getModuleActiver($gestion_module_page_syst->getNom()[$i]) == true): ?>checked<?php endif;?> <?php if (\core\modules\GestionModule::getModuleInstaller($gestion_module_page_syst->getNom()[$i]) == false):?>disabled<?php endif;?>>
44
+								<input type="checkbox" class="test-check" id="<?=$gestion_module_page_syst->getUrl()[$i]?>" <?php if (\core\modules\GestionModule::getModuleActiver($gestion_module_page_syst->getNom()[$i]) == true): ?>checked<?php endif; ?> <?php if (\core\modules\GestionModule::getModuleInstaller($gestion_module_page_syst->getNom()[$i]) == false):?>disabled<?php endif; ?>>
45 45
 							</label>
46 46
 						</td>
47 47
 						<td>
48 48
 							<?php if (\core\modules\GestionModule::getModuleInstaller($gestion_module_page_syst->getNom()[$i]) == true) { ?>
49 49
 								<a class="open-popup" popup="popup-delete-module" href="<?=ADMWEBROOT?>controller/core/modules/installation/supprimer?id_module=<?=$gestion_module_page_syst->getIdModule()[$i]?>">Supprimer</a>
50
-							<?php }else{ ?>
50
+							<?php } else { ?>
51 51
 								<a class="installer-module" href="<?=ADMWEBROOT?>controller/core/modules/installation/installer?url=<?=$gestion_module_page_syst->getUrlTelechargement()[$i]?>">Installer</a>
52 52
 							<?php }?>
53 53
 						</td>
54 54
 						<td>
55
-							<?php if ((\core\modules\GestionModule::getModuleInstaller($gestion_module_page_syst->getNom()[$i]) == true) && (\core\modules\GestionModule::getModuleActiver($gestion_module_page_syst->getNom()[$i]) == true)){ ?>
55
+							<?php if ((\core\modules\GestionModule::getModuleInstaller($gestion_module_page_syst->getNom()[$i]) == true) && (\core\modules\GestionModule::getModuleActiver($gestion_module_page_syst->getNom()[$i]) == true)) { ?>
56 56
 								<?php if (\core\modules\GestionModule::getModuleAJour($gestion_module_page_syst->getNom()[$i]) != 1) { ?>
57 57
 									<a href="<?=ADMWEBROOT?>controller/core/modules/installation/update?id_module=<?=$gestion_module_page_syst->getIdModule()[$i]?>" class="open-popup" popup="popup-update-module">Mettre à jour</a>
58 58
 								<?php } else {?>
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 							<?php }?>
64 64
 						</td>
65 65
 					</tr>
66
-				<?php endfor;?>
66
+				<?php endfor; ?>
67 67
 			</tbody>
68 68
 		</table>
69 69
 	</div>
@@ -79,23 +79,23 @@  discard block
 block discarded – undo
79 79
 				</tr>
80 80
 			</thead>
81 81
 			<tbody>
82
-				<?php for ($i=0 ; $i<count($gestion_module_page->getIdModule()) ; $i++):?>
82
+				<?php for ($i = 0; $i < count($gestion_module_page->getIdModule()); $i++):?>
83 83
 					<tr>
84 84
 						<td><?=$gestion_module_page->getNom()[$i]?></td>
85 85
 						<td>
86 86
 							<label for="<?=$gestion_module_page->getUrl()[$i]?>" class="checkbox-perso switched">
87
-								<input type="checkbox" class="test-check" id="<?=$gestion_module_page->getUrl()[$i]?>" <?php if (\core\modules\GestionModule::getModuleActiver($gestion_module_page->getNom()[$i]) == true): ?>checked<?php endif;?>>
87
+								<input type="checkbox" class="test-check" id="<?=$gestion_module_page->getUrl()[$i]?>" <?php if (\core\modules\GestionModule::getModuleActiver($gestion_module_page->getNom()[$i]) == true): ?>checked<?php endif; ?>>
88 88
 							</label>
89 89
 						</td>
90 90
 						<td>
91 91
 							<?php if (\core\modules\GestionModule::getModuleInstaller($gestion_module_page->getNom()[$i]) == true) { ?>
92 92
 								<a class="supprimer open-popup" popup="popup-delete-module" href="<?=ADMWEBROOT?>controller/core/modules/installation/supprimer?id_module=<?=$gestion_module_page->getIdModule()[$i]?>">Supprimer</a>
93
-							<?php }else{ ?>
93
+							<?php } else { ?>
94 94
 								<a href="<?=ADMWEBROOT?>controller/core/modules/installation/installer?url=<?=$gestion_module_page->getUrlTelechargement()[$i]?>">Installer</a>
95 95
 							<?php }?>
96 96
 						</td>
97 97
 					</tr>
98
-				<?php endfor;?>
98
+				<?php endfor; ?>
99 99
 			</tbody>
100 100
 		</table>
101 101
 	</div>
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 						<td>
48 48
 							<?php if (\core\modules\GestionModule::getModuleInstaller($gestion_module_page_syst->getNom()[$i]) == true) { ?>
49 49
 								<a class="open-popup" popup="popup-delete-module" href="<?=ADMWEBROOT?>controller/core/modules/installation/supprimer?id_module=<?=$gestion_module_page_syst->getIdModule()[$i]?>">Supprimer</a>
50
-							<?php }else{ ?>
50
+							<?php } else{ ?>
51 51
 								<a class="installer-module" href="<?=ADMWEBROOT?>controller/core/modules/installation/installer?url=<?=$gestion_module_page_syst->getUrlTelechargement()[$i]?>">Installer</a>
52 52
 							<?php }?>
53 53
 						</td>
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 						<td>
91 91
 							<?php if (\core\modules\GestionModule::getModuleInstaller($gestion_module_page->getNom()[$i]) == true) { ?>
92 92
 								<a class="supprimer open-popup" popup="popup-delete-module" href="<?=ADMWEBROOT?>controller/core/modules/installation/supprimer?id_module=<?=$gestion_module_page->getIdModule()[$i]?>">Supprimer</a>
93
-							<?php }else{ ?>
93
+							<?php } else{ ?>
94 94
 								<a href="<?=ADMWEBROOT?>controller/core/modules/installation/installer?url=<?=$gestion_module_page->getUrlTelechargement()[$i]?>">Installer</a>
95 95
 							<?php }?>
96 96
 						</td>
Please login to merge, or discard this patch.
admin/views/configuration/base-de-donnees.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 <script src="<?=LIBSWEBROOT?>popup/js/popup.js"></script>
9 9
 <link rel="stylesheet" type="text/css" href="<?=LIBSWEBROOT?>checkbox/css/style.css">
10 10
 <script src="<?=LIBSWEBROOT?>checkbox/js/anim.js"></script>
11
-<?php require_once('header.php');?>
11
+<?php require_once('header.php'); ?>
12 12
 
13 13
 <div class="inner">
14 14
 	<a class="submit-contenu supprimer-page link" href="<?=ADMWEBROOT?>configuration/index"><i class="fa fa-times"></i>Annuler</a>
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 					<td>Le site est il toujours en développement</td>
21 21
 					<td>
22 22
 						<label for="developpement" class="checkbox-perso switched">
23
-							<input type="checkbox" class="test-check" id="developpement" name="developpement" <?php if ($developpement == 1): ?>checked<?php endif;?>>
23
+							<input type="checkbox" class="test-check" id="developpement" name="developpement" <?php if ($developpement == 1): ?>checked<?php endif; ?>>
24 24
 						</label>
25 25
 					</td>
26 26
 				</tr>
Please login to merge, or discard this patch.
admin/views/notifications.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,13 +22,13 @@  discard block
 block discarded – undo
22 22
 					</tr>
23 23
 				</thead>
24 24
 				<tbody>
25
-					<?php for ($i=0 ; $i<count($gestion_module->getNom()) ; $i++):?>
25
+					<?php for ($i = 0; $i < count($gestion_module->getNom()); $i++):?>
26 26
 						<tr>
27 27
 							<td><?=$gestion_module->getNom()[$i]?></td>
28 28
 							<td><?=$gestion_module->getVersion()[$i]?></td>
29 29
 							<td><?=$gestion_module->getOnlineVersion()[$i]?></td>
30 30
 						</tr>
31
-					<?php endfor;?>
31
+					<?php endfor; ?>
32 32
 				</tbody>
33 33
 			</table>
34 34
 
@@ -37,6 +37,6 @@  discard block
 block discarded – undo
37 37
 				soit par le menu ou en cliquant sur le lien ci-dessous.
38 38
 			</p>
39 39
 			<a href="<?=ADMWEBROOT?>configuration/module" class="submit-contenu submit-standard no-shadow inline ml0">Configuration des modules</a>
40
-		<?php endif;?>
40
+		<?php endif; ?>
41 41
 	</div>
42 42
 </div>
43 43
\ No newline at end of file
Please login to merge, or discard this patch.
core/HTML/flashmessage/FlashMessage.class.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 		 * @param string $message message a affiche dans la popup d'erreur
16 16
 		 * @param string $type type du message (error, success, info)
17 17
 		 */
18
-		public static function setFlash($message, $type="error") {
18
+		public static function setFlash($message, $type = "error") {
19 19
 			if (session_id() == "") {
20 20
 				session_start();
21 21
 			}
Please login to merge, or discard this patch.
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -22,11 +22,9 @@  discard block
 block discarded – undo
22 22
 
23 23
 			if ($type == "error") {
24 24
 				$icone = "<i class='fa fa-close'></i>";
25
-			}
26
-			else if ($type == "success") {
25
+			} else if ($type == "success") {
27 26
 				$icone = "<i class='fa fa-check'></i>";
28
-			}
29
-			else {
27
+			} else {
30 28
 				$icone = "<i class='fa fa-info'></i>";
31 29
 			}
32 30
 
@@ -55,16 +53,14 @@  discard block
 block discarded – undo
55 53
 					if (strstr($_SERVER['SCRIPT_NAME'], "index.php")) {
56 54
 						//definit le chemin sachant que l'on part de index.php
57 55
 						$chemin = str_replace("\\", "/", str_replace("index.php", "", $_SERVER['SCRIPT_NAME']).__NAMESPACE__."/view/");
58
-					}
59
-					else {
56
+					} else {
60 57
 						//definit le chemin sachant que l'on part de admin.php
61 58
 						$chemin = str_replace("\\", "/", str_replace("admin.php", "", $_SERVER['SCRIPT_NAME']).__NAMESPACE__."/view/");
62 59
 					}
63 60
 
64 61
 
65 62
 					require("view/index.php");
66
-				}
67
-				else {
63
+				} else {
68 64
 					echo("$icone $type : $message");
69 65
 				}
70 66
 				unset($_SESSION['flash']);
Please login to merge, or discard this patch.