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

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

[extensions] - AddInfo

File size: 697 bytes
RevLine 
[7646]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
[9148]19 // Plugin on picture page
20if (script_basename() == 'picture') 
21{ 
22  include_once(dirname(__FILE__).'/initpicture.php');
[7646]23}
24
25
[9148]26  // Plugin for admin
27if (script_basename() == 'admin')   
[7646]28{
[9148]29  include_once(dirname(__FILE__).'/initadmin.php');
[7646]30}
31
32?>
Note: See TracBrowser for help on using the repository browser.