101 lines
2.0 KiB
PHP
101 lines
2.0 KiB
PHP
<?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="http://www.blogartisanal.tk/dev/";
|
|
|
|
|
|
//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';
|
|
|
|
}
|
|
|
|
?>
|