Added a faq

git-svn-id: svn+ssh://svn.code.sf.net/p/ddclient/code/trunk@45 3873ddee-7413-0410-b6c4-c2c57c1ab35a
This commit is contained in:
wimpunk 2007-02-26 21:21:26 +00:00
parent 7d4520d12a
commit d5a1bb85c1
2 changed files with 48 additions and 1 deletions

42
html/faq.php Normal file
View file

@ -0,0 +1,42 @@
<?php
/*
* $Id: router.php 23 2006-10-01 09:47:57Z wimpunk $
*
* $LastChangedDate: 2006-10-01 11:47:57 +0200 (Sun, 01 Oct 2006) $
* $Rev: 23 $
* $Author: wimpunk $
*
* */
$text['id'] = "faq1";
$text['title'] = "Ddclient doesn't update when I changed my IP manual";
$text['menu'] = "forcing update";
$text['body'] =
"<p>
Ddclient doesn't check the dns result when it tries to update.
It checks its cache file an when value saved in the cache
differs from the result it got, it does an update. So if
you want to force an update, you could do it this way:
<ul>
<li>stop the normal instance of ddclient</li>
<li>force a value by running <code>ddclient -use=ip -ip=1.2.3.4 -daemon=0</code></li>
<li>start the normal instance of ddclient</li>
</ul>
This way, ddclient changes its cache and will see an changed IP
adres.
</p>\n";
$main[] = $text;
/*
$text['id'] = "nonrouter";
$text['title'] = "Non router option";
$text['menu'] = "Non router";
$text['body'] =
"<table>" .
"<tr><td>-use=web</td><td> obtain IP from an IP discovery page on the web. This is the default way if none is specified<tr></td>\n" .
"<tr><td>-use=if</td><td> obtain IP from the -if {interface}.<tr></td>" .
"<tr><td>-use=ip</td><td> obtain IP from -ip {address}.<tr></td>\n" .
"<tr><td>-use=cmd</td><td> obtain IP from the -cmd {external-command}.<tr></td>" .
"<tr><td>-use=fw</td><td> obtain IP from the firewall specified by -fw {type|address}.<tr></td>" .
"</table>";
$main[] = $text;
*/
?>

View file

@ -43,7 +43,8 @@ define('HOME', 0);
define('USAGE', 1);
define('PROTOCOL',2);
define('ROUTER', 3);
define('XML', 4);
define('FAQ', 4);
define('XML', 5);
// main
$pages[HOME]['nr'] = HOME;
@ -63,6 +64,10 @@ $pages[ROUTER]['nr'] = ROUTER;
$pages[ROUTER]['title'] = "supported routers";
$pages[ROUTER]['php'] = "router.php";
$pages[FAQ]['nr'] = FAQ;
$pages[FAQ]['title'] = "faq";
$pages[FAQ]['php'] = "faq.php";
if ($debug) {
$pages[XML]['nr'] = XML;
$pages[XML]['title'] = "xml";