예제 #1
0
        return $arrReturn;
    }
    public function get_available_authmethods()
    {
        $auth = array();
        // Build auth array
        if ($dir = @opendir($this->root_path . 'core/auth/')) {
            while ($file = @readdir($dir)) {
                if (is_file($this->root_path . 'core/auth/' . $file) && valid_folder($file)) {
                    $name = substr(substr($file, 0, strpos($file, '.')), 5);
                    $auth[$name] = $this->lang('auth_' . $name) ? 'auth_' . $name : ucfirst($name);
                }
            }
        }
        return $auth;
    }
    public function get_authmethod_settings()
    {
        if (count($this->settings) > 0) {
            $settings['system']['auth'] = $this->settings;
            return $settings;
        }
        return false;
    }
}
if (version_compare(PHP_VERSION, '5.3.0', '<')) {
    registry::add_const('short_auth', auth::__shortcuts());
}
if (version_compare(PHP_VERSION, '5.3.0', '<')) {
    registry::add_const('dep_auth', auth::__dependencies());
}
예제 #2
0
 public static function __dependencies()
 {
     $dependencies = array();
     return array_merge(parent::__dependencies(), $dependencies);
 }