source: tags/build-Alligator02/plugins/add_index/main.inc.php @ 11842

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

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

File size: 2.6 KB
Line 
1<?php
2/*
3Plugin Name: Add Index
4Version: 1.1.0.0
5Description: Add file index.php file on all sub-directories of local galleries pictures. / Ajoute le fichier index.php sur les sous-répertoires de galeries d'images locales.
6Plugin URI: http://www.phpwebgallery.net
7*/
8// +-----------------------------------------------------------------------+
9// | PhpWebGallery - a PHP based picture gallery                           |
10// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
11// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
12// | Copyright (C) 2007 Ruben ARNAUD - team@phpwebgallery.net              |
13// +-----------------------------------------------------------------------+
14// | branch        : BSF (Best So Far)
15// | file          : $RCSfile$
16// | last update   : $Date: 2006-07-18 23:38:54 +0200 (mar., 18 juil. 2006) $
17// | last modifier : $Author: rub $
18// | revision      : $Revision: 1481 $
19// +-----------------------------------------------------------------------+
20// | This program is free software; you can redistribute it and/or modify  |
21// | it under the terms of the GNU General Public License as published by  |
22// | the Free Software Foundation                                          |
23// |                                                                       |
24// | This program is distributed in the hope that it will be useful, but   |
25// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
26// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
27// | General Public License for more details.                              |
28// |                                                                       |
29// | You should have received a copy of the GNU General Public License     |
30// | along with this program; if not, write to the Free Software           |
31// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
32// | USA.                                                                  |
33// +-----------------------------------------------------------------------+
34
35if (!defined('PHPWG_ROOT_PATH'))
36{
37  die('Hacking attempt!');
38}
39
40if (in_array(script_basename(), array('popuphelp', 'admin')))
41{
42  if (defined('IN_ADMIN') and IN_ADMIN)
43  {
44    include_once(dirname(__FILE__).'/'.'main.base.inc.php');
45    include_once(dirname(__FILE__).'/'.'main.admin.inc.php');
46  }
47  else
48  {
49    include_once(dirname(__FILE__).'/'.'main.base.inc.php');
50    include_once(dirname(__FILE__).'/'.'main.normal.inc.php');
51  }
52  set_plugin_data($plugin['id'], $add_index);
53}
54
55?>
Note: See TracBrowser for help on using the repository browser.