35require_once
'../include/constant.php';
36require_once NOALYSS_INCLUDE.
'/lib/ac_common.php';
41if ( ! isset($_SESSION[SESSION_KEY.
"g_user"])) {
62if ( isset($_SESSION[SESSION_KEY.
'isValid']) && $_SESSION[SESSION_KEY.
'isValid'] == 1)
64 $jrn=
$hi->get(
'j',
"number",
'-1');
65 $d=
$hi->get(
'd',
"string",
'');
70 if ( strpos($d,
'sql') ==
false )
76 $filter_jrn=
$cn->make_list(
"select jrn_def_fiche_cred from jrn_def where jrn_def_id=$1",array(
$jrn));
77 $filter_card=($filter_jrn !=
"")?
" and fd_id in ($filter_jrn)":
' and false ';
81 $filter_jrn=
$cn->make_list(
"select jrn_def_fiche_deb from jrn_def where jrn_def_id=$1",array(
$jrn));
82 $filter_card=($filter_jrn !=
"")?
" and fd_id in ($filter_jrn)":
' and false ';
88 $get_cred=
'jrn_def_fiche_cred';
89 $get_deb=
'jrn_def_fiche_deb';
90 $deb=
$cn->get_value(
"select $get_deb from jrn_def where jrn_def_id=$1",array(
$jrn));
91 $cred=
$cn->get_value(
"select $get_cred from jrn_def where jrn_def_id=$1",array(
$jrn));
102 $filter_card=($filter_jrn !=
"")?
" and fd_id in ($filter_jrn)":
' and false ';
109 $d= ( empty($d) )?-1:$d;
118 $sql=
"select vw_name,vw_first_name,vw_addr,vw_cp,vw_buy,vw_sell,tva_id
126 echo
'{"answer":"nok","flabel":"'.$fLabel.
'"}';
135 $tva_id=
$array[0][
'tva_id'];
149 $tmp[
'tva_id']=$tva_id;
158 $a=
'{"answer":"unauthorized"}';
159header(
"Content-type: text/html; charset: utf8",
true);
MaintenanceMode($p_file)
When you want to prevent users to connect, create a file in noalyss/ (NOALYSS_BASE) with the message ...
noalyss_str_replace($search, $replace, $string)
sql_string($p_string)
Fix the problem with the quote char for the database.
set_language()
set the lang thanks the _SESSION['g_lang'] var.
Data & function about connected users.
for($e=0; $e< count($afiche); $e++) exit
if(! isset($_SESSION[SESSION_KEY."g_user"])) $gDossier
if not connected, session is expired then exit with a message NOCONX
if(isset($_SESSION[SESSION_KEY. 'isValid']) && $_SESSION[SESSION_KEY. 'isValid']==1) else $a
if( $delta< 0) elseif( $delta==0)
for($i=0;$i< $nb_jrn;$i++) $deb