AEOS Calvarium v0.5

This commit is contained in:
OverSu 2026-08-26 17:23:29 +02:00
commit 1fa8b9e152
177 changed files with 2936 additions and 3386 deletions

View file

@ -1,23 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<nom_site>AEOS | Version Stable </nom_site>
<description_site>Version Stable d'AEOS.</description_site>
<lang>fr</lang>
<login_admin>admin</login_admin>
<email_admin>admin@admin.fr</email_admin>
<mdp_admin>21232f297a57a5a743894a0e4a801fc3</mdp_admin>
<accueil>1</accueil>
<theme>defaut</theme>
<contentd>0</contentd>
<version>0.4 [CALVARIUM]</version>
<maintenance>off</maintenance>
<debug>FALSE</debug>
<message>Site en maintenance</message>
<footer>© 2004 - 2013 NNS Production</footer>
<update>10-07-2013</update>
<urlrewriting>1</urlrewriting>
<urlrewriting_key/>
</configuration>

41
install/config.xml Normal file
View file

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<nom_site>test</nom_site>
<description_site>test</description_site>
<lang>fr_FR</lang>
<lang_available>
<langs>
<code>fr_FR</code>
<name>Français</name>
</langs>
<langs>
<code>en_US</code>
<name>English</name>
</langs>
</lang_available>
<users>
<admin>
<id>1</id>
<firstname>???</firstname>
<lastname>???</lastname>
<email>test@test.test</email>
<language></language>
<password>$2y$10$w9qL6OSzztNBUBKLm1jUhezMNb6y3J1M/d.ksKs0T4XL1HzCMfFN2</password>
<avatar></avatar>
<role>Admin</role>
</admin>
</users>
<accueil>1</accueil>
<theme>defaut</theme>
<contentd>0</contentd>
<version>0.5</version>
<codename>CALVARIUM</codename>
<branch>stable</branch>
<update>06072013</update>
<maintenanceMode>FALSE</maintenanceMode>
<maintenanceMessage>Le site est actuellement en maintenance ! :)</maintenanceMessage>
<debugMode>FALSE</debugMode>
<footer>© 2004 - 2020 NNS Production</footer>
<urlrewriting>FALSE</urlrewriting>
<urlrewriting_key>page-</urlrewriting_key>
</configuration>

81
install/index.php Executable file → Normal file
View file

