[Fusionforge-commits] FusionForge branch master updated. 4da94159fe8b7feda1d50c2c5b6eb94ed7f108b6

Franck Villaume nerville at fusionforge.org
Sat Sep 6 12:33:25 CEST 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  4da94159fe8b7feda1d50c2c5b6eb94ed7f108b6 (commit)
      from  f15aa645a71cea16d036ef258067271bd788cd9b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 4da94159fe8b7feda1d50c2c5b6eb94ed7f108b6
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Sat Sep 6 12:30:54 2014 +0200

    fix html syntax

diff --git a/src/www/account/register.php b/src/www/account/register.php
index 1e69013..e7aad77 100644
--- a/src/www/account/register.php
+++ b/src/www/account/register.php
@@ -30,8 +30,8 @@ require_once $gfcommon.'include/timezones.php';
 
 global $HTML;
 
-if (forge_get_config ('user_registration_restricted')) {
-	session_require_global_perm ('forge_admin');
+if (forge_get_config('user_registration_restricted')) {
+	session_require_global_perm('forge_admin');
 }
 
 $unix_name = getStringFromRequest('unix_name');
@@ -141,8 +141,8 @@ if (!isset($ccode) || empty($ccode) || !preg_match('/^[a-zA-Z]{2}$/', $ccode)) {
 
 site_header(array('title'=>_('User Account Registration')));
 echo $HTML->openForm(array('action' => util_make_uri('/account/register.php'), 'method' => 'post'));
+echo html_e('input', array('type' => 'hidden', 'name' => 'form_key', 'value' => form_generate_key()));
 ?>
-<input type="hidden" name="form_key" value="<?php echo form_generate_key(); ?>"/>
 <p>
 <?php
 if (forge_get_config('require_unique_email')) {
@@ -258,7 +258,7 @@ if($toDisplay != "") {
 	<p>
 	<input type="checkbox" name="accept_conditions" value="1" />
 	<?php printf (_('Do you accept the <a href="%s">terms of use</a> for this site?'),
-		      util_make_url ('/terms.php')); ?>
+		      util_make_url('/terms.php')); ?>
 	</p>
 <?php } ?>
 <?php if (forge_check_global_perm('forge_admin')) { ?>
@@ -266,22 +266,13 @@ if($toDisplay != "") {
 <?php print _('Activate this user immediately') ; ?>
 	</p>
 <?php } else {
-		plugin_hook('captcha_form');
-	}
-?>
-
-<p>
-<?php echo $HTML->addRequiredFieldsInfoBox(); ?>
-</p>
-<p>
-<input type="submit" name="submit" value="<?php echo _('Register'); ?>" />
-</p>
-<?php
+	plugin_hook('captcha_form');
+}
+echo $HTML->addRequiredFieldsInfoBox();
+echo html_e('p', array(), html_e('input', array('type' => 'submit', 'name' => 'submit', 'value' => _('Register'))));
 echo $HTML->closeForm();
-?>
-<p><a href="pending-resend.php"><?php echo _('Resend confirmation email to a pending account'); ?></a></p>
-
-<?php site_footer();
+echo html_e('p', array(), util_make_link('/account/pending-resend.php', _('Resend confirmation email to a pending account')));
+site_footer();
 
 // Local Variables:
 // mode: php

-----------------------------------------------------------------------

Summary of changes:
 src/www/account/register.php |   29 ++++++++++-------------------
 1 file changed, 10 insertions(+), 19 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list