mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Styling fixes and testing-links now available when testing signup.php as MainAdmin.
This commit is contained in:
17
signup.php
17
signup.php
@@ -235,13 +235,20 @@ if(getperms('0')) // allow main admin to view signup page for design/testing.
|
|||||||
//$mes = e107::getMessage();
|
//$mes = e107::getMessage();
|
||||||
//$mes->debug("You are currently logged in.");
|
//$mes->debug("You are currently logged in.");
|
||||||
|
|
||||||
$adminMsg = LAN_SIGNUP_112;
|
$adminMsg = "<div class='form-group'>".LAN_SIGNUP_112."</div>";
|
||||||
|
|
||||||
if(intval($pref['user_reg']) !== 1)
|
if(intval($pref['user_reg']) !== 1)
|
||||||
{
|
{
|
||||||
$adminMsg .= "<br />User registration is currently disabled";
|
$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>
|
||||||
|
";
|
||||||
|
|
||||||
$SIGNUP_BEGIN = "<div class='alert alert-block alert-error alert-danger text-center'>".$adminMsg."</div>". $SIGNUP_BEGIN;
|
$SIGNUP_BEGIN = "<div class='alert alert-block alert-error alert-danger text-center'>".$adminMsg."</div>". $SIGNUP_BEGIN;
|
||||||
unset($adminMsg);
|
unset($adminMsg);
|
||||||
}
|
}
|
||||||
@@ -461,10 +468,12 @@ class signup
|
|||||||
|
|
||||||
function renderEmailPreview()
|
function renderEmailPreview()
|
||||||
{
|
{
|
||||||
|
$ns = e107::getRender();
|
||||||
|
$tp = e107::getParser();
|
||||||
|
|
||||||
$temp = array();
|
$temp = array();
|
||||||
$eml = render_email($temp, TRUE); // It ignores the data, anyway
|
$eml = render_email($temp, true); // It ignores the data, anyway
|
||||||
echo $eml['preview'];
|
$ns->tablerender('Email Preview', $tp->replaceConstants($eml['preview'],'abs'));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user