<?PHP
/************************************************************************/
/* NPDS V : Net Portal Dynamic System .                                 */
/* ===========================                                          */
/*                                                                      */
/* This version name NPDS Copyright (c) 2001-2004 by Philippe Brunier   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
$local_path=""; $languageslist="";
if ($editor_mark) {$local_path="../";}
if ($module_mark) {$local_path="../../";}
$handle=opendir($local_path."manuels");
while ($file = readdir($handle)) {
   if ( (!ereg("[.]",$file)) ) {
      $languageslist .= "$file ";
   }
}
closedir($handle);
$file=fopen($local_path."cache/language.php", "w");
   fwrite($file, "<?PHP \$languageslist=\"".trim($languageslist)."\"; ?>");
fclose($file);
?>