コード例 #1
0
ファイル: search.php プロジェクト: emanuelwiesner/arcanum
 public function __construct()
 {
     parent::__construct();
     $this->ret = array();
     $this->ret['ret'] = array();
     $this->ret['ret']['portals'] = array();
     $this->ret['ret']['categories'] = array();
     $this->ret['count'] = 0;
 }
コード例 #2
0
ファイル: main_funcs.php プロジェクト: emanuelwiesner/arcanum
function __autoload($class)
{
    global $config;
    if (in_array($class, $config['registered_modules']) && preg_grep('/^[a-zA-Z]+$/', array($class))) {
        $moduleFile = $config['libpath'] . $class . ".php";
        if (file_exists($moduleFile)) {
            require_once $config['libpath'] . $class . ".php";
            if (!class_exists($class)) {
                throw new arcException("Autoloader could not find class: '{$class}' in {$moduleFile}");
            }
        } else {
            throw new arcException("Autoloader could not find modulefile: {$moduleFile}");
        }
    } else {
        //not registered
        $text = $_SERVER['REDIRECT_STATUS'] == '403' ? e('403_forbidden') : e('404_not_found');
        $arc = new arcanum();
        $arc->view_fallback('', $text, '');
    }
}
コード例 #3
0
ファイル: files.php プロジェクト: emanuelwiesner/arcanum
 public function __construct()
 {
     parent::__construct();
 }
コード例 #4
0
ファイル: howitworks.php プロジェクト: emanuelwiesner/arcanum
 public function __construct()
 {
     parent::__construct();
     $users = DB_DataObject::factory('users');
     define('REGISTERED_USERS', $users->find());
 }