32include_once(
"../include/constant.php");
33include_once(
"lib/ac_common.php");
34require_once(
'class/database.class.php');
35require_once (
'class/dossier.class.php');
36require_once(
'lib/html_input.class.php');
37require_once(
'lib/icon_action.class.php');
38require_once (
'lib/function_javascript.php');
39require_once
'class/noalyss_user.class.php';
40require_once NOALYSS_INCLUDE.
'/lib/http_input.class.php';
50 echo
" Vous devez donner le dossier avec paramètre gDossier dans l'url, exemple http://localhost/noalyss/html/test.php?gDossier=25";
55$cn=Dossier::connect();
60if (!file_exists(
'authorized_debug'))
62 echo
"Pour pouvoir utiliser ce fichier vous devez creer un fichier nomme authorized_debug
63 dans le repertoire html du server";
94 $card_count=
$cn->get_array(
"select count(*),f_id ".
98 "group by f_id order by count(*) desc");
99 return $card_count[0][
'f_id'];
109for ($e_scan=0; $e_scan<
$maxscan; $e_scan++)
111 if (is_file(
'../scenario/'.
$scan[$e_scan])&&strpos(
$scan[$e_scan],
'.php')==
true)
114 $a_description=file(
'../scenario/'.
$scan[$e_scan]);
115 $max_description=count($a_description);
116 for (
$w=0;
$w<$max_description;
$w++)
118 if (strpos($a_description[
$w],
'@description:')==
true)
132$min=
$cn->get_value(
"select p_id from parm_periode order by p_start asc limit 1");
133$max=
$cn->get_value(
"select p_id from parm_periode order by p_start desc limit 1");
134printf (
"Max période %s Min période %s",
$max,
$min);
138 echo
"<h1>Test NOALYSS</h1>";
146 $get=
'test.php?'.http_build_query(array(
'script'=>
"all",
'gDossier'=>
$gDossierLogInput,
'description'=>
"Tous les scripts"));
149 echo
'<a href="'.$get.
'" target="_blank">';
153 echo
'<td>Tous les scripts</td>';
165 echo
'<a href="'.$get.
'" target="_blank">';
169 echo
'<td>'.$scenario[
$e][
'desc'].
'</td>';
177 $nb=
$http->get(
'nb_script',
"number",0);
179 $start_mem=memory_get_usage();
184 echo
'<h2> description = '.$scenario[
$nb][
"desc"].
'</h2>';
185 include
'../scenario/'.$scenario[
$nb][
'file'];
191 echo
"<p>start mem : ".$start_mem;
193 echo
"<p>end mem : ".$end_mem;
195 echo
"<p>Diff = ".($end_mem-$start_mem).
" bytes ";
196 echo
"<p>Diff = ".(round((
$end_mem-$start_mem)/1024, 2)).
" kbytes ";
197 echo
"<p>Diff = ".(round((
$end_mem-$start_mem)/1024/1024, 2)).
" Mbytes ";
199 echo
"<p>Execution script ".$script.
" time = ".(round((
$end_time-
$start_time), 4)).
" secondes</p>";
204 $get=
'test.php?'.http_build_query(array(
'script'=>
"all",
'gDossier'=>
$gDossierLogInput,
'nb_script'=>
$nb));
205 echo
'<a href="'.$get.
'" target="_blank">';
211 $start_mem=memory_get_usage();
215 echo
'<h1>'.$script.
"</h1>";
216 echo
'<p> description = '.$description.
'<p>';
217 include
'../scenario/'.$script;
222 echo
"<p>start mem : ".$start_mem;
224 echo
"<p>end mem : ".$end_mem;
226 echo
"<p>Diff = ".($end_mem-$start_mem).
" bytes ";
227 echo
"<p>Diff = ".(round((
$end_mem-$start_mem)/1024, 2)).
" kbytes ";
228 echo
"<p>Diff = ".(round((
$end_mem-$start_mem)/1024/1024, 2)).
" Mbytes ";
230 echo
"<p>Execution script ".$script.
" time = ".(round((
$end_time-
$start_time), 4)).
" secondes</p>";
html_page_start($p_theme="", $p_script="", $p_script2="")
Default page header for each page.
noalyss_str_replace($search, $replace, $string)
global $g_user
if no group available , then stop
if($gDossier==-1) $gDossierLogInput
foreach($array as $idx=> $m) $w
Class to manage the company parameter (address, name...)
for($e=0; $e< count($afiche); $e++) exit
load_all_script()
load all the javascript only one time
get_card_with_activity()
Return the card this most activities.