source: trunk/admin/advanced_feature.php @ 4367

Last change on this file since 4367 was 3282, checked in by plg, 16 years ago

change: according to topic:15067, svn:keywords property was removed

  • Property svn:eol-style set to LF
File size: 4.1 KB
Line 
1<?php
2// +-----------------------------------------------------------------------+
3// | Piwigo - a PHP based picture gallery                                  |
4// +-----------------------------------------------------------------------+
5// | Copyright(C) 2008-2009 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
24if (!defined('PHPWG_ROOT_PATH'))
25{
26  die ("Hacking attempt!");
27}
28
29// +-----------------------------------------------------------------------+
30// | Check Access and exit when user status is not ok                      |
31// +-----------------------------------------------------------------------+
32check_status(ACCESS_ADMINISTRATOR);
33
34// +-----------------------------------------------------------------------+
35// | Actions                                                               |
36// +-----------------------------------------------------------------------+
37
38/*$action = (isset($_GET['action']) and !is_adviser()) ? $_GET['action'] : '';
39
40switch ($action)
41{
42  case '???' :
43  {
44    break;
45  }
46  default :
47  {
48    break;
49  }
50}*/
51
52// +-----------------------------------------------------------------------+
53// | Define advanced features                                              |
54// +-----------------------------------------------------------------------+
55
56$advanced_features = array();
57
58// Add advanced features
59/*array_push($advanced_features,
60  array
61  (
62    'CAPTION' => l10n('???'),
63    'URL' => $start_url.'???'
64  ));*/
65
66array_push($advanced_features,
67  array
68  (
69    'CAPTION' => l10n('Elements_not_linked'),
70    'URL' => get_root_url().'admin.php?page=element_set&amp;cat=not_linked'
71  ));
72
73array_push($advanced_features,
74  array
75  (
76    'CAPTION' => l10n('Duplicates'),
77    'URL' => get_root_url().'admin.php?page=element_set&amp;cat=duplicates'
78  ));
79
80//$advanced_features is array of array composed of CAPTION & URL
81$advanced_features = 
82    trigger_event('get_admin_advanced_features_links', $advanced_features);
83
84// +-----------------------------------------------------------------------+
85// |  Template init                                                        |
86// +-----------------------------------------------------------------------+
87
88$template->set_filename('advanced_feature', 'advanced_feature.tpl');
89
90$start_url = get_root_url().'admin.php?page=advanced_feature&amp;action=';
91
92$template->assign(
93  array
94  (
95    'U_HELP' => get_root_url().'popuphelp.php?page=advanced_feature',
96    'U_ACTIVE_MENU' => 5
97  ));
98
99// advanced_features
100$template->assign('advanced_features', $advanced_features);
101
102// +-----------------------------------------------------------------------+
103// | Sending html code                                                     |
104// +-----------------------------------------------------------------------+
105
106$template->assign_var_from_handle('ADMIN_CONTENT', 'advanced_feature');
107
108?>
Note: See TracBrowser for help on using the repository browser.