Zubrag.com
June 23, 2018, 02:28:31 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: setup Web Page Password Protect  (Read 7020 times)
vajra
Newbie
*
Posts: 1


« on: November 17, 2006, 11:20:56 AM »

Hi I set this up it looks like it's working but it will not accept any passwords? with no changes to the script I assume the default is.

zubrag
admin

Can anyone help

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


WWW
« Reply #1 on: November 17, 2006, 03:01:40 PM »

Find SETTINGS START section in the script (like shown below).
Below 2 users are setup (one user per line):
1) login: zubrag   password: root
2) login:admin   password: adminpass

You can edit these lines, or add more lines. Just make sure each line except the last line has comma at the end.

##################################################################
#  SETTINGS START
##################################################################

// Add login/password pairs below, like described above
// NOTE: all rows except last must have comma "," at the end of line
$LOGIN_INFORMATION = array(
  'zubrag' => 'root',
  'admin' => 'adminpass'
);

// request login? true - show login and password boxes, false - password box only
define('USE_USERNAME', true);

##################################################################
#  SETTINGS END
##################################################################
Logged
Pages: [1]
  Print  
 
Jump to:  

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