Ir para conteúdo
Fórum Script Brasil
  • 0

erro em script ta na foto na parte de admin


websuite

Pergunta

Estou tentando instalar o script ta na foto mas na parte de admin não funciona de forma alguma ..so da erro => 'document.forms.0.entered_login' é nulo ou não e um objeto linha 117

<?PHP

//  ------ create table variable ------
// variables for Netscape Navigator 3 & 4 are +4 for compensation of render errors
$Browser_Type  =  strtok($HTTP_ENV_VARS['HTTP_USER_AGENT'],  "/");
if ( ereg( "MSIE", $HTTP_ENV_VARS['HTTP_USER_AGENT']) || ereg( "Mozilla/5.0", $HTTP_ENV_VARS['HTTP_USER_AGENT']) || ereg ("Opera/5.11", $HTTP_ENV_VARS['HTTP_USER_AGENT']) ) {
$theTable = 'WIDTH="400" HEIGHT="245"';
} else {
$theTable = 'WIDTH="400" HEIGHT="245"';
}

echo $HTTP_ENV_VARS["QUERY_STRING"];

// ------ create document-location variable ------
if ( ereg("php\.exe", $HTTP_SERVER_VARS['PHP_SELF']) || ereg("php3\.cgi", $HTTP_SERVER_VARS['PHP_SELF']) || ereg("phpts\.exe", $HTTP_SERVER_VARS['PHP_SELF']) ) {
$documentLocation = $HTTP_ENV_VARS['PATH_INFO'];
} else {
$documentLocation = $HTTP_SERVER_VARS['PHP_SELF'];
}
if ( $HTTP_ENV_VARS['QUERY_STRING'] ) {
$documentLocation .= "?" . $HTTP_ENV_VARS['QUERY_STRING'];
}
include("../config.php");

?>

<script LANGUAGE="JavaScript">
<!--
//  ------ check form ------
function checkData() {
var f1 = document.forms[0];
var wm = "<?PHP echo $strJSHello; ?>\n\r\n";
var noerror = 1;

// --- entered_login ---
var t1 = f1.entered_login;
if (t1.value == "" || t1.value == " ") {
wm += "<?PHP echo $strLogin; ?>\r\n";
noerror = 0;
}

// --- entered_password ---
var t1 = f1.entered_password;
if (t1.value == "" || t1.value == " ") {
wm += "<?PHP echo $strPassword; ?>\r\n";
noerror = 0;
}

// --- check if errors occurred ---
if (noerror == 0) {
alert(wm);
return false;
}
else return true;
}
//-->
</SCRIPT>

<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td colspan="2"><div align="right">
      <table width="100%"  border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
        <tr>
          <td align="right">
            <table width="100%"  border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><script Language="JavaScript">
hoje = new Date()
numero_de_imagens = 2
segundos = hoje.getSeconds()
numero = segundos % numero_de_imagens
if (numero == 0){
banner = "foto1_ent.gif"
}
if (numero == 1){
banner = "foto2_ent.gif"
}
document.write('<img src="../images/layout/' + banner + '" border=`0`>') 
</script>
<script LANGUAGE="JavaScript">
<!--
document.forms[0].entered_login.select();
document.forms[0].entered_login.focus();
//-->
</SCRIPT>
</td>
                <td><table width="400"  border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="2%" background="../images/layout/bk_ent.gif">&nbsp;</td>
                    <td width="98%" bgcolor="#FFFFFF"><table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0">
                        <tr>
                          <td width="37%" rowspan="2"><img src="../images/layout/logo_ent.gif" width="124" height="220"></td>
                          <td width="63%" height="35%" valign="bottom"><img src="../images/layout/logo2_ent.gif" width="155" height="55"><br>
                            <br>
                            <br></td>
                        </tr>
                        <tr>
                          <td valign="top"><form action='<?PHP echo $documentLocation; ?>' METHOD="post" onSubmit="return checkData()">
                           
                          &nbsp;
  Administra&ccedil;&atilde;o:
    <TABLE border="0" CELLPADDING="0" CELLSPACING="0">
  <TR>
              <TD ALIGN="left" VALIGN="middle">
    <table border="0" cellpadding="0" cellspacing="3">
                  <tr> 
                    <td colspan="2"><input class="input" name="entered_login" type="text" size="25"></td>
                  </tr>
                  <tr> 
                    <td><input class="input" name="entered_password" type="password" size="15"></td>
                    <td><input class="input" name="logar" type="submit" value="Entrar"></td>
                  </tr>
                </table>              </TD>
            </TR></TABLE>
                           <font color="#FF0000">
                            <?PHP
// check for error messages
if ($message) {
echo $message;
} ?></font>                                                                           
                          </form></td>
                        </tr>
                    </table></td>
                  </tr>
                </table></td>
              </tr>
            </table>
            </td>
        </tr>
      </table>
    </div></td>
  </tr>
</table>

Link para o comentário
Compartilhar em outros sites

2 respostass a esta questão

Posts Recomendados

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,2k
    • Posts
      651,9k
×
×
  • Criar Novo...