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 !
'.$sql.'
'.mysql_error()); $blog_info_config_page = mysql_fetch_assoc($req); $ConfigDir = dirname(__FILE__); $MainDir = str_replace("user", "",$ConfigDir); $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']; } } if($lang=="fr_fr"){ include "".$MainDir."files/lang/fr_fr.php"; }elseif($lang=="en_us"){ include''.$MainDir.'files/lang/en_us.php'; } ?>