Changeset 2016 for trunk/plugins/admin_multi_view/controller.php
- Timestamp:
- May 16, 2007, 7:08:46 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/admin_multi_view/controller.php
r1912 r2016 9 9 pwg_unset_session_var( 'multiview_theme' ); 10 10 pwg_unset_session_var( 'multiview_lang' ); 11 pwg_unset_session_var( 'multiview_show_queries' ); 12 pwg_unset_session_var( 'multiview_debug_l10n' ); 11 13 ?> 12 14 <script type="text/javascript"> … … 44 46 } 45 47 48 if ( isset($_GET['show_queries']) ) 49 { 50 if ( $_GET['show_queries']> 0 ) 51 pwg_set_session_var( 'multiview_show_queries', 1 ); 52 else 53 pwg_unset_session_var( 'multiview_show_queries' ); 54 $refresh_main = true; 55 } 56 57 if ( isset($_GET['debug_l10n']) ) 58 { 59 if ( $_GET['debug_l10n']>0 ) 60 pwg_set_session_var( 'multiview_debug_l10n', 1 ); 61 else 62 pwg_unset_session_var( 'multiview_debug_l10n' ); 63 $refresh_main = true; 64 } 65 46 66 $my_url = get_root_url().'plugins/'.basename(dirname(__FILE__)).'/'.basename(__FILE__); 47 67 $my_theme = get_root_url().'template/'.$user['template'].'/theme/'.$user['theme'].'/theme.css'; … … 72 92 } 73 93 $lang_html .= '</select>'; 94 95 $show_queries_html=''; 96 if (!$conf['show_queries']) 97 { 98 $show_queries_html = '<br/>'; 99 if ( !pwg_get_session_var( 'multiview_show_queries', 0 ) ) 100 $show_queries_html.='<a href="'.$my_url.'?show_queries=1">Show SQL queries</a>'; 101 else 102 $show_queries_html.='<a href="'.$my_url.'?show_queries=0">Hide SQL queries</a>'; 103 } 104 105 $debug_l10n_html=''; 106 if (!$conf['show_queries']) 107 { 108 $debug_l10n_html = '<br/>'; 109 if ( !pwg_get_session_var( 'multiview_debug_l10n', 0 ) ) 110 $debug_l10n_html.='<a href="'.$my_url.'?debug_l10n=1">Debug language</a>'; 111 else 112 $debug_l10n_html.='<a href="'.$my_url.'?debug_l10n=0">Revert debug language</a>'; 113 } 74 114 ?> 75 115 … … 104 144 <?php echo $lang_html; ?> 105 145 146 <?php echo $show_queries_html; ?> 147 <?php echo $debug_l10n_html; ?> 106 148 107 149 <script type="text/javascript">
Note: See TracChangeset
for help on using the changeset viewer.