20require_once
'../include/constant.php';
22require_once NOALYSS_INCLUDE.
'/lib/ac_common.php';
34if (defined(
'MULTI') && MULTI == 0)
35 $version =
$rep->get_value(
'select val from repo_version');
41if ( isset (
$_POST[
"p_user"] ) )
46 Noalyss_user::clean_session(
$http->post(
"p_user"));
48 $User->Check(
false,
'LOGIN');
58 echo
h1(_(
"Version base de donneés incorrecte"));
59 echo
span(_(
'Un instant svp'));
60 echo
alert(_(
'Version de base de données incorrectes, vous devez mettre à jour'));
61 echo
"<META HTTP-EQUIV=\"REFRESH\" content=\"3;url=admin-noalyss.php??action=upgrade&sb=database\">";
64 if (defined(
'NOALYSS_CAPTCHA') && NOALYSS_CAPTCHA==
true)
66 include(
"securimage/securimage.php");
71 echo
alert(_(
'Code invalide'));
72 echo
"<META HTTP-EQUIV=\"REFRESH\" content=\"0;url=index.php\">";
76 if (
$User->get_access_mode()==
'PC')
79 $backurl=
'user_login.php?v='.microtime(
true);
80 if ( isset (
$_POST[
'backurl'])) {
81 $backurl=urldecode(
$_POST[
'backurl']);
83 echo
"<META HTTP-EQUIV=\"REFRESH\" content=\"0;url={$backurl}\">";
86 echo
"<META HTTP-EQUIV=\"REFRESH\" content=\"0;url=mobile.php\">";
101 echo
h1(_(
"Version base de donneés incorrecte"));
102 echo
span(_(
'Un instant svp'));
103 echo
alert(_(
'Version de base de données incorrectes, vous devez mettre à jour'));
104 echo
"<META HTTP-EQUIV=\"REFRESH\" content=\"3;url=admin-noalyss.php?action=upgrade&sb=database\">";
112 echo
"<META HTTP-EQUIV=\"REFRESH\" content=\"0;url=user_login.php?v=".microtime(
true).
"\">";
MaintenanceMode($p_file)
When you want to prevent users to connect, create a file in noalyss/ (NOALYSS_BASE) with the message ...
span($p_string, $p_extra='')
html_page_start($p_theme="", $p_script="", $p_script2="")
Default page header for each page.
h1($p_string, $p_class="")
alert($p_msg, $buffer=false)
alert in javascript
contains the class for connecting to Noalyss
for($e=0; $e< count($afiche); $e++) exit
if( $version !=DBVERSIONREPO) $User
Project: Securimage: A PHP class for creating and managing form CAPTCHA images File: securimage....