include 'header.php';
$clany = 0;
if($_GET['type'] == 3){
$_GET['today'] = 1;
}
if($_GET['type'] == 1){
$_GET['user'] = $user->username;
}
$op = $_GET['p'];
if($op < 1){$op = 1;}
if($_GET['p'] > 0){$_GET['p'] = $_GET['p'] - 1;}
$begin = $_GET['p'] * 20;
$forum1 = mysql_query("SELECT * FROM `F_forums` WHERE `id`='".$_GET['id']."'");
$forum = mysql_fetch_object($forum1);
if($forum->id < 1){
$_GET['id'] = 1;
$forum1 = mysql_query("SELECT * FROM `F_forums` WHERE `id`='1'");
$forum = mysql_fetch_object($forum1);
}
$total = ceil($forum->totalthreads / 30);
if($_GET['today'] == 1){$total = 0;$forum->name = "Pokemon Legion - Today's Posts (Last 30)";}
else if($_POST['forum']){$total = 0;$forum->name = "Pokemon Legion - Forum Search";}
else if($_GET['user'] != ""){$total = 0;$forum->name = "Pokemon Legion - Forum Search : ".$_POST['user'];}
else {
if($forum->id != 16){
if(check_power($user->adm,$forum->id,"p1") && check_power($user->adm,$forum->id,"p5")){$yes = 1;}
if($yes != 1){
echo Message("You are not supposed to view this!");
include 'footer.php';
}
}
if($forum->id == 16){
#Clan Forums
$clanx = mysql_query("SELECT * FROM `clans` WHERE `id` = '$user->clan'");
$clan = mysql_fetch_object($clanx);
$clanpowerx = mysql_query("SELECT * FROM `clanrank` WHERE `rank` = '$user->clanrank' AND `clanid` = '$user->clan'");
$clanpower = mysql_fetch_object($clanpowerx);
if($clan->id > 0)
{
$clany = $clan->id;
$preview = 1;
$forum->name = $clan->name." Clan Forum";
$forum->description = "The official forums of your clan ".$clan->name;
$forum->totalposts = $clan->totalposts;
$forum->totalthreads = $clan->totalthreads;
$forum->lastpostid = $clan->lastpostid;
$forum->lastpostn = $clan->lastpostn;
if($clan->lastposttime == ""){
$forum->lastposttime = 0;
}
else{
$forum->lastposttime = $clan->lastposttime;
}
$forum->lastpostu = $clan->lastpostu;
}
}
}
?>
Pokemon Legion Forums < echo $forum->name; ?>
echo $forum->name; ?>
echo $forum->name; ?>
|
|||||||
Thread / Author | Replies | Views | Last Post | ||||
> |
> echo $second; ?> | >
echo stripslashes($last->topic); ?> 1){?>( echo $pagez; ?>)}?>
|
> echo $last->posts-1; ?> | > echo $last->views; ?> |
echo date(F." ".d.", ".Y." ".g.":".i.":".sa,$last->lasttime); ?> Last Post: echo $last->lastpostuname; ?> |