From 5cdb05bfef2d554292063fccd7e092175970e8b9 Mon Sep 17 00:00:00 2001 From: wimpunk Date: Mon, 19 Jun 2006 10:23:50 +0000 Subject: [PATCH] Debuginformation added. git-svn-id: svn+ssh://svn.code.sf.net/p/ddclient/code/trunk@12 3873ddee-7413-0410-b6c4-c2c57c1ab35a --- html/index.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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'];