- $request = "POST /" . trim($script) . " HTTP/1.1\r\n";
- $request .= "Host: " . $host . "\r\n";
- $request .= "Referer: " . constant('URL') . "/admin.php\r\n";
- $request .= "User-Agent: " . constant('TITLE') . '/' . constant('FULL_VERSION') . "\r\n";
- $request .= "Content-type: application/x-www-form-urlencoded\r\n";
- $request .= "Content-length: " . strlen($data) . "\r\n";
- $request .= "Cache-Control: no-cache\r\n";
- $request .= "Connection: Close\r\n\r\n";
+ $request = "POST /" . trim($script) . " HTTP/1.1" . getConfig('HTTP_EOL');
+ $request .= "Host: " . $host . getConfig('HTTP_EOL');
+ $request .= "Referer: " . constant('URL') . "/admin.php" . getConfig('HTTP_EOL');
+ $request .= "User-Agent: " . constant('TITLE') . '/' . constant('FULL_VERSION') . getConfig('HTTP_EOL');
+ $request .= "Content-type: application/x-www-form-urlencoded" . getConfig('HTTP_EOL');
+ $request .= "Content-length: " . strlen($data) . getConfig('HTTP_EOL');
+ $request .= "Cache-Control: no-cache" . getConfig('HTTP_EOL');
+ $request .= "Connection: Close" . getConfig('HTTP_EOL') . getConfig('HTTP_EOL');