source: extensions/AddInfo/main.inc.php @ 32751

Last change on this file since 32751 was 9148, checked in by ddtddt, 14 years ago

[extensions] - AddInfo

File size: 697 bytes
Line 
1<?php
2/*
3Plugin Name: AddInfo
4Version: auto
5Description: Permet d'ajouter 3 infos sous les photos
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=461
7Author: ddtddt
8Author URI:
9*/
10
11if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
12
13global $prefixeTable;
14
15define('ADDINFO_DIR' , basename(dirname(__FILE__)));
16define('ADDINFO_PATH' , PHPWG_PLUGINS_PATH . ADDINFO_DIR . '/');
17define('ADDINFO_TABLE' , $prefixeTable . 'AddInfo_images');
18
19 // Plugin on picture page
20if (script_basename() == 'picture') 
21{ 
22  include_once(dirname(__FILE__).'/initpicture.php');
23}
24
25
26  // Plugin for admin
27if (script_basename() == 'admin')   
28{
29  include_once(dirname(__FILE__).'/initadmin.php');
30}
31
32?>
Note: See TracBrowser for help on using the repository browser.