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; } $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; if (is_adviser()) { $query .=' WHERE '.$conf['user_fields']['id']. ' IN ('.$user['id'].','.$conf['guest_id'].') '; } $query .=' ORDER BY CONVERT('.$conf['user_fields']['username'].',CHAR) ;'; $user_map = simple_hash_from_query($query, 'id', 'username'); $users_html = ''; // +-----------------------------------------------------------------------+ // | templates | $my_template = ''; $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'; } ?>
User | |
Theme | |
Lang |