* $Id$
*/
-chdir('..');
+define('SM_PATH','../../');
-session_start();
+require_once(SM_PATH . 'include/validate.php');
-require_once('../config/config.php');
-require_once('../functions/strings.php');
-require_once('../functions/page_header.php');
-require_once('../functions/display_messages.php');
-require_once('../functions/imap.php');
-require_once('../functions/array.php');
-require_once('../functions/i18n.php');
-require_once('../src/load_prefs.php');
-displayPageHeader($color, "None");
+displayPageHeader($color, 'None');
function Show_Array($array) {
+ $str = '';
foreach ($array as $key => $value) {
if ($key != 0 || $value != '') {
$str .= " * $key = $value\n";
}
$browser = get_browser();
-$body_top .= "I subscribe to the squirrelmail-list mailing list.\n" .
+$body_top = "I subscribe to the squirrelmail-users mailing list.\n" .
" [ ] True - No need to CC me when replying\n" .
" [ ] False - Please CC me when replying\n" .
"\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" .
" Version: $version\n" .
" Plugins (List)\n" .
Show_Array($plugins);
-if ($ldap_server[0] && ! extension_loaded('ldap')) {
+if (isset($ldap_server) && $ldap_server[0] && ! extension_loaded('ldap')) {
$warning = 1;
$warnings['ldap'] = "LDAP server defined in SquirrelMail config, " .
"but the module is not loaded in PHP";
$corrections['ldap'][] = "Reconfigure SquirrelMail to not use LDAP";
}
-$body .= "\nMy IMAP server information:\n" .
+$body = "\nMy IMAP server information:\n" .
" Server type: $imap_server_type\n";
-$imap_stream = fsockopen ($imapServerAddress, $imapPort, &$error_number, &$error_string);
+$imap_stream = fsockopen ($imapServerAddress, $imapPort, $error_number, $error_string);
$server_info = fgets ($imap_stream, 1024);
if ($imap_stream) {
// SUPRESS HOST NAME
$corrections['imap'][] = "Make sure the mail server is running IMAP, not POP";
$corrections['imap'][] = "Make sure the server responds to port $imapPort";
}
-
+$warning_html = '';
$warning_num = 0;
-if ($warning) {
+if (isset($warning) && $warning) {
foreach ($warnings as $key => $value) {
if ($warning_num == 0) {
$body_top .= "WARNINGS WERE REPORTED WITH YOUR SETUP:\n";
<tr>
<td>
This bug involves: <select name="send_to">
- <option value="squirrelmail-list@lists.sourceforge.net">the general program</option>
+ <option value="squirrelmail-users@lists.sourceforge.net">the general program</option>
<option value="squirrelmail-plugins@lists.sourceforge.net">a specific plugin</option>
</select>
</td>
</tr>
</table>
</form>
-</body></html>
\ No newline at end of file
+</body></html>