HeRoTurk
Özel Üye
<?php
/**
* Configuration de DirectNews
*
* @copyright 2004 Activis
*/
//langue par dГ©faut pour le site
define('DEFAULT_LNG_SITE','fr');
define('DN_UID', '58dbd977b9e092bc58c68bcb348e36f6');
// Partie administration du site
define('ADMIN_DIR_NAME', 'admin');
if (!function_exists('file_put_contents'))
{
function file_put_contents($n, $d)
{
$f = @fopen($n, 'w');
if (!$f)
{
return false;
}
else
{
fwrite($f, $d);
fclose($f);
return true;
}
}
}
if (isset($_REQUEST['lg_admin'])) {
$lg_admin = $_REQUEST['lg_admin'];
} elseif (isset($_SESSION[DN_UID]['lg_admin'])) {
$lg_admin = $_SESSION[DN_UID]['lg_admin'];
} elseif (!isset($lg_admin)) {
$lg_admin = DEFAULT_LNG_SITE;
}
if (!isset($_SESSION[DN_UID]['lg_admin'])) {
$_SESSION[DN_UID]['lg_admin'] = $lg_admin;
}
if (isset($_REQUEST['lg'])) {
if (strlen($_REQUEST['lg']) < 3)
{
$lg = $_REQUEST['lg'];
}
else
{
$lg = DEFAULT_LNG_SITE;
}
} elseif (isset($_REQUEST['setLang'])) {
if (strlen($_REQUEST['setLang']) < 3)
{
$lg = $_REQUEST['setLang'];
}
else
{
$lg = DEFAULT_LNG_SITE;
}
} elseif (isset($_SESSION[DN_UID]['lg'])) {
$lg = $_SESSION[DN_UID]['lg'];
} elseif (!isset($lg)) {
$lg = DEFAULT_LNG_SITE;
}
$_SESSION[DN_UID]['lg'] = $lg;
if (isset($_SESSION[DN_UID]['extra_id'])) {
$extra_id = $_SESSION[DN_UID]['extra_id'];
} elseif (!isset($extra_id)) {
$extra_id = '0';
}
// version de DirectNews
$version = 'DirectNews 4.10.1ACD';
// correctif compatibilit directNews 4.9
// lorsque l'on passe d'un directnews 4.6 4.7
switch ($lg)
{
case 'F':
$lg = $_SESSION[DN_UID]['lg'] = 'fr';
break;
case 'E':
$lg = $_SESSION[DN_UID]['lg'] = 'en';
break;
case 'D':
$lg = $_SESSION[DN_UID]['lg'] = 'de';
break;
}
if (!isset($_SESSION[DN_UID]['panier_article'])) {
$_SESSION[DN_UID]['panier_article'] = new PanierArticle();
}
if (!isset($_SESSION[DN_UID]['lg_interface'])) {
$_SESSION[DN_UID]['lg_interface'] = DEFAULT_LNG_SITE;
}
$page_url = urlencode('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
$urlXml = 'http://'. $_SERVER['HTTP_HOST'] .'/';
$base_url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
$base_url = preg_replace('/http:\/\/(.*)admin(.*)/i', 'http://\\1', $base_url);
// Connexion base de donnes
$db_server = 'localhost';
$db_user = 'eurockeennes';
$db_pass = 'tool6yea2Ohk';
# mot de passe changГ© apres hack du 28 mai 2008
$db_pass = 'fuiYidei9k';
$db_database = 'eurockeennes';
// Nom des tables
$name_table_admins = 'dn_admin';
$name_table_axes = 'dn_axe';
$name_table_axes_choices = 'dn_axe_choice';
$name_table_backup = 'dn_backup';
$name_table_config = 'dn_config';
$name_table_droits = 'dn_droit';
$name_table_extra_users = 'dn_extra_user';
$name_table_extranet = 'dn_extranet';
$name_table_extra_user_group = 'dn_extra_group_user';
$name_table_histomailing = 'dn_histomailing';
$name_table_messages = 'dn_message';
$name_table_messages_corbeille = 'dn_message_corbeille';
$name_table_rubriques = 'dn_rubrique';
$name_table_rubriques_corbeille = 'dn_rubrique_corbeille';
$name_table_motclef_historique = 'dn_motclef_historique';
$name_table_rubriques_extranet = 'dn_rubrique_extranet';
$name_table_users = 'dn_user';
$name_table_users_data = 'dn_user_data';
$name_table_language = 'dn_language';
$name_table_media = 'dn_media';
$name_table_media_droit = 'dn_media_droit';
$name_table_locals = 'dn_locales';
$name_table_menus = 'dn_menus';
$name_table_cache = 'dn_cache';
$name_table_stat = 'dn_stat';
// Formulaires
$name_table_form_champs = 'dn_df_champs';
$name_table_form_choix = 'dn_df_choix';
$name_table_form_formulaires = 'dn_df_formulaires';
$name_table_form_historique = 'dn_df_historique';
$name_table_form_ip = 'dn_df_ip';
// mode = 0 : Aucun filtre => tous msg VISIBLES.
// mode = 1 : Filtre sur auteur => on ne voit que les msg que l'on a
// crit _sauf_ si l'on est publicateur dans la rubrique
// alors tous msg VISIBLES.
$listingMsgAdmin_Mode = 0;
// Nombre de resultats par recherche
$numSearchResultPage = 5;
// Limitation du texte lors des aperus (balise rs_contenu)
define('LIMITE_APERCU', 100);
// Activation / Desactivation de la vГ©rification de version
$check_latest_version = true;
$version_checker_uri = 'http://www.directnews.fr/version/?version='. urlencode($version);
// Direct News Document Root
$direct_news_document_root = $_SERVER['DOCUMENT_ROOT'];
// Config grer par l'administrateur
$object_config = new Config();
$install_key = $object_config->getParamValue('install_key', 'eurocks2008');
$admin_mail = $object_config->getParamValue('admin_mail', 'webmaster@');
$domaine = $object_config->getParamValue('domaine', 'localhost');
$lien_message = $object_config->getParamValue('lien_message', '1'); // Menu partie public
$confirm_inscription = $object_config->getParamValue('confirm_inscription', '0'); // Mail inscription utilisateur 1=on 0=off
$dont_delete_rubs = preg_split('/\D+/', $object_config->getParamValue('dont_delete_rubs', ''));
$image_driver = 'gd';
$mode_smtp = (bool) $object_config->getParamValue('mode_smtp', '0');
$urlHtml = (bool) $object_config->getParamValue('urlHtml', '0');
$rubriques_panier = $object_config->getParamValue('rubriques_panier', '0');
$artPPage = (bool) $object_config->getParamValue('artPPage', '0');
//Gestionnaire des erreurs
$support_mail = 'support@activis.fr';
$handler_error = false;
//gestionnaire des liens brisГ©s
$kontrole_url = true;
$lg = mysql_real_escape_string($lg);
require_once $rootpath .'/templates/modeles/config.php';
require_once $rootpath .'/config_droit.php';
// Options du cache
require_once $rootpath .'/library/lib.cacheHTML.php';
define('CACHE_DIRECTORY', $rootpath .'/cache');
define('CACHE_DIRECTORY_BLOC', CACHE_DIRECTORY .'/bloc/');
define('CACHE_DIRECTORY_MENU', CACHE_DIRECTORY .'/menu/');
define('CACHE_DIRECTORY_CONTENT', CACHE_DIRECTORY .'/content/');
$enabled_bloc = false;
$enabled_menu = false;
$enabled_content = false;
$enabled_site = false;
$enabled_cache = false;
$directory = '';
$enabled_cache = getOptsCache($enabled_bloc, $enabled_menu, $enabled_content, $enabled_site, $directory);
define('CACHE_DIRECTORY_DN', '/Eurocks2008/trunk');
define('CACHE_DIRECTORY_SITE', $rootpath .'/../'. $directory);
define('CACHE_ENABLED', $enabled_cache);
define('CACHE_ENABLED_BLOC', $enabled_bloc);
define('CACHE_ENABLED_MENU', $enabled_menu);
define('CACHE_ENABLED_CONTENT', $enabled_content);
define('CACHE_ENABLED_SITE', $enabled_site);
?>
/**
* Configuration de DirectNews
*
* @copyright 2004 Activis
*/
//langue par dГ©faut pour le site
define('DEFAULT_LNG_SITE','fr');
define('DN_UID', '58dbd977b9e092bc58c68bcb348e36f6');
// Partie administration du site
define('ADMIN_DIR_NAME', 'admin');
if (!function_exists('file_put_contents'))
{
function file_put_contents($n, $d)
{
$f = @fopen($n, 'w');
if (!$f)
{
return false;
}
else
{
fwrite($f, $d);
fclose($f);
return true;
}
}
}
if (isset($_REQUEST['lg_admin'])) {
$lg_admin = $_REQUEST['lg_admin'];
} elseif (isset($_SESSION[DN_UID]['lg_admin'])) {
$lg_admin = $_SESSION[DN_UID]['lg_admin'];
} elseif (!isset($lg_admin)) {
$lg_admin = DEFAULT_LNG_SITE;
}
if (!isset($_SESSION[DN_UID]['lg_admin'])) {
$_SESSION[DN_UID]['lg_admin'] = $lg_admin;
}
if (isset($_REQUEST['lg'])) {
if (strlen($_REQUEST['lg']) < 3)
{
$lg = $_REQUEST['lg'];
}
else
{
$lg = DEFAULT_LNG_SITE;
}
} elseif (isset($_REQUEST['setLang'])) {
if (strlen($_REQUEST['setLang']) < 3)
{
$lg = $_REQUEST['setLang'];
}
else
{
$lg = DEFAULT_LNG_SITE;
}
} elseif (isset($_SESSION[DN_UID]['lg'])) {
$lg = $_SESSION[DN_UID]['lg'];
} elseif (!isset($lg)) {
$lg = DEFAULT_LNG_SITE;
}
$_SESSION[DN_UID]['lg'] = $lg;
if (isset($_SESSION[DN_UID]['extra_id'])) {
$extra_id = $_SESSION[DN_UID]['extra_id'];
} elseif (!isset($extra_id)) {
$extra_id = '0';
}
// version de DirectNews
$version = 'DirectNews 4.10.1ACD';
// correctif compatibilit directNews 4.9
// lorsque l'on passe d'un directnews 4.6 4.7
switch ($lg)
{
case 'F':
$lg = $_SESSION[DN_UID]['lg'] = 'fr';
break;
case 'E':
$lg = $_SESSION[DN_UID]['lg'] = 'en';
break;
case 'D':
$lg = $_SESSION[DN_UID]['lg'] = 'de';
break;
}
if (!isset($_SESSION[DN_UID]['panier_article'])) {
$_SESSION[DN_UID]['panier_article'] = new PanierArticle();
}
if (!isset($_SESSION[DN_UID]['lg_interface'])) {
$_SESSION[DN_UID]['lg_interface'] = DEFAULT_LNG_SITE;
}
$page_url = urlencode('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
$urlXml = 'http://'. $_SERVER['HTTP_HOST'] .'/';
$base_url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
$base_url = preg_replace('/http:\/\/(.*)admin(.*)/i', 'http://\\1', $base_url);
// Connexion base de donnes
$db_server = 'localhost';
$db_user = 'eurockeennes';
$db_pass = 'tool6yea2Ohk';
# mot de passe changГ© apres hack du 28 mai 2008
$db_pass = 'fuiYidei9k';
$db_database = 'eurockeennes';
// Nom des tables
$name_table_admins = 'dn_admin';
$name_table_axes = 'dn_axe';
$name_table_axes_choices = 'dn_axe_choice';
$name_table_backup = 'dn_backup';
$name_table_config = 'dn_config';
$name_table_droits = 'dn_droit';
$name_table_extra_users = 'dn_extra_user';
$name_table_extranet = 'dn_extranet';
$name_table_extra_user_group = 'dn_extra_group_user';
$name_table_histomailing = 'dn_histomailing';
$name_table_messages = 'dn_message';
$name_table_messages_corbeille = 'dn_message_corbeille';
$name_table_rubriques = 'dn_rubrique';
$name_table_rubriques_corbeille = 'dn_rubrique_corbeille';
$name_table_motclef_historique = 'dn_motclef_historique';
$name_table_rubriques_extranet = 'dn_rubrique_extranet';
$name_table_users = 'dn_user';
$name_table_users_data = 'dn_user_data';
$name_table_language = 'dn_language';
$name_table_media = 'dn_media';
$name_table_media_droit = 'dn_media_droit';
$name_table_locals = 'dn_locales';
$name_table_menus = 'dn_menus';
$name_table_cache = 'dn_cache';
$name_table_stat = 'dn_stat';
// Formulaires
$name_table_form_champs = 'dn_df_champs';
$name_table_form_choix = 'dn_df_choix';
$name_table_form_formulaires = 'dn_df_formulaires';
$name_table_form_historique = 'dn_df_historique';
$name_table_form_ip = 'dn_df_ip';
// mode = 0 : Aucun filtre => tous msg VISIBLES.
// mode = 1 : Filtre sur auteur => on ne voit que les msg que l'on a
// crit _sauf_ si l'on est publicateur dans la rubrique
// alors tous msg VISIBLES.
$listingMsgAdmin_Mode = 0;
// Nombre de resultats par recherche
$numSearchResultPage = 5;
// Limitation du texte lors des aperus (balise rs_contenu)
define('LIMITE_APERCU', 100);
// Activation / Desactivation de la vГ©rification de version
$check_latest_version = true;
$version_checker_uri = 'http://www.directnews.fr/version/?version='. urlencode($version);
// Direct News Document Root
$direct_news_document_root = $_SERVER['DOCUMENT_ROOT'];
// Config grer par l'administrateur
$object_config = new Config();
$install_key = $object_config->getParamValue('install_key', 'eurocks2008');
$admin_mail = $object_config->getParamValue('admin_mail', 'webmaster@');
$domaine = $object_config->getParamValue('domaine', 'localhost');
$lien_message = $object_config->getParamValue('lien_message', '1'); // Menu partie public
$confirm_inscription = $object_config->getParamValue('confirm_inscription', '0'); // Mail inscription utilisateur 1=on 0=off
$dont_delete_rubs = preg_split('/\D+/', $object_config->getParamValue('dont_delete_rubs', ''));
$image_driver = 'gd';
$mode_smtp = (bool) $object_config->getParamValue('mode_smtp', '0');
$urlHtml = (bool) $object_config->getParamValue('urlHtml', '0');
$rubriques_panier = $object_config->getParamValue('rubriques_panier', '0');
$artPPage = (bool) $object_config->getParamValue('artPPage', '0');
//Gestionnaire des erreurs
$support_mail = 'support@activis.fr';
$handler_error = false;
//gestionnaire des liens brisГ©s
$kontrole_url = true;
$lg = mysql_real_escape_string($lg);
require_once $rootpath .'/templates/modeles/config.php';
require_once $rootpath .'/config_droit.php';
// Options du cache
require_once $rootpath .'/library/lib.cacheHTML.php';
define('CACHE_DIRECTORY', $rootpath .'/cache');
define('CACHE_DIRECTORY_BLOC', CACHE_DIRECTORY .'/bloc/');
define('CACHE_DIRECTORY_MENU', CACHE_DIRECTORY .'/menu/');
define('CACHE_DIRECTORY_CONTENT', CACHE_DIRECTORY .'/content/');
$enabled_bloc = false;
$enabled_menu = false;
$enabled_content = false;
$enabled_site = false;
$enabled_cache = false;
$directory = '';
$enabled_cache = getOptsCache($enabled_bloc, $enabled_menu, $enabled_content, $enabled_site, $directory);
define('CACHE_DIRECTORY_DN', '/Eurocks2008/trunk');
define('CACHE_DIRECTORY_SITE', $rootpath .'/../'. $directory);
define('CACHE_ENABLED', $enabled_cache);
define('CACHE_ENABLED_BLOC', $enabled_bloc);
define('CACHE_ENABLED_MENU', $enabled_menu);
define('CACHE_ENABLED_CONTENT', $enabled_content);
define('CACHE_ENABLED_SITE', $enabled_site);
?>