}
}
- /* DEBUG: */ echo "*".$pass."/".md5($password)."/".$ret."<br />";
+ //* DEBUG: */ echo "*".$pass."/".md5($password)."/".$ret."<br />";
if ((strlen($pass) == 32) && ($pass == md5($password))) {
// Generate new hash
$pass = generateHash($password);
}
}
}
+// Checks proxy settins by fetching check-updates2.php from www.mxchange.org
+function ADMIN_TEST_PROXY_SETTINGS ($settingsArray) {
+ global $_CONFIG;
+ // By default they are invalid
+ $valid = false;
+
+ // Set temporary the new settings
+ $_CONFIG = array_merge($_CONFIG, $settingsArray);
+
+ // Now get the test URL
+ $content = MXCHANGE_OPEN("check-updates2.php");
+
+ // Is the first line with "200 OK"?
+ $valid = ereg("200 OK", $content[0]);
+
+ // Return result
+ return $valid;
+}
//
?>