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 | // +-----------------------------------------------------------------------+ |
---|
24 | // | PhpWebGallery - a PHP based picture gallery | |
---|
25 | // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | |
---|
26 | // | Copyright (C) 2003-2008 PhpWebGallery Team - http://phpwebgallery.net | |
---|
27 | // +-----------------------------------------------------------------------+ |
---|
28 | // | file : $Id: advanced_feature.php 2297 2008-04-04 22:57:23Z plg $ |
---|
29 | // | last update : $Date: 2008-04-04 22:57:23 +0000 (Fri, 04 Apr 2008) $ |
---|
30 | // | last modifier : $Author: plg $ |
---|
31 | // | revision : $Revision: 2297 $ |
---|
32 | // +-----------------------------------------------------------------------+ |
---|
33 | // | This program is free software; you can redistribute it and/or modify | |
---|
34 | // | it under the terms of the GNU General Public License as published by | |
---|
35 | // | the Free Software Foundation | |
---|
36 | // | | |
---|
37 | // | This program is distributed in the hope that it will be useful, but | |
---|
38 | // | WITHOUT ANY WARRANTY; without even the implied warranty of | |
---|
39 | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
---|
40 | // | General Public License for more details. | |
---|
41 | // | | |
---|
42 | // | You should have received a copy of the GNU General Public License | |
---|
43 | // | along with this program; if not, write to the Free Software | |
---|
44 | // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | |
---|
45 | // | USA. | |
---|
46 | // +-----------------------------------------------------------------------+ |
---|
47 | |
---|
48 | if (!defined('PHPWG_ROOT_PATH')) |
---|
49 | { |
---|
50 | die ("Hacking attempt!"); |
---|
51 | } |
---|
52 | |
---|
53 | // +-----------------------------------------------------------------------+ |
---|
54 | // | Check Access and exit when user status is not ok | |
---|
55 | // +-----------------------------------------------------------------------+ |
---|
56 | check_status(ACCESS_ADMINISTRATOR); |
---|
57 | |
---|
58 | // +-----------------------------------------------------------------------+ |
---|
59 | // | Actions | |
---|
60 | // +-----------------------------------------------------------------------+ |
---|
61 | |
---|
62 | /*$action = (isset($_GET['action']) and !is_adviser()) ? $_GET['action'] : ''; |
---|
63 | |
---|
64 | switch ($action) |
---|
65 | { |
---|
66 | case '???' : |
---|
67 | { |
---|
68 | break; |
---|
69 | } |
---|
70 | default : |
---|
71 | { |
---|
72 | break; |
---|
73 | } |
---|
74 | }*/ |
---|
75 | |
---|
76 | // +-----------------------------------------------------------------------+ |
---|
77 | // | Define advanced features | |
---|
78 | // +-----------------------------------------------------------------------+ |
---|
79 | |
---|
80 | $advanced_features = array(); |
---|
81 | |
---|
82 | // Add advanced features |
---|
83 | /*array_push($advanced_features, |
---|
84 | array |
---|
85 | ( |
---|
86 | 'CAPTION' => l10n('???'), |
---|
87 | 'URL' => $start_url.'???' |
---|
88 | ));*/ |
---|
89 | |
---|
90 | array_push($advanced_features, |
---|
91 | array |
---|
92 | ( |
---|
93 | 'CAPTION' => l10n('Elements_not_linked'), |
---|
94 | 'URL' => get_root_url().'admin.php?page=element_set&cat=not_linked' |
---|
95 | )); |
---|
96 | |
---|
97 | array_push($advanced_features, |
---|
98 | array |
---|
99 | ( |
---|
100 | 'CAPTION' => l10n('Duplicates'), |
---|
101 | 'URL' => get_root_url().'admin.php?page=element_set&cat=duplicates' |
---|
102 | )); |
---|
103 | |
---|
104 | //$advanced_features is array of array composed of CAPTION & URL |
---|
105 | $advanced_features = |
---|
106 | trigger_event('get_admin_advanced_features_links', $advanced_features); |
---|
107 | |
---|
108 | // +-----------------------------------------------------------------------+ |
---|
109 | // | Template init | |
---|
110 | // +-----------------------------------------------------------------------+ |
---|
111 | |
---|
112 | $template->set_filename('advanced_feature', 'admin/advanced_feature.tpl'); |
---|
113 | |
---|
114 | $start_url = get_root_url().'admin.php?page=advanced_feature&action='; |
---|
115 | |
---|
116 | $template->assign( |
---|
117 | array |
---|
118 | ( |
---|
119 | 'U_HELP' => get_root_url().'popuphelp.php?page=advanced_feature' |
---|
120 | )); |
---|
121 | |
---|
122 | // advanced_features |
---|
123 | $template->assign('advanced_features', $advanced_features); |
---|
124 | |
---|
125 | // +-----------------------------------------------------------------------+ |
---|
126 | // | Sending html code | |
---|
127 | // +-----------------------------------------------------------------------+ |
---|
128 | |
---|
129 | $template->assign_var_from_handle('ADMIN_CONTENT', 'advanced_feature'); |
---|
130 | |
---|
131 | ?> |
---|