1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 18:14:26 +02:00

Fixed some tablerender captions after signup. eg. now says 'Problem Encountered' instead of 'Thankyou' when an error is detected. etc.

This commit is contained in:
CaMer0n
2009-03-21 22:59:29 +00:00
parent 56e5184bcf
commit 604fa54ba0
2 changed files with 32 additions and 26 deletions

View File

@@ -9,9 +9,9 @@
* Language file - User signup * Language file - User signup
* *
* $Source: /cvs_backup/e107_0.8/e107_languages/English/lan_signup.php,v $ * $Source: /cvs_backup/e107_0.8/e107_languages/English/lan_signup.php,v $
* $Revision: 1.15 $ * $Revision: 1.16 $
* $Date: 2008-12-28 22:37:43 $ * $Date: 2009-03-21 22:59:29 $
* $Author: e107steved $ * $Author: e107coders $
* *
*/ */
define("PAGE_NAME", "Register"); 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_95', 'Enter code visible in the image'); // LAN_410
define('LAN_SIGNUP_96', 'Registration details for'); // LAN_404 (used in email) 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_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"); define("LAN_LOGINNAME", "Username");

View File

@@ -9,9 +9,9 @@
* User signup * User signup
* *
* $Source: /cvs_backup/e107_0.8/signup.php,v $ * $Source: /cvs_backup/e107_0.8/signup.php,v $
* $Revision: 1.32 $ * $Revision: 1.33 $
* $Date: 2009-01-11 21:06:46 $ * $Date: 2009-03-21 22:59:29 $
* $Author: e107steved $ * $Author: e107coders $
* *
*/ */
@@ -212,15 +212,15 @@ if(ADMIN && (e_QUERY == "preview" || e_QUERY == "test" || e_QUERY == "preview.a
} }
else else
{ {
if ($pref['user_reg_veri'] == 2) $text = ($pref['user_reg_veri'] == 2) ? LAN_SIGNUP_37 : LAN_SIGNUP_72; // Admin Approval / Email Approval
{
$text = LAN_SIGNUP_37;
}
else
{
$text = LAN_SIGNUP_72;
}
} }
$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); $ns->tablerender(LAN_SIGNUP_73, $text);
require_once(FOOTERF); require_once(FOOTERF);
exit; exit;
@@ -651,20 +651,24 @@ if (isset($_POST['register']))
} }
else else
{ {
if ($pref['user_reg_veri'] == 2) $text = ($pref['user_reg_veri'] == 2) ? LAN_SIGNUP_37 : LAN_SIGNUP_72;
{ $text .= "<br /><br />".$adviseLoginName;
$text = LAN_SIGNUP_37.'<br /><br />'.$adviseLoginName;
}
else
{
$text = LAN_SIGNUP_72.'<br /><br />'.$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 = "<br /><b>".$error_message."</b><br />"; // Just display error message $text = "<br /><b>".$error_message."</b><br />"; // Just display the error message
$caption = LAN_SIGNUP_99; // Problem Detected
} }
$ns->tablerender(LAN_SIGNUP_73, $text);
$ns->tablerender($caption, $text);
require_once(FOOTERF); require_once(FOOTERF);
exit; exit;
} }