1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: Public Admin |
---|
4 | Version: auto |
---|
5 | Description: Do some admin task from the public pages |
---|
6 | Plugin URI: auto |
---|
7 | Author: Mistic |
---|
8 | Author URI: http://www.strangeplanet.fr |
---|
9 | */ |
---|
10 | |
---|
11 | defined('PHPWG_ROOT_PATH') or die('Hacking attempt!'); |
---|
12 | |
---|
13 | // +-----------------------------------------------------------------------+ |
---|
14 | // | Define plugin constants | |
---|
15 | // +-----------------------------------------------------------------------+ |
---|
16 | defined('PUBLICADMIN_ID') or define('PUBLICADMIN_ID', basename(dirname(__FILE__))); |
---|
17 | define('PUBLICADMIN_PATH' , PHPWG_PLUGINS_PATH . PUBLICADMIN_ID . '/'); |
---|
18 | // define('PUBLICADMIN_ADMIN', get_root_url() . 'admin.php?page=plugin-' . PUBLICADMIN_ID); |
---|
19 | define('PUBLICADMIN_VERSION', 'auto'); |
---|
20 | |
---|
21 | |
---|
22 | // +-----------------------------------------------------------------------+ |
---|
23 | // | Add event handlers | |
---|
24 | // +-----------------------------------------------------------------------+ |
---|
25 | // add_event_handler('init', 'publicadmin_init'); |
---|
26 | |
---|
27 | if (!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 | // } |
---|