Тема: vBulletin hack
Показать сообщение отдельно
Старый 10.11.2002, 10:23     # 1
GodFather
Guest
 
Сообщения: n/a

Exclamation vBulletin hack

PHP код:
if($isVBulletinForum == true)
                $vbQuery = @mysql_query("select threadId, title, lastposter, views, dateline  from thread order by threadId desc limit $NumPosts");
            
            $fpc = 0;
      
            if($isVBulletinForum == true)
            {
                while($frow = @mysql_fetch_row($vbQuery))
                {
                ?>
                <a href="<?php echo $forumPath?>/showthread.php?threadid=<?php echo $frow[0]; ?>"><?php echo $frow[1]; ?></a>   |   Go: <i><b><?php echo $frow[2]; ?></b></i>&nbsp;(<?php echo $frow[3]; ?>)   |   <?php echo $frow[4]; ?> 
                <?php
                
}
            }
            ;
$frow[4]; - это 1034347177 (unix timestamp), его надо переделать в d-m-y в отдельной (но связанной) с форумом страничкой.
внутри файла admin/functions.php это вот так, но сделав аналагично то же, я нифига не видел на экране - $thread[lastreplytime]=vbdate($timeformat,$thread[lastpost]);