0 ) pwg_set_session_var( 'multiview_show_queries', 1 ); else pwg_unset_session_var( 'multiview_show_queries' ); $refresh_main = true; } if ( isset($_GET['debug_l10n']) ) { if ( $_GET['debug_l10n']>0 ) pwg_set_session_var( 'multiview_debug_l10n', 1 ); else pwg_unset_session_var( 'multiview_debug_l10n' ); $refresh_main = true; } if ( isset($_GET['debug_template']) ) { if ( $_GET['debug_template']>0 ) pwg_set_session_var( 'multiview_debug_template', 1 ); else pwg_unset_session_var( 'multiview_debug_template' ); $refresh_main = true; } if ( isset($_GET['template_combine_files']) ) { if ( $_GET['template_combine_files']==0 ) pwg_set_session_var( 'multiview_template_combine_files', 0 ); else pwg_unset_session_var( 'multiview_template_combine_files' ); $refresh_main = true; } if ( isset($_GET['no_history']) ) { if ( $_GET['no_history']>0 ) pwg_set_session_var( 'multiview_no_history', 1 ); else pwg_unset_session_var( 'multiview_no_history' ); $refresh_main = true; } if ( isset($_GET['purge_template']) ) { pwg_set_session_var( 'purge_template', 1 ); $refresh_main = true; } $my_url = get_root_url().'plugins/'.basename(dirname(__FILE__)).'/'.basename(__FILE__); // +-----------------------------------------------------------------------+ // | users | $query = ' SELECT '.$conf['user_fields']['id'].' AS id,'.$conf['user_fields']['username'].' AS username FROM '.USERS_TABLE.' ORDER BY CONVERT('.$conf['user_fields']['username'].',CHAR) ;'; $user_map = simple_hash_from_query($query, 'id', 'username'); $users_html = ''; // +-----------------------------------------------------------------------+ // | templates | $my_theme = ''; $themes_html=''; // +-----------------------------------------------------------------------+ // | language | $lang_html=''; // +-----------------------------------------------------------------------+ // | show queries | $show_queries_html=''; if (!$conf['show_queries']) { if ( !pwg_get_session_var( 'multiview_show_queries', 0 ) ) $show_queries_html.='Show SQL queries'; else $show_queries_html.='Hide SQL queries'; } // +-----------------------------------------------------------------------+ // | debug language | $debug_l10n_html=''; if (!$conf['debug_l10n']) { if ( !pwg_get_session_var( 'multiview_debug_l10n', 0 ) ) $debug_l10n_html.='Debug language'; else $debug_l10n_html.='Revert debug language'; } // +-----------------------------------------------------------------------+ // | debug template | $debug_template_html=''; if (!$conf['debug_template']) { if ( !pwg_get_session_var( 'multiview_debug_template', 0 ) ) $debug_template_html.='Debug template'; else $debug_template_html.='Revert debug template'; } // +-----------------------------------------------------------------------+ // | template combine files | $template_combine_files_html=''; if ($conf['template_combine_files']) { if ( pwg_get_session_var( 'multiview_template_combine_files', 1 ) ) $template_combine_files_html.='Don\'t combine js&css'; else $template_combine_files_html.='Combine js&css'; } // +-----------------------------------------------------------------------+ // | no history | $no_history_html=''; if ( !pwg_get_session_var( 'multiview_no_history', 0 ) ) $no_history_html.='Don\'t save to visit history'; else $no_history_html.='Save to visit history'; ?> Controller
User
Theme
Lang
\n", array($show_queries_html, $debug_l10n_html, $debug_template_html, $template_combine_files_html, $no_history_html) ); ?>
Purge compiled templates