source: extensions/add_index/main.inc.php @ 27153

Revision 12801, 2.1 KB checked in by rub, 8 years ago (diff)

Add upload directory
Fixed site id
Fixed first dir

Update Copyright (C)

  • Property svn:eol-style set to LF
Line 
1<?php
2// +-----------------------------------------------------------------------+
3// | Add Index - a Piwigo Plugin                                           |
4// | Copyright (C) 2019-2011 Piwigo team                                   |
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// +-----------------------------------------------------------------------+
20
21/*
22Plugin Name: Add Index
23Version: auto
24Description: Add index.php file on all sub-directories of local galleries pictures.
25Plugin URI: http://piwigo.org/ext/extension_view.php?eid=284
26Author: Piwigo team
27Author URI: http://piwigo.org
28*/
29
30if (!defined('PHPWG_ROOT_PATH'))
31{
32  die('Hacking attempt!');
33}
34
35if (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
50?>
Note: See TracBrowser for help on using the repository browser.