2020-12-03 16:35:44 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**-----------------------------------------------
|
|
|
|
*
|
|
|
|
* Rooty, 2018 <rooty@rooty.me>
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* This software is protected by copyright, please
|
|
|
|
* read the file COPYRIGHT.
|
|
|
|
* This program is distributed in the hope that it
|
|
|
|
* will be useful, but without any warranty; without
|
|
|
|
* even the implied warranty of merchantability or
|
|
|
|
* fitness for a particular purpose. Please
|
|
|
|
* read the file LICENCE.
|
|
|
|
*
|
2020-12-07 13:28:14 +01:00
|
|
|
* Ce fichier contient la page d'installation de qware
|
2020-12-03 16:35:44 +01:00
|
|
|
*
|
|
|
|
* @author Rooty <www.rooty.me|rooty@rooty.me>
|
|
|
|
* @copyright Copyright © 2009-2018, Rooty
|
|
|
|
* @since 2004/06/07
|
|
|
|
* @version 0.3
|
|
|
|
* @link www.rooty.me
|
|
|
|
* @package install
|
|
|
|
* @docreview Tristan <tristan@initiance.com> | 30-10-2005
|
|
|
|
*/
|
|
|
|
|
2020-12-07 13:28:14 +01:00
|
|
|
$QWARE_ROOT_PATH = "./../"; /* Path général du site */
|
2020-12-03 16:35:44 +01:00
|
|
|
$CONF_LIB_PATH = "./../"; /* Path des libs */
|
|
|
|
$PATH_INSTALL = "./";
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Doit être déclaré pour que les librairies fonctionnent
|
|
|
|
*/
|
|
|
|
define('SYSTEM_IN', true);
|
|
|
|
|
|
|
|
#####################################################################################################
|
|
|
|
### Inclusion des libs chaine, xml, file, message et fonction de détection des langues ...
|
|
|
|
#####################################################################################################
|
2020-12-07 13:28:14 +01:00
|
|
|
include($QWARE_ROOT_PATH."lib/system/dependancy.php");
|
2020-12-03 16:35:44 +01:00
|
|
|
include($PATH_INSTALL."check_lang.php");
|
|
|
|
include($PATH_INSTALL."do_install.php");
|
|
|
|
|
|
|
|
#####################################################################################################
|
|
|
|
### Inclusion du control d'installation
|
|
|
|
#####################################################################################################
|
2020-12-15 00:15:31 +01:00
|
|
|
// include($CONF_LIB_PATH."config/installcontrol.php.install");
|
2020-12-03 16:35:44 +01:00
|
|
|
|
|
|
|
/*On récupère la langue détectée*/
|
|
|
|
$language = check_lang("install.ini");
|
|
|
|
/*On récupère les messages associés*/
|
|
|
|
$message = new SystemMessage();
|
2020-12-07 13:28:14 +01:00
|
|
|
$message->addFile("install.ini", $QWARE_ROOT_PATH."data/message/".$language."/");
|
2020-12-03 16:35:44 +01:00
|
|
|
|
|
|
|
$on = "on.png";
|
|
|
|
$off = "off.png";
|
|
|
|
$stepimg ="step.png";
|
|
|
|
$help ="help.png";
|
|
|
|
$etat = 0;
|
|
|
|
|
|
|
|
if(isset($_GET['step']))
|
|
|
|
{
|
|
|
|
$step = $_GET['step'];
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$step = 0;
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<!DOCTYPE html
|
|
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
|
|
<meta http-equiv="Content-Style-Type" content="text/css"/>
|
2020-12-07 13:28:14 +01:00
|
|
|
<title>Installation de Qware</title>
|
2020-12-03 16:35:44 +01:00
|
|
|
<style type="text/css">
|
|
|
|
@import url(media/install.css);
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body class="install_body">
|
|
|
|
<div id="application">
|
|
|
|
<div id="top"> </div>
|
|
|
|
<div id="data"><?php echo main($step);?></div>
|
|
|
|
|
|
|
|
<hr class="clean" />
|
|
|
|
<!--- formulaire "d'affichage de la license" //-->
|
|
|
|
<form id="frmLicense" action="#">
|
|
|
|
<div id="divLicense">
|
|
|
|
<label for="license">Licence : </label>
|
|
|
|
<textarea name="license" id="license" readonly="readonly" cols="40" rows="5">
|
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* récupération de la licence GPL
|
|
|
|
*/
|
2020-12-07 13:28:14 +01:00
|
|
|
$file=new file($QWARE_ROOT_PATH."data/message/".$language."/licence.inc", "r");
|
2020-12-03 16:35:44 +01:00
|
|
|
echo $file->readAll();
|
|
|
|
?>
|
|
|
|
</textarea>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
2020-12-15 00:15:31 +01:00
|
|
|
//<![CDATA[
|
|
|
|
function recupelement(message){if(document.getElementById){document.getElementById("myform").helpdesc.value=message;}else if(document.all){document.all["myform"].helpdesc.value=message;}}
|
|
|
|
// ]]>
|
2020-12-03 16:35:44 +01:00
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|