Line | |
---|
1 | <?php |
---|
2 | # -- BEGIN LICENSE BLOCK --------------------------------------- |
---|
3 | # |
---|
4 | # This file is part of Dotclear 2. |
---|
5 | # |
---|
6 | # Copyright (c) 2003-2014 Olivier Meunier & Association Dotclear |
---|
7 | # Licensed under the GPL version 2.0 license. |
---|
8 | # See LICENSE file or |
---|
9 | # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
---|
10 | # |
---|
11 | # -- END LICENSE BLOCK ----------------------------------------- |
---|
12 | |
---|
13 | require_once __DIR__.'/../../vendor/autoload.php'; |
---|
14 | |
---|
15 | define('CLEARBRICKS_PATH',__DIR__.'/../../inc/libs/clearbricks'); |
---|
16 | |
---|
17 | $__autoload = array(); |
---|
18 | $__autoload['dbLayer'] = CLEARBRICKS_PATH.'/dblayer/dblayer.php'; |
---|
19 | $__autoload['staticRecord'] = CLEARBRICKS_PATH.'/dblayer/dblayer.php'; |
---|
20 | $__autoload['sqliteConnection'] = CLEARBRICKS_PATH.'/dblayer/class.sqlite.php'; |
---|
21 | $__autoload['mysqlConnection'] = CLEARBRICKS_PATH.'/dblayer/class.mysql.php'; |
---|
22 | $__autoload['mysqliConnection'] = CLEARBRICKS_PATH.'/dblayer/class.mysqli.php'; |
---|
23 | $__autoload['pgsqlConnection'] = CLEARBRICKS_PATH.'/dblayer/class.pgsql.php'; |
---|
24 | $__autoload['record'] = CLEARBRICKS_PATH.'/dblayer/dblayer.php'; |
---|
25 | |
---|
26 | $__autoload['dcCore'] = __DIR__.'/../../inc/core/class.dc.core.php'; |
---|
27 | $__autoload['dcNamespace'] = __DIR__.'/../../inc/core/class.dc.namespace.php'; |
---|
28 | |
---|
29 | $loader = new \Composer\Autoload\ClassLoader(); |
---|
30 | $loader->addClassMap($__autoload); |
---|
31 | $loader->register(); |
---|
32 | |
---|
33 | function __($s) { |
---|
34 | return $s; |
---|
35 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.