[2297] | 1 | <?php |
---|
| 2 | // +-----------------------------------------------------------------------+ |
---|
[12801] | 3 | // | Add Index - a Piwigo Plugin | |
---|
| 4 | // | Copyright (C) 2019-2011 Piwigo team | |
---|
[2297] | 5 | // +-----------------------------------------------------------------------+ |
---|
| 6 | // | This program is free software; you can redistribute it and/or modify | |
---|
| 7 | // | it under the terms of the GNU General Public License as published by | |
---|
| 8 | // | the Free Software Foundation | |
---|
| 9 | // | | |
---|
| 10 | // | This program is distributed in the hope that it will be useful, but | |
---|
| 11 | // | WITHOUT ANY WARRANTY; without even the implied warranty of | |
---|
| 12 | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
---|
| 13 | // | General Public License for more details. | |
---|
| 14 | // | | |
---|
| 15 | // | You should have received a copy of the GNU General Public License | |
---|
| 16 | // | along with this program; if not, write to the Free Software | |
---|
| 17 | // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | |
---|
| 18 | // | USA. | |
---|
| 19 | // +-----------------------------------------------------------------------+ |
---|
[2302] | 20 | |
---|
| 21 | /* |
---|
[1900] | 22 | Plugin Name: Add Index |
---|
[12801] | 23 | Version: auto |
---|
[3717] | 24 | Description: Add index.php file on all sub-directories of local galleries pictures. |
---|
[3275] | 25 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=284 |
---|
[2342] | 26 | Author: Piwigo team |
---|
| 27 | Author URI: http://piwigo.org |
---|
[1900] | 28 | */ |
---|
| 29 | |
---|
| 30 | if (!defined('PHPWG_ROOT_PATH')) |
---|
| 31 | { |
---|
| 32 | die('Hacking attempt!'); |
---|
| 33 | } |
---|
| 34 | |
---|
| 35 | if (in_array(script_basename(), array('popuphelp', 'admin'))) |
---|
| 36 | { |
---|
| 37 | if (defined('IN_ADMIN') and IN_ADMIN) |
---|
| 38 | { |
---|
| 39 | include_once(dirname(__FILE__).'/'.'main.base.inc.php'); |
---|
| 40 | include_once(dirname(__FILE__).'/'.'main.admin.inc.php'); |
---|
| 41 | } |
---|
| 42 | else |
---|
| 43 | { |
---|
| 44 | include_once(dirname(__FILE__).'/'.'main.base.inc.php'); |
---|
| 45 | include_once(dirname(__FILE__).'/'.'main.normal.inc.php'); |
---|
| 46 | } |
---|
| 47 | set_plugin_data($plugin['id'], $add_index); |
---|
| 48 | } |
---|
| 49 | |
---|
[1699] | 50 | ?> |
---|