So jetzt habe ich wieder den Web-Zugriff auf meine Diskstation. Leider habe ich weiterhin das Problem mit dem DDNS-Updater trotz Init:3rdparty 1.7-003.
Folgende Fehlermeldung wird angezeigt:
<?php
// ****************************************************************** //
// * ddnsupdater - 3rdparty DDNS updater (webUI for ddclient) * //
// * Modul: ddnsupdater (index) * //
// * -------------------------------------- * //
// * Version 1.27-002 - 10/05/2014 * //
// * for more information check the changelog * //
// ******************************************************************* //
//$start = time();
include_once("include/auth.php");
list($synotoken,$user) = authenticate();
if ($user == '') exit('403 Forbidden');
?>
<script type="text/javascript" src="scripts/check_appprivilege.js"></script>
<script language="javascript" type="text/javascript">
var check = check_appprivilege('SYNO.SDS._ThirdParty.App.ddnsupdater','<?php print $synotoken?>');
</script>
<?php
$spkver = "1.27-002";
include_once("include/config.php");
if ($_GET["debug"] == 1) {
exec($ddnspath.'/ddnscmd.sh debug',$debugret);
print '<script type="text/javascript">window.open("/webman/3rdparty/ddnsupdater/ddnsdebug.zip","top=200,left=600,width=400,height=300")</script>';
print 'After you saved the debug file, you can close this window';
die;
}
include_once("include/get_provider.php");
exec('PATH="/opt/bin:/opt/sbin:$PATH"',$ret);
exec('/bin/ps | grep ddclient | grep -v grep', $ddnsstatus);
exec($ddnsbin.' --help | tail -n 5 | head -n 1 | cut -d " " -f 3-',$ddnsversion);
exec($ddnspath.'/ddnscmd.sh dsmversion 2>&1',$dsmversion);
exec($ddnspath.'/ddnscmd.sh dsmlanguage 2>&1',$dsmlanguage);
exec($ddnspath.'/ddnscmd.sh languages 2>&1',$ddnslanguages);
exec($ddnspath.'/ddnscmd.sh checkstart',$ddnsperl);
exec($ddnspath.'/ddnscmd.sh next-check 2>&1',$ddnscheck);
if ($ddnscheck[0] == "" && $ddnsstatus[0] == "") {
$sek = -1;
} elseif (intval($ddnscheck[0]) > 0 && $ddnsstatus != "") {
$checktext = "sleeping";
$sek = intval($ddnscheck[0]);
} elseif (intval($ddnscheck[0]) == 0 && $ddnsstatus != "") {
$checktext = "connecting";
$sek = 5;
}
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;
}
?>
<!DOCTYPE html>
<html>
<head>
<!-- <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"> -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="pragma" content="no-cache"><meta http-equiv="expires" content="-1"><meta http-equiv="cache-control" content="no-cache">
<link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css">
<link rel="stylesheet" type="text/css" href="extjs/resources/css/xtheme-gray2.css">
<link rel="stylesheet" type="text/css" href="scripts/ddnsupdater.css">
<link rel="stylesheet" type="text/css" href="scripts/fileuploadfield.css">
<link rel="shortcut icon" href="favicon.ico">
<script type="text/javascript" src="extjs/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="extjs/ext-all.js"></script>
<script type="text/javascript" src="extjs/ext-fix.js"></script>
<script language="javascript" type="text/javascript">
function getUrlVars(){
var vars = [], hash;
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
for(var i = 0; i < hashes.length; i++){
hash = hashes.split('=');
vars.push(hash[0]);
vars[hash[0]] = hash[1];
}
return vars;
}
function convert_iso2syno(searchlang) {
var langconv = Array();
langconv['de'] = 'ger'; //german
langconv['en'] = 'enu'; //english US
langconv['zh'] = 'chs'; //chinese simplified
langconv['cs'] = 'csy'; //czech
langconv['jp'] = 'jpn'; //japan
langconv['ko'] = 'krn'; //korean
langconv['da'] = 'dan'; //danish
langconv['fr'] = 'fre'; //french
langconv['it'] = 'ita'; //italian
langconv['nl'] = 'nld'; //dutch
langconv['no'] = 'nor'; //norwegian
langconv['pl'] = 'plk'; //polish
langconv['ru'] = 'rus'; //russian
langconv['sp'] = 'spn'; //spanish
langconv['sv'] = 'sve'; //swedish
langconv['hu'] = 'hun'; //hungarian
langconv['tr'] = 'trk'; //turkish
langconv['pt'] = 'ptg'; //portuguese european
if (langconv[searchlang] != '' && langconv[searchlang] != undefined){
return langconv[searchlang];
} else {
return 'enu';
}
}
function convert_syno2iso(searchlang) {
var langconv = Array();
langconv['ger'] = 'de'; //german
langconv['enu'] = 'en'; //english US
langconv['chs'] = 'zh'; //chinese simplified
langconv['csy'] = 'cs'; //czech
langconv['jpn'] = 'jp'; //japan
langconv['krn'] = 'ko'; //korean
langconv['dan'] = 'da'; //danish
langconv['fre'] = 'fr'; //french
langconv['ita'] = 'it'; //italian
langconv['nld'] = 'nl'; //dutch
langconv['nor'] = 'no'; //norwegian
langconv['plk'] = 'pl'; //polish
langconv['rus'] = 'ru'; //russian
langconv['spn'] = 'sp'; //spanish
langconv['sve'] = 'sv'; //swedish
langconv['hun'] = 'hu'; //hungarian
langconv['trk'] = 'tr'; //turkish
langconv['ptg'] = 'pt'; //portuguese european
if (langconv[searchlang] != '' && langconv[searchlang] != undefined){
return langconv[searchlang];
} else {
return 'en';
}
}
var language = '<?php print $dsmlanguage[0];?>';
var urllang = getUrlVars()['lang'];
if (urllang != undefined && urllang != '') {
var ddnslang = convert_iso2syno(urllang);
} else if (language == 'def') {
if (navigator.appName == 'Netscape') {
var language = navigator.language.substr(0,2);
} else {
var language = navigator.browserLanguage.substr(0,2);
}
var ddnslang = convert_iso2syno(language);
} else if (language == undefined || language == '') {
ddnslang = 'enu';
} else {
ddnslang = language;
}
document.write('<script type="text/javascript" src="extjs/locale/ext-lang-' + convert_syno2iso(ddnslang) + '.js"\></script\>');
document.write('<script type="text/javascript" src="scripts/punycode.min.js"\></script\>');
document.write('<script type="text/javascript" src="scripts/FileUploadField.js"\></script\>');
document.write('<script type="text/javascript" src="scripts/ddnsupdater.js"\></script\>');
document.write('<script type="text/javascript" src="texts/enu/gui.js"\></script\>');
document.write('<script type="text/javascript" src="texts/' + ddnslang + '/gui.js"\></script\>');
</script>
</head><title>DDNS updater</title><body>
<!--[if lt IE 7]><style>
/* style for IE 6 + IE5.5 + IE5.0 */
.gainlayout { height: 0; }
</style><![endif]-->
<!--[if IE 7]><style>
.gainlayout { zoom: 1;}
</style><![endif]-->
<script type="text/javascript" src="scripts/functions.js"></script>
<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];?>';
var dsmversion = '<?php print $dsmversion[0];?>';
var syslogmessage = '<?php print $syslogmessage;?>';
var languages = '<?php for($i=0;$i<count($ddnslanguages);$i++){print $ddnslanguages[$i]." ";}?>';
var synotoken = '<?php print $synotoken?>';
<?php if (count($provider_protocol) == 0) get_provider();
reset($provider_name);
$providerstore = "\nExt.namespace('Ext.provider');\n";
$providerstore .= "Ext.provider.names = [\n";
$protocolstore = "\nExt.namespace('Ext.protocol');\n";
$protocolstore .= "Ext.protocol.names = [\n";
$pc = 0;
while(list($protocolname,$providername) = each($provider_name)) {
$providerstore .= "['".$protocolname."','".$providername."','".$provider_server[$protocolname]."'],\n";
if ($pc < count($provider_protocol)) $protocolstore .= "['".$protocolname."','".$provider_comment[$protocolname]."'],\n";
$pc++;
}
$providerstore = substr($providerstore,0,-2)."\n";
$protocolstore = substr($protocolstore,0,-2)."\n";
$providerstore .= "];\n";
$protocolstore .= "];\n";
print $providerstore;
print $protocolstore;
?>
</script>
<div id="ddnsmain"></div>
<?php //echo date("s",time() - $start);?>
</body></html>
Vielen Dank