1 | <?php /* |
---|
2 | Plugin Name: Add Index |
---|
3 | Version: 1.0 |
---|
4 | Description: 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. |
---|
5 | Plugin URI: http://www.phpwebgallery.net |
---|
6 | Author: PhpWebGallery team |
---|
7 | Author URI: http://www.phpwebgallery.net |
---|
8 | */ |
---|
9 | // +-----------------------------------------------------------------------+ |
---|
10 | // | PhpWebGallery - a PHP based picture gallery | |
---|
11 | // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | |
---|
12 | // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | |
---|
13 | // +-----------------------------------------------------------------------+ |
---|
14 | // | file : $Id: main.inc.php 2060 2007-07-10 05:35:56Z rub $ |
---|
15 | // | last update : $Date: 2007-07-10 05:35:56 +0000 (Tue, 10 Jul 2007) $ |
---|
16 | // | last modifier : $Author: rub $ |
---|
17 | // | revision : $Revision: 2060 $ |
---|
18 | // +-----------------------------------------------------------------------+ |
---|
19 | // | This program is free software; you can redistribute it and/or modify | |
---|
20 | // | it under the terms of the GNU General Public License as published by | |
---|
21 | // | the Free Software Foundation | |
---|
22 | // | | |
---|
23 | // | This program is distributed in the hope that it will be useful, but | |
---|
24 | // | WITHOUT ANY WARRANTY; without even the implied warranty of | |
---|
25 | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
---|
26 | // | General Public License for more details. | |
---|
27 | // | | |
---|
28 | // | You should have received a copy of the GNU General Public License | |
---|
29 | // | along with this program; if not, write to the Free Software | |
---|
30 | // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | |
---|
31 | // | USA. | |
---|
32 | // +-----------------------------------------------------------------------+ |
---|
33 | |
---|
34 | if (!defined('PHPWG_ROOT_PATH')) |
---|
35 | { |
---|
36 | die('Hacking attempt!'); |
---|
37 | } |
---|
38 | |
---|
39 | if (in_array(script_basename(), array('popuphelp', 'admin'))) |
---|
40 | { |
---|
41 | if (defined('IN_ADMIN') and IN_ADMIN) |
---|
42 | { |
---|
43 | include_once(dirname(__FILE__).'/'.'main.base.inc.php'); |
---|
44 | include_once(dirname(__FILE__).'/'.'main.admin.inc.php'); |
---|
45 | } |
---|
46 | else |
---|
47 | { |
---|
48 | include_once(dirname(__FILE__).'/'.'main.base.inc.php'); |
---|
49 | include_once(dirname(__FILE__).'/'.'main.normal.inc.php'); |
---|
50 | } |
---|
51 | set_plugin_data($plugin['id'], $add_index); |
---|
52 | } |
---|
53 | |
---|
54 | ?> |
---|