source: trunk/popuphelp.php @ 29826

Last change on this file since 29826 was 28587, checked in by mistic100, 10 years ago

feature 3010 : replace trigger_action/event by trigger_notify/change

  • Property svn:eol-style set to LF
File size: 3.2 KB
RevLine 
[858]1<?php
2// +-----------------------------------------------------------------------+
[8728]3// | Piwigo - a PHP based photo gallery                                    |
[2297]4// +-----------------------------------------------------------------------+
[26461]5// | Copyright(C) 2008-2014 Piwigo Team                  http://piwigo.org |
[2297]6// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
7// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
8// +-----------------------------------------------------------------------+
9// | This program is free software; you can redistribute it and/or modify  |
10// | it under the terms of the GNU General Public License as published by  |
11// | the Free Software Foundation                                          |
12// |                                                                       |
13// | This program is distributed in the hope that it will be useful, but   |
14// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
15// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
16// | General Public License for more details.                              |
17// |                                                                       |
18// | You should have received a copy of the GNU General Public License     |
19// | along with this program; if not, write to the Free Software           |
20// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
21// | USA.                                                                  |
22// +-----------------------------------------------------------------------+
[858]23
24// +-----------------------------------------------------------------------+
25// |                           initialization                              |
26// +-----------------------------------------------------------------------+
27
28define('PHPWG_ROOT_PATH','./');
[4893]29define('PWG_HELP', true);
[858]30include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
31
[1072]32// +-----------------------------------------------------------------------+
33// | Check Access and exit when user status is not ok                      |
34// +-----------------------------------------------------------------------+
35check_status(ACCESS_GUEST);
36
[858]37$page['body_id'] = 'thePopuphelpPage';
[2342]38$title = l10n('Piwigo Help');
[7823]39$page['page_banner'] = '';
[2138]40$page['meta_robots']=array('noindex'=>1, 'nofollow'=>1);
[858]41include(PHPWG_ROOT_PATH.'include/page_header.php');
42
[2126]43if
[1699]44  (
45    isset($_GET['page'])
46    and preg_match('/^[a-z_]*$/', $_GET['page'])
47  )
48{
49  $help_content =
[2479]50    load_language('help/'.$_GET['page'].'.html', '', array('return'=>true) );
[879]51
[1699]52  if ($help_content == false)
53  {
54    $help_content = '';
55  }
56
[28587]57  $help_content = trigger_change(
[1699]58    'get_popup_help_content', $help_content, $_GET['page']);
59}
60else
61{
62  die('Hacking attempt!');
63}
64
[2223]65$template->set_filename('popuphelp','popuphelp.tpl');
[858]66
[2223]67$template->assign(
[1699]68  array
69  (
70    'HELP_CONTENT' => $help_content
71  ));
[858]72
73// +-----------------------------------------------------------------------+
74// |                           html code display                           |
75// +-----------------------------------------------------------------------+
76
[2223]77$template->pparse('popuphelp');
[858]78
79include(PHPWG_ROOT_PATH.'include/page_tail.php');
[1699]80
[858]81?>
Note: See TracBrowser for help on using the repository browser.