Qware_core/install/index.php

110 lines
3.3 KiB
PHP
Executable File

<?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.
*
* Ce fichier contient la page d'installation de qware
*
* @author Rooty <www.rooty.me|rooty@rooty.me>
* @copyright Copyright &copy; 2009-2018, Rooty
* @since 2004/06/07
* @version 0.3
* @link www.rooty.me
* @package install
* @docreview Tristan <tristan@initiance.com> | 30-10-2005
*/
$QWARE_ROOT_PATH = "./../"; /* Path général du site */
$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 ...
#####################################################################################################
include($QWARE_ROOT_PATH."lib/system/dependancy.php");
include($PATH_INSTALL."check_lang.php");
include($PATH_INSTALL."do_install.php");
#####################################################################################################
### Inclusion du control d'installation
#####################################################################################################
// include($CONF_LIB_PATH."config/installcontrol.php.install");
/*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();
$message->addFile("install.ini", $QWARE_ROOT_PATH."data/message/".$language."/");
$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"/>
<title>Installation de Qware</title>
<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
*/
$file=new file($QWARE_ROOT_PATH."data/message/".$language."/licence.inc", "r");
echo $file->readAll();
?>
</textarea>
</div>
</form>
</div>
<script type="text/javascript">
//<![CDATA[
function recupelement(message){if(document.getElementById){document.getElementById("myform").helpdesc.value=message;}else if(document.all){document.all["myform"].helpdesc.value=message;}}
// ]]>
</script>
</body>
</html>