source: extensions/piclens/main.inc.php @ 3645

Last change on this file since 3645 was 3645, checked in by tiico, 15 years ago

Add index.php file into directory
Add CHANGELOG and clean header files
Add 'last comments' option for name and descriptions (%ID option)
Add maintain.inc.php for migration to 0.4.x (name and description translation)
Complete Chinese translation (thanks winson)

  • Correct the latests commit (3636 & 3637 were not complete)
File size: 1.7 KB
Line 
1<?php
2/*
3 * Plugin Name: CoolIris-Piclens
4 * Version: 0.4.0
5 * Description: Cooliris/Piclens activation
6 * Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=234
7 * Author: Tiico
8 * Author URI:
9 * */
10/********* Fichier main.inc.php  *********/
11
12/* See CHANGELOG for release informations */
13
14 
15if (!defined('PHPWG_ROOT_PATH'))  die('Hacking attempt!');
16 
17define('PICLENS_NAME', 'Cooliris/Piclens');
18define('PICLENS_ROOT', dirname(__FILE__));
19define('PICLENS_DIR' , basename(dirname(__FILE__)));
20define('PICLENS_CFG_FILE' , PICLENS_ROOT.'/'.PICLENS_DIR.'.dat');
21define('PICLENS_CFG_FILE_OLD' , PICLENS_ROOT.'/data.dat');              // ancien fichier de config (version <= 0.2.5)
22define('PICLENS_CFG_FILE1' , PHPWG_PLUGINS_PATH.PICLENS_DIR.'.dat');
23define('PICLENS_CFG_DB' , PICLENS_DIR);
24define('PICLENS_PATH' , PHPWG_PLUGINS_PATH . PICLENS_DIR . '/');
25define('PICLENS_INC_PATH' , PHPWG_PLUGINS_PATH . PICLENS_DIR . '/include/');
26define('PICLENS_IMG_PATH' , PHPWG_PLUGINS_PATH . PICLENS_DIR . '/img/');
27define('PICLENS_ADMIN_PATH' , PHPWG_PLUGINS_PATH . PICLENS_DIR . '/admin/');
28
29load_language('plugin.lang', PICLENS_PATH);
30
31include_once PICLENS_INC_PATH.'Piclens.class.php';
32
33$obj = new Piclens();
34$obj->load_config();
35
36
37add_event_handler('loc_end_page_header', array(&$obj, 'piclens_link' ));
38add_event_handler('loc_end_index', array(&$obj, 'add_piclens_icon'));
39add_event_handler('loc_end_index' , array(&$obj, 'piclenswall'));
40add_event_handler('loc_end_index', array(&$obj, 'piclens_thumbnails'));
41add_event_handler('loc_begin_index', array(&$obj, 'set_make_full_url_piclens'));
42
43 
44add_event_handler('get_admin_plugin_menu_links', array(&$obj, 'piclens_admin_menu') );
45set_plugin_data($plugin['id'], $obj);
46
47
48?>
Note: See TracBrowser for help on using the repository browser.