15.12.2010, 17:48:30
Probier mal bitte folgendes: Öffne die "includes/functions.inc.php" und scrolle bis ganz nach unten. Dort müsste folgender Code stehen Den ersetzt Du mit diesem hier Dann müsste es normalerweise funktionieren. Der Nachteil daran ist allerdings, dass Dir im Gästebuch dann nicht mehr angezeigt wird, wenn eine neue Version verfügbar ist. Außer fopen() ist bei Dir aktiviert. Kann ich mir aber nicht vorstellen, wenn nicht mal cURL bei Dir freigeschaltet ist.
Code:
// get version info with cURL
if (!function_exists("get_mgb_version_info"))
{
function get_mgb_version_info($url)
{
$ch = curl_init($url);
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec ($ch);
curl_close ($ch);
return $result;
}
}
Code:
// get version info with cURL
if (!function_exists("get_mgb_version_info"))
{
function get_mgb_version_info($url)
{
if(function_exists("curl_init"))
{
$ch = curl_init($url);
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec ($ch);
curl_close ($ch);
return $result;
}
}
}