function get_report_redirect_url($p_no_referer = 0) { global $HTTP_REFERER, $g_show_report, $g_report_bug_page, $g_report_bug_advanced_page; if (!isset($HTTP_REFERER) || empty($HTTP_REFERER) || 1 == $p_no_referer) { switch ($g_show_report) { case BOTH: if (ON == get_current_user_pref_field("advanced_report")) { return $g_report_bug_advanced_page; } else { return $g_report_bug_page; } case SIMPLE_ONLY: return $g_report_bug_page; case ADVANCED_ONLY: return $g_report_bug_advanced_page; default: return $g_report_bug_page; } } else { return $HTTP_REFERER; } }
function get_bug_link_plain($p_id) { global $g_view_bug_page, $g_view_bug_advanced_page, $g_show_view; switch ($g_show_view) { case BOTH: if (ON == get_current_user_pref_field("advanced_view")) { return "{$g_view_bug_advanced_page}?f_id={$p_id}"; } else { return "{$g_view_bug_page}?f_id={$p_id}"; } break; case SIMPLE_ONLY: return "{$g_view_bug_page}?f_id={$p_id}"; break; case ADVANCED_ONLY: return "{$g_view_bug_advanced_page}?f_id={$p_id}"; break; } }