Last change
on this file since 1821 was
1821,
checked in by rvelices, 17 years ago
|
- plugins: added new action user_init
- put in a new admin_multi_view:allows admins to change on the fly language/theme and view gallery as guest (useful for developers and just to show a 'new' way of using plugins)
- removed some warnings from history.php and increased table width to 99%
- remove unused admin language strings
|
-
Property svn:eol-style set to
native
|
File size:
419 bytes
|
Line | |
---|
1 | <?php /* |
---|
2 | Plugin Name: Multi view |
---|
3 | Version: 1.0 |
---|
4 | Description: Allows administrators to view gallery as guests and/or change the language and/or theme on the fly. Practical to debug changes ... |
---|
5 | Plugin URI: http://www.phpwebgallery.net |
---|
6 | */ |
---|
7 | |
---|
8 | add_event_handler('user_init', 'multiview_user_init' ); |
---|
9 | |
---|
10 | function multiview_user_init() |
---|
11 | { |
---|
12 | if (!is_admin()) |
---|
13 | return; |
---|
14 | include_once( dirname(__FILE__).'/is_admin.inc.php' ); |
---|
15 | } |
---|
16 | |
---|
17 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.