source: extensions/PublicAdmin/main.inc.php @ 24879

Last change on this file since 24879 was 24879, checked in by mistic100, 11 years ago

create plugin PublicAdmin
(only photo:name, photo:comment and photo:author are editable for now)

File size: 1.8 KB
Line 
1<?php 
2/*
3Plugin Name: Public Admin
4Version: auto
5Description: Do some admin task from the public pages
6Plugin URI: auto
7Author: Mistic
8Author URI: http://www.strangeplanet.fr
9*/
10
11defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
12
13// +-----------------------------------------------------------------------+
14// | Define plugin constants                                               |
15// +-----------------------------------------------------------------------+
16defined('PUBLICADMIN_ID') or define('PUBLICADMIN_ID', basename(dirname(__FILE__)));
17define('PUBLICADMIN_PATH' ,   PHPWG_PLUGINS_PATH . PUBLICADMIN_ID . '/');
18// define('PUBLICADMIN_ADMIN',   get_root_url() . 'admin.php?page=plugin-' . PUBLICADMIN_ID);
19define('PUBLICADMIN_VERSION', 'auto');
20
21
22// +-----------------------------------------------------------------------+
23// | Add event handlers                                                    |
24// +-----------------------------------------------------------------------+
25// add_event_handler('init', 'publicadmin_init');
26
27if (!defined('IN_ADMIN'))
28{
29  include_once(PUBLICADMIN_PATH . 'include/public_events.inc.php');
30 
31  add_event_handler('loc_end_picture', 'publicadmin_picture_page');
32}
33
34
35// +-----------------------------------------------------------------------+
36// | plugin initialization                                                 |
37// +-----------------------------------------------------------------------+
38// function publicadmin_init()
39// {
40  // global $conf, $pwg_loaded_plugins;
41 
42  // include_once(PUBLICADMIN_PATH . 'include/install.inc.php');
43  // request_plugin_update(PUBLICADMIN_ID, PUBLICADMIN_VERSION, 'publicadmin_install');
44 
45  // load_language('plugin.lang', PUBLICADMIN_PATH);
46 
47  // $conf['publicadmin'] = unserialize($conf['publicadmin']);
48// }
Note: See TracBrowser for help on using the repository browser.