source: trunk/plugins/add_index/admin/admin_menu.php @ 1705

Last change on this file since 1705 was 1705, checked in by rvelices, 18 years ago

Plugins: new way of adding links and content to administration pages...

File size: 4.0 KB
Line 
1<?php
2// +-----------------------------------------------------------------------+
3// | PhpWebGallery - a PHP based picture gallery                           |
4// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
5// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
6// | Copyright (C) 2007 Ruben ARNAUD - team@phpwebgallery.net              |
7// +-----------------------------------------------------------------------+
8// | branch        : BSF (Best So Far)
9// | file          : $RCSfile$
10// | last update   : $Date: 2006-07-18 23:38:54 +0200 (mar., 18 juil. 2006) $
11// | last modifier : $Author: rub $
12// | revision      : $Revision: 1481 $
13// +-----------------------------------------------------------------------+
14// | This program is free software; you can redistribute it and/or modify  |
15// | it under the terms of the GNU General Public License as published by  |
16// | the Free Software Foundation                                          |
17// |                                                                       |
18// | This program is distributed in the hope that it will be useful, but   |
19// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
20// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
21// | General Public License for more details.                              |
22// |                                                                       |
23// | You should have received a copy of the GNU General Public License     |
24// | along with this program; if not, write to the Free Software           |
25// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
26// | USA.                                                                  |
27// +-----------------------------------------------------------------------+
28
29if ((!defined('PHPWG_ROOT_PATH')) or (!(defined('IN_ADMIN') and IN_ADMIN)))
30{
31  die('Hacking attempt!');
32}
33
34// +-----------------------------------------------------------------------+
35// | Check Access and exit when user status is not ok                      |
36// +-----------------------------------------------------------------------+
37check_status(ACCESS_ADMINISTRATOR);
38
39// +-----------------------------------------------------------------------+
40// | Main                                                                  |
41// +-----------------------------------------------------------------------+
42global $template, $conf;
43
44// +-----------------------------------------------------------------------+
45// | template initialization                                               |
46// +-----------------------------------------------------------------------+
47$template->set_filenames(array('plugin_admin_content' => dirname(__FILE__).'/admin_menu.tpl'));
48
49/*
50if ( isset($_POST['eventTracer_filters']) )
51{
52  $v = $_POST['eventTracer_filters'];
53  $v = str_replace( "\r\n", "\n", $v );
54  $v = str_replace( "\n\n", "\n", $v );
55  $v = stripslashes($v);
56  if (!empty($v))
57    $this->my_config['filters'] = explode("\n", $v);
58  else
59    $this->my_config['filters'] = array();
60  $this->my_config['show_args'] = isset($_POST['eventTracer_show_args']);
61  $this->save_config();
62  global $page;
63  array_push($page['infos'], 'event tracer options saved');
64}
65$template->assign_var('EVENT_TRACER_FILTERS', implode("\n", $this->my_config['filters'] ) );
66$template->assign_var('EVENT_TRACER_SHOW_ARGS', $this->my_config['show_args'] ? 'checked="checked"' : '' );*/
67$template->assign_var('filename', $conf['add_index_filename']);
68$template->assign_var('source_directory_path', $conf['add_index_source_directory_path']);
69//$template->assign_var('F_ACTION', $my_url);
70
71// +-----------------------------------------------------------------------+
72// | Sending html code                                                     |
73// +-----------------------------------------------------------------------+
74$template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
75
76?>
Note: See TracBrowser for help on using the repository browser.