fred x Posted August 4, 2010 Share Posted August 4, 2010 I want to bypass the adm_userid and login script, just need it to work as is. the rest of the script calls these within... ideas???? <? session_start(); if(!$_SESSION['adm_userid']) header("location:login.php"); require_once 'functions.php'; if(!dbcon()) die("Database connectivity Error"); $sec_id=($_POST['sec_id']?$_POST['sec_id']:$_GET['sec_id']); $qry="select * from section where id='".$sec_id."'"; $rs=mysql_query($qry); $rw=mysql_fetch_array($rs); $sec_title=$rw['title']; $qry="select * from articles where id='".$_GET['id']."'"; $rs=mysql_query($qry); $rw=mysql_fetch_array($rs); ?> Quote Link to comment Share on other sites More sharing options...
fred x Posted August 5, 2010 Author Share Posted August 5, 2010 This script is in my way of trying to get the page to just load, is there a way to just fool it by entering a username and password automatically rather then going through this password script. ?? something like adm_userid']) =="admin" password="go" Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.