Ignore:
Timestamp:
03/11/11 11:18:38 (3 years ago)
Author:
fufroma
Message:

Correction : langue on enleve le flag.
Securité : deny access à http://panel-alternc/class/
Menulist dans /etc/alternc et plus dans /var/alternc/bureau/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • alternc/trunk/bureau/admin/menu.php

    r2871 r2872  
    3939 
    4040$MENUPATH="/var/alternc/bureau/admin/"; 
    41 $tt=@fopen("menulist.txt","rb"); 
    42 if ($tt) { 
    43   while (!feof ($tt)) { 
    44     $c=trim(fgets($tt,4096)); 
    45     if ($c && file_exists($MENUPATH.$c)) { 
    46       include($MENUPATH.$c); 
    47     } 
    48   } 
    49   fclose($tt); 
     41$file=file("/etc/alternc/menulist.txt", FILE_SKIP_EMPTY_LINES); 
     42foreach($file as $v) { 
     43  $v=trim($v); 
     44  if ( file_exists($MENUPATH.$v)) include($MENUPATH.$v); 
    5045} 
    51  
    5246?> 
    5347<p class="center"><a href="http://www.alternc.org" target="_blank"><img src="logo2.png" border="0" alt="AlternC" /></a> 
     
    5549<?php  
    5650echo "$L_VERSION"; 
    57 echo "</p><p class='center'>"; 
    58 foreach($locales as $l) { ?> 
    59   <a href="?setlang=<?php echo $l; ?>"><img alt='<?php __($l); ?>' src='images/flag_<?php echo $l;?>.png' /></a><?php 
    60 } 
    6151?> 
    6252</p> 
Note: See TracChangeset for help on using the changeset viewer.