Foros del Web » Programando para Internet » PHP »

Problema para Logiarme

Estas en el tema de Problema para Logiarme en el foro de PHP en Foros del Web. Hola que tal amigos Toy provando un script que baje para implementar noticias de manera automatica y cuando me quiero logiar me dice Ops y ...
  #1 (permalink)  
Antiguo 04/02/2002, 11:18
 
Fecha de Ingreso: junio-2001
Ubicación: Rosario
Mensajes: 1.434
Antigüedad: 22 años, 9 meses
Puntos: 2
Problema para Logiarme

Hola que tal amigos

Toy provando un script que baje para implementar noticias de manera automatica y cuando me quiero logiar me dice Ops y se vuelve a cargar la pagina vean el codigo de Login.php

<center>
<embed width="360" height="60" src="http://escool2.netfirms.com/girl.swf">
  #2 (permalink)  
Antiguo 04/02/2002, 11:19
 
Fecha de Ingreso: junio-2001
Ubicación: Rosario
Mensajes: 1.434
Antigüedad: 22 años, 9 meses
Puntos: 2
Re: Problema para Logiarme

&lt;?php

// Copyright (C) 2002 JP Durman([email protected])

$self = &quot;login.php&quot;;

include(&quot;../config.php&quot;);

// Define DBASE file
$dbase = &quot;$datadir/users.db&quot;;

// Read DBASE file into variable
$dbasecontent = join ('', file($dbase));

if ($dbasecontent){
}
else {
$userline = &quot;1|sitenews|admin&quot;;

// &quot;a&quot; is voor append, toevoegen aan het eind van het bestand, i.p.v. overschrijven!
$file = fopen(&quot;$dbase&quot;, &quot;a&quot;);

// Schrijf de regel met user-info
fputs($file, $userline);

// Sluit en bewaar het bestand
fclose($file);
}

if ($login_user &amp;&amp; $login_password) {
$pass = md5($login_password);
setcookie(&quot;username&quot;);
setcookie(&quot;username&quot;, &quot;$login_user&quot;);
setcookie(&quot;password&quot;, &quot;$pass&quot;);
header(&quot;Location: admin.php&quot;);
exit;
}

include(&quot;include/top.php&quot;);

?&gt;

&lt;form method=&quot;post&quot; enctype=&quot;multipart/form-data&quot; action=&quot;&lt;?php echo&quot;$self&quot; ?&gt;&quot;&gt;
&lt;table border=&quot;0&quot; align=&quot;center&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; width=&quot;100%&quot;&gt;
&lt;tr&gt;
&lt;td valign=&quot;top&quot;&gt;
&lt;font face=&quot;&lt;?php echo &quot;$workspacefontface&quot; ?&gt;&quot; size=&quot;&lt;?php echo &quot;$workspacefontsize&quot; ?&gt;&quot; color=&quot;&lt;?php echo &quot;$workspacefontcolor&quot; ?&gt;&quot;&gt;
&lt;b&gt;
Username:
&lt;/b&gt;
&lt;/font&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;input type=&quot;text&quot; name=&quot;login_user&quot; size=&quot;47&quot;&gt;
&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td valign=&quot;top&quot;&gt;
&lt;font face=&quot;&lt;?php echo &quot;$workspacefontface&quot; ?&gt;&quot; size=&quot;&lt;?php echo &quot;$workspacefontsize&quot; ?&gt;&quot; color=&quot;&lt;?php echo &quot;$workspacefontcolor&quot; ?&gt;&quot;&gt;
&lt;b&gt;
Password:
&lt;/b&gt;
&lt;/font&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;input type=&quot;Password&quot; name=&quot;login_password&quot; size=&quot;47&quot;&gt;
&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td colspan=&quot;2&quot; align=&quot;center&quot;&gt;
&lt;br&gt;
&lt;input type=&quot;reset&quot; value=&quot;Reset&quot; name=&quot;reset&quot;&gt;
&lt;input type=&quot;submit&quot; value=&quot;Login&quot; name=&quot;submit&quot;&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/form&gt;

&lt;?php
include(&quot;include/footer.php&quot;);
?&gt;

<center>
<embed width="360" height="60" src="http://escool2.netfirms.com/girl.swf">
  #3 (permalink)  
Antiguo 04/02/2002, 11:21
 
Fecha de Ingreso: junio-2001
Ubicación: Rosario
Mensajes: 1.434
Antigüedad: 22 años, 9 meses
Puntos: 2
Re: Problema para Logiarme

y esa es la vercion 0.10 y en el foro oficial le dijeron que en la cercion 0.09 havia que modificarlo asi:

Open login.php in you favorite text editor and make these changes:

Look for these lines:
/* Maak twee cookies aan */
setcookie(&quot;username&quot;,$HTTP_POST_VARS[&quot;login_user&quot;],time()+3600*5,&quot;/&quot;,&quot;.$sitename&quot;,0);
setcookie(&quot;password&quot;, $pass,time()+3600*5, &quot;/&quot;, &quot;.$sitename&quot;, 0);


Change it to this:
/* Maak twee cookies aan */
setcookie(&quot;username&quot;, $HTTP_POST_VARS[&quot;login_user&quot;], 0, &quot;/&quot;);
setcookie(&quot;password&quot;, $pass, 0, &quot;/&quot;);

-----------------------------------------------------------

El problem es que como esta es la cericon 0.10 no se que hay que modificarle para que funcione bien la cookie que ta mal en ese codigo :(


Porfa Ayudenmeeeeeeeeeeeeeeee :)

<center>
<embed width="360" height="60" src="http://escool2.netfirms.com/girl.swf">
  #4 (permalink)  
Antiguo 04/02/2002, 19:54
 
Fecha de Ingreso: junio-2001
Ubicación: Rosario
Mensajes: 1.434
Antigüedad: 22 años, 9 meses
Puntos: 2
Re: Problema para Logiarme

Porfa Ayudenmeeeeeeeeeeeeeeeeeeee :(

Salu2 :)

<center>
<embed width="360" height="60" src="http://www.web-onear.org/images/Banners/bro/cvdhs.swf">
  #5 (permalink)  
Antiguo 05/02/2002, 09:47
 
Fecha de Ingreso: junio-2001
Ubicación: Rosario
Mensajes: 1.434
Antigüedad: 22 años, 9 meses
Puntos: 2
Re: Problema para Logiarme

Nadie sabe :(
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 02:47.