home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Freeware / Programare / dotproject / modules / help / index.php < prev   
Encoding:
PHP Script  |  2003-05-08  |  660 b   |  21 lines

  1. <?php /* $Id: index.php,v 1.6 2003/05/07 21:39:16 korinek Exp $ */
  2.  
  3. $hid = dPgetParam( $_GET, 'hid', 'help.toc' );
  4.  
  5. $inc = "{$AppUI->cfg['root_dir']}/modules/help/{$AppUI->user_locale}/$hid.hlp";
  6.  
  7. if (!file_exists( $inc )) {
  8.     $inc = "{$AppUI->cfg['root_dir']}/modules/help/en/$hid.hlp";
  9.     if (!file_exists( $inc )) {
  10.         $hid = "help.toc";
  11.         $inc = "{$AppUI->cfg['root_dir']}/modules/help/{$AppUI->user_locale}/$hid.hlp";
  12.         if (!file_exists( $inc )) {
  13.           $inc = "{$AppUI->cfg['root_dir']}/modules/help/en/$hid.hlp";
  14.         }
  15.     }
  16. }
  17. if ($hid != 'help.toc') {
  18.     echo '<a href="?m=help&dialog=1">' . $AppUI->_( 'index' ) . '</a>';
  19. }
  20. readfile( $inc );
  21. ?>