- 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:
rvelices
2007-02-15 03:03:16 +00:00
parent 11714951b3
commit ceb77253c3
8 changed files with 194 additions and 73 deletions
+17
View File
@@ -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' );
}
?>