From 035e7dd7d6af8f18453aecae63caddb94c11d754 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Wed, 23 Apr 2008 07:44:10 -0400
Subject: [PATCH] Removed the auto increment value for server table. Fixed a bug in password encryption function.

---
 interface/lib/classes/auth.inc.php |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/interface/lib/classes/auth.inc.php b/interface/lib/classes/auth.inc.php
index 5982249..d3ed6e9 100644
--- a/interface/lib/classes/auth.inc.php
+++ b/interface/lib/classes/auth.inc.php
@@ -30,6 +30,14 @@
 
 class auth {
 	
+	public function is_admin() {
+		if($_SESSION['s']['user']['typ'] == 'admin') {
+			return true;
+		} else {
+			return false;
+		}
+	}
+	
 	public function has_clients($userid) {
 		global $app, $conf;
 		

--
Gitblit v1.9.1