Zubrag.com
September 21, 2018, 04:18:29 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Access protected page without login form  (Read 6070 times)
zubrag
Administrator
Hero Member
*****
Posts: 788


WWW
« on: January 03, 2007, 05:55:39 PM »

From the comment added for Web Page Password Protect:
How would you get directly into this page without the popup?  Straight from URL?

http://yourwebsite/page username=? password=?

Logged
zubrag
Administrator
Hero Member
*****
Posts: 788


WWW
« Reply #1 on: January 03, 2007, 06:00:25 PM »

In order to omit login form and be able to go directly to the page being protected do the following:

1. Replace all $_POST with $_REQUEST in the password_protect.php
This will enable passing parameters via url.

2. Use it as follows:
http://yourwebsite/your_page.php?access_login=LOGIN&access_password=PASSWORD

It would show login form if specified incorrect LOGIN or PASSWORD
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC