123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- <?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);
-
-
-
-
- @$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!');
- @mysql_select_db($base) or die ('Error : '.mysql_error());
- require_once('fonctions.php');
-
- mysql_connect(DB_HOST,DB_LOGIN,DB_PASS);
- mysql_select_db(DB_DB);
- $sql="SELECT * FROM blog_config";
- $req = mysql_query($sql) or die('Erreur SQL !<br />'.$sql.'<br />'.mysql_error());
- $blog_info_config_page = mysql_fetch_assoc($req);
-
-
-
- $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';
-
- }
-
- ?>
|