Changeset 1699 for trunk/popuphelp.php
- Timestamp:
- Jan 8, 2007, 1:16:10 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/popuphelp.php
r1072 r1699 43 43 include(PHPWG_ROOT_PATH.'include/page_header.php'); 44 44 45 $template->set_filenames( 46 array( 47 'help_content' => get_language_filepath('help/'.$_GET['page'].'.html') 48 ) 49 ); 45 if 46 ( 47 isset($_GET['page']) 48 and preg_match('/^[a-z_]*$/', $_GET['page']) 49 ) 50 { 51 $help_content = 52 @file_get_contents(get_language_filepath('help/'.$_GET['page'].'.html')); 53 54 if ($help_content == false) 55 { 56 $help_content = ''; 57 } 58 59 $help_content = trigger_event( 60 'get_popup_help_content', $help_content, $_GET['page']); 61 } 62 else 63 { 64 die('Hacking attempt!'); 65 } 50 66 51 67 $template->set_filenames(array('popuphelp' => 'popuphelp.tpl')); 52 68 53 $template->assign_var_from_handle('HELP_CONTENT', 'help_content'); 69 $template->assign_vars( 70 array 71 ( 72 'HELP_CONTENT' => $help_content 73 )); 54 74 55 75 // +-----------------------------------------------------------------------+ … … 60 80 61 81 include(PHPWG_ROOT_PATH.'include/page_tail.php'); 82 62 83 ?>
Note: See TracChangeset
for help on using the changeset viewer.