source: extensions/manage_info_photos/main.inc.php @ 30694

Last change on this file since 30694 was 30641, checked in by ddtddt, 10 years ago

[extensions] - manage_info_photos

File size: 1.0 KB
Line 
1<?php
2/*
3Plugin Name: Manage Infos Photos
4Version: auto
5Description: Can add information on photos
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=783
7Author: ddtddt
8Author URI:
9*/
10
11if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
12
13global $prefixeTable;
14
15define('ADD_INFO_PHOTO_DIR' , basename(dirname(__FILE__)));
16define('ADD_INFO_PHOTO_PATH' , PHPWG_PLUGINS_PATH . ADD_INFO_PHOTO_DIR . '/');
17if (!defined('ADD_INFO_PHOTO_TABLE')) define('ADD_INFO_PHOTO_TABLE', $prefixeTable.'add_Info_photos');
18if (!defined('ADD_INFO_PHOTO_DATA_TABLE')) define('ADD_INFO_PHOTO_DATA_TABLE', $prefixeTable.'add_Info_photos_data');
19define('ADD_INFO_PHOTO_ADMIN',get_root_url().'admin.php?page=plugin-'.ADD_INFO_PHOTO_DIR);
20
21include_once(ADD_INFO_PHOTO_PATH . 'include/function.aip.inc.php');
22
23 // Plugin on picture page
24if (script_basename() == 'picture') 
25{ 
26  include_once(dirname(__FILE__).'/initpicture.php');
27}
28
29
30  // Plugin for admin
31if (script_basename() == 'admin')   
32{
33  include_once(dirname(__FILE__).'/initadmin.php');
34}
35
36?>
Note: See TracBrowser for help on using the repository browser.