AEOS Calvarium v0.4
This commit is contained in:
parent
821b405f5a
commit
57b531cb62
189 changed files with 3810 additions and 1417 deletions
42
lib/var.lib.php
Normal file → Executable file
42
lib/var.lib.php
Normal file → Executable file
|
|
@ -4,11 +4,43 @@ Fichier libraire contenant toutes les constantes et/ou variables
|
|||
permettant de gérer AEOS.
|
||||
*/
|
||||
|
||||
// Repère si oui nous sommes dans l'Administration
|
||||
include('config.lib.php');
|
||||
define('EXEC_START_TIME', microtime(true));
|
||||
define('SECURITY', FALSE);
|
||||
// Variables utilisées fré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_FOOTER', $config['configuration']['footer']['#text']);
|
||||
|
||||
// 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']);
|
||||
|
||||
// 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_PATH', dirname($_SERVER["REQUEST_URI"]));
|
||||
define('AEOS_REW', $config['configuration']['urlrewriting_key']['#text']);
|
||||
define('HOME_PAGE', $config['configuration']['accueil']['#text']);
|
||||
define('DATA_PAGES', $subdir.'data/pages/');
|
||||
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);
|
||||
('DEBUG_MODE')?include($subdir.'lib/debug.lib.php'):FALSE;
|
||||
define('UPDATE', $config['configuration']['update']['#text']);
|
||||
define('AEOS_REAL_URL', 'http://nnsprod.com/aeos');
|
||||
define('URL_CHECK_UPDATE', AEOS_REAL_URL.'/update/notifications.xml');
|
||||
|
||||
//Admin
|
||||
define('ADMIN_REQUEST_URL', 'index.php?pid='.$pid.'&sid='.$sid);
|
||||
|
||||
$DATA_PAGES = $data_pages;
|
||||
$execTime = microtime(true);
|
||||
|
||||
if(@empty($_GET['pid'])){$pid=1;} else {$pid = $_GET['pid'];}
|
||||
unset($page);
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue