|
@@ -1,99 +0,0 @@
|
1
|
|
-<?php
|
2
|
|
-
|
3
|
|
-
|
4
|
|
-
|
5
|
|
-// IMPORTANT :
|
6
|
|
-//
|
7
|
|
-// YOU MUST UNCOMMENT THE FOLLOWING (//$root_path="/";) LINE AND SET YOUR CMS LOCATION.
|
8
|
|
-//
|
9
|
|
-// For example : http://mywebsite.com/myfolder/ And don't forget the / at the end of the adress,
|
10
|
|
-// it won't work without it.
|
11
|
|
-//
|
12
|
|
-// As soon as the $root_path is set, the Database will be tested,
|
13
|
|
-// don't forget to put your db settings bellow or it will print an SQL error.
|
14
|
|
-
|
15
|
|
-
|
16
|
|
-
|
17
|
|
-$root_path="http://www.cebabonet.tk/blog/";
|
18
|
|
-
|
19
|
|
-
|
20
|
|
-//SET OTHER PREFERENCES
|
21
|
|
-
|
22
|
|
-$lang="fr_fr";
|
23
|
|
-$blog_email='contact@mywebsite.com';
|
24
|
|
-$localite='local';
|
25
|
|
-$meta_key_words='member, space';
|
26
|
|
-
|
27
|
|
-//
|
28
|
|
-
|
29
|
|
-if(isset($root_path))
|
30
|
|
- {
|
31
|
|
-
|
32
|
|
-
|
33
|
|
-//YOUR MySQL DATABASE SETTINGS
|
34
|
|
-
|
35
|
|
-$server='Your_MySQL_Server_Address';
|
36
|
|
-$user='Your_db_user';
|
37
|
|
-$passwd='Your_db_password';
|
38
|
|
-$base='Your_db_name';
|
39
|
|
-
|
40
|
|
-
|
41
|
|
-
|
42
|
|
-
|
43
|
|
-
|
44
|
|
- define("DB_HOST",$server);
|
45
|
|
-
|
46
|
|
- define("DB_LOGIN",$user);
|
47
|
|
-
|
48
|
|
- define("DB_PASS",$passwd);
|
49
|
|
-
|
50
|
|
- define("DB_DB",$base);
|
51
|
|
-
|
52
|
|
-
|
53
|
|
-
|
54
|
|
-
|
55
|
|
-@$connect=mysql_connect($server, $user, $passwd) or die ('Error : '.mysql_error().' <br><br>Please check if your database settings are correctly set in the config.php file!');
|
56
|
|
-@mysql_select_db($base) or die ('Error : '.mysql_error());
|
57
|
|
-require_once('fonctions.php');
|
58
|
|
-
|
59
|
|
-mysql_connect(DB_HOST,DB_LOGIN,DB_PASS);
|
60
|
|
-mysql_select_db(DB_DB);
|
61
|
|
-$sql="SELECT * FROM blog_config";
|
62
|
|
-$req = mysql_query($sql) or die('Erreur SQL !<br />'.$sql.'<br />'.mysql_error());
|
63
|
|
-$blog_info_config_page = mysql_fetch_assoc($req);
|
64
|
|
-
|
65
|
|
-
|
66
|
|
-
|
67
|
|
-$ConfigDir = dirname(__FILE__);
|
68
|
|
-$MainDir = str_replace("user", "",$ConfigDir);
|
69
|
|
-
|
70
|
|
-$meta_description=$blog_info_config_page['description'];
|
71
|
|
-
|
72
|
|
-
|
73
|
|
-
|
74
|
|
-
|
75
|
|
-$site_name=$blog_info_config_page['site_name'];
|
76
|
|
-$website_name=$site_name;
|
77
|
|
-
|
78
|
|
-$bandeau = $blog_info_config_page['bandeau'];
|
79
|
|
-
|
80
|
|
-$static_homepage_status = $blog_info_config_page['static_homepage_status'];
|
81
|
|
-
|
82
|
|
-if($static_homepage_status=="1")
|
83
|
|
- {
|
84
|
|
-
|
85
|
|
- $static_homepage_id = $blog_info_config_page['static_homepage_id'];
|
86
|
|
-
|
87
|
|
- }
|
88
|
|
- }
|
89
|
|
-if($lang=="fr_fr"){
|
90
|
|
-
|
91
|
|
- include "".$MainDir."files/lang/fr_fr.php";
|
92
|
|
-
|
93
|
|
-}elseif($lang=="en_us"){
|
94
|
|
-
|
95
|
|
- include''.$MainDir.'files/lang/en_us.php';
|
96
|
|
-
|
97
|
|
-}
|
98
|
|
-
|
99
|
|
-?>
|