aboutsummaryrefslogtreecommitdiff
path: root/admin/admin_functions.php
diff options
context:
space:
mode:
authorjhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2009-12-27 19:21:11 -0500
committerjhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2009-12-27 19:21:11 -0500
commited943b32335933f369d9aa459689e986c10421ae (patch)
tree0c862c0f28308dc95e2e382a64a9d3e4bf51cca9 /admin/admin_functions.php
parentd526decc4884710ae7fafe7aa5171e7f59b24292 (diff)
downloadbayonetcms-ed943b32335933f369d9aa459689e986c10421ae.tar.gz
(OC) fixed some bugs in the admin panel caused by the new sql wrapper. *need to figure out the avatar for smflogin block.
git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@403 c5b2fb0a-d05d-0410-98c8-828840a80ff6
Diffstat (limited to 'admin/admin_functions.php')
-rw-r--r--admin/admin_functions.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/admin/admin_functions.php b/admin/admin_functions.php
index 83392a1..95c2aa5 100644
--- a/admin/admin_functions.php
+++ b/admin/admin_functions.php
@@ -50,8 +50,8 @@ function login()
$password = crypt(md5($password),'iamnotadirtywhorebitch');
$result = $db->Query("SELECT * FROM bayonet_users WHERE username = '$username' AND password = '$password' LIMIT 1");
$rows = $db->Rows($result);
- $row = $db->Fetch($result);
-
+ $row = $db->FetchRow($result);
+
if($rows > 0)
{
$_SESSION['username'] = stripslashes($username);
@@ -64,7 +64,8 @@ function login()
ReportError("Login incorrect.");
//NOT CORRECT LOGIN, DEFAULT TO LOGIN PAGE
- echo "<meta http-equiv=\"Refresh\" content=\"1;url=index.php\">";
+ //echo "<meta http-equiv=\"Refresh\" content=\"1;url=index.php\">";
+ PageRedirect(1, "index.php");
return false;
}