Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> PHPbb hasło
sajborg
post
Post #1





Grupa: Zarejestrowani
Postów: 271
Pomógł: 0
Dołączył: 20.08.2003
Skąd: Szczecinek

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


Siemka jak zrobic zeby na froum phpbb mozna było wejsc po podaniu hasła
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
POLVIP
post
Post #2





Grupa: Zarejestrowani
Postów: 80
Pomógł: 0
Dołączył: 1.11.2003
Skąd: Long Island, NY USA

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


znajdz w index.php (okolo 37 lini):
[php:1:d89bb1e415]<?php
if( $userdata['session_logged_in'] )
{
$sql = "SELECT COUNT(post_id) as total
FROM " . POSTS_TABLE . "
WHERE post_time >= " . $userdata['user_lastvisit'] . "
AND poster_id != " . $userdata['user_id'];

$result = $db->sql_query($sql);
if( $result )
{
$row = $db->sql_fetchrow($result);
$lang['Search_new'] = $lang['Search_new'] . " (" . $row['total'] . ")";
}
}
?>[/php:1:d89bb1e415]
dodaj po tym:

[php:1:d89bb1e415]<?php
else
{
redirect(append_sid("login.$phpEx?redirect=index.$phpEx", true));
}
?>[/php:1:d89bb1e415]
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: 6.10.2025 - 18:22