123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- <?php
-
-
-
- // IMPORTANT :
- //
- // YOU MUST UNCOMMENT THE FOLLOWING (//$root_path="/";) LINE AND SET YOUR CMS LOCATION.
- //
- // For example : http://mywebsite.com/myfolder/ And don't forget the / at the end of the adress,
- // it won't work without it.
- //
- // As soon as the $root_path is set, the Database will be tested,
- // don't forget to put your db settings bellow or it will print an SQL error.
-
-
-
- //$root_path="/";
-
-
- //SET OTHER PREFERENCES
-
- $lang="fr_fr";
- $blog_email='contact@mywebsite.com';
- $localite='local';
- $meta_key_words='member, space';
-
- //
-
- if(isset($root_path))
- {
-
-
- //YOUR MySQL DATABASE SETTINGS
-
- $server='Your_MySQL_Server_Address';
- $user='Your_db_user';
- $passwd='Your_db_password';
- $base='Your_db_name';
-
-
-
- define("DB_HOST",$server);
-
- define("DB_LOGIN",$user);
-
- define("DB_PASS",$passwd);
-
- define("DB_DB",$base);
-
-
-
-
- require_once('fonctions.php');
-
-
- $dbh = new PDO("mysql:host=$server;dbname=$base", $user, $passwd);
-
- $sql = "SELECT * FROM blog_config";
-
- $stmt = $dbh->query($sql);
-
- $blog_info_config_page = $stmt->fetch(PDO::FETCH_ASSOC);
-
-
- $meta_description=$blog_info_config_page['description'];
-
-
-
-
- $site_name=$blog_info_config_page['site_name'];
- $website_name=$site_name;
-
- $bandeau = $blog_info_config_page['bandeau'];
-
- $static_homepage_status = $blog_info_config_page['static_homepage_status'];
-
- if($static_homepage_status=="1")
- {
-
- $static_homepage_id = $blog_info_config_page['static_homepage_id'];
-
- }
- }
-
- $ConfigDir = dirname(__FILE__);
- $MainDir = str_replace("user", "",$ConfigDir);
-
-
- if($lang=="fr_fr"){
-
- include "".$MainDir."files/lang/fr_fr.php";
-
- }elseif($lang=="en_us"){
-
- include''.$MainDir.'files/lang/en_us.php';
-
- }
-
- ?>
|