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

Last change on this file since 2297 was 2297, checked in by plg, 16 years ago

Modification: new header on PHP files, PhpWebGallery renamed Piwigo.

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 4.0 KB
Line 
1<?php
2// +-----------------------------------------------------------------------+
3// | Piwigo - a PHP based picture gallery                                  |
4// +-----------------------------------------------------------------------+
5// | Copyright(C) 2008      Piwigo Team                  http://piwigo.org |
6// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
7// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
8// +-----------------------------------------------------------------------+
9// | This program is free software; you can redistribute it and/or modify  |
10// | it under the terms of the GNU General Public License as published by  |
11// | the Free Software Foundation                                          |
12// |                                                                       |
13// | This program is distributed in the hope that it will be useful, but   |
14// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
15// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
16// | General Public License for more details.                              |
17// |                                                                       |
18// | You should have received a copy of the GNU General Public License     |
19// | along with this program; if not, write to the Free Software           |
20// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
21// | USA.                                                                  |
22// +-----------------------------------------------------------------------+
23Plugin Name: Add Index
24Version: 1.8
25Description: 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.
26Plugin URI: http://www.phpwebgallery.net
27Author: PhpWebGallery team
28Author URI: http://www.phpwebgallery.net
29*/
30// +-----------------------------------------------------------------------+
31// | PhpWebGallery - a PHP based picture gallery                           |
32// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
33// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
34// +-----------------------------------------------------------------------+
35// | file          : $Id: main.inc.php 2297 2008-04-04 22:57:23Z plg $
36// | last update   : $Date: 2008-04-04 22:57:23 +0000 (Fri, 04 Apr 2008) $
37// | last modifier : $Author: plg $
38// | revision      : $Revision: 2297 $
39// +-----------------------------------------------------------------------+
40// | This program is free software; you can redistribute it and/or modify  |
41// | it under the terms of the GNU General Public License as published by  |
42// | the Free Software Foundation                                          |
43// |                                                                       |
44// | This program is distributed in the hope that it will be useful, but   |
45// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
46// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
47// | General Public License for more details.                              |
48// |                                                                       |
49// | You should have received a copy of the GNU General Public License     |
50// | along with this program; if not, write to the Free Software           |
51// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
52// | USA.                                                                  |
53// +-----------------------------------------------------------------------+
54
55if (!defined('PHPWG_ROOT_PATH'))
56{
57  die('Hacking attempt!');
58}
59
60if (in_array(script_basename(), array('popuphelp', 'admin')))
61{
62  if (defined('IN_ADMIN') and IN_ADMIN)
63  {
64    include_once(dirname(__FILE__).'/'.'main.base.inc.php');
65    include_once(dirname(__FILE__).'/'.'main.admin.inc.php');
66  }
67  else
68  {
69    include_once(dirname(__FILE__).'/'.'main.base.inc.php');
70    include_once(dirname(__FILE__).'/'.'main.normal.inc.php');
71  }
72  set_plugin_data($plugin['id'], $add_index);
73}
74
75?>
Note: See TracBrowser for help on using the repository browser.