<?php/*********************************************************************** Copyright (C) 2002-2005 Rickard Andersson (rickard@punbb.org) This file is part of PunBB. PunBB is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. PunBB is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA************************************************************************/define('PUN_ROOT', './');require_once PUN_ROOT.'include/common.php';require PUN_ROOT.'header.php';require_once PUN_ROOT.'include/parser.php';require_once PUN_ROOT.'lang/'.$pun_user['language'].'/login.php';require_once PUN_ROOT.'lang/'.$pun_user['language'].'/qcw.php';require_once PUN_ROOT.'lang/'.$pun_user['language'].'/index.php';require_once PUN_ROOT.'lang/'.$pun_user['language'].'/prof_reg.php';$errors = 0;function add_error($txt){ GLOBAL $errors; $errors ++; return "\n<li class='content'>$error_txt</li>";}if ($pun_user['g_read_board'] == '0') message($lang_common['No view']);$page_title = pun_htmlspecialchars($pun_config['o_board_title']);define('PUN_ALLOW_INDEX', 1);$p = $_GET['p'];if ($p=='episode') include "ep.php";elseif ($p=="episode_modifier" || $p=="episode_proposer" || $p=="upload_modifier" || $p=="upload_proposer" || $p=="valider_modifs") include "ep_mod.php";elseif ($p=='serie') include "se.php";else{$sql="SELECT t.subject, p.message, p.id AS pid, p.posted, p.edited, p.edited_by FROM `pun_posts` p LEFT JOIN `pun_topics` t ON p.topic_id = t.id WHERE t.id=12 ORDER BY p.posted DESC";$result = $db->query($sql);while ($cur_post = $db->fetch_assoc($result)){?><div id="p<?php echo $cur_post['pid'] ; ?>" class="blockpost<?php echo $vtbg; ?><?php if (($post_count + $start_from) == 1) echo ' firstpost'; ?>"><h2><span><?php echo pun_htmlspecialchars($cur_post['subject']); ?></span></h2> <div class="box"> <div class="inbox"> <div class="post_sup"> <div class="postmsg"> <?php echo parse_message($cur_post['message'], "0")."\n"; ?> </div> </div> </div> <h2><span><?php echo format_time($cur_post['posted']); ?></span></h2> </div></div><?}}$footer_style = 'index';echo '<div id="clearfix" class="clearer"></div>';require PUN_ROOT.'footer.php';