@ -2,6 +2,9 @@
ob_start();
if (file_exists("../data/config.xml")){header('Location: ../index.php');}
require_once ('../lib/aeos.lib.php');
$config = lecture_xml("config.xml");
if (!isset($_POST['lang'])) $langs="fr_FR"; else $langs=$_POST['lang'];
require_once('lang/'.$langs.'/index.php');
?>
<!DOCTYPE html>
<html>
@ -9,24 +12,18 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>AEOS | Installation</title>
<link rel="stylesheet" type="text/css" media="screen" href="../themes/system/styles.css" />
<link rel="stylesheet" type="text/css" media="screen" href="install.css" />
<link rel="icon" type="image/png" href="../themes/defaut/images/favicon_aeos.ico" />
</head>
<body>
<div id="Layout"></div>
<div id="Administration">
<h1><img src="../themes/system/images/logo_black.png" alt="Logo AEOS" /></h1>
<h6>
<img src="../themes/system/images/icones/logout.png" alt="Logout" class="icon" />
Installation - AEOS
</h6>
<h1><img src="../themes/system/images/aeos_logo_A_blanc.png" alt="Logo AEOS" /></h1>
<!--
<div id="Menu">
<ul>
<?php
if (!isset($_POST['lang'])) $langs="fr"; else $langs=$_POST['lang'];
require_once('lang/'.$langs.'/index.php');
$menuArray=array($lang['L_Inst_Etape'], $lang['L_Inst_Etape1'], $lang['L_Inst_Etape2'], $lang['L_Inst_Etape3'], $lang['L_Inst_Etape4']);
$l=0;
foreach ($menuArray as $menu)
@ -39,38 +36,39 @@
?>
</ul>
</div>
-->
<div class="form">
<h6><?php echo $lang['L_Install']; ?> - AEOS</h6>
<?php
!isset($_GET['etape'])?$etape=0:$etape=$_GET['etape'];
$PHPVersion = phpversion();
$PHPv = explode (".", $PHPVersion);
$install_conf = lecture_xml("base.xml");
switch ($etape)
{
// Prérequis -------------------------------------------------------------------------------------------------------------------------
case 0:
?>
<form method="POST" action="index.php?etape=0">
<form class="language" method="POST" action="index.php?etape=0">
<p>
<div class="select_basic">
<select name="lang" class="input_select" onchange="this.form.submit();">
<option value="basic">-</option>
<?php
$list = listing_dossier("lang/");
foreach ($list as $pages)
{
$lg = lecture_xml('lang/'.$pages.'/lang.xml'); ?>
<option value="<?php echo $pages; ?>" <?php if($pages==@$_POST['lang']){echo "selected";}?>>
<option value="<?php echo $pages; ?>" <?php if($pages==$langs){echo "selected";}?>>
<?php echo $lg['lang']['title']['#text'];?>
</option><?php
} ?>
</select>
</div>
</p>
</form>
<form method="POST" action="index.php?etape=1">
<h3>AEOS v<?php echo $install_conf['configuration']['version']['#text'];?></h3>
<h4><?php echo $lang['L_Inst_bienvenue']; ?></h4>
<h5><?php echo $lang['L_Inst_instruction']; ?></h5>
<h4><?php echo $lang['L_Inst_bienvenue']."<br />".$lang['L_Inst_instruction']; ?></h4>
<p><?php echo $lang['L_Inst_prerequis']; ?></p>
<table class="Full">
<tr>
@ -111,9 +109,9 @@
}
else
{ ?>
<input type="submit" value="<?php echo $lang['L_Mot_suivant']; ?>" class="input_button" /><?php
<button><?php echo $lang['L_Mot_suivant']; ?></button><?php
} ?>
<input type="hidden" name="lang" value="<?php if(!@isset($_POST['lang'])){echo "fr";}else{echo $_POST['lang'];} ?>" />
<input type="hidden" name="lang" value="<?php echo $langs; ?>" />
</p>
</form>
<?php
@ -130,8 +128,7 @@
<p><input class="input_text" name="description" /></p>
<p>
<input type="button" value="<?php echo $lang['L_Mot_precedent']; ?>" onclick="javascript:history.back();" class="input_button" />
<input type="submit" value="<?php echo $lang['L_Mot_suivant']; ?>" class="input_button" />
<button><?php echo $lang['L_Mot_suivant']; ?></button>
<input type="hidden" name="lang" value="<?php if(!@isset($_POST['lang'])){echo "fr";}else{echo $_POST['lang'];} ?>" />
</p>
</form>
@ -143,8 +140,10 @@
?>
<form method="POST" action="index.php?etape=3">
<h3><?php echo $lang['L_Inst_confadmin']; ?></h3>
<!--
<p><?php echo $lang['L_Mot_identifiant']; ?></p>
<p><input type="text" class="input_text" name="login_admin" /></p>
-->
<p><?php echo $lang['L_Mot_motdepasse']; ?></p>
<p><input type="password" class="input_text" name="mdp_admin" /></p>
<p><?php echo $lang['L_Mot_confmotdepasse']; ?></p>
@ -155,16 +154,19 @@
<?php
if(!isset($_GET['erreur']))
{
ecriture_xml('base.xml', 'nom_site', $_POST['titre']);
ecriture_xml('base.xml', 'description_site', $_POST['description']);
ecriture_xml('base.xml', 'lang', $_POST['lang']);
ecriture_xml('config.xml', array('configuration/nom_site'=>$_POST['titre'],
'configuration/description_site'=>$_POST['description'],
'configuration/lang'=>$langs));
}
if (@$_GET['erreur']==1) echo "<span class='erreur'>".$lang['L_Inst_Msg_motdepasse']."</span><br />";
elseif (@$_GET['erreur']==2) echo "<span class='erreur'>".$lang['L_Inst_Msg_mauvaisemail']."</span><br />";
?>
<p><input type="button" value="<?php echo $lang['L_Mot_precedent']; ?>" onclick="javascript:history.back();" class="input_button" /></p>
<p><input type="submit" value="<?php echo $lang['L_Mot_suivant']; ?>" class="input_button" /></p>
<input type="hidden" name="lang" value="<?php if(!@isset($_POST['lang'])){echo "fr";}else{echo $_POST['lang'];} ?>" />
<p><button><?php echo $lang['L_Mot_suivant']; ?></button></p>
<input type="hidden" name="lang" value="<?php echo $langs; ?>" />
</form>
<?php
break;
@ -188,9 +190,10 @@
{
if(!isset($_GET['erreur']))
{
ecriture_xml('base.xml', 'login_admin', $_POST['login_admin']);
ecriture_xml('base.xml', 'mdp_admin', md5($_POST['mdp_admin']));
ecriture_xml('base.xml', 'email_admin', $_POST['email_admin']);
ecriture_xml('config.xml', array(
'configuration/users/admin/password'=>password_hash($_POST['mdp_admin'],PASSWORD_DEFAULT),
'configuration/users/admin/email'=>$_POST['email_admin']
));
}
}
$licence = @file_get_contents('http://www.gnu.org/licenses/gpl.txt'); ?>
@ -199,9 +202,9 @@
<input type="checkbox" name="conditions" />
<?php echo $lang['L_Inst_accepte']; ?>
</p>
<p><input type="button" value="<?php echo $lang['L_Mot_precedent']; ?>" onclick="javascript:history.back();" class="input_button" /></p>
<p><input type="submit" value="<?php echo $lang['L_Mot_suivant']; ?>" class="input_button" /></p>
<p><input type="hidden" name="lang" value="<?php if(!@isset($_POST['lang'])){echo "fr";}else{echo $_POST['lang'];} ?>" /></p>
<p><button><?php echo $lang['L_Mot_suivant']; ?></button></p>
<input type="hidden" name="lang" value="<?php echo $langs; ?>" />
</form>
<?php
@ -215,7 +218,7 @@
} ?>
<form method="POST" action="../index.php">
<h3><?php echo $lang['L_Mot_finalisation']; ?></h3>
<p>AEOS v<?php echo $install_conf['configuration']['version']['#text'];?></p>
<p>AEOS v<?php echo $config['configuration']['version']['#text'];?></p>
<h4><?php echo $lang['L_Inst_succes']; ?></h4>
<p><?php echo $lang['L_Inst_effacerinstall']; ?></p>
<h5><?php echo $lang['L_Inst_admineffacer']; ?></h5>
@ -226,10 +229,20 @@
<input type="hidden" name="lang" value="<?php if(!@isset($_POST['lang'])){echo "fr";}else{echo $_POST['lang'];} ?>" />
</p>
</form>
<?php copy("base.xml", "../data/config.xml"); ?>
<?php copy("config.xml", "../data/config.xml"); ?>
<?php
break;
} ?>
</div>
<div id="Footer">
<img src="../themes/system/images/logo_a4_300.png" width="250" alt="Logo" />
<p>
AEOS v<?php echo $config['configuration']['version']['#text']; ?>
</p>
<hr />
<h5><?php echo $config['configuration']['branch']['#text']; ?>/version_<?php echo $config['configuration']['update']['#text']; ?>.zip</h5>
<p class="copyright"><?php echo $lang["login_msg_Layus"]; ?></p>
</div>
</div>
</div>
</body>

View file

@ -1,66 +0,0 @@
/* Install.css */
#Administration
{
width:350px;
position:absolute;
top:30%;
left:50%;
margin:-175px 0 0 -175px;
}
#Administration a {color:#FFFFFF;}
#Administration h6 {margin:3px 0 20px 0;}
#Administration p {margin:0 0 5px 0; padding:0 8px 0 8px;}
#Administration h1, #Administration h6, #Administration p, #Administration h3, #Administration h4, #Administration h5 {font-size:12px; text-align:center; color:#EAEAEC; font-weight:bold; text-shadow:1px 1px 0 #606062;}
#Administration h3 {font-size:15px; margin:0 0 10px 0;}
#Administration h4 {font-size:12px; margin:0 0 10px 0;}
#Administration h5 {font-size:12px; font-weight:200; margin:0 0 20px 0;}
#Administration input {min-width:200px;}
#Administration input[type="checkbox"] {min-width:5px; margin:0 5px 0 0;}
#Administration .input_button, #Administration .input_text, #Administration .input_select {width:235px; height:35px; min-width:0%;}
#Administration .input_button {margin:15px 0 0 0;}
#Administration textarea.input_text {height:180px;}
table.Full {width:240px; margin:0 0 0 57px;}
#Layout
{
width:350px;
height:100%;
position:absolute;
top:0;
left:50%;
margin:0 0 0 -175px;
background:url(../themes/system/images/sidemenu.png);
border-right:1px solid #4E4F50;
border-left:1px solid #4E4F50;
}
#Menu
{
width:150px;
position:absolute;
margin:0 0 0 -150px;
top:25%;
}
#Menu ul li
{
list-style-type:none;
height:35px;
border-top:5px solid #FFFFFF;
border-bottom:5px solid #FFFFFF;
border-left:5px solid #FFFFFF;
padding:17px 10px 0 0;
margin:15px 0 15px 0;
box-shadow: -3px 3px 5px #888888;
text-align:right;
}
#Menu ul li.Actif
{
color:#FFFFFF;
background:url(../themes/system/images/sidemenu.png);
margin:0 -1px 0 0;
font-weight:bold;
font-size:16px;
text-align:left;
padding:17px 0 0 10px;
}

View file

View file

View file

@ -1,53 +0,0 @@
<?php
// Fichier langue, en français.
$lang = array(
'L_lang' => "Français",
// Installation
'L_Inst_Etape' => "Prérequis",
'L_Inst_Etape1' => "Configuration",
'L_Inst_Etape2' => "Administration",
'L_Inst_Etape3' => "Licence",
'L_Inst_Etape4' => "Terminée !",
'L_Inst_intro' => "Préface d'installation",
'L_Inst_bienvenue' => "Bienvenue sur l'assistant d'installation d'AEOS !",
'L_Inst_instruction' => "Veuillez suivre les étapes et valider avec le bouton 'suivant'.",
'L_Inst_prerequis' => "Prérequis: ", //espace
'L_Inst_versionphp' => "Version de PHP: ", //espace
'L_Inst_repdata' => "Répertoire 'data' accessible en écriture: ", //espace
'L_Inst_confgen' => "Configuration générale",
'L_Inst_sitenom' => "Titre",
'L_Inst_descnom' => "Description",
'L_Inst_confadmin' => "Configuration du compte Administrateur",
'L_Inst_licence' => "Licence publique générale GNU",
'L_Inst_accepte' => "Oui j'ai lu et j'accepte les termes et conditions d'utilisation",
'L_Inst_succes' => "installé avec succés !",
'L_Inst_effacerinstall' => "N'oubliez pas d'effacer le dossier INSTALL de votre serveur !",
'L_Inst_admineffacer' => "(Possibilité de l'effacer via l'administration du site)",
'L_Inst_accessite' => "Accés au site",
// Installation -> Message d'erreur
'L_Inst_Msg_versionphp' => "Vous ne disposez pas de la version 5 de PHP.",
'L_Inst_Msg_erreur' => "ERREUR",
'L_Inst_Msg_repdata' => "Le dossier DATA n'a pas les droits appropriés. Il est en ", //espace
'L_Inst_Msg_motdepasse' => "Les deux mots de passe ne sont pas identiques !",
'L_Inst_Msg_mauvaisemail' => "Votre adresse email n'est pas conforme.",
'L_Inst_Msg_condition' => "Veuillez accepter les conditions !",
// Mot
'L_Mot_etape' => "Etape",
'L_Mot_preface' => "Préface",
'L_Mot_finalisation' => "Finalisation",
'L_Mot_remerciements' => "Remerciements",
'L_Mot_identifiant' => "Identifiant",
'L_Mot_motdepasse' => "Mot de passe",
'L_Mot_confmotdepasse' => "Confirmer mot de passe",
'L_Mot_mail' => "Mail",
'L_Mot_suivant' => "Suivant",
'L_Mot_precedent' => "Précédent",
);
?>

View file

@ -0,0 +1,59 @@
<?php
// Fichier langue, en français.
$lang = array(
'L_lang' => "Français",
// Installation
'L_Install' => "Installation du CMS",
'L_Inst_Etape' => "Prérequis",
'L_Inst_Etape1' => "Configuration",
'L_Inst_Etape2' => "Administration",
'L_Inst_Etape3' => "Licence",
'L_Inst_Etape4' => "Terminée !",
'L_Inst_intro' => "Préface d'installation",
'L_Inst_bienvenue' => "Bienvenue sur l'assistant d'installation",
'L_Inst_instruction' => "Merci de suivre les étapes suivantes",
'L_Inst_prerequis' => "Prérequis: ", //espace
'L_Inst_versionphp' => "Version de PHP: ", //espace
'L_Inst_repdata' => "Répertoire 'data' accessible en écriture: ", //espace
'L_Inst_OK' => "OK",
'L_Inst_confgen' => "Configuration générale",
'L_Inst_sitenom' => "Titre du site",
'L_Inst_descnom' => "Description du site",
'L_Inst_confadmin' => "Configuration du compte Administrateur",
'L_Inst_roleAdmin' => "Administrateur",
'L_Inst_licence' => "Licence publique générale GNU",
'L_Inst_accepte' => "Oui j'ai lu et j'accepte les termes et conditions d'utilisation",
'L_Inst_succes' => "installé avec succés !",
'L_Inst_effacerinstall' => "N'oubliez pas d'effacer le dossier INSTALL de votre serveur !",
'L_Inst_admineffacer' => "(Possibilité de l'effacer via l'administration du site)",
'L_Inst_accessite' => "Accés au site",
// Installation -> Message d'erreur
'L_Inst_Msg_versionphp' => "Vous ne disposez pas de la version 5 de PHP.",
'L_Inst_Msg_erreur' => "ERREUR",
'L_Inst_Msg_repdata' => "Le dossier DATA n'a pas les droits appropriés. Il est en ", //espace
'L_Inst_Msg_motdepasse' => "Les deux mots de passe ne sont pas identiques !",
'L_Inst_Msg_mauvaisemail' => "Votre adresse email n'est pas conforme.",
'L_Inst_Msg_condition' => "Veuillez accepter les conditions !",
// Mot
'L_Mot_etape' => "Etape",
'L_Mot_preface' => "Préface",
'L_Mot_finalisation' => "Finalisation",
'L_Mot_remerciements' => "Remerciements",
'L_Mot_identifiant' => "Identifiant",
'L_Mot_motdepasse' => "Mot de passe",
'L_Mot_confmotdepasse' => "Confirmer mot de passe",
'L_Mot_mail' => "Email",
'L_Mot_suivant' => "Suivant",
'L_Mot_precedent' => "Précédent",
'login_msg_Layus' => "Vous entrez dans une zone d'accès sécurisée qui ne doit être utilisée uniquement par les personnes autorisées.",
);
?>

View file