View file error.php

File size: 2.44Kb
<?php

/*************************************************
 *                  re.php
 *                 -------------
 *  [email protected] 2009 REKLAMA Проект для phpbb
 ************************************************/

define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

$userdata = session_pagestart($user_ip, PAGE_ERROR);
init_userprefs($userdata);

$page_title = $board_config['site_desc'];
include($phpbb_root_path . 'includes/page_header.'.$phpEx);

?>
<table class="tab" width="100%">
<tr><td>
<table cellspacing="0" cellpadding="0" border="0">
<tr><td class="row_easy">E</td><td></td><td class="row_easy">R</td>   <td>&nbsp;</td>  <td></td><td class="row1">R</td><td></td>   <td>&nbsp;</td> <td class="row_hard">O</td><td></td><td class="row_hard">R</td></tr>
<tr><td class="row_easy">О</td><td></td><td class="row_easy">Ш</td>   <td>&nbsp;</td>  <td class="row1">И</td><td></td><td class="row1">Б</td>  <td>&nbsp;</td> <td class="row_hard">К</td><td></td><td class="row_hard">А</td></tr>
<tr><td class="row_easy">И</td><td class="row_easy">З</td><td class="row_easy">В</td> <td>&nbsp;</td>   <td class="row1">И</td><td></td><td class="row1">Н</td>  <td>&nbsp;</td> <td class="row_hard">И</td><td class="row_hard">Т</td><td class="row_hard">Е</td></tr>
<tr><td></td><td></td><td class="row_easy">;-)</td>   <td>&nbsp;</td>   <td class="row1">:-)</td><td></td><td class="row1">=)</td>   <td>&nbsp;</td> <td></td><td></td><td class="row_hard">)))</td></tr>
<tr><td></td><td></td><td class="row_easy">**</td>   <td>&nbsp;</td>   <td></td><td class="row1">**</td><td></td>    <td>&nbsp;</td> <td></td><td></td><td class="row_hard">**</td></tr>
</table>
</td>
<td class="row1">
<?

$sql = "SELECT * FROM " . TOPICS_TABLE . " AS t, " . POSTS_TABLE . " AS p 
        WHERE p.post_id = t.topic_last_post_id
        ORDER BY p.post_time DESC LIMIT 40";
	        
if ( !$result = $db->sql_query($sql) )
{
        message_die(GENERAL_ERROR, "Could not fetch recent topics information.", '', __LINE__, __FILE__, $sql);
}
             
while ( $row = $db->sql_fetchrow($result) )
{	
   echo '&nbsp;<a href=' . append_sid('/topic' . $row['topic_id'] . '.xhtml') . ' class="cattitle">'. $row['topic_title'] . '</a>('.$row['topic_replies'].')&nbsp;*';
}
echo '</td></tr></table><br/>';
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

?>