From 38f73720eaec5f49752589ac088b04b3fa734117 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Mon, 5 Jan 2009 18:01:06 -0500 Subject: Integreated Fourm users --- includes/functions.php | 29 ++--------------------------- 1 file changed, 2 insertions(+), 27 deletions(-) (limited to 'includes/functions.php') diff --git a/includes/functions.php b/includes/functions.php index 7c06077..16de184 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -22,24 +22,6 @@ if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);} require('headerproc.php'); -function isLoggedIn() -{ - return sess_exists('uname'); -} - -function getUserlevel() -{ - if (isLoggedIn()) - { - $getuser = "SELECT * FROM users WHERE username = \"" . sess_get('uname') . "\""; - $getuser2 = mysql_query($getuser); - $getuser3 = mysql_fetch_array($getuser2); - return $getuser3['user_group']; - } else { - return 4; - } -} - function countRows($table, $extra = '') { $cntrows = "SELECT * FROM " . $table . " " . $extra; @@ -62,7 +44,8 @@ function generateError($error) function echoLogData() { - if (!isLoggedIn()) { + if (!isLoggedIn()) + { return('in'); } else { return('out'); @@ -212,14 +195,6 @@ function updatePop($id, $area, $plus=1) } } -function verifyUser($username, $password) -{ - $getuser = 'SELECT * FROM users WHERE username = "' . $username . '" AND user_password = "' . md5($password) . '"'; - $getuser2 = mysql_query($getuser); - $getuser3 = mysql_fetch_array($getuser2); - return (($_POST['username'] != '') && ($getuser3['username'] == $_POST['username'])); -} - function getTags($id, $type = 'published') { $gettags = "SELECT * FROM tags WHERE post_id = " . $id . " AND post_type = \"" . $type . "\""; -- cgit 1.4.1