fixing things, adding better security

git-svn-id: http://www.observium.org/svn/observer/trunk@351 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2009-03-11 14:50:24 +00:00
parent 98b5917f27
commit b7c9a6eb11
9 changed files with 57 additions and 14 deletions

View File

@@ -3,7 +3,6 @@
ini_set('allow_url_fopen', 0);
ini_set('display_errors', 0);
if($_GET[debug]) {
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
@@ -14,6 +13,8 @@ if($_GET[debug]) {
include("../config.php");
include("../includes/functions.php");
include("includes/authenticate.inc");
if(!$_SESSION['authenticated']) { echo("unauthenticated"); exit; }
if($_GET['query'] && $_GET['cmd']) {
$host = $_GET['query'];