HEX
Server: Apache
System: Linux sg241.singhost.net 2.6.32-896.16.1.lve1.4.51.el6.x86_64 #1 SMP Wed Jan 17 13:19:23 EST 2018 x86_64
User: honghock (909)
PHP: 8.0.30
Disabled: passthru,system,shell_exec,show_source,exec,popen,proc_open
Upload Files
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;
?>