138if (!file_exists(
'..'.DIRECTORY_SEPARATOR.
'include'.DIRECTORY_SEPARATOR.
'config.inc.php') )
143window.location=
"install.php";
147 header(
"Location: install.php",
true, 307);
153echo
'<!doctype html><HTML>
155<TITLE> NOALYSS </TITLE>
156<link rel="shortcut icon" type="image/ico" href="favicon.ico" />
157<meta name="viewport" content="width=device-width, initial-scale=1.0">
158<meta charset="UTF-8">
159<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" media="screen">
160<link rel="stylesheet" type="text/css" href="css/index.css" media="screen">
161<script src="js/prototype.js" type="text/javascript"></script>
162<script src="js/noalyss_script.js" type="text/javascript"></script>
166require_once
'../include/constant.php';
167require_once
'../include/config.inc.php';
168require_once NOALYSS_INCLUDE.
'/lib/ac_common.php';
171if ( file_exists(
"install.php")&& DEBUGNOALYSS == 0 )
174 if (isset(
$_GET[
'remove_install']))
176 if (is_writable(__DIR__.
"/install.php"))
178 unlink(__DIR__.
"/install.php");
182 if (file_exists(
"install.php"))
188 printf(_(
"Le fichier %s/install.php est encore présent, après l'avoir exécuté pour vous mettre à jour, vous devez l'effacer."),
191 echo _(
"Tant que ce n'est pas fait, vous ne pouvez pas utiliser NOALYSS");
200if ( DEBUGNOALYSS == 2 )
203<div
class=
"d-none d-sm-block d-md-none d-lg-none d-xl-none bg-info">Small</div>
204<div
class=
"d-none d-md-block d-lg-none bg-info">Medium</div>
205<div
class=
"d-none d-lg-block d-xl-none bg-info">Large</div>
206<div
class=
"d-none d-xl-block bg-info">X Large</div>
215if (defined(
"RECOVER")&&isset(
$_REQUEST[
'recover']))
217 require_once
'../include/recover.php';
223 $goto=
'<input type="hidden" value="'.strip_tags(
$_REQUEST[
'backurl']).
'" name="backurl">';
227 <div
class=
"d-sm-block">
228 <a href=
"https://www.noalyss.eu"><IMG SRC=
"image/logo9000.png" id=
"logo_id" alt=
"NOALYSS"></a>
231 <div
class=
"container">
233 <div
class=
"mx-auto" id=
"login_div" style=
"margin-top:10%">
234 <
h1 style=
"text-align: center;color:darkblue;font-weight: 800">NOALYSS</
h1>
235 <form
id=
"login_frm" action=
"login.php" method=
"post" name=
"loginform" class=
"p-sm-3" >
239 <div
class=
"form-group row ">
240 <input
type=
"text" class=
"input_text " value=
"" id=
"p_user" name=
"p_user" autofocus tabindex=
"1" placeholder=
"User" style=
"padding:10px;margin:15px" >
243 <div
class=
"form-group row">
244 <INPUT TYPE=
"PASSWORD" class=
"input_text" value=
"" id=
"p_pass" NAME=
"p_pass" tabindex=
"2" placeholder=
"*******" style=
"padding:10px;margin:15px;">
249 if (defined(
'NOALYSS_CAPTCHA') && NOALYSS_CAPTCHA==
true) :
251 <div
class=
"form-group row justify-content-center">
252 Indiquer le code que vous lisez dans l
'image
253 <img id="captcha" src="securimage/securimage_show.php" alt="CAPTCHA Image" border=1/>
255 <input type="text" class="input_text" name="captcha_code" size="10" maxlength="6" autocomplete="off"/>
256 <a href="#" onclick="document.getElementById('captcha
').src = 'securimage/securimage_show.php?
' + Math.random(); return false">Reload Image</a>
261 <div class="form-group row justify-content-center">
262 <INPUT TYPE="SUBMIT" class="button" style="width:91%;height:53px" NAME="login" value="se connecter">
267 <?php if (defined("RECOVER")) : ?>
268 <a id="recover_link" href="#">Mot de passe oublié ? </a>
270 <div id="recover_box">
271 <span style="display:block;font-size:120%;background-color: white;margin:0px">Recouvrement identifiant
272 <span style="cursor: pointer;float: right;position:relative;right:0px" id="close">
273 <a ref="#" id="close_link">×</a></span>
275 Indiquez votre login ou votre email
276 <form method="POST" style="padding:20px">
277 <input type="hidden" value="send_email" name="id">
278 <input type="hidden" value="recover" name="recover" >
279 <div class="form-group row ">
280 <label for="login">Login</label>
281 <input type="text" class="input_text " value="" name="login" placeholder="login" nohistory >
284 <div class="mx-auto info" style="background-color: darkgray;text-align: center;">OU </div>
285 <div class="form-group row ">
286 <label for="email">e-mail</label>
288 <input type="text" class="input_text" name="email" nohistory placeholder="email@domain.eu">
290 <input type="submit" class="button" name="send_email" value="Envoi email">
291 <input type="button" class="button" id="close_link_bt" value="Annuler">
295 document.getElementById('recover_link
').onclick = function () {
296 document.getElementById('recover_box
').style.display = "block";
298 document.getElementById('close_link
').onclick = function () {
299 document.getElementById('recover_box
').style.display = "none";
301 document.getElementById('close_link_bt
').onclick = function () {
302 document.getElementById('recover_box
').style.display = "none";
307 <span id="info_noalyss">
308 version <?=NOALYSS_VERSION?> - <?php echo $my_domain; ?>
314 <script> SetFocus('p_user
');</script>
MaintenanceMode($p_file)
When you want to prevent users to connect, create a file in noalyss/ (NOALYSS_BASE) with the message ...
h1($p_string, $p_class="")
for($e=0; $e< count($afiche); $e++) exit
if(file_exists("install.php")&&DEBUGNOALYSS==0) if(DEBUGNOALYSS==2) if(strlen(domaine)>0) if(defined("RECOVER")&&isset($_REQUEST['recover'])) $goto
Debug Design.