source: trunk/plugins/add_index/main.inc.php @ 2059

Last change on this file since 2059 was 2059, checked in by rub, 17 years ago

Change headers with team email

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
Line 
1<?php /*
2Plugin Name: Add Index
3Version: 1.0
4Description: 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.
5Plugin URI: http://www.phpwebgallery.net
6Author: PhpWebGallery team
7Author 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 2059 2007-07-10 05:30:01Z rub $
15// | last update   : $Date: 2007-07-10 05:30:01 +0000 (Tue, 10 Jul 2007) $
16// | last modifier : $Author: rub $
17// | revision      : $Revision: 2059 $
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
34if (!defined('PHPWG_ROOT_PATH'))
35{
36  die('Hacking attempt!');
37}
38
39if (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?>
Note: See TracBrowser for help on using the repository browser.