AEOS Calvarium v0.4
This commit is contained in:
parent
821b405f5a
commit
57b531cb62
189 changed files with 3810 additions and 1417 deletions
52
index.php
Normal file → Executable file
52
index.php
Normal file → Executable file
|
|
@ -1,30 +1,40 @@
|
|||
<?php
|
||||
// Vérification de l'installation.
|
||||
ob_start();
|
||||
if (!file_exists("data/config.xml")){header('Location: install/index.php?etape=0');}
|
||||
// Inclusion des librairie
|
||||
require_once ('lib/aeos.lib.php');
|
||||
require_once ('lib/var.lib.php');
|
||||
|
||||
// Inclusion des librairies
|
||||
require ('lib/aeos.lib.php');
|
||||
require ('lib/config.lib.php');
|
||||
require ('lib/var.lib.php');
|
||||
|
||||
//Check Install
|
||||
checkInstall();
|
||||
|
||||
// URL Rewriting
|
||||
if(isset($_GET['redirect']))
|
||||
{
|
||||
if (preg_match("#".AEOS_REW."([0-9-]+)-([^0-9](?:.+))#isU", $_SERVER['REDIRECT_URL'], $redirect))
|
||||
{
|
||||
header("Status: 200 OK", false, 200);
|
||||
$redirect=abs($redirect[1]);
|
||||
require ('lib/config.lib.php');
|
||||
require ('lib/var.lib.php');
|
||||
}
|
||||
else header('Location: '.AEOS_REW.HOME_PAGE.'-E404.html');
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title><?php echo AEOS_NAME." | ".AEOS_TITLE; ?></title>
|
||||
<meta name="description" content="<?php echo AEOS_DESC; ?>" />
|
||||
<link rel="stylesheet" type="text/css" media="screen" href="themes/<?php echo AEOS_THEME; ?>/styles.css" />
|
||||
<link rel="icon" type="image/png" href="themes/<?php echo AEOS_THEME; ?>/images/favicon_aeos.ico" />
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
|
||||
<title><?php echo $SITE_NOM." | ".$PAGE_TITRE; ?></title>
|
||||
<meta name="description" content="<?php echo $SITE_DESC; ?>" />
|
||||
|
||||
<?php
|
||||
// Detection du navigateur. Si iPhone ou non.
|
||||
if(preg_match("/iphone/i", $_SERVER["HTTP_USER_AGENT"])) {?>
|
||||
<link rel="stylesheet" type="text/css" media="screen" href="themes/<?php echo $SITE_THEME; ?>/styles_mobile.css" /><?php } else { ?>
|
||||
<link rel="stylesheet" type="text/css" media="screen" href="themes/<?php echo $SITE_THEME; ?>/styles.css" />
|
||||
<link rel="icon" type="image/png" href="themes/<?php echo $SITE_THEME; ?>/images/favicon_aeos.ico" /><?php } ?>
|
||||
</head>
|
||||
|
||||
<?php
|
||||
// Maintenance ou non
|
||||
if ($SITE_MAINTENANCE=="on"){require_once('themes/'.$SITE_THEME.'/maintenance.php');}
|
||||
else {require_once('themes/'.$SITE_THEME.'/base.php');}
|
||||
if (AEOS_MAINTENANCE=="on"){require_once('themes/'.AEOS_THEME.'/maintenance.php');}
|
||||
else {require_once('themes/'.AEOS_THEME.'/base.php');}
|
||||
ob_end_flush();
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue