aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/admin_multi_view/main.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2007-02-15 03:03:16 +0000
committerrvelices <rv-github@modusoptimus.com>2007-02-15 03:03:16 +0000
commitceb77253c30a0d0fb37d883685f0501d588caf78 (patch)
tree07cb5609ed2c7a075f0555ce7369e6d575a5ac1e /plugins/admin_multi_view/main.inc.php
parent11714951b33d340f13400aa8fc9a2b971f8d8e8b (diff)
- 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 git-svn-id: http://piwigo.org/svn/trunk@1821 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--plugins/admin_multi_view/main.inc.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/plugins/admin_multi_view/main.inc.php b/plugins/admin_multi_view/main.inc.php
new file mode 100644
index 000000000..f0ed7a74d
--- /dev/null
+++ b/plugins/admin_multi_view/main.inc.php
@@ -0,0 +1,17 @@
+<?php /*
+Plugin Name: Multi view
+Version: 1.0
+Description: Allows administrators to view gallery as guests and/or change the language and/or theme on the fly. Practical to debug changes ...
+Plugin URI: http://www.phpwebgallery.net
+*/
+
+add_event_handler('user_init', 'multiview_user_init' );
+
+function multiview_user_init()
+{
+ if (!is_admin())
+ return;
+ include_once( dirname(__FILE__).'/is_admin.inc.php' );
+}
+
+?>