// CFG: SERVER-PATH
setConfigEntry('PATH', str_replace("\\", '/', substr(dirname(__FILE__), 0, -3)));
-// Connect to the MySQL database...
-loadIncludeOnce('inc/mysql-connect.php');
-
// CFG: VERSION
setConfigEntry('VERSION', 'v0.2.1');
// CFG: COPY
setConfigEntry('COPY', 'Copyright © 2003 - 2008, by Roland Häder');
+// Connect to the MySQL database...
+loadIncludeOnce('inc/mysql-connect.php');
+
//
?>
$request = "GET /" . trim($script) . " HTTP/1.1" . getConfig('HTTP_EOL');
$request .= "Host: " . $host . getConfig('HTTP_EOL');
$request .= "Referer: " . getConfig('URL') . "/admin.php" . getConfig('HTTP_EOL');
- $request .= "User-Agent: " . getConfig('TITLE') . '/' . getConfig('FULL_VERSION') . getConfig('HTTP_EOL');
+ if (isConfigEntrySet('FULL_VERSION')) {
+ $request .= "User-Agent: " . getConfig('TITLE') . '/' . getConfig('FULL_VERSION') . getConfig('HTTP_EOL');
+ } else {
+ $request .= "User-Agent: " . getConfig('TITLE') . '/' . getConfig('VERSION') . getConfig('HTTP_EOL');
+ }
$request .= "Content-Type: text/plain" . getConfig('HTTP_EOL');
$request .= "Cache-Control: no-cache" . getConfig('HTTP_EOL');
$request .= "Connection: Close" . getConfig('HTTP_EOL') . getConfig('HTTP_EOL');