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";
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";
69ini_set(
"assert.active",1);
70assert_options(ASSERT_ACTIVE, 1);
71assert_options(ASSERT_WARNING, 1);
75 echo
"<hr>Assert Failed :
78 Code '$code'<br /><hr />";
80assert_options(ASSERT_CALLBACK,
'my_assert_handler');
91 $card_count=
$cn->get_array(
"select count(*),f_id ".
95 "group by f_id order by count(*) desc");
96 return $card_count[0][
'f_id'];
106for ($e_scan=0; $e_scan<
$maxscan; $e_scan++)
108 if (is_file(
'../scenario/'.
$scan[$e_scan])&&strpos(
$scan[$e_scan],
'.php')==
true)
111 $a_description=file(
'../scenario/'.
$scan[$e_scan]);
112 $max_description=count($a_description);
113 for (
$w=0;
$w<$max_description;
$w++)
115 if (strpos($a_description[
$w],
'@description:')==
true)
129$min=
$cn->get_value(
"select p_id from parm_periode order by p_start asc limit 1");
130$max=
$cn->get_value(
"select p_id from parm_periode order by p_start desc limit 1");
131printf (
"Max période %s Min période %s",
$max,
$min);
135 echo
"<h1>Test NOALYSS</h1>";
143 $get=
'test.php?'.http_build_query(array(
'script'=>
"all",
'gDossier'=>
$gDossierLogInput,
'description'=>
"Tous les scripts"));
146 echo
'<a href="'.$get.
'" target="_blank">';
150 echo
'<td>Tous les scripts</td>';
162 echo
'<a href="'.$get.
'" target="_blank">';
166 echo
'<td>'.$scenario[
$e][
'desc'].
'</td>';
174 $nb=
$http->get(
'nb_script',
"number",0);
176 $start_mem=memory_get_usage();
181 echo
'<h2> description = '.$scenario[
$nb][
"desc"].
'</h2>';
182 include
'../scenario/'.$scenario[
$nb][
'file'];
188 echo
"<p>start mem : ".$start_mem;
190 echo
"<p>end mem : ".$end_mem;
192 echo
"<p>Diff = ".($end_mem-$start_mem).
" bytes ";
193 echo
"<p>Diff = ".(round((
$end_mem-$start_mem)/1024, 2)).
" kbytes ";
194 echo
"<p>Diff = ".(round((
$end_mem-$start_mem)/1024/1024, 2)).
" Mbytes ";
196 echo
"<p>Execution script ".$script.
" time = ".(round((
$end_time-
$start_time), 4)).
" secondes</p>";
201 $get=
'test.php?'.http_build_query(array(
'script'=>
"all",
'gDossier'=>
$gDossierLogInput,
'nb_script'=>
$nb));
202 echo
'<a href="'.$get.
'" target="_blank">';
208 $start_mem=memory_get_usage();
212 echo
'<h1>'.$script.
"</h1>";
213 echo
'<p> description = '.$description.
'<p>';
214 include
'../scenario/'.$script;
219 echo
"<p>start mem : ".$start_mem;
221 echo
"<p>end mem : ".$end_mem;
223 echo
"<p>Diff = ".($end_mem-$start_mem).
" bytes ";
224 echo
"<p>Diff = ".(round((
$end_mem-$start_mem)/1024, 2)).
" kbytes ";
225 echo
"<p>Diff = ".(round((
$end_mem-$start_mem)/1024/1024, 2)).
" Mbytes ";
227 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)
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
if($gDossier==-1) $gDossierLogInput
my_assert_handler($file, $line, $code)
get_card_with_activity()
Return the card this most activities.
for($e_scan=0; $e_scan< $maxscan; $e_scan++) $script