mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 17:23:04 +02:00
- 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
This commit is contained in:
@@ -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' );
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user