source: trunk/admin/advanced_feature.php @ 2299

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

Bug fixed: as rvelices notified me by email, my header replacement script was
bugged (r2297 was repeating new and old header).

By the way, I've also removed the replacement keywords. We were using them
because it was a common usage with CVS but it is advised not to use them with
Subversion. Personnaly, it is a problem when I search differences between 2
Piwigo installations outside Subversion.

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 4.0 KB
Line 
1<?php
2// +-----------------------------------------------------------------------+
3// | Piwigo - a PHP based picture gallery                                  |
4// +-----------------------------------------------------------------------+
5// | Copyright(C) 2008      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', 'admin/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  ));
97
98// advanced_features
99$template->assign('advanced_features', $advanced_features);
100
101// +-----------------------------------------------------------------------+
102// | Sending html code                                                     |
103// +-----------------------------------------------------------------------+
104
105$template->assign_var_from_handle('ADMIN_CONTENT', 'advanced_feature');
106
107?>
Note: See TracBrowser for help on using the repository browser.