AEOS Calvarium v0.5
This commit is contained in:
parent
57b531cb62
commit
1fa8b9e152
177 changed files with 2936 additions and 3386 deletions
81
install/index.php
Executable file → Normal file
81
install/index.php
Executable file → Normal 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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue