1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-18 20:31:41 +02:00

Signup Admin options moved to shortcode. Added maintenance page to Admin -> Users for resending emails to unactivated accounts.

This commit is contained in:
Cameron
2015-05-16 19:17:24 -07:00
parent e1c11ad019
commit c5d6bae3ad
8 changed files with 261 additions and 208 deletions

View File

@@ -503,6 +503,40 @@ class signup_shortcodes extends e_shortcode
return " *";
}
// allow main admin to view signup page for design/testing.
function sc_signup_adminoptions()
{
if(getperms('0'))
{
$pref = e107::getPref();
$frm = e107::getForm();
$adminMsg = "<div class='form-group'>".LAN_SIGNUP_112."</div>";
if(intval($pref['user_reg']) !== 1)
{
$adminMsg .= "<div class='form-group'><b>User registration is currently disabled.</b></div>";
}
$adminMsg .= "<div class='form-group form-inline'>
<a class='btn btn-warning btn-danger btn-sm' href='".e_SELF."?preview'>Preview Activation Email</a>
<a class='btn btn-error btn-danger btn-sm' href='".e_SELF."?preview.aftersignup'>Preview After Form Submit</a>
<a class='btn btn-error btn-danger btn-sm e-tip' href='".e_SELF."?test' title=\"to ".USEREMAIL."\">Send a Test Activation</a>
</div>
";
$adminMsg .= $frm->checkbox('simulation',1, false, "Don't send email");
return "<div class='alert alert-block alert-error alert-danger text-center'>".$adminMsg."</div>";
}
return false;
}
}
?>

View File

@@ -209,7 +209,7 @@ if(!defined($COPPA_FAIL))
if(!defined($SIGNUP_BEGIN))
{
$SIGNUP_BEGIN = "
{SIGNUP_FORM_OPEN} {SIGNUP_SIGNUP_TEXT}";
{SIGNUP_FORM_OPEN} {SIGNUP_ADMINOPTIONS} {SIGNUP_SIGNUP_TEXT}";
}
if(!defined($SIGNUP_BODY))