Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Skrypt]Autoryzacja
Cr0n!x
post
Post #1





Grupa: Zarejestrowani
Postów: 40
Pomógł: 0
Dołączył: 24.05.2003

Ostrzeżenie: (0%)
-----


Otoz mam taki skrypt :

[php:1:d5d4feefb1]
<?php
if (file_exists("rejestracja/users/".$HTTP_COOKIE_VARS['login'].".usr"))
{
require("rejestracja/users/".$HTTP_COOKIE_VARS['login'].".usr");
}
if ( ($HTTP_COOKIE_VARS['login']=="$login") && ($HTTP_COOKIE_VARS['pw']=="$password") )
{
echo "zalogowany";
}
else
{
echo "bledne info";
}

?>[/php:1:d5d4feefb1]


Zawsze jest sie zalogowanym tu . Jaki popelnilem blad?.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Cr0n!x
post
Post #2





Grupa: Zarejestrowani
Postów: 40
Pomógł: 0
Dołączył: 24.05.2003

Ostrzeżenie: (0%)
-----


Dziwne... Nic sie nie pojawia...
Taki mam kod.

[php:1:8044319378]<?php

if (file_exists("rejestracja/users/".$HTTP_COOKIE_VARS['login_nastolatki'].".usr"))
{
require("rejestracja/users/".$HTTP_COOKIE_VARS['login_nastolatki'].".usr");
print 'cookie-login: '.$HTTP_COOKIE_VARS['login'].'<br />';
print 'cookie-pw: '.$HTTP_COOKIE_VARS['pw'].'<br />';
print '$login='.$login.'<br />';
print '$password='.$password.'<br />';
}

?>[/php:1:8044319378]
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 15.09.2025 - 03:53