<[title]>
<[pagename]>

<[theme:loginbox]> endHEADER ; $f_version = VERSION; $exectime = number_format(microtime(true) - $GLOBALS['start_exec'],3); $timezone = date('O e'); $time = date($config->HappyDateFormat).' '.date($config->TimeFormat); $theme_data['footer'] = <<
endFOOTER ; if (substr($_SERVER['REQUEST_URI'],-1,1) == '/') $_SERVER['REQUEST_URI'] = $_SERVER['REQUEST_URI'].'index.php'; $current_page = htmlentities(rsn(basename($_SERVER['REQUEST_URI']),'a-zA-Z0-9 _.-?&=%')); if (isset($_SESSION['username'])){ $cyou = user($_SESSION['username'],true); $theme_data['loginbox'] = << $cyou
Logout
endLOGINBOX ; } else { $theme_data['loginbox'] = <<

Click here to register!
endLOGINBOX ; } $theme_data['errorbox'] = <<
Forum Error
<[errormsg]> endERRORBOX ; $register_list_html = ''; if (isset($config->register_list)){ $register_list = $config->register_list; foreach ($register_list as $key => $data){ if ($data == 'hr') $register_list_html .= "
\n"; else { $name = $data[0]; $ereg = ''; $data[1] ? $req = '' : $req = ''; $data[1] ? $ereq = '' : $ereq = ''; $register_list_html .= "$req$name$ereg\n"; } } } $theme_data['registrationform'] = <<
Red fields are required $register_list_html
Username
Password
Repeat Password


endREGISTRATIONFORM ; $register_list_html = ''; if (isset($config->register_list)){ $register_list = $config->register_list; foreach ($register_list as $key => $data){ if ($data == 'hr') $register_list_html .= "
\n"; else { $name = $data[0]; $ereg = ''; $data[1] ? $req = '' : $req = ''; $data[1] ? $ereq = '' : $ereq = ''; if (isset($_SESSION['username'])) $register_list_html .= "$req$name$ereg{$_SESSION['username']}->$key}\">\n"; else $register_list_html .= "$req$name$ereg\n"; } } } if (isset($_SESSION['username'])) $theme_data['editprofile'] = <<
Red fields cannot be left blank.
Leave the password boxes blank if you do not wish to change your password.
$register_list_html
Change Password
Repeat Password


endEDITPROFILE ; $theme_data['profilebox'] = <<

<[status]>
<[avatar]>
<[username]> <[fullname]>
<[rank]>
Posts <[posts]>
Email <[email]>
Website <[website]>
Location <[location]>
<[sig]>

endPROFILEBOX ; if (isset($GLOBALS['forumlist'])){ $theme_data['forumlist'] = <<<[title]>
endFORUMLIST ; $i = false; foreach ($GLOBALS['forumlist'] as $forum => $data){ if (isset($data->LastPostDate)) $postdate = hdate($data->LastPostDate,1); else $postdate = ''; if (isset($data->LastPostAuthor)) $clpa = user($data->LastPostAuthor,true); else $clpa = 'No posts'; if ($i = !$i) $cforumlist = 'forumlist'; else $cforumlist = 'altforumlist'; $theme_data['forumlist'] .= << endFORUMLIST ; } $theme_data['forumlist'] .= <<
Forum Title & DescriptionPostsTopicsLast Post
$forum
{$data->desc}
{$data->postcount}{$data->topiccount}$clpa
$postdate
Forum Title & DescriptionPostsTopicsLast Post
endFORUMLIST ; } if (isset($GLOBALS['topics'])){ $gforum = $GLOBALS['gforum']; $tc = count($GLOBALS['rtopics']); $page = $GLOBALS['pp']; $pages = 1; $pages = ceil($tc/$config->TopicsPerPage); $prevpage = '<<'; $nextpage = '>>'; if ($page > 1) $prevpage = "<<"; if ($pages > $page) $nextpage = ">>"; if (isset($_SESSION['username'])) $tactions = <<New Topic endTACTIONS; else $tactions = ''; $theme_data['topiclist'] = <<<[title]> -> $gforum
$prevpage Page: $page of $pages $nextpage
 $tactions
endTOPICLIST ; foreach ($GLOBALS['topics'] as $order => $data){ $topicid = $data[0]; $data = $data[1]; if (isset($data->LastPostDate)) $postdate = hdate($data->LastPostDate,1); else $postdate = ''; $cauthor = user($data->Author,true); if (isset($data->LastPostAuthor)) $clpa = user($data->LastPostAuthor,true); else $clpa = 'No posts'; if ($order %2 == 1) $cforumlist = 'forumlist'; else $cforumlist = 'altforumlist'; $theme_data['topiclist'] .= << endTOPICLIST ; } $theme_data['topiclist'] .= <<
Topic TitleAuthorRepliesLast Post
{$data->Title}$cauthor{$data->Replies}$clpa
$postdate
Topic TitleAuthorRepliesLast Post
endTOPICLIST ; } if (isset($_SESSION['username']) && isset($GLOBALS['gtopic'])) $you = $_SESSION['username']; if (isset($you) && $profile->$you->Admin >= 40){ $modtasks = <<Lock | Move | Delete endMODTASKS; } if (isset($_SESSION['username']) && isset($GLOBALS['gtopic'])) $actions = <<Reply endACTIONS; if (isset($GLOBALS['posts'])){ if (isset($GLOBALS['gtopic'])) $gtopic = $GLOBALS['gtopic']; else $gtopic = ''; if (!isset($modtasks)) $modtasks = ''; if (!isset($actions)) $actions = ''; $theme_data['topicdisplay'] = <<<[title]> -> {$topic->$gtopic->Forum} -> {$topic->$gtopic->Title}
$modtasks  $actions
endTOPICDISPLAY ; $mod = (isset($you) && $profile->$you->Admin >= 40); foreach ($GLOBALS['posts'] as $postid => $data){ $postdate = hdate($data['Date'],1); $cauthor = user($data['Author'],true); $author = $data['Author']; if (isset($profile->$author->Avatar) && !empty($profile->$author->Avatar)) $avatar = '
'; else $avatar = ''; $postmod = '
'; $usermod = << Profile | PM endUSERMOD; if (isset($you) && $you == $author){ $postmod .= <<Edit | Delete endPOSTMOD; } if ($mod && $you != $author && $profile->$you->Admin > $profile->$author->Admin){ $usermod .= <<Warn | Ban endUSERMOD; $postmod .= <<Edit | Delete endPOSTMOD; } $usermod .= ''; $postmod .= '
'; if (isset($profile->$author->Signature)) $sigline = <<
{$profile->$author->Signature}
$usermod   $postdate
endSIGLINE; else $sigline = <<$usermod   $postdate endSIGLINE; if (isset($profile->$author->Rank)) $avatar .= $profile->$author->Rank.'
'; if ($postid %2 == 0) $cforumlist = 'forumlist'; else $cforumlist = 'altforumlist'; $theme_data['topicdisplay'] .= <<
endTOPICDISPLAY ; } $theme_data['topicdisplay'] .= <<
AvatarPost
$cauthor
{$avatar}Posts: {$profile->$author->Posts}
$postmod{$data['Post']}

$sigline
AvatarPost
endTOPICDISPLAY ; } if (isset($GLOBALS['preview'])){ $preview = post_format($GLOBALS['preview']); $theme_data['postpreview'] = << endPOSTPREVIEW ; } if (isset($GLOBALS['stopic'])){ if (isset($GLOBALS['quote']) && isset($topic->{$GLOBALS['stopic']}->$GLBOALS['quote']->Post)) $quote = htmlentities($topic->{$GLOBALS['stopic']}->$GLBOALS['quote']->Post); elseif (isset($GLOBALS['preview'])) $quote = htmlentities($GLOBALS['preview']); else $quote = ''; if (isset($config->AllowedHtml)) $allowedhtml = "Allowed HTML Tags: ".implode(', ',$config->AllowedHtml).', '.implode(', ',$config->AllowedSCHtml); if (isset($theme_data['replybox'])) $rb = $theme_data['replybox']; else $rb = ''; $theme_data['replybox'] = $rb . <<
Enter your post here:

$allowedhtml
endREPLYBOX ; } if (isset($GLOBALS['sforum'])){ if (isset($GLOBALS['preview'])){ $title = htmlentities($GLOBALS['title']); $quote = htmlentities($GLOBALS['preview']); }else{ $title = ''; $quote = ''; } if (isset($config->AllowedHtml)) $allowedhtml = "Allowed HTML Tags: ".implode(', ',$config->AllowedHtml).', '.implode(', ',$config->AllowedSCHtml); if (isset($theme_data['newtopicbox'])) $ntb = $theme_data['newtopicbox']; else $ntb = ''; $theme_data['newtopicbox'] = $ntb . <<
Post title:
Enter your post here:

$allowedhtml
endNEWTOPICBOX ; }