AEOS Calvarium v0.5
This commit is contained in:
parent
57b531cb62
commit
1fa8b9e152
177 changed files with 2936 additions and 3386 deletions
53
lib/var.lib.php
Executable file → Normal file
53
lib/var.lib.php
Executable file → Normal file
|
|
@ -1,46 +1,63 @@
|
|||
<?php
|
||||
/*
|
||||
Fichier libraire contenant toutes les constantes et/ou variables
|
||||
permettant de gérer AEOS.
|
||||
permettant de g<EFBFBD>rer AEOS.
|
||||
*/
|
||||
|
||||
define('EXEC_START_TIME', microtime(true));
|
||||
define('SECURITY', FALSE);
|
||||
// Variables utilisées fréquemments
|
||||
// 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_MAINTENANCE', $config['configuration']['maintenance']['#text']);
|
||||
define('AEOS_MAINTMSG', $config['configuration']['message']['#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
|
||||
// Permet le référencement
|
||||
define('AEOS_TITLE', $page['page']['nom']['#text']);
|
||||
|
||||
// Information administration
|
||||
define('AEOS_PASSWORD', $config['configuration']['mdp_admin']['#text']);
|
||||
define('AEOS_LOGIN', $config['configuration']['login_admin']['#text']);
|
||||
define('AEOS_MAIL', $config['configuration']['email_admin']['#text']);
|
||||
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_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_REW', $config['configuration']['urlrewriting_key']['#text']);
|
||||
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']['debug']['#text']==='TRUE'?TRUE:FALSE);
|
||||
define('DEBUG_MODE', $config['configuration']['debugMode']['#text']==='TRUE'?TRUE:FALSE);
|
||||
('DEBUG_MODE')?include($subdir.'lib/debug.lib.php'):FALSE;
|
||||
define('UPDATE', $config['configuration']['update']['#text']);
|
||||
define('AEOS_REAL_URL', 'http://nnsprod.com/aeos');
|
||||
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?pid='.$pid.'&sid='.$sid);
|
||||
//define('ADMIN_REQUEST_URL', 'index.php?'.$_SERVER["QUERY_STRING"]);
|
||||
define('ADMIN_REQUEST_URL', 'index.php?'.$admin_url);
|
||||
|
||||
$DATA_PAGES = $data_pages;
|
||||
unset($page);
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue