You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
617 B
PHTML
29 lines
617 B
PHTML
5 years ago
|
<?php
|
||
|
include_once('utils.php');
|
||
|
|
||
|
//
|
||
|
// INPUT:
|
||
|
//
|
||
|
// $user_login login of the user that consults the forum
|
||
|
// $shard shard from which the user connects in
|
||
|
// $forum forum to view
|
||
|
//
|
||
|
|
||
|
importParam('forum');
|
||
|
importParam('page');
|
||
|
|
||
|
check_character_belongs_to_guild($user_login, $forum);
|
||
|
|
||
|
$forum_dir = build_user_dir($forum, $shard);
|
||
|
|
||
|
$fname = $forum_dir.'forum'.(isset($page) && $page!="" && $page!="0" ? "_$page" : '').'.html';
|
||
|
if (!file_exists($fname))
|
||
|
{
|
||
|
include_once('thread_utils.php');
|
||
|
build_forum_page($forum);
|
||
|
}
|
||
|
|
||
|
$f = fopen($fname, 'r');
|
||
|
echo fread($f, filesize($fname));
|
||
|
fclose($f);
|
||
|
?>
|