home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Freeware / Programare / groupoffice-com-2.01 / doc / index.php
PHP Script  |  2004-03-08  |  1KB  |  42 lines

  1. <?php
  2. /*
  3. Copyright Intermesh 2003
  4. Author: Merijn Schering <mschering@intermesh.nl>
  5. Version: 1.0 Release date: 08 July 2003
  6.  
  7. This program is free software; you can redistribute it and/or modify it
  8. under the terms of the GNU General Public License as published by the
  9. Free Software Foundation; either version 2 of the License, or (at your
  10. option) any later version.
  11. */
  12.  
  13. require("../Group-Office.php");
  14. $GO_SECURITY->authenticate();
  15.  
  16. require($GO_LANGUAGE->get_language_file('preferences'));
  17.  
  18. if (!file_exists($GO_CONFIG->root_path.'doc'.$GO_CONFIG->slash.$GO_LANGUAGE->language))
  19. {
  20.     require($GO_CONFIG->class_path."filesystem.class.inc");
  21.     $fs = new filesystem();
  22.  
  23.     $page_title = $menu_manual;
  24.     require($GO_THEME->theme_path."simple_header.inc");
  25.     echo '<table border="0" width="100%" cellpadding="10"><tr><td align="center"><table border="0">';
  26.     echo '<tr><td><h2>'.$pref_language.':</h2><br /></td></tr>';
  27.     $folders = $fs->get_folders_sorted($GO_CONFIG->root_path.'doc', 'basename', 'asc');
  28.     while($folder = array_shift($folders))
  29.     {
  30.         if ($folder['name'] != 'CVS')
  31.         {
  32.             echo '<tr><td><a href="'.$GO_CONFIG->host.'doc'.$GO_CONFIG->slash.$folder['name'].'">'.$folder['name'].'</a></td></tr>';
  33.         }
  34.     }
  35.     echo '</table></td></tr></table>';
  36.     require($GO_THEME->theme_path."simple_footer.inc");
  37.  
  38. }else
  39. {
  40.     header('Location: '.$GO_CONFIG->host.'doc'.'/'.$GO_LANGUAGE->language.'/');
  41. }
  42. ?>