Zubrag.com
June 18, 2018, 01:19:36 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: How to Use variables instead of plain text in #LOGIN_INFORMATION  (Read 3368 times)
Abxi
Newbie
*
Posts: 1


« on: August 04, 2008, 05:55:05 AM »

Hello

Basically i set the variables by reading from an ini file calling an class script located in same folder. However i can problem making it accept the assigned variable password. Its not possible to use variables in arrays?

Heres what i done, the text in red is what i struggling with.
-------------------------------------------------------------------
SAMPLE if you only want to request login and password on login form.
Each row represents different user.
include "readini.class.php";
  $ini = new readini;
  $SMS[1] = $ini->ReadIniValue("SMS.ini", "Login", "SMS");
  $SMS[2] = $ini->ReadIniValue("SMS.ini", "Login", "SMS2");
  $SMS[3] = $ini->ReadIniValue("SMS.ini", "Login", "SMS3");
  $SMS[4] = $ini->ReadIniValue("SMS.ini", "Login", "SMS4");

$LOGIN_INFORMATION = array(
  'User1' => $SMS[1],
  'User2' => $SMS[2],
  'User3' => $SMS[3],
  'User4' => $SMS[4],

);

Thx in advance

EDIT: Worth mentioning is that i only want password login and i took the first login information in table. The part with only password contains only $SMS[1]...

-Abxi-

Logged
Pages: [1]
  Print  
 
Jump to:  

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