- Timestamp:
- Nov 5, 2009, 9:13:41 PM (15 years ago)
- Location:
- trunk/plugins/admin_multi_view
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/admin_multi_view/controller.php
r3282 r4208 12 12 pwg_unset_session_var( 'multiview_debug_l10n' ); 13 13 pwg_unset_session_var( 'multiview_debug_template' ); 14 pwg_unset_session_var( 'multiview_no_history' ); 14 15 ?> 15 16 … … 82 83 else 83 84 pwg_unset_session_var( 'multiview_debug_template' ); 85 $refresh_main = true; 86 } 87 88 if ( isset($_GET['no_history']) ) 89 { 90 if ( $_GET['no_history']>0 ) 91 pwg_set_session_var( 'multiview_no_history', 1 ); 92 else 93 pwg_unset_session_var( 'multiview_no_history' ); 84 94 $refresh_main = true; 85 95 } … … 182 192 } 183 193 194 // +-----------------------------------------------------------------------+ 195 // | no history | 196 $no_history_html=''; 197 if ( !pwg_get_session_var( 'multiview_no_history', 0 ) ) 198 $no_history_html.='<a href="'.$my_url.'?no_history=1">Don\'t save to visit history</a>'; 199 else 200 $no_history_html.='<a href="'.$my_url.'?no_history=0">Save to visit history</a>'; 201 184 202 ?> 185 203 <html> … … 212 230 <tr><td>Lang</td><td><?php echo $lang_html; ?></td></tr> 213 231 </table> 214 <?php echo implode( "<br/>\n", array($show_queries_html, $debug_l10n_html, $debug_template_html ) ); ?>232 <?php echo implode( "<br/>\n", array($show_queries_html, $debug_l10n_html, $debug_template_html, $no_history_html) ); ?> 215 233 216 234 <script type="text/javascript"> -
trunk/plugins/admin_multi_view/is_admin.inc.php
r3282 r4208 26 26 if (pwg_get_session_var( 'multiview_debug_template', 0 )) 27 27 $conf['debug_template'] = true; 28 if (pwg_get_session_var( 'multiview_no_history', 0 )) 29 { 30 add_event_handler( 'pwg_log_allowed', create_function( '', 'return false;' ) ); 31 } 28 32 } 29 33
Note: See TracChangeset
for help on using the changeset viewer.