X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fbug_report%2Fbug_report.php;h=ef1c22a06eda46ae005e87521acdf9c764c11661;hb=fb69468112601468596fa23e00f247ac622f7770;hp=36cdc7d5b595988aafbdf86fdca222a817ecfebe;hpb=aa7fb30cfbfef6ef28ebde963f6312c79122f411;p=squirrelmail.git diff --git a/plugins/bug_report/bug_report.php b/plugins/bug_report/bug_report.php index 36cdc7d5..ef1c22a0 100644 --- a/plugins/bug_report/bug_report.php +++ b/plugins/bug_report/bug_report.php @@ -16,18 +16,10 @@ * $Id$ */ -session_start(); -chdir('..'); -define('SM_PATH','../'); - -require_once(SM_PATH . 'config/config.php'); -require_once(SM_PATH . 'functions/strings.php'); -require_once(SM_PATH . 'functions/page_header.php'); -require_once(SM_PATH . 'functions/display_messages.php'); -require_once(SM_PATH . 'functions/imap.php'); -require_once(SM_PATH . 'functions/array.php'); -require_once(SM_PATH . 'functions/i18n.php'); -require_once(SM_PATH . 'include/load_prefs.php'); +define('SM_PATH','../../'); + +require_once(SM_PATH . 'include/validate.php'); + displayPageHeader($color, 'None'); @@ -60,7 +52,7 @@ $body_top = "I subscribe to the squirrelmail-users mailing list.\n" . "(Optional) I got really bored and here's a fix:\n\n\n" . "----------------------------------------------\n" . "\nMy browser information:\n" . - " $HTTP_USER_AGENT\n" . + ' '.$_SERVER['HTTP_USER_AGENT'] . "\n" . " get_browser() information (List)\n" . Show_Array((array) $browser) . "\nMy web server information:\n" .