1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

User registration works.

git-svn-id: file:///svn/phpbb/trunk@106 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
James Atkinson
2001-03-19 01:35:04 +00:00
parent 40f1f172a8
commit 9eff772508
14 changed files with 822 additions and 202 deletions

View File

@@ -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');

View File

@@ -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;
}
?>

View File

@@ -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,