aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/constants.php2
-rw-r--r--phpBB/includes/page_header.php17
-rw-r--r--phpBB/includes/template.inc25
3 files changed, 40 insertions, 4 deletions
diff --git a/phpBB/includes/constants.php b/phpBB/includes/constants.php
index c4cddbf6c2..1d3feb4c3b 100644
--- a/phpBB/includes/constants.php
+++ b/phpBB/includes/constants.php
@@ -70,7 +70,7 @@ define(POST_FORUM_URL, 'f');
define(POST_USERS_URL, 'u');
define('BANLIST_TABLE', $table_prefix.'banlist');
-define('CATEGORIES_TABLE', $table_prefix.'categories');
+define('CATEGORIES_TABLE', $table_prefix.'catagories');
define('CONFIG_TABLE', $table_prefix.'config');
define('DISALLOW_TABLE', $table_prefix.'disallow');
define('FORUM_ACCESS_TABLE', $table_prefix.'forum_access');
diff --git a/phpBB/includes/page_header.php b/phpBB/includes/page_header.php
index d108ce0916..35841cb682 100644
--- a/phpBB/includes/page_header.php
+++ b/phpBB/includes/page_header.php
@@ -22,6 +22,8 @@
*
***************************************************************************/
+DEFINE(HEADER_INC, TRUE);
+
// Parse and show the overall header.
$template->set_filenames(array("overall_header" => "overall_header.tpl",
"overall_footer" => "overall_footer.tpl"));
@@ -131,6 +133,21 @@ switch($pagetype)
"L_POSTNEWIN" => $l_postnewin));
$template->pparse("header");
break;
+ case 'register':
+ if(!isset($agreed))
+ {
+ if(!isset($coppa))
+ {
+ $coppa = FALSE;
+ }
+ $template->set_filenames(array("body" => "agreement.tpl"));
+ $template->assign_vars(array("COPPA" => $coppa));
+ }
+ else
+ {
+ $template->set_filenames(array("body" => "profile_add_body.tpl"));
+ }
+ break;
}
?>
diff --git a/phpBB/includes/template.inc b/phpBB/includes/template.inc
index 1255937aeb..fd25a0cbfb 100644
--- a/phpBB/includes/template.inc
+++ b/phpBB/includes/template.inc
@@ -1,7 +1,26 @@
<?php
-
-// (insert phpBB file header here)
-
+/***************************************************************************
+ * template.inc
+ * -------------------
+ * 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.
+ *
+ *
+ ***************************************************************************/
+
/**
* Template class. By Nathan Codding of the phpBB group.
* The interface was originally inspired by PHPLib templates,