From 9eff7725089a105db853f2aed81370a3abee8d69 Mon Sep 17 00:00:00 2001
From: James Atkinson <thefinn@users.sourceforge.net>
Date: Mon, 19 Mar 2001 01:35:04 +0000
Subject: User registration works.

git-svn-id: file:///svn/phpbb/trunk@106 89ea8834-ac86-4346-8a33-228a782c2dd0
---
 phpBB/includes/constants.php   |  2 +-
 phpBB/includes/page_header.php | 17 +++++++++++++++++
 phpBB/includes/template.inc    | 25 ++++++++++++++++++++++---
 3 files changed, 40 insertions(+), 4 deletions(-)

(limited to 'phpBB/includes')

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,
-- 
cgit v1.2.1