|
already tried that, and it doesn't work. as I mentioned before, it seems like any incoming variables are killed off before the form is created (see details above). If I try to access my variables before this bit of the script, then my variables are intact. If I try to access my variables later on, in the form for example, then they are non existent. So here is the last bit of the file admin/lib-permissions.inc.php:
function phpAds_LoginScreen($message='', $sessionID=0)
{
global $HTTP_COOKIE_VARS, $HTTP_SERVER_VARS;
global $phpAds_config, $phpAds_productname;
global $strUsername, $strPassword, $strLogin, $strWelcomeTo, $strEnterUsername, $strNoAdminInteface;
phpAds_PageHeader(phpAds_Login);
if ($phpAds_config['ui_enabled'] == true)
{
echo "<br>";
phpAds_ShowBreak();
echo "<br>";
echo "<form name='login' method='post' onSubmit='return login_md5(this);' action='".basename($HTTP_SERVER_VARS['PHP_SELF']);
echo (isset($HTTP_SERVER_VARS['QUERY_STRING']) && $HTTP_SERVER_VARS['QUERY_STRING'] != '' ? '?'.$HTTP_SERVER_VARS['QUERY_STRING'] : '')."'>";
echo "<input type='hidden' name='phpAds_cookiecheck' value='".$HTTP_COOKIE_VARS['sessionID']."'>";
echo "<input type='hidden' name='phpAds_md5' value=''>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0'><tr>";
echo "<td width='80' valign='bottom'><img src='images/login-welcome.gif'> </td>";
echo "<td width='100%' valign='bottom'>";
echo "<span class='tab-s'>".$strWelcomeTo." ".(isset($phpAds_config['name']) && $phpAds_config['name'] != '' ? $phpAds_config['name'] : $phpAds_productname)."</span><br>";
echo "<span class='install'>".$strEnterUsername."</span><br>";
if ($message != "")
{
echo "<div class='errormessage' style='width: 400px;'><img class='errormessage' src='images/errormessage.gif' align='absmiddle'>";
echo "<span class='tab-r'>$message</span></div>";
}
else
echo "<img src='images/break-el.gif' width='400' height='1' vspace='8'>";
echo "</td></tr><tr><td> </td><td>";
echo "<table cellpadding='0' cellspacing='0' border='0'>";
echo "<tr height='24'><td>".$strUsername.": </td><td><input class='flat' type='text' name='phpAds_username'></td></tr>";
echo "<tr height='24'><td>".$strPassword.": </td><td><input class='flat' type='password' name='phpAds_password'></td></tr>";
echo "<tr height='24'><td> </td><td><input type='submit' value='".$strLogin."'></td></tr>";
echo "</table>";
echo "</td></tr></table>";
echo "</form>";
phpAds_ShowBreak();
echo "<script language='JavaScript' src='md5.js'></script>";
echo "<script language='JavaScript'>";
?>
<!--
function login_md5(o) {
if (o.phpAds_password.value != '')
{
o.phpAds_md5.value = MD5(o.phpAds_password.value);
o.phpAds_password.value = '';
}
return true;
}
login_focus();
//-->
<?php
echo "</script>";
}
else
{
phpAds_ShowBreak();
echo "<br><img src='images/info.gif' align='absmiddle'> ";
echo $strNoAdminInteface;
}
phpAds_PageFooter();
exit;
}
so basically if I would add VALUE=MYVARIABLE in this form, then nothing would show up because the variable has somehow in the process been killed.
Any ideas?
|