aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/functions/auth.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-04-19 13:25:46 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-04-19 13:25:46 +0000
commit329b5e116bb7fb526e0a7153c2323fce54e39c77 (patch)
tree0f6d9c584f4966ecaacc8a4a354445facfb58a01 /phpBB/functions/auth.php
parent175d4a049fb71b7e3cc56d467411bcac5aa2f3d1 (diff)
downloadforums-329b5e116bb7fb526e0a7153c2323fce54e39c77.tar
forums-329b5e116bb7fb526e0a7153c2323fce54e39c77.tar.gz
forums-329b5e116bb7fb526e0a7153c2323fce54e39c77.tar.bz2
forums-329b5e116bb7fb526e0a7153c2323fce54e39c77.tar.xz
forums-329b5e116bb7fb526e0a7153c2323fce54e39c77.zip
Off to the realm of Mordor we go
git-svn-id: file:///svn/phpbb/trunk@183 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/functions/auth.php')
-rw-r--r--phpBB/functions/auth.php87
1 files changed, 0 insertions, 87 deletions
diff --git a/phpBB/functions/auth.php b/phpBB/functions/auth.php
deleted file mode 100644
index 3730cd5872..0000000000
--- a/phpBB/functions/auth.php
+++ /dev/null
@@ -1,87 +0,0 @@
-<?php
-/***************************************************************************
- * auth.php
- * -------------------
- * begin : Saturday, Feb 13, 2001
- * copyright : (C) 2001 The phpBB Group
- * email : support@phpbb.com
- *
- * $Id$
- *
- *
- ***************************************************************************/
-
-
-/***************************************************************************
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- *
- ***************************************************************************/
-
-/* Notes:
- * auth() is going to become a very complex function and can take in a LARGE number of arguments.
- * The currently included argements should be enough to handle any situation, however, if you need access to another
- * the best option would be to create a global variable and access it that way if you can.
- *
- * auth() returns:
- * TRUE if the user authorized
- * FALSE if the user is not
- */
-function auth($type, $db, $id = "", $user_ip = "")
-{
- global $userdata;
- switch($type)
- {
- // Empty for the moment.
- }
-}
-
-
-/*
- * The following functions are used for getting user information. They are not related directly to auth()
- */
-
-function get_userdata_from_id($userid, $db)
-{
- $sql = "SELECT * FROM ".USERS_TABLE." WHERE user_id = $userid";
- if(!$result = $db->sql_query($sql))
- {
- $userdata = array("error" => "1");
- return ($userdata);
- }
- if($db->sql_numrows($result))
- {
- $myrow = $db->sql_fetchrowset($result);
- return($myrow[0]);
- }
- else
- {
- $userdata = array("error" => "1");
- return ($userdata);
- }
-}
-
-function get_userdata($username, $db) {
- $sql = "SELECT * FROM ".USERS_TABLE." WHERE username = '$username' AND user_level != ".DELETED;
- if(!$result = $db->sql_query($sql))
- {
- $userdata = array("error" => "1");
- }
-
- if($db->sql_numrows($result))
- {
- $myrow = $db->sql_fetchrowset($result);
- return($myrow[0]);
- }
- else
- {
- $userdata = array("error" => "1");
- return ($userdata);
- }
-}
-
-?>