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.
ryzom-core/ryzom/tools/server/www/thread.php

31 lines
665 B
PHTML

<?php
include_once('utils.php');
//
// INPUT:
//
// $user_login login of the user that consults the forum
// $shard shard from which the client connects in
// $forum forum to view
// $thread thread within forum to view
//
importParam('forum');
importParam('thread');
importParam('page');
check_character_belongs_to_guild($user_login, $forum);
$user_dir = build_user_dir($forum, $shard);
$fname = $user_dir."thread_$thread".(isset($page) && $page!="" && $page!="0" ? "_$page" : '').".html";
if (!file_exists($fname))
{
include_once('forum.php');
die();
}
$f = fopen($fname, 'r');
echo fread($f, filesize($fname));
fclose($f);
?>