mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
- 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
18 lines
419 B
PHP
18 lines
419 B
PHP
<?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' );
|
|
}
|
|
|
|
?>
|