AEOS Calvarium v0.1a

This commit is contained in:
OverSu 2026-08-26 17:21:47 +02:00
commit 37d5452518
56 changed files with 2081 additions and 0 deletions

19
install/base.xml Normal file
View file

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<configuration>
<nom_site/>
<description_site/>
<login_admin>kghk</login_admin>
<email_admin>ghj@k.kcom</email_admin>
<mdp_admin>aa36dc6e81e2ac7ad03e12fedcb6a2c0</mdp_admin>
<accueil>1</accueil>
<theme>defaut</theme>
<contentd>0</contentd>
<version>0.1a</version>
<maintenance>off</maintenance>
<message>Votre site est actuellement en maintenance. &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Merci de revenir plus tard !</message>
<footer>Copyright © 2011 N.n.S Production. Tous droits réservés. &lt;br /&gt;&lt;a href="http://nekonosekai.com"&gt;AEOS&lt;/a&gt; est un logiciel libre sous licence GNU/GPL.</footer>
</configuration>

238
install/index.php Normal file
View file

@ -0,0 +1,238 @@
<?php
ob_start();
if (file_exists("../data/config.xml")){header('Location: ../index.php');}
require_once ('../lib/aeos.lib.php');
?>
<!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>AEOS | Installation</title>
<link rel="stylesheet" type="text/css" media="screen" href="../themes/defaut/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="content">
<div id="center">
<div id="left">NNSPROD LOGO</div>
<h6><img src="../themes/defaut/images/icones/config.png" alt="Install" class="icon" />Installation - AEOS</h6>
<table class="tableCenter">
<tr>
<?php
!isset($_GET['etape'])?$etape=0:$etape=$_GET['etape'];
$PHPVersion = phpversion();
$PHPv = explode (".", $PHPVersion);
switch ($etape)
{
// Pré-installation
case 0: ?>
<td class="menu">
<ul class="listing">
<li id="actif">Preface</li>
<li class="onglet">Etape 1</li>
<li class="onglet">Etape 2</li>
<li class="onglet">Etape 3</li>
<li class="onglet">Etape 4</li>
</ul>
</td>
<td rowspan="2" class="blocD">
<form method="post" action="index.php?etape=1">
<h2>Préface d'installation</h2>
<h3>AEOS 0.1 Alpha [CALVARIUM]</h3>
<p>
Bienvenue sur l'assistant d'installation d'AEOS [CALVARIUM] !<br />
Veuillez suivre les étapes et valider avec la touche "suivant" afin de progresser.<br /><br />
<b>Prérequis:</b><br /><br />
PHP version >= 5.x.x
<?php
if ($PHPv[0]>=5) {echo "<span class='validation'>OK</span><br />";}
else {$erreur="Vous ne disposez pas de la version 5 de PHP."; echo "<span class='erreur'>ERREUR</span><br />";}
?>
Possibilité d'écrire dans le dossier DATA
<?php
$chmod_data = substr(sprintf('%o', fileperms('../data')), -4);
if ($chmod_data<"0700"){$erreur="Le dossier DATA n'a pas les droits appropriés. Il est en ".$chmod_data; echo "<span class='erreur'>ERREUR</span>";}
else {echo "<span class='validation'>OK</span>";}
?>
<?php
if (isset($erreur))
{
echo "<br /><span class='erreur2'>".$erreur."</span>";
?><br /><input type="submit" value="Suivant" class="input" id="input1" disabled="disabled" /><?php
}
else
{ ?>
<br /><br /><input type="submit" value="Suivant" class="input" id="input1" /><?php
} ?>
</p>
</form>
</td>
<?php
break;
// Etape 1
case 1:
?>
<td class="menu">
<ul class="listing">
<li class="onglet">Preface</li>
<li id="actif">Etape 1</li>
<li class="onglet">Etape 2</li>
<li class="onglet">Etape 3</li>
<li class="onglet">Etape 4</li>
</ul>
</td>
<td rowspan="2" class="blocD">
<form method="post" action="index.php?etape=2">
<h2>Etape 1</h2>
<h3>Configuration générale</h3>
<p>
Titre du site<br />
<input class="textWidth" type="text" name="titre" /><br /><br />
Description du site<br />
<textarea class="textWidth" name="description" rows="1" cols="1" class="input"></textarea>
<input type="button" value="Précédent" onclick="javascript:history.back();" class="input" id="input2" />
<input type="submit" value="Suivant" class="input" id="input1" />
</p>
</form>
</td>
<?php
break;
// Etape 2
case 2:
?>
<td class="menu">
<ul class="listing">
<li class="onglet">Preface</li>
<li class="onglet">Etape 1</li>
<li id="actif">Etape 2</li>
<li class="onglet">Etape 3</li>
<li class="onglet">Etape 4</li>
</ul>
</td>
<td rowspan="2" class="blocD">
<form method="post" action="index.php?etape=3">
<h2>Etape 2</h2>
<h3>Configuration du compte Administrateur</h3>
<p>
Identifiant: <input type="text" style="float:right; border:1px solid #219AD2;" name="login_admin" /><br /><br />
Mot de passe: <input type="password" style="float:right; border:1px solid #219AD2;" name="mdp_admin" /><br /><br />
Confirmer mot de passe: <input type="password" style="float:right; border:1px solid #219AD2;" name="mdp_confirme_admin" /><br /><br />
eMail: <input type="text" style="float:right; border:1px solid #219AD2;" name="email_admin" /><br /><br />
<?php
if(!isset($_GET['erreur']))
{
ecriture_xml('base.xml', 'nom_site', $_POST['titre']);
ecriture_xml('base.xml', 'description_site', $_POST['description']);
}
if (@$_GET['erreur']==1) echo "<span class='erreur2'>Les deux mots de passe ne sont pas identiques !</span><br />";
elseif (@$_GET['erreur']==2) echo "<span class='erreur2'>Votre adresse email n'est pas conforme.</span><br />";
?>
<input type="button" value="Précédent" onclick="javascript:history.back();" class="input" id="input2" />
<input type="submit" value="Suivant" class="input" id="input1" />
</p>
</form>
</td>
<?php
break;
// Etape 3
case 3:
?>
<td class="menu">
<ul class="listing">
<li class="onglet">Preface</li>
<li class="onglet">Etape 1</li>
<li class="onglet">Etape 2</li>
<li id="actif">Etape 3</li>
<li class="onglet">Etape 4</li>
</ul>
</td>
<td rowspan="2" class="blocD">
<form method="post" action="index.php?etape=4">
<h2>Etape 3</h2>
<h3>Licence publique générale GNU</h3>
<?php if (@$_GET['erreur']==1) echo "<span class='erreur2'>Veuillez accepter les conditions !</span><br />";
elseif (isset($_POST['mdp_admin']) && md5($_POST['mdp_admin']) != md5($_POST['mdp_confirme_admin']))
{
@header('Location:index.php?etape=2&erreur=1');
}
elseif (checkMail($_POST['email_admin'])==FALSE)
{
@header('Location:index.php?etape=2&erreur=2');
}
else
{
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']);
}
}?>
<p>
<textarea class="textWidth" style="height:90px;" cols="0" rows="0"><?php include('../licence.txt'); ?></textarea><br />
<input type="checkbox" name="conditions" /> Oui j'ai lu et j'accepte les termes et conditions d'utilisation
<input type="button" value="Précédent" onclick="javascript:history.back();" class="input" id="input2" />
<input type="submit" value="Suivant" class="input" id="input1" />
</p>
</form>
</td>
<?php
break;
// Etape 4
case 4:
if (!isset($_POST['conditions']) || (@$_POST['conditions']!="on"))
{
@header('Location: index.php?etape=3&erreur=1');
} ?>
<td class="menu">
<ul class="listing">
<li class="onglet">Preface</li>
<li class="onglet">Etape 1</li>
<li class="onglet">Etape 2</li>
<li class="onglet">Etape 3</li>
<li id="actif">Etape 4</li>
</ul>
</td>
<td rowspan="2" class="blocD">
<form method="post" action="../index.php">
<h2>Etape 4</h2>
<h3>Finalisation</h3>
<?php
copy("base.xml", "../data/config.xml");
unlink("base.xml");
?>
<p>
<b>AEOS 0.1 Alpha [CALVARIUM]</b> installé avec succés !<br /><br />
<span class="erreur2">N'oubliez pas d'effacer le dossier INSTALL de votre serveur !</span><br />
(Vous avez la possibilité de l'effacer via l'administration du site)<br /><br />
<b>Remerciements:</b><br />
N.n.S Production, PHP.NET
<input type="submit" value="Accés au site" class="input" id="input1" />
</p>
</form>
</td>
<?php
break;
} ?>
</tr>
<tr>
<td style="background:none;">
</td>
</tr>
</table>
</div>
</div>
</body>
</html>
<?php ob_end_flush(); ?>

25
install/install.css Normal file
View file

@ -0,0 +1,25 @@
/*
Utilisation de la CSS de base du thème defaut.
*/
table {margin-top:10px;}
td {background-color:#A0D2FC;}
h2 {font-weight:bold; font-size:16px;}
h3 {font-weight:bold; font-size:14px;}
p {text-align:left; margin:0 5px 0 5px; padding:4px; color:#0E6696;}
li {list-style-type:none; background-color:#79C0FB; border:1px solid #0E6696;}
.validation {font-weight:bold; color:green; float:right;}
.erreur {font-weight:bold; color:red; float:right;}
.erreur2 {font-weight:bold; color:red;}
.menu {height:55px; width:90px; background:none;}
.listing {margin:1px 0 0 0;}
.blocD {width:400px; border:1px solid #0E6696;}
.textWidth {width:375px; border:1px solid #219AD2;}
#actif {height:20px; padding:8px 7px 0 7px; margin:-2px 0 4px 0; border:1px solid white; font-weight:bold;}
.onglet {height:20px; padding:8px 7px 0 7px; margin:-2px 0 4px 0;}
#input1 {float:right; margin:5px -5px 5px 5px;}
#input2 {float:left; margin:5px 5px 5px -5px;}
#center {height: 300px;}
.tableCenter {margin:0 auto 0; width:510px;}