Wo kommst du nicht mehr drauf? Ein paar mehr Infos wären ganz hilfreich.
Oh sorry, vor lauter lass mich auch vergessen. Der Updater ging schon einmal und ich konnte dort auch alles einrichten. Er macht auch weiterhin seinen Job und es werden die Domains upgedatet. Nur leider komme ich nicht mehr auf die Benutzeroberfläche, ich bekommen immer den PHP Quellcode und weiss nicht wo es klemmt. Habe schon alles deinstalliert und wieder installiert. Die Synology habe ich auch schon neu gestartet, Stromlos gemacht etc. leider keine Besserung. Habe die 4er Beta drauf, vielleicht liegt es auch daran. Habe aber keine Plan und finde auch nichts woran es liegen könnte.
Gruss Jörg
<?php
// ****************************************************************** //
// * ddnsupdater - 3rdparty DDNS updater (webUI for ddclient) * //
// * Modul: ddnsupdater (index) * //
// * -------------------------------------- * //
// * Version 1.20 - 19/06/2012 * //
// * for more information check the changelog * //
// ******************************************************************* //
//$start = time();
putenv('HTTP_COOKIE='.$_SERVER['HTTP_COOKIE']);
putenv('REMOTE_ADDR='.$_SERVER['REMOTE_ADDR']);
$user = exec('/usr/syno/synoman/webman/modules/authenticate.cgi');
if ($user === '') {
header("HTTP/1.1 403 Forbidden");
exit("403 Forbidden");
}
$spkver = "1.20";
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 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" >
<head>
<link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css">
<link rel="stylesheet" type="text/css" href="extjs/resources/css/xtheme-gray.css">
<link rel="stylesheet" type="text/css" href="scripts/ddnsupdater.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 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/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>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="pragma" content="no-cache"><meta http-equiv="expires" content="0"><meta http-equiv="cache-control" content="no-cache">
</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 languages = '<?php for($i=0;$i<count($ddnslanguages);$i++){print $ddnslanguages[$i]." ";}?>';
<?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><div style="display:none"><div id="spkversionstext">SPK version <?php print $spkver;?></div></div>
<?php //echo date("s",time() - $start);?>
</body></html>