This shows you the differences between two versions of the page.
— |
scc [2019/06/24 19:38] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ~~NOCACHE~~ | ||
+ | ~~NOTOC~~ | ||
+ | |||
+ | <php> | ||
+ | /*I am also using this on viewallpages, etc.*/ | ||
+ | global $INFO; | ||
+ | /*$debug=($_SERVER["REMOTE_ADDR"] && | ||
+ | (preg_match('/^10\./',$_SERVER["REMOTE_ADDR"]) || $_SERVER["REMOTE_ADDR"]=="127.0.0.1"));*/ | ||
+ | $debug=(!preg_match('#(www\.)?(stockcharts?)\.([a-z]{2,3})$#i',$_SERVER["HTTP_HOST"])); | ||
+ | if (!$debug && in_array($_SERVER['REMOTE_ADDR'],array('84.197.29.73'))) $debug=true; | ||
+ | if (!$debug && preg_match('/^10\./',$_SERVER["REMOTE_ADDR"])) $debug=true; | ||
+ | if (!$debug) { | ||
+ | header("Location: http://stockcharts.com/"); | ||
+ | exit; | ||
+ | } | ||
+ | </php> | ||
+ | |||
+ | **WIKI PAGES:**\\ | ||
+ | [[Chart School|ChartSchool Root]]\\ | ||
+ | <html> <a href="doku.php?id=stockcharts.com&do=admin">Admin</a><br> | ||
+ | <a href="doku.php?id=stockcharts.com&do=admin&page=filemanager">File Manager</a><br></html> | ||
+ | [[View All Pages]] | ||
+ | |||
+ | |||
+ | <php> | ||
+ | global $INFO; | ||
+ | if ($INFO['perm'] != AUTH_ADMIN) { | ||
+ | $debug=(!preg_match('#(www\.)?(stockcharts?)\.([a-z]{2,3})$#i',$_SERVER["HTTP_HOST"])); | ||
+ | if (!$debug && in_array($_SERVER['REMOTE_ADDR'],array('84.197.29.73'))) $debug=true; | ||
+ | if (!$debug && preg_match('/^10\./',$_SERVER["REMOTE_ADDR"])) $debug=true; | ||
+ | print '<div class="box">'; | ||
+ | if ($debug) html_login(); | ||
+ | print '</div>'; | ||
+ | } | ||
+ | </php> | ||