コード例 #1
0
ファイル: Swift.php プロジェクト: ValenokPC/tabernacms
 /**
  * Configure autoloading using Swift Mailer.
  *
  * This is designed to play nicely with other autoloaders.
  *
  * @param mixed $callable A valid PHP callable that will be called when autoloading the first Swift class
  */
 public static function registerAutoload($callable = null)
 {
     if (null !== $callable) {
         self::$inits[] = $callable;
     }
     rad_autoload_register(array('Swift', 'autoload'));
     //HACK: was spl_autoload_register
 }
コード例 #2
0
ファイル: login.php プロジェクト: ValenokPC/tabernacms
 function __construct()
 {
     parent::__construct();
     if ($referer = $this->request('referer', !empty($_SERVER['HTTP_REFERER']) && rad_loader::getCurrentAlias()->alias == SITE_ALIAS ? $_SERVER['HTTP_REFERER'] : NULL)) {
         $this->setVar('referer', $referer);
     }
     if ($this->getCurrentUser() and $this->getCurrentUser()->u_id) {
         $this->setVar('user', $this->getCurrentUser());
     }
     if ($this->getParamsObject()) {
         $params = $this->getParamsObject();
         $this->_treestart = (int) $params->_get('treestart', $this->_treestart);
         $this->_is_facebook = (bool) $params->_get('is_facebook', $this->_is_facebook);
         //$this->_is_twitter = (boolean) $params->_get('is_twitter', $this->_is_twitter);
         $this->_fb_appkey = $params->_get('fb_appkey', $this->_fb_appkey);
         $this->_fb_secretkey = $params->_get('fb_secretkey', $this->_fb_secretkey);
         //$this->_tw_appkey = $params->_get('tw_appkey', $this->_tw_appkey);
         //$this->_tw_secretkey = $params->_get('tw_secretkey', $this->_tw_secretkey);
         $this->setVar('params', $params);
     }
     $this->setVar('hash', $this->hash());
     rad_autoload_register(array('controller_coresession_login', 'autoloadLibrary'));
     $this->makeConfig();
     switch ($this->request('action')) {
         case 'soc_login':
             $this->socialsLogin();
             break;
         case 'soc_endpoint':
             $this->socialsEndpoint();
             break;
         case 'soc_refresh':
             $this->socialsRefresh();
             break;
         default:
             if ($this->request('fromsite')) {
                 $this->loginFromSite();
             } else {
                 $this->manage();
             }
             break;
     }
 }
コード例 #3
0
 function registerAutoloadPlugins()
 {
     rad_autoload_register(array('model_corecatalog_types', 'autoloadPlugins'));
 }
コード例 #4
0
ファイル: Smarty.class.php プロジェクト: ValenokPC/tabernacms
     */
    define('SMARTY_RESOURCE_DATE_FORMAT', '%b %e, %Y');
}
/**
 * register the class autoloader
 */
if (!defined('SMARTY_SPL_AUTOLOAD')) {
    define('SMARTY_SPL_AUTOLOAD', 0);
}
if (SMARTY_SPL_AUTOLOAD && set_include_path(get_include_path() . PATH_SEPARATOR . SMARTY_SYSPLUGINS_DIR) !== false) {
    $registeredAutoLoadFunctions = spl_autoload_functions();
    if (!isset($registeredAutoLoadFunctions['spl_autoload'])) {
        spl_autoload_register();
    }
} else {
    rad_autoload_register('smartyAutoload');
    //HACK: was spl_autoload_register
}
/**
 * Load always needed external class files
 */
include_once SMARTY_SYSPLUGINS_DIR . 'smarty_internal_data.php';
include_once SMARTY_SYSPLUGINS_DIR . 'smarty_internal_templatebase.php';
include_once SMARTY_SYSPLUGINS_DIR . 'smarty_internal_template.php';
include_once SMARTY_SYSPLUGINS_DIR . 'smarty_resource.php';
include_once SMARTY_SYSPLUGINS_DIR . 'smarty_internal_resource_file.php';
include_once SMARTY_SYSPLUGINS_DIR . 'smarty_cacheresource.php';
include_once SMARTY_SYSPLUGINS_DIR . 'smarty_internal_cacheresource_file.php';
/**
 * This is the main Smarty class
 * @package Smarty