blob: e8832ff98e13c6e186a77d3fda7f773e9d9283cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
|
<?php
/* vim:set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab: */
/**
* Show User Registration
*
* PHP version 5
*
* LICENSE: GNU General Public License, version 2 (GPLv2)
* Copyright (c) 2001 - 2011 Ampache.org All Rights Reserved
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License v2
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* @category Template
* @package Template
* @author Karl Vollmer <vollmer@ampache.org>
* @copyright 2001 - 2011 Ampache.org
* @license http://opensource.org/licenses/gpl-2.0 GPLv2
* @version PHP 5.2
* @link http://www.ampache.org/
* @since File available since Release 1.0
*/
$htmllang = str_replace("_","-",Config::get('lang'));
$web_path = Config::get('web_path');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $htmllang; ?>" lang="<?php echo $htmllang; ?>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo Config::get('site_charset'); ?>" />
<title><?php echo Config::get('site_title'); ?> - <?php echo _('Registration'); ?></title>
<link rel="stylesheet" href="<?php echo Config::get('web_path'); ?><?php echo Config::get('theme_path'); ?>/templates/default.css" type="text/css" media="screen" />
<link rel="shortcut icon" href="<?php echo Config::get('web_path'); ?>/favicon.ico" />
</head>
<body id="registerPage">
<script src="<?php echo $web_path; ?>/modules/prototype/prototype.js" language="javascript" type="text/javascript"></script>
<script src="<?php echo $web_path; ?>/lib/javascript/base.js" language="javascript" type="text/javascript"></script>
<script src="<?php echo $web_path; ?>/lib/javascript/ajax.js" language="javascript" type="text/javascript"></script>
<div id="maincontainer">
<div id="header">
<h1><?php echo scrub_out(Config::get('site_title')); ?></h1>
<span><?php echo _('Registration'); ?>...</span>
</div>
<?php
$action = scrub_in($_REQUEST['action']);
$fullname = scrub_in($_REQUEST['fullname']);
$username = scrub_in($_REQUEST['username']);
$email = scrub_in($_REQUEST['email']);
?>
<div id="registerbox">
<form name="update_user" method="post" action="<?php echo $web_path; ?>/register.php" enctype="multipart/form-data">
<?php
/* If we should show the user agreement */
if (Config::get('user_agreement')) { ?>
<h3><?php echo _('User Agreement'); ?></h3>
<div class="registrationAgreement">
<div class="agreementContent">
<?php Registration::show_agreement(); ?>
</div>
<div class="agreementCheckbox">
<input type='checkbox' name='accept_agreement' /> <?php echo _('I Accept'); ?>
<?php Error::display('user_agreement'); ?>
</div>
</div>
<?php } // end if(conf('user_agreement')) ?>
<h3><?php echo _('User Information'); ?></h3>
<div class="registerfield require">
<label for="username"><?php echo _('Username'); ?>: <span class="asterix">*</span></label>
<input type='text' name='username' id='username' value='<?php echo scrub_out($username); ?>' />
<?php Error::display('username'); ?>
<?php Error::display('duplicate_user'); ?>
</div>
<div class="registerfield require">
<label for="fullname"><?php echo _('Full Name'); ?>: <span class="asterix">*</span></label>
<input type='text' name='fullname' id='fullname' value='<?php echo scrub_out($fullname); ?>' />
<?php Error::display('fullname'); ?>
</div>
<div class="registerfield require">
<label for="email"><?php echo _('E-mail'); ?>: <span class="asterix">*</span></label>
<input type='text' name='email' id='email' value='<?php echo scrub_out($email); ?>' />
<?php Error::display('email'); ?>
</div>
<div class="registerfield require">
<label for="password"><?php echo _('Password'); ?>: <span class="asterix">*</span></label>
<input type='password' name='password_1' id='password_1' />
<?php Error::display('password'); ?>
</div>
<div class="registerfield require">
<label for="confirm_passord"><?php echo _('Confirm Password'); ?>: <span class="asterix">*</span></label>
<input type='password' name='password_2' id='password_2' />
</div>
<div class="registerInformation">
<span><?php echo _('* Required fields'); ?></span>
</div>
<?php if (Config::get('captcha_public_reg')) { ?>
<?php echo captcha::form("→ "); ?>
<?php Error::display('captcha'); ?>
<?php } ?>
<div class="registerButtons">
<input type="hidden" name="action" value="add_user" />
<input type='submit' name='submit_registration' id='submit_registration' value='<?php echo _('Register User'); ?>' />
</div>
</form>
</div><!-- end <div id="registerbox-->
</div><!--end <div>id="maincontainer-->
<div id="footer">
<a href="http://www.ampache.org/index.php">Ampache v.<?php echo Config::get('version'); ?></a><br />
Copyright (c) 2001 - 2010 Ampache.org
<?php echo _('Queries:'); ?><?php echo Dba::$stats['query']; ?> <?php echo _('Cache Hits:'); ?><?php echo database_object::$cache_hit; ?>
</div>
</body>
</html>
|