source: branches/2.1/admin/popuphelp.php @ 6323

Revision 6323, 3.2 KB checked in by plg, 9 years ago (diff)

merge r6320 from trunk to branch 2.1

bug 1667 fixed: r6027 was fixing a minor error on tabs for Google Chrome/Safari
BUT was introducing a major visual issue for IE8. Backmerged + adds the -webkit
radius anyway.

This is a quickfix for release 2.1.1, the improved display introduced by nikrou
was nice and it would be better to have it, but working in IE8

Line 
1<?php
2// +-----------------------------------------------------------------------+
3// | Piwigo - a PHP based picture gallery                                  |
4// +-----------------------------------------------------------------------+
5// | Copyright(C) 2008-2010 Piwigo Team                  http://piwigo.org |
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// +-----------------------------------------------------------------------+
23
24// +-----------------------------------------------------------------------+
25// |                           initialization                              |
26// +-----------------------------------------------------------------------+
27
28define('PHPWG_ROOT_PATH', '../');
29define('PWG_HELP', true);
30define('IN_ADMIN', true);
31include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
32
33// +-----------------------------------------------------------------------+
34// | Check Access and exit when user status is not ok                      |
35// +-----------------------------------------------------------------------+
36check_status(ACCESS_ADMINISTRATOR);
37
38$page['body_id'] = 'thePopuphelpPage';
39$title = l10n('Piwigo Help');
40$page['page_banner'] = '<h1>'.$title.'</h1>';
41$page['meta_robots']=array('noindex'=>1, 'nofollow'=>1);
42include(PHPWG_ROOT_PATH.'include/page_header.php');
43
44if
45  (
46    isset($_GET['page'])
47    and preg_match('/^[a-z_]*$/', $_GET['page'])
48  )
49{
50  $help_content =
51    load_language('help/'.$_GET['page'].'.html', '', array('return'=>true) );
52
53  if ($help_content == false)
54  {
55    $help_content = '';
56  }
57
58  $help_content = trigger_event(
59    'get_popup_help_content', $help_content, $_GET['page']);
60}
61else
62{
63  die('Hacking attempt!');
64}
65
66$template->set_filename('popuphelp','popuphelp.tpl');
67
68$template->assign(
69  array
70  (
71    'HELP_CONTENT' => $help_content
72  ));
73
74// +-----------------------------------------------------------------------+
75// |                           html code display                           |
76// +-----------------------------------------------------------------------+
77
78$template->pparse('popuphelp');
79
80include(PHPWG_ROOT_PATH.'include/page_tail.php');
81
82?>
Note: See TracBrowser for help on using the repository browser.