diff --git a/e107_languages/English/lan_signup.php b/e107_languages/English/lan_signup.php
index 39795f38f..c41dc8daa 100644
--- a/e107_languages/English/lan_signup.php
+++ b/e107_languages/English/lan_signup.php
@@ -9,9 +9,9 @@
* Language file - User signup
*
* $Source: /cvs_backup/e107_0.8/e107_languages/English/lan_signup.php,v $
- * $Revision: 1.15 $
- * $Date: 2008-12-28 22:37:43 $
- * $Author: e107steved $
+ * $Revision: 1.16 $
+ * $Date: 2009-03-21 22:59:29 $
+ * $Author: e107coders $
*
*/
define("PAGE_NAME", "Register");
@@ -135,7 +135,9 @@ define('LAN_SIGNUP_94', 'Avatar: '); // LAN_121
define('LAN_SIGNUP_95', 'Enter code visible in the image'); // LAN_410
define('LAN_SIGNUP_96', 'Registration details for'); // LAN_404 (used in email)
define('LAN_SIGNUP_97', 'Welcome to'); // LAN_403 (used in email)
-
+define("LAN_SIGNUP_98", "Confirm Email");
+define("LAN_SIGNUP_99", "Problem Encountered");
+define("LAN_SIGNUP_100", "Admin Approval Pending");
define("LAN_LOGINNAME", "Username");
diff --git a/signup.php b/signup.php
index 82a5190cb..a2b8f88e8 100644
--- a/signup.php
+++ b/signup.php
@@ -9,9 +9,9 @@
* User signup
*
* $Source: /cvs_backup/e107_0.8/signup.php,v $
- * $Revision: 1.32 $
- * $Date: 2009-01-11 21:06:46 $
- * $Author: e107steved $
+ * $Revision: 1.33 $
+ * $Date: 2009-03-21 22:59:29 $
+ * $Author: e107coders $
*
*/
@@ -212,15 +212,15 @@ if(ADMIN && (e_QUERY == "preview" || e_QUERY == "test" || e_QUERY == "preview.a
}
else
{
- if ($pref['user_reg_veri'] == 2)
- {
- $text = LAN_SIGNUP_37;
- }
- else
- {
- $text = LAN_SIGNUP_72;
- }
+ $text = ($pref['user_reg_veri'] == 2) ? LAN_SIGNUP_37 : LAN_SIGNUP_72; // Admin Approval / Email Approval
}
+
+ $caption_arr = array();
+ $caption_arr[0] = LAN_406; // Thank you! (No Approval).
+ $caption_arr[1] = LAN_SIGNUP_98; // Confirm Email (Email Confirmation)
+ $caption_arr[2] = LAN_SIGNUP_100; // Approval Pending (Admin Approval)
+ $caption = $caption_arr[$pref['user_reg_veri']];
+
$ns->tablerender(LAN_SIGNUP_73, $text);
require_once(FOOTERF);
exit;
@@ -651,20 +651,24 @@ if (isset($_POST['register']))
}
else
{
- if ($pref['user_reg_veri'] == 2)
- {
- $text = LAN_SIGNUP_37.'
'.$adviseLoginName;
- }
- else
- {
- $text = LAN_SIGNUP_72.'
'.$adviseLoginName;
- }
+ $text = ($pref['user_reg_veri'] == 2) ? LAN_SIGNUP_37 : LAN_SIGNUP_72;
+ $text .= "
".$adviseLoginName;
}
- if ($error_message)
+
+ $caption_arr = array();
+ $caption_arr[0] = LAN_SIGNUP_73; // Thank you! (No Approval).
+ $caption_arr[1] = LAN_SIGNUP_98; // Confirm Email (Email Confirmation)
+ $caption_arr[2] = LAN_SIGNUP_100; // Approval Pending (Admin Approval)
+
+ $caption = $caption_arr[$pref['user_reg_veri']];
+
+ if($error_message)
{
- $text = "
".$error_message."
"; // Just display error message
+ $text = "
".$error_message."
"; // Just display the error message
+ $caption = LAN_SIGNUP_99; // Problem Detected
}
- $ns->tablerender(LAN_SIGNUP_73, $text);
+
+ $ns->tablerender($caption, $text);
require_once(FOOTERF);
exit;
}