in the install.php program, I have the following codes,
if ($_GET['step']==4){
if(!$set[1]) {$set[1]='admin';}
if(!$set[2]) {$set[2]='test';}
$set2=MD5('set[2]');
$filecontent="<? //write config to a file
\$adminidL='$set[1]';
\$adminpwdL='$set[2]';
\$title='$set[3]';
\$picpath='$set[4]';
";
writetofile("config.php",$filecontent);
$body.="config finish<br><br>";
$step="<a href=admin.php>success and enter admin</a>";
}
Then I go to the admin.php and I want to use $adminidL
and $adminpwdL which I input when run install.php.
Why I can not pass this two variable to the following code????
<?
/*
*/
//session_name('s');
//session_start();
$time_s=time();
$admin_body='';
require_once("global.php");
$pictime=get_date($time_s);
if (empty($adminid)) $adminid=$HTTP_SESSION_VARS['adminid'];
if (empty($adminpwd)) $adminpwd=$HTTP_SESSION_VARS['adminpwd'];
if($adminid != $adminidL || MD5('$adminpwd') != $adminpwdL)
{
FORM action=admin.php method=post>
<P>Administration Log in</P>
<P>Username:</SPAN><INPUT type=text name=adminid></P>
<P>Password:</SPAN><INPUT type=password name=adminpwd></P>
<P></P>
<P><INPUT type=submit value=Admin Login> <input type=reset value=reenter></P></FORM></TD></TR></TBODY></TABLE><BR>
";
}