Jump to content

Recommended Posts

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);

?>

Link to comment
https://forums.phpfreaks.com/topic/209833-bypass-admin-admin-password-script/
Share on other sites

 

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"

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.