[gnome-web-www] Add an username field.
- From: Andrea Veri <av src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-web-www] Add an username field.
- Date: Fri, 26 Apr 2013 14:26:49 +0000 (UTC)
commit e605d92e46e4637fb32a6a566e5ba2e853947e69
Author: Andrea Veri <av gnome org>
Date: Fri Apr 26 16:26:38 2013 +0200
Add an username field.
theme/page-apply.php | 18 +++++++++++-------
1 files changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/theme/page-apply.php b/theme/page-apply.php
index 004590c..050f342 100644
--- a/theme/page-apply.php
+++ b/theme/page-apply.php
@@ -9,6 +9,7 @@ if (array_key_exists('submit', $_POST)) {
$full_name = trim(stripslashes($_POST['full_name']));
$email = trim(stripslashes($_POST['email']));
+ $uid = trim(stripslashes($_POST['uid']));
$obfuscated_email = str_replace("@", " AT ", $email);
$not_spam = $_POST['not_spam'];
@@ -17,11 +18,8 @@ if (array_key_exists('submit', $_POST)) {
}
$summary = trim(stripslashes($_POST['summary']));
- echo "<h1>";
- echo $gnome_mail_alias = trim(stripslashes($_POST['gnome_mail_alias']));
- echo "<br>";
- echo $gnome_jabber = trim(stripslashes($_POST['gnome_jabber']));
- echo "</h1>";
+ $gnome_mail_alias = trim(stripslashes($_POST['gnome_mail_alias']));
+ $gnome_jabber = trim(stripslashes($_POST['gnome_jabber']));
$previous_participation = trim(stripslashes($_POST['previous_participation']));
if (empty($full_name) || empty($email) || empty($summary) || empty($gnome_mail_alias) ||
empty($gnome_jabber)) {
@@ -34,7 +32,8 @@ if (array_key_exists('submit', $_POST)) {
"-------------------\n\n" .
"Full Name: " . $full_name . "\n".
- "Email: " . $obfuscated_email . "\n\n" .
+ "Email: " . $obfuscated_email . "\n" .
+ "Username: " . $uid . "\n\n" .
"Benefits\n" .
"Mail alias: " . ($gnome_mail_alias == 'on' ? "Yes" : "No") . "\n".
@@ -172,6 +171,11 @@ if (array_key_exists('submit', $_POST)) {
<label for="email">E-mail Address</label>
<input name="email" id="email" type="text">
</div>
+
+ <div class="item">
+ <label for="uid">Username</label>
+ <input name="uid" id="uid" type="text">
+ </div>
<h3>Benefits</h3>
<p>
@@ -187,7 +191,7 @@ if (array_key_exists('submit', $_POST)) {
<td colspan="2">
<input type="checkbox" name="gnome_mail_alias"
<?php if ($gnome_mail_alias) { ?> checked="checked" <?php } ?> />
- @gnome.org Mail Alias
+ @gnome.org Mail Alias (in the form of uid gnome org, please read the
username's policy at the following <a href="https://live.gnome.org/AccountNamePolicy">link</a>.
</td>
</tr>
</table>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]