From 94d40c0eabf5c7be4e3fcf3b50b37c38e1dfaa65 Mon Sep 17 00:00:00 2001 From: nikrou Date: Sun, 18 Apr 2010 18:59:37 +0000 Subject: Bug 1617 fixed : help page is displayed in current theme in public or admin pages git-svn-id: http://piwigo.org/svn/trunk@5920 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/popuphelp.php | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 admin/popuphelp.php (limited to 'admin/popuphelp.php') diff --git a/admin/popuphelp.php b/admin/popuphelp.php new file mode 100644 index 000000000..962b2b578 --- /dev/null +++ b/admin/popuphelp.php @@ -0,0 +1,82 @@ +'.$title.''; +$page['meta_robots']=array('noindex'=>1, 'nofollow'=>1); +include(PHPWG_ROOT_PATH.'include/page_header.php'); + +if + ( + isset($_GET['page']) + and preg_match('/^[a-z_]*$/', $_GET['page']) + ) +{ + $help_content = + load_language('help/'.$_GET['page'].'.html', '', array('return'=>true) ); + + if ($help_content == false) + { + $help_content = ''; + } + + $help_content = trigger_event( + 'get_popup_help_content', $help_content, $_GET['page']); +} +else +{ + die('Hacking attempt!'); +} + +$template->set_filename('popuphelp','popuphelp.tpl'); + +$template->assign( + array + ( + 'HELP_CONTENT' => $help_content + )); + +// +-----------------------------------------------------------------------+ +// | html code display | +// +-----------------------------------------------------------------------+ + +$template->pparse('popuphelp'); + +include(PHPWG_ROOT_PATH.'include/page_tail.php'); + +?> \ No newline at end of file -- cgit v1.2.3