diff options
author | vdigital <vdigital@piwigo.org> | 2008-05-23 22:38:14 +0000 |
---|---|---|
committer | vdigital <vdigital@piwigo.org> | 2008-05-23 22:38:14 +0000 |
commit | c55dbbc995e152af3f2c88662101b0643d2e171a (patch) | |
tree | 3862effd5384b7c39295ed6690c9ccafd1677e54 /BSF/plugins/admin_multi_view/is_admin.inc.php | |
parent | 77fd1f51a3c5f5a52f72ef8a299fe368228e2285 (diff) |
Removed file/folder
git-svn-id: http://piwigo.org/svn/trunk@2358 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'BSF/plugins/admin_multi_view/is_admin.inc.php')
-rw-r--r-- | BSF/plugins/admin_multi_view/is_admin.inc.php | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/BSF/plugins/admin_multi_view/is_admin.inc.php b/BSF/plugins/admin_multi_view/is_admin.inc.php deleted file mode 100644 index 7ae1f90dc..000000000 --- a/BSF/plugins/admin_multi_view/is_admin.inc.php +++ /dev/null @@ -1,47 +0,0 @@ -<?php -if (! defined('MULTIVIEW_CONTROLLER') ) -{ - global $user; - $view_as = pwg_get_session_var( 'multiview_as', 0 ); - if ($view_as) - { - $user = build_user( $view_as, true); - } - $theme = pwg_get_session_var( 'multiview_theme', '' ); - if ( !empty($theme) ) - { - list($user['template'], $user['theme']) = explode('/', $theme); - unset( $user['admin_template'], $user['admin_theme']); - } - $lang = pwg_get_session_var( 'multiview_lang', '' ); - if ( !empty($lang) ) - { - $user['language'] = $lang; - } - global $conf; - if (pwg_get_session_var( 'multiview_show_queries', 0 )) - $conf['show_queries'] = true; - if (pwg_get_session_var( 'multiview_debug_l10n', 0 )) - $conf['debug_l10n'] = true; - if (pwg_get_session_var( 'multiview_debug_template', 0 )) - $conf['debug_template'] = true; -} - -add_event_handler('loc_end_page_header', 'multiview_loc_end_page_header'); - -function multiview_loc_end_page_header() -{ - global $template; - $my_root_url = get_root_url().'plugins/'. basename(dirname(__FILE__)).'/'; - $js = -'<script type="text/javascript"> -var theController = window.open("", "mview_controller", "alwaysRaised=yes,dependent=yes,toolbar=no,height=200,width=220,menubar=no,resizable=yes,scrollbars=yes,status=no"); -if ( theController.location.toString()=="about:blank" || !theController.location.toString().match(/^(https?.*\/)controller\.php(\?.+)?$/)) -{ - theController.location = "'.$my_root_url.'controller.php"; -} -</script>'; - - $template->append( 'head_elements', $js ); -} -?> |