Demonic Posted September 21, 2006 Share Posted September 21, 2006 [code]<?php session_start(); ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"><HTML><HEAD><TITLE>Admin Control Panel</TITLE></HEAD><?phpinclude "config.php"; if($logged[level] != 5){ echo "You do not have access to this page";exit();}?><?php$result = mysql_query("SELECT * FROM users WHERE username='$acpuname' ");$true = mysql_fetch_array($result);$acpuname = no_injection($_POST['username']);$password = md5($_POST['password']);$_SESSION['username'] = $_POST['username'];if(!isset($_SESSION['username'])){echo "<form method='post'><input type='text' name='username'><br><input type='password' name='password'><br><input type='submit' name='setsession' value='Set Session'></form>";}elseif(isset($_SESSION['username'])){?><frameset rows="20%,80%" border="0"><frame src="acpb.php" noresize="noresize" border="0"><frameset cols="25%,75%" border="0"><frame src="content.php" noresize="noresize" border="0"><frame src="admin.php" name="showframe" noresize="noresize" border="0"></frameset></frameset></HTML><? } ?>[/code]That code works perfectly like IPB almostI know how to check for password lolz but how can i make the session close if passwords are not correct like you see how i got it to check if session is thier? Well Im trying to make it so when you login and password isnt Correct the session returns false. Link to comment https://forums.phpfreaks.com/topic/21583-whoo-sessions-finnaly-working-quick-question/ Share on other sites More sharing options...
BillyBoB Posted September 21, 2006 Share Posted September 21, 2006 in this code do u have a part to check if the pass is correct if so then show me the part Link to comment https://forums.phpfreaks.com/topic/21583-whoo-sessions-finnaly-working-quick-question/#findComment-96366 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.