Fix test
This commit is contained in:
parent
3b5c13d3e6
commit
0c27182c6a
@ -62,11 +62,26 @@ if ($dolibarr_main_prod) {
|
|||||||
* View
|
* View
|
||||||
*/
|
*/
|
||||||
|
|
||||||
print 'session_status='.session_status().' (after main.inc.php)';
|
echo "Test<br>\n";
|
||||||
print '<br>';
|
$out='';
|
||||||
|
$ret=0;
|
||||||
|
|
||||||
//print 'a'.$_SESSION['disablemodules'].'b';
|
$file = '/tmp/aaa';
|
||||||
|
$f=fopen($file, 'r');
|
||||||
|
if ($f) {
|
||||||
|
$s=fread($f, 4096);
|
||||||
|
print $s;
|
||||||
|
fclose($f);
|
||||||
|
} else {
|
||||||
|
print "Failed to open file ".$file."<br>\n";
|
||||||
|
}
|
||||||
|
|
||||||
print "\n<br>This page is visible. It means you are not locked by another page called in same session.";
|
exec('ls /dev/std*; sleep 1;', $out, $ret);
|
||||||
|
print $ret."<br>\n";
|
||||||
|
print_r($out);
|
||||||
|
|
||||||
//session_write_close();
|
$ret = 0;
|
||||||
|
$out = null;
|
||||||
|
exec('/usr/bin/clamdscan --fdpass filethatdoesnotexists.php', $out, $ret);
|
||||||
|
print $ret."<br>\n";
|
||||||
|
print_r($out);
|
||||||
|
|||||||
@ -62,24 +62,11 @@ if ($dolibarr_main_prod) {
|
|||||||
* View
|
* View
|
||||||
*/
|
*/
|
||||||
|
|
||||||
echo "Test\n";
|
print 'session_status='.session_status().' (after main.inc.php)';
|
||||||
$out='';
|
print '<br>';
|
||||||
$ret=0;
|
|
||||||
|
|
||||||
$file = '/tmp/aaa';
|
//print 'a'.$_SESSION['disablemodules'].'b';
|
||||||
$f=fopen($file, 'r');
|
|
||||||
if ($f) {
|
|
||||||
$s=fread($f, 4096);
|
|
||||||
print $s;
|
|
||||||
fclose($f);
|
|
||||||
} else {
|
|
||||||
print "Failed to open file ".$file."\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
exec('ls /dev/std*; sleep 1;', $out, $ret);
|
print "\n<br>This page is visible. It means you are not locked by another page called in same session.";
|
||||||
var_dump($ret);
|
|
||||||
var_dump($out);
|
|
||||||
|
|
||||||
exec('/usr/bin/clamdscan --fdpass filethatdoesnotexists.php', $out, $ret);
|
//session_write_close();
|
||||||
var_dump($ret);
|
|
||||||
var_dump($out);
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user