63 lines
3.2 KiB
PHP
63 lines
3.2 KiB
PHP
<?php
|
||
/*
|
||
Fichier libraire contenant toutes les constantes et/ou variables
|
||
permettant de g<>rer AEOS.
|
||
*/
|
||
define('SECURITY', FALSE);
|
||
// Variables utilis<69>es fr<66>quemments
|
||
define('AEOS_NAME', $config['configuration']['nom_site']['#text']);
|
||
define('AEOS_DESC', $config['configuration']['description_site']['#text']);
|
||
define('AEOS_THEME', $config['configuration']['theme']['#text']);
|
||
define('AEOS_MODULE', $configModule['configuration']['dossier']['#text']);
|
||
define('AEOS_MAINTENANCE', $config['configuration']['maintenanceMode']['#text']==='TRUE'?TRUE:FALSE);
|
||
define('AEOS_MAINTMSG', $config['configuration']['maintenanceMessage']['#text']);
|
||
define('AEOS_FOOTER', $config['configuration']['footer']['#text']);
|
||
|
||
// Permet le référencement
|
||
define('AEOS_TITLE', $page['page']['nom']['#text']);
|
||
|
||
// Information administration
|
||
if($isAdmin && isset($_SESSION['_LOGIN']))
|
||
{
|
||
//define('AEOS_PASSWORD', $_SESSION['password']);
|
||
define('AEOS_LOGIN', $_SESSION['_LOGIN']);
|
||
define('AEOS_MAIL', $config['configuration']['users'][$_SESSION['_LOGIN']]['email']['#text']);
|
||
if(!isset($config['configuration']['users'][$_SESSION['_LOGIN']]['avatar']['#text']) || $config['configuration']['users'][$_SESSION['_LOGIN']]['avatar']['#text']=="")
|
||
define('AEOS_AVATAR', "themes/system/images/avatar.png");
|
||
else
|
||
define('AEOS_AVATAR', $config['configuration']['users'][$_SESSION['_LOGIN']]['avatar']['#text']);
|
||
|
||
define('AEOS_FIRSTNAME', $config['configuration']['users'][$_SESSION['_LOGIN']]['firstname']['#text']);
|
||
define('AEOS_LASTNAME', $config['configuration']['users'][$_SESSION['_LOGIN']]['lastname']['#text']);
|
||
define('AEOS_ROLE', $config['configuration']['users'][$_SESSION['_LOGIN']]['role']['#text']);
|
||
define('AEOS_USER_LANG', $config['configuration']['users'][$_SESSION['_LOGIN']]['language']['#text']);
|
||
define('AEOS_LANG', $config['configuration']['lang']['#text']);
|
||
}
|
||
|
||
|
||
// Variable d'URL Rewriting
|
||
define('AEOS_URL', $_SERVER['SERVER_NAME']);
|
||
//define('AEOS_LANG', $config['configuration']['lang']['#text']);
|
||
define('AEOS_VERSION', $config['configuration']['version']['#text']);
|
||
define('AEOS_BRANCH', $config['configuration']['branch']['#text']);
|
||
define('AEOS_CODENAME', $config['configuration']['codename']['#text']);
|
||
define('AEOS_UPDATE', $config['configuration']['update']['#text']);
|
||
define('AEOS_PATH', dirname($_SERVER["REQUEST_URI"]));
|
||
define('AEOS_REWMODE', $config['configuration']['urlrewriting']['#text']==='TRUE'?TRUE:FALSE);
|
||
define('AEOS_REWKEY', $config['configuration']['urlrewriting_key']['#text']);
|
||
define('HOME_PAGE', $config['configuration']['accueil']['#text']);
|
||
define('DATA_PAGES', $subdir.'data/pages/');
|
||
define('DATA_TRASH', $subdir.'data/corbeille/');
|
||
define('LAST_KEY', max(array_keys($lecture_pages))+1);
|
||
define('LAST_ORDER', max(array_keys($ordre_pages))+1);
|
||
define('DEBUG_MODE', $config['configuration']['debugMode']['#text']==='TRUE'?TRUE:FALSE);
|
||
('DEBUG_MODE')?include($subdir.'lib/debug.lib.php'):FALSE;
|
||
define('AEOS_REAL_URL', 'https://nnsprod.com/aeos');
|
||
define('URL_CHECK_UPDATE', AEOS_REAL_URL.'/update/notifications.xml');
|
||
|
||
//Admin
|
||
//define('ADMIN_REQUEST_URL', 'index.php?'.$_SERVER["QUERY_STRING"]);
|
||
define('ADMIN_REQUEST_URL', 'index.php?'.$admin_url);
|
||
|
||
unset($page);
|
||
?>
|