diff options
| author | Bart van Bragt <bartvb@users.sourceforge.net> | 2001-03-09 23:33:06 +0000 |
|---|---|---|
| committer | Bart van Bragt <bartvb@users.sourceforge.net> | 2001-03-09 23:33:06 +0000 |
| commit | d3d031d9eec485a05afdcc367ca8a8cca24e98e5 (patch) | |
| tree | 1a2fd368a3c3292d173e4cffa669538637f484fe /phpBB/page_header.php | |
| parent | 6be03b553d19c0598ea4101f1257bdcc2f81ab94 (diff) | |
| download | forums-d3d031d9eec485a05afdcc367ca8a8cca24e98e5.tar forums-d3d031d9eec485a05afdcc367ca8a8cca24e98e5.tar.gz forums-d3d031d9eec485a05afdcc367ca8a8cca24e98e5.tar.bz2 forums-d3d031d9eec485a05afdcc367ca8a8cca24e98e5.tar.xz forums-d3d031d9eec485a05afdcc367ca8a8cca24e98e5.zip | |
Moved include files
git-svn-id: file:///svn/phpbb/trunk@94 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/page_header.php')
| -rw-r--r-- | phpBB/page_header.php | 134 |
1 files changed, 0 insertions, 134 deletions
diff --git a/phpBB/page_header.php b/phpBB/page_header.php deleted file mode 100644 index 903ed4dd69..0000000000 --- a/phpBB/page_header.php +++ /dev/null @@ -1,134 +0,0 @@ -<?php -/*************************************************************************** - * page_header.php - * ------------------- - * begin : Saturday, Feb 13, 2001 - * copyright : (C) 2001 The phpBB Group - * email : support@phpbb.com - * - * $Id$ - * - * - ***************************************************************************/ - - -/*************************************************************************** - * - * This program 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. - * - * - ***************************************************************************/ - -// Parse and show the overall header. -$template->set_file(array("overall_header" => "overall_header.tpl", - "overall_footer" => "overall_footer.tpl")); - -if($user_logged_in) -{ - $logged_in_status = "You are logged in as <b>".$userdata["username"]."</b>."; -} -else -{ - $logged_in_status = "You are not logged in."; -} - -$template->set_var(array("SITENAME" => $sitename, - "PHPEX" => $phpEx, - "PAGE_TITLE" => $page_title, - "LOGIN_STATUS" => $logged_in_status, - "META_INFO" => $meta_tags, - "L_USERNAME" => $l_username, - "L_PASSWORD" => $l_password, - "L_WELCOMETO" => $l_welcometo, - "L_REGISTER" => $l_register, - "L_PROFILE" => $l_profile, - "L_SEARCH" => $l_search, - "L_PRIVATEMSGS" => $l_privmsgs, - "L_MEMBERLIST" => $l_memberslist, - "L_FAQ" => $l_faq, - "L_FORUM" => $l_forum, - "L_TOPICS" => $l_topics, - "L_REPLIES" => $l_replies, - "L_VIEWS" => $l_views, - "L_POSTS" => $l_posts, - "L_LASTPOST" => $l_lastpost, - "L_MODERATOR" => $l_moderator, - "L_MESSAGES" => $l_messages, - "L_POSTEDTOTAL" => $l_postedtotal, - "L_WEHAVE" => $l_wehave, - "L_REGUSERS" => $l_regedusers, - "L_NEWESTUSER" => $l_newestuser, - "L_BROWSING" => $l_browsing, - "L_ARECURRENTLY" => $l_arecurrently, - "L_THEFORUMS" => $l_theforums, - "L_NONEWPOSTS" => $l_nonewposts, - "L_NEWPOSTS" => $l_newposts)); - -$template->pparse("output", "overall_header"); - -// Do a switch on page type, this way we only load the templates that we need at the time -switch($pagetype) -{ - case 'index': - $template->set_file(array("header" => "index_header.tpl", - "body" => "index_body.tpl", - "footer" => "index_footer.tpl")); - - $template->set_var(array("TOTAL_POSTS" => $total_posts, - "TOTAL_USERS" => $total_users, - "NEWEST_USER" => $newest_user, - "NEWEST_UID" => $newest_uid, - "USERS_BROWSING" => $users_browsing)); - - $template->pparse("output", "header"); - break; - - case 'viewforum': - $template->set_file(array("header" => "viewforum_header.tpl", - "body" => "viewforum_body.tpl", - "jumpbox" => "jumpbox.tpl", - "footer" => "viewforum_footer.tpl")); - - $jumpbox = make_jumpbox($db); - $template->set_var(array("JUMPBOX_LIST" => $jumpbox, - "JUMPBOX_ACTION" => "viewforum.".$phpEx, - "SELECT_NAME" => "forum_id")); - $template->parse("JUMPBOX","jumpbox"); - - $template->set_var(array("FORUM_ID" => $forum_id, - "FORUM_NAME" => $forum_name, - "MODERATORS" => $forum_moderators)); - - $template->pparse("output", "header"); - break; - case 'viewtopic': - $template->set_file(array("header" => "viewtopic_header.tpl", - "body" => "viewtopic_body.tpl", - "jumpbox" => "jumpbox.tpl", - "footer" => "viewtopic_footer.tpl")); - $jumpbox = make_jumpbox($db); - $template->set_var(array("JUMPBOX_LIST" => $jumpbox, - "JUMPBOX_ACTION" => "viewforum.".$phpEx, - "SELECT_NAME" => "forum_id")); - $template->parse("JUMPBOX","jumpbox"); - - $template->set_var(array("FORUM_ID" => $forum_id, - "FORUM_NAME" => $forum_name, - "TOPIC_ID" => $topic_id, - "TOPIC_TITLE" => $topic_title)); - $template->pparse("output", "header"); - break; - case 'newtopic': - $template->set_file(array("header" => "newtopic_header.tpl", - "body" => "posting_body.tpl")); - $template->set_var(array("FORUM_ID" => $forum_id, - "FORUM_NAME" => $forum_name, - "L_POSTNEWIN" => $l_postnewin)); - $template->pparse("output", "header"); - break; -} - -?> |
