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();
52if (
$ext->search(
$http->request(
"plugin_code")) != -1 )
55 if ( !isset ($_SESSION[SESSION_KEY.
'g_user']) ||
$ext->can_request($_SESSION[SESSION_KEY.
'g_user']) == 0 )
59 define (
'ALLOWED',True);
62 $file_loginput=fopen($_ENV[
'TMP'].
'/plugin-export-'.
$ext->me_code.
'-'.$_SERVER[
'REQUEST_TIME'].
'.php',
'a+');
63 fwrite ($file_loginput,
"<?php \n");
64 fwrite ($file_loginput,
'//@description: export '.
$ext->me_code.
"\n");
65 fwrite($file_loginput,
'$_GET='.var_export(
$_GET,
true));
66 fwrite($file_loginput,
";\n");
67 fwrite($file_loginput,
'$_POST='.var_export(
$_POST,
true));
68 fwrite($file_loginput,
";\n");
69 fwrite($file_loginput,
'$_POST[\'gDossier\']=$gDossierLogInput;');
70 fwrite($file_loginput,
"\n");
71 fwrite($file_loginput,
'$_GET[\'gDossier\']=$gDossierLogInput;');
72 fwrite($file_loginput,
"\n");
73 fwrite($file_loginput,
' $_REQUEST=array_merge($_GET,$_POST);');
74 fwrite($file_loginput,
"\n");
75 fclose($file_loginput);
78 require_once NOALYSS_PLUGIN.DIRECTORY_SEPARATOR.dirname(trim(
$ext->getp(
'me_file'))).DIRECTORY_SEPARATOR.
'raw.php';
82 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