klarmacker
Benutzer
- Mitglied seit
- 19. Mrz 2010
- Beiträge
- 58
- Punkte für Reaktionen
- 0
- Punkte
- 6
hi
ich habe das problem das ich diese meldung bekomme
ich habe das problem das ich diese meldung bekomme
<?php
// ******************************************************************* //
// * ddnsupdater - 3rdparty DDNS updater (webUI for ddclient) * //
// * Modul: ddnsupdater (main) * //
// * -------------------------------------- * //
// * Version 1.00 - 15/09/2009 - by QTip * //
// * - First public release * //
// * Version 1.00 Final - 17/10/2009 - by QTip * //
// * - Final release * //
// ******************************************************************* //
putenv('HTTP_COOKIE='.$_SERVER['HTTP_COOKIE']);
putenv('REMOTE_ADDR='.$_SERVER['REMOTE_ADDR']);
$user = exec('/usr/syno/synoman/webman/modules/authenticate.cgi');
if ($user !== 'admin') {
header("HTTP/1.0 403 Forbidden");
exit;
}
$spkver = "1.00";
include_once("include/config.php");
include_once("include/get_provider.php");
if (file_exists($ddnsconffile)) {
$ddnsconfig = @file($ddnsconffile);
while ($z < count($ddnsconfig)) {
if ($begin == false && strstr($ddnsconfig[$z],"# DDNS Provider Parameters Section")) { // search for start of values
break;
} elseif ($begin == false && !strstr($ddnsconfig[$z],"##") && substr($ddnsconfig[$z],0,1) != chr(10)) {
$global_temp = explode("=",trim($ddnsconfig[$z]));
$conf_global[$global_temp[0]]=$global_temp[1];
}
$z++;
}
} else {
$conf_global['daemon'] = 0;
}
exec('ps | grep ddclient | grep -v grep', $ddnsstatus);
exec($ddnsbin.' --help | tail -n 4 | head -n 1 | cut -d " " -f 3-',$ddnsversion);
exec('PATH="/opt/bin:/opt/sbin:$PATH" && which perl',$ddnsperl);
exec($ddnspath.'/ddnscmd.sh next-check 2>&1',$ddnscheck);
if ($ddnscheck[0] == "" && $ddnsstatus[0] == "") {
$sek = 0;
} elseif (intval($ddnscheck[0]) > 0 && $ddnsstatus != "") {
$checktext = "sleeping";
$sek = intval($ddnscheck[0]);
} elseif (intval($ddnscheck[0]) == 0 && $ddnsstatus != "") {
$checktext = "connecting";
$sek = 15;
}
if (file_exists($ddnsconffile.'.bak')) {
echo "<input type=\"hidden\" id=\"undostate\" name=\"undostate\" value=\"\">";
} else {
echo "<input type=\"hidden\" id=\"undostate\" name=\"undostate\" value=\"disabled\">";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<html><head>
<link rel="stylesheet" type="text/css" href="extjs/ext-3.0.0/resources/css/ext-all.css">
<link rel="stylesheet" type="text/css" href="extjs/ext-3.0.0/resources/css/xtheme-blue.css">
<link rel="stylesheet" type="text/css" href="scripts/ddnsupdater.css">
<script type="text/javascript" src="extjs/ext-3.0.0/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="extjs/ext-3.0.0/ext-all.js"></script>
<script type="text/javascript" src="scripts/ddnsupdater.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>DDNS updater</title>
<meta http-equiv="pragma" content="no-cache"><meta http-equiv="expires" content="0"><meta http-equiv="cache-control" content="no-cache">
</head><body>
<script language="javascript" type="text/javascript">
document.getElementsByTagName("body")[0].style.cursor = 'auto';
var intervaltime=<?php echo $conf_global['daemon'];?>;
var checktext='<?php echo $checktext;?>';
var sek=<?php echo $sek;?>;
var spkver='<?php echo $spkver;?>';
var ddclientver='<?php print $ddnsversion[0];?>';
var use_ssl = '<?php print $ddnsperl[0];?>';
Ext.namespace('Ext.interval');
Ext.interval.values = [
['2592000','30 days'],
['604800','7 days'],
['86400','1 day'],
['43200','12 hours'],
['3600','60 minutes'],
['1800','30 minutes'],
['600','10 minutes'],
['300','5 minutes'],
['240','4 minutes'],
['180','3 minutes'],
['120','2 minutes'],
['60','1 minute']
];
<?php if (count($provider_protocol) == 0) get_provider();
$providerstore = "\nExt.namespace('Ext.provider');\n";
$providerstore .= "Ext.provider.names = [\n";
while(list($protocolname,$providername) = each($provider_name)) {
$providerstore .= "['".$protocolname."','".$providername."','".$provider_server[$protocolname]."'],\n";
}
$providerstore = substr($providerstore,0,-2)."\n";
$providerstore .= "];\n";
print $providerstore;
?>
</script>
<div id="ddnsmain"></div><div style="display:none"><div id="spkversionstext">SPK version <?php print $spkver;?></div></div>
</body></html>