source: extensions/AdminTools/main.inc.php @ 25675

Last change on this file since 25675 was 25655, checked in by mistic100, 10 years ago

quick edit for album
add language files
force default language for the toolbar
fix $_GET collision
orange save button
fix popup background color

File size: 2.1 KB
Line 
1<?php
2/*
3Plugin Name: Admin Tools
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// | Plugin constants                                               |
15// +-----------------------------------------------------------------------+
16defined('ADMINTOOLS_ID') or define('ADMINTOOLS_ID', basename(dirname(__FILE__)));
17define('ADMINTOOLS_PATH' ,   PHPWG_PLUGINS_PATH . ADMINTOOLS_ID . '/');
18// define('ADMINTOOLS_ADMIN',   get_root_url() . 'admin.php?page=plugin-' . ADMINTOOLS_ID);
19define('ADMINTOOLS_VERSION', 'auto');
20
21
22// +-----------------------------------------------------------------------+
23// | Event handlers                                                    |
24// +-----------------------------------------------------------------------+
25include_once(ADMINTOOLS_PATH . 'include/events.inc.php');
26include_once(ADMINTOOLS_PATH . 'include/MultiView.class.php');
27
28global $MultiView;
29$MultiView = new MultiView();
30
31add_event_handler('init', 'admintools_init');
32
33if (!defined('IN_ADMIN'))
34{
35  add_event_handler('loc_after_page_header', 'admintools_add_public_controller');
36  add_event_handler('loc_begin_picture', 'admintools_save_picture');
37  add_event_handler('loc_begin_index', 'admintools_save_category');
38}
39
40add_event_handler('user_init', array(&$MultiView, 'user_init'));
41add_event_handler('init', array(&$MultiView, 'init'));
42
43
44// +-----------------------------------------------------------------------+
45// | Plugin initialization                                                 |
46// +-----------------------------------------------------------------------+
47function admintools_init()
48{
49  // global $conf;
50
51  // include_once(ADMINTOOLS_PATH . 'maintain.inc.php');
52  // $maintain = new AdminTools_maintain(ADMINTOOLS_ID);
53  // $maintain->autoUpdate(ADMINTOOLS_VERSION, 'install');
54
55  load_language('plugin.lang', ADMINTOOLS_PATH);
56
57  // $conf['AdminTools'] = unserialize($conf['AdminTools']);
58}
Note: See TracBrowser for help on using the repository browser.