26require_once
'../include/constant.php';
27require_once NOALYSS_INCLUDE.
'/class/database.class.php';
28require_once NOALYSS_INCLUDE.
'/class/dossier.class.php';
29require_once NOALYSS_INCLUDE.
'/lib/ac_common.php';
30require_once NOALYSS_INCLUDE.
'/lib/function_javascript.php';
31require_once NOALYSS_INCLUDE.
'/class/extension.class.php';
32require_once NOALYSS_INCLUDE.
'/lib/html_input.class.php';
33require_once NOALYSS_INCLUDE.
'/lib/iselect.class.php';
34require_once NOALYSS_INCLUDE .
'/class/noalyss_user.class.php';
39$cn=Dossier::connect();
43$cn=Dossier::connect();
49if ( !
$g_user->is_double_identified()) {
58if (
$ext->search(
$http->request(
"plugin_code")) != -1 )
61 if ( !isset ($_SESSION[SESSION_KEY.
'g_user']) ||
$ext->can_request($_SESSION[SESSION_KEY.
'g_user']) == 0 )
65 define (
'ALLOWED',True);
68 $file_loginput=fopen($_ENV[
'TMP'].
'/plugin-export-'.
$ext->me_code.
'-'.$_SERVER[
'REQUEST_TIME'].
'.php',
'a+');
69 fwrite ($file_loginput,
"<?php \n");
70 fwrite ($file_loginput,
'//@description: export '.
$ext->me_code.
"\n");
71 fwrite($file_loginput,
'$_GET='.var_export(
$_GET,
true));
72 fwrite($file_loginput,
";\n");
73 fwrite($file_loginput,
'$_POST='.var_export(
$_POST,
true));
74 fwrite($file_loginput,
";\n");
75 fwrite($file_loginput,
'$_POST[\'gDossier\']=$gDossierLogInput;');
76 fwrite($file_loginput,
"\n");
77 fwrite($file_loginput,
'$_GET[\'gDossier\']=$gDossierLogInput;');
78 fwrite($file_loginput,
"\n");
79 fwrite($file_loginput,
' $_REQUEST=array_merge($_GET,$_POST);');
80 fwrite($file_loginput,
"\n");
82 $string=
'require_once "'.NOALYSS_PLUGIN.DIRECTORY_SEPARATOR.dirname(trim(
$ext->getp(
'me_file'))).DIRECTORY_SEPARATOR.
'raw.php'.
'";';
83 fwrite($file_loginput,sprintf(
"%s",
$string));
84 fwrite($file_loginput,
"\n");
85 fclose($file_loginput);
88 require_once NOALYSS_PLUGIN.DIRECTORY_SEPARATOR.dirname(trim(
$ext->getp(
'me_file'))).DIRECTORY_SEPARATOR.
'raw.php';
92 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
global $g_user
if no group available , then stop
_("actif, passif,charge,...")
manage the extension, it involves the table extension
Class to manage the company parameter (address, name...)
for($e=0; $e< count($afiche); $e++) exit
if(! $g_user->is_double_identified()) $only_plugin
check if 2FA is completed