File: //opt/alt/php55/usr/share/pear/RVSeagullMod/modules/user/templates/email_registration_admin.php
<?php
// translations
$title = SGL_Output::translate('New Registration at');
$message = SGL_Output::translate('The following user has just registered');
$username = SGL_Output::translate('username');
$click = SGL_Output::translate('Click');
$here = SGL_Output::translate('here');
$toEnable = SGL_Output::translate('to enable the new users account');
$body = <<< EOF
<table class="wide">
<tr>
<td><h3>$title {$this->options['siteName']}</h3></td>
</tr>
<tr>
<td><br /><br />$message:</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td>$username: <strong>{$this->options['username']}</strong></td>
</tr>
<tr>
<td></td>
</tr>
EOF;
if (isset($this->conf['RegisterMgr']['autoEnable']) && $this->conf['RegisterMgr']['autoEnable']) {
$body .= <<< EOF
<tr>
<td>$click <a href="{$this->options['siteUrl']}">$here</a></td>
</tr>
</table>
EOF;
} else {
if (isset($this->options['is_acct_active']) && $this->options['is_acct_active']) {
$body .= <<< EOF
<tr>
<td>$click <a href="{$this->options['siteUrl']}">$here</a></td>
</tr>
</table>
EOF;
} else {
$body .= <<< EOF
<tr>
<td>$click <a href="{$this->options['activationUrl']}">$here</a> $toEnable.</td>
</tr>
</table>
EOF;
}
}
//Chang Format Email Template
$aParam = array( 'siteName' => $this->options['siteName']
, 'username' => $this->options['username']
, 'activationUrl' => $this->options['activationUrl']
);
$aConf = array(
'allowActivateEmail' => '{conf[RegisterMgr][allowActivateEmail]}'
, 'autoEnableRegis' => '{conf[RegisterMgr][autoEnable]}'
, 'autoEnableActivate' => '{conf[ActivateEmailMgr][autoEnable]}'
);
$aParamGlobal = array( 'siteName' => $this->options['siteName']
, 'siteUrl' => $this->options['siteUrl']
);
$subjectKey = 'New registering admin: subject';
$bodyKey = 'New registering admin: body';
$ccKey = 'New registering admin: cc';
//Define Config
$this->conf['RegisterMgr']['allowActivateEmail'] = (isset($this->conf['RegisterMgr']['allowActivateEmail']))
? $this->conf['RegisterMgr']['allowActivateEmail']
: NULL;
$this->conf['RegisterMgr']['autoEnable'] = (isset($this->conf['RegisterMgr']['autoEnable']))
? $this->conf['RegisterMgr']['autoEnable']
: NULL;
$this->conf['ActivateEmailMgr']['autoEnable'] = (isset($this->conf['ActivateEmailMgr']['autoEnable']))
? $this->conf['ActivateEmailMgr']['autoEnable']
: NULL;
?>