adding menulist fopen check
This commit is contained in:
parent
a24cc93d6c
commit
2441ba9936
|
@ -38,14 +38,16 @@ require_once("../class/config.php");
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$MENUPATH="/var/alternc/bureau/admin/";
|
$MENUPATH="/var/alternc/bureau/admin/";
|
||||||
$tt=fopen("menulist.txt","rb");
|
$tt=@fopen("menulist.txt","rb");
|
||||||
while (!feof ($tt)) {
|
if ($tt) {
|
||||||
|
while (!feof ($tt)) {
|
||||||
$c=trim(fgets($tt,4096));
|
$c=trim(fgets($tt,4096));
|
||||||
if ($c && file_exists($MENUPATH.$c)) {
|
if ($c && file_exists($MENUPATH.$c)) {
|
||||||
include($MENUPATH.$c);
|
include($MENUPATH.$c);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
fclose($tt);
|
||||||
}
|
}
|
||||||
fclose($tt);
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<p class="center"><a href="http://www.alternc.org" target="_blank"><img src="logo2.png" border="0" alt="" /></a>
|
<p class="center"><a href="http://www.alternc.org" target="_blank"><img src="logo2.png" border="0" alt="" /></a>
|
||||||
|
|
Loading…
Reference in New Issue