15if ( ! defined (
'ALLOWED') ) define (
'ALLOWED',1);
16require_once
'../include/constant.php';
17require_once NOALYSS_INCLUDE.
'/lib/ac_common.php';
18require_once NOALYSS_INCLUDE.
'/class/database.class.php';
19require_once NOALYSS_INCLUDE.
'/lib/icon_action.class.php';
20require_once NOALYSS_INCLUDE .
'/class/noalyss_user.class.php';
21require_once NOALYSS_INCLUDE.
'/class/extension.class.php';
24require_once NOALYSS_INCLUDE.
'/class/noalyss_parameter_folder.class.php';
25mb_internal_encoding(
"UTF-8");
29if ( ! isset($_SESSION[SESSION_KEY.
"g_user"])) {
46 $file_loginput=fopen($_ENV[
'TMP'].
'/scenario-'.$_SERVER[
'REQUEST_TIME'].
'.php',
'a+');
47 fwrite ($file_loginput,
"<?php \n");
48 fwrite ($file_loginput,
'//@description:'.
$_REQUEST[
'plugin_code'].
"\n");
49 fwrite($file_loginput,
'$_GET='.var_export(
$_GET,
true));
50 fwrite($file_loginput,
";\n");
51 fwrite($file_loginput,
'$_POST='.var_export(
$_POST,
true));
52 fwrite($file_loginput,
";\n");
53 fwrite($file_loginput,
'$_POST[\'gDossier\']=$gDossierLogInput;');
54 fwrite($file_loginput,
"\n");
55 fwrite($file_loginput,
'$_GET[\'gDossier\']=$gDossierLogInput;');
56 fwrite($file_loginput,
"\n");
57 fwrite($file_loginput,
' $_REQUEST=array_merge($_GET,$_POST);');
58 fwrite($file_loginput,
"\n");
59 fwrite($file_loginput,
"include '".basename(__FILE__).
"';\n");
60 fclose($file_loginput);
68 if ( !isset ($_SESSION[SESSION_KEY.
'g_user']) ||
$ext->can_request($_SESSION[SESSION_KEY.
'g_user']) == 0 )
73 require_once(NOALYSS_PLUGIN.DIRECTORY_SEPARATOR.dirname(trim(
$ext->getp(
'me_file'))).DIRECTORY_SEPARATOR.
'ajax.php');
77 alert(
j(_(
"Cette extension n'existe pas ")));
MaintenanceMode($p_file)
When you want to prevent users to connect, create a file in noalyss/ (NOALYSS_BASE) with the message ...
set_language()
set the lang thanks the _SESSION['g_lang'] var.
j($p_string)
escape correctly php string to javascript
alert($p_msg, $buffer=false)
alert in javascript
if(! isset($_SESSION[SESSION_KEY."g_user"])) global $cn
if(! isset($_SESSION[SESSION_KEY."g_user"])) global $g_user
if not connected, session is expired then exit with a message NOCONX
if(! isset($_SESSION[SESSION_KEY."g_user"])) global $g_parameter
manage the extension, it involves the table extension
static set_firstDate($firstDate)
Class to manage the company parameter (address, name...)
for($e=0; $e< count($afiche); $e++) exit