home *** CD-ROM | disk | FTP | other *** search
- <?php /* $Id: index.php,v 1.6 2003/05/07 21:39:16 korinek Exp $ */
-
- $hid = dPgetParam( $_GET, 'hid', 'help.toc' );
-
- $inc = "{$AppUI->cfg['root_dir']}/modules/help/{$AppUI->user_locale}/$hid.hlp";
-
- if (!file_exists( $inc )) {
- $inc = "{$AppUI->cfg['root_dir']}/modules/help/en/$hid.hlp";
- if (!file_exists( $inc )) {
- $hid = "help.toc";
- $inc = "{$AppUI->cfg['root_dir']}/modules/help/{$AppUI->user_locale}/$hid.hlp";
- if (!file_exists( $inc )) {
- $inc = "{$AppUI->cfg['root_dir']}/modules/help/en/$hid.hlp";
- }
- }
- }
- if ($hid != 'help.toc') {
- echo '<a href="?m=help&dialog=1">' . $AppUI->_( 'index' ) . '</a>';
- }
- readfile( $inc );
- ?>