diff --git a/html/index.php b/html/index.php index dc04481..698943d 100644 --- a/html/index.php +++ b/html/index.php @@ -1,3 +1,4 @@ + developers for ddclient on sourceforge"; +// Setting debugshit +if (isset($_REQUEST['debug'])) { + $debug = !($_REQUEST['debug'] == 0); +} else if (isset($_SESSION['debug'])) { + $debug = $_SESSION['debug']; +} else { + $debug = 0; +} +$_SESSION['debug'] = $debug; + // pages information; should be in a database // main @@ -31,6 +42,7 @@ $pages[2]['title'] = "supported protocols"; $pages[3]['nr'] = 3; $pages[3]['title'] = "supported routers"; + $curpage = isset($_GET['page'])?$_GET['page']:0; $titleextra = $pages[$curpage]['title']; $page = $pages[$curpage]['nr'];