Browse Source

Amélioration du système d'ajout-retrait de slash dans les titres des pages

Cebabonet 8 years ago
parent
commit
63515c8435
2 changed files with 11 additions and 9 deletions
  1. 5 4
      index.php
  2. 6 5
      user/config.php

+ 5 - 4
index.php View File

143
 {
143
 {
144
 
144
 
145
 
145
 
146
-
147
-echo"<a href='?id_page=".$data_page_menu["id_page"]."'>{$data_page_menu["titre"]}</a><br><br>";
146
+$titrepage_stripslashes=stripslashes($data_page_menu["titre"]);
147
+echo"<a href='?id_page=".$data_page_menu["id_page"]."'>{$titrepage_stripslashes}</a><br><br>";
148
 }
148
 }
149
 
149
 
150
 
150
 
216
 	echo"La page que vous aviez défini en page d'accueil n'existe plus.<br><br>";
216
 	echo"La page que vous aviez défini en page d'accueil n'existe plus.<br><br>";
217
 	
217
 	
218
 }else{
218
 }else{
219
-$page_name= $data_page["titre"];?>
219
+$page_name= stripslashes($data_page["titre"]);?>
220
 <title><?php echo $website_name.' : '.$page_name; ?></title>
220
 <title><?php echo $website_name.' : '.$page_name; ?></title>
221
 <?php
221
 <?php
222
+$titrepage_stripslash = stripslashes($data_page['titre']);
222
 $page_stripslash = stripslashes($data_page['page']);
223
 $page_stripslash = stripslashes($data_page['page']);
223
-echo"<h2>{$data_page["titre"]}</h2>";
224
+echo"<h2>{$titrepage_stripslash}</h2>";
224
 echo"<b>".$page_date_display." :</b> {$data_page["date"]} par : {$data_page['user']}<br />";
225
 echo"<b>".$page_date_display." :</b> {$data_page["date"]} par : {$data_page['user']}<br />";
225
 echo"<b>".$page_page_display." :</b><br />{$page_stripslash}<br><br>";
226
 echo"<b>".$page_page_display." :</b><br />{$page_stripslash}<br><br>";
226
 
227
 

+ 6 - 5
user/config.php View File

14
 
14
 
15
 
15
 
16
 
16
 
17
-//$root_path="/";
17
+$root_path="http://www.blogartisanal.tk/dev/";
18
 
18
 
19
 
19
 
20
 //SET OTHER PREFERENCES
20
 //SET OTHER PREFERENCES
36
 $user='Your_db_user';
36
 $user='Your_db_user';
37
 $passwd='Your_db_password';
37
 $passwd='Your_db_password';
38
 $base='Your_db_name';
38
 $base='Your_db_name';
39
-		
40
 
39
 
41
 
40
 
42
 
41
 
64
 
63
 
65
 
64
 
66
 
65
 
67
-$ConfigDir = dirname(__FILE__);
68
-$MainDir = str_replace("user", "",$ConfigDir);
69
-
70
 $meta_description=$blog_info_config_page['description'];
66
 $meta_description=$blog_info_config_page['description'];
71
 
67
 
72
 
68
 
86
 	
82
 	
87
 		}
83
 		}
88
 	}
84
 	}
85
+
86
+$ConfigDir = dirname(__FILE__);
87
+$MainDir = str_replace("user", "",$ConfigDir);
88
+
89
+
89
 if($lang=="fr_fr"){
90
 if($lang=="fr_fr"){
90
 	
91
 	
91
 	include "".$MainDir."files/lang/fr_fr.php";
92
 	include "".$MainDir."files/lang/fr_fr.php";