28require_once
'../include/constant.php';
29require_once NOALYSS_INCLUDE.
'/lib/ac_common.php';
33require_once NOALYSS_INCLUDE.
'/class/database.class.php';
34require_once NOALYSS_INCLUDE .
'/class/noalyss_user.class.php';
35require_once NOALYSS_INCLUDE.
'/lib/http_input.class.php';
41if ( defined(
"noalyss_user") || defined(
"phpcompta_user")) {
48 header(
'Content-Type: text/javascript');
49 include_once NOALYSS_INCLUDE.
"/lib/message_javascript.php";
57mb_internal_encoding(
"UTF-8");
62if ( !
$g_user->is_double_identified()) {
72 echo
alert(
_(
'Accès interdit'));
82 $file_loginput=fopen($_ENV[
'TMP'].
'/export-'.
$prfile.
'-'.$_SERVER[
'REQUEST_TIME'].
'.php',
'a+');
83 fwrite ($file_loginput,
"<?php \n");
84 fwrite ($file_loginput,
'//@description: export '.
$prfile.
"\n");
85 fwrite($file_loginput,
'$_GET='.var_export(
$_GET,
true));
86 fwrite($file_loginput,
";\n");
87 fwrite($file_loginput,
'$_POST='.var_export(
$_POST,
true));
88 fwrite($file_loginput,
";\n");
89 fwrite($file_loginput,
'$_POST[\'gDossier\']=$gDossierLogInput;');
90 fwrite($file_loginput,
"\n");
91 fwrite($file_loginput,
'$_GET[\'gDossier\']=$gDossierLogInput;');
92 fwrite($file_loginput,
"\n");
93 fwrite($file_loginput,
' $_REQUEST=array_merge($_GET,$_POST);');
94 fwrite($file_loginput,
"\n");
95 fwrite($file_loginput,
' require_once NOALYSS_INCLUDE."/export/'.
$prfile.
'";');
96 fwrite($file_loginput,
"\n");
97 fclose($file_loginput);
100 if (
$prfile ==
"" || !file_exists(NOALYSS_INCLUDE.
"/export/$prfile")) {
102 die (
_(
'Export impossible'));
104 require_once NOALYSS_INCLUDE.
"/export/$prfile";
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.
alert($p_msg, $buffer=false)
alert in javascript
global $g_user
if no group available , then stop
_("actif, passif,charge,...")
contains the class for connecting to Noalyss
Class to manage the company parameter (address, name...)
if( $action=='X'|| $g_user->check_print($action)==0) $prfile
for($e=0; $e< count($afiche); $e++) exit
redirect( $p_string, $p_time=0)
redirect with javascript