This is just the start of a program:-

<?
include ('dumptable.php');
session_start();
# Config
 if (isset($EasyLogOut)){
  session_unregister("EasyPASS");
  session_unregister("EasyUSER");
  session_unregister("EasySERVER");
  session_unregister("EasyDB");
  unset($EasyPASS);
  unset($EasyUSER);
  unset($EasySERVER);
  unset($EasyDB);

#  session_destroy();
 }
 elseif (isset($login[username])) {
  #encrypt password
  for ($i=0;$i<strlen($login[password]);$i++)
$login[password][$i]=$login[password][$i] ^ '*';

  session_register("EasyUSER"); $EasyUSER=$login[username];
  session_register("EasyPASS");$EasyPASS=$login[password];
  session_register("EasySERVER");$EasySERVER=$login[db_server];
  session_register("EasyDB");$EasyDB=$login[db_name];

 }

  define ("DB_SERVER",$EasySERVER);   # Server Name
  define ("DB_USER",$EasyUSER);      # User Name
  define ("DB_NAME",$EasyDB);       # database name
  $pass=$EasyPASS ;                   # Encrypted password ( xor '*') :-)

  #decrypt password

 for ($i=0;$i<strlen($pass);$i++) $pass[$i]=$pass[$i] ^ '*';

 define ("DB_PASS", $pass);
 define ("QUERY_STR",stripslashes($q));

Running this gives the following errors:-

Warning: Use of undefined constant username - assumed 'username' in
c:\inetpub\wwwroot\index.php on line 17
Warning: Undefined variable: EasySERVER in c:\inetpub\wwwroot\index.php on
line 28
Warning: Undefined variable: EasyUSER in c:\inetpub\wwwroot\index.php on
line 29
Warning: Undefined variable: EasyDB in c:\inetpub\wwwroot\index.php on line
30
Warning: Undefined variable: EasyPASS in c:\inetpub\wwwroot\index.php on
line 31


--
Ian Pawson
""Johannes Janson"" <[EMAIL PROTECTED]> wrote in message
9dghai$bu0$[EMAIL PROTECTED]">news:9dghai$bu0$[EMAIL PROTECTED]...
> Hi,
>
> > I get lost of warnings about 'undefined variables'
> > and 'unknown constats'.
>
> post some code. That's probably where the errors
> come from.
>
> johannes
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to