XOOPS  2.6.0
bootstrap.php
Go to the documentation of this file.
1 <?php
2 /*
3  You may not change or alter any portion of this comment or credits
4  of supporting developers from this source code or any supporting source code
5  which is considered copyrighted (c) material of the original comment or credit authors.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10  */
11 
21 require dirname(dirname(dirname(__DIR__))) . '/mainfile.php';
22 
23 // DO NOT depend on these in your - they will change or be removed
24 if (false & !defined('XMF_EXEC')) {
25  define('XMF_EXEC', true);
26 
27  define('XMF_URL', \XoopsBaseConfig::get('url') . '/modules/xmf');
28  define('XMF_CSS_URL', XMF_URL . '/css');
29  // define('XMF_IMAGES_URL', XMF_URL . '/images');
30  define('XMF_INCLUDE_URL', XMF_URL . '/include');
31  define('XMF_LANGUAGE_URL', XMF_URL . '/language');
32  define('XMF_LIBRARIES_URL', XMF_URL . '/libraries');
33  define('XMF_TEMPLATES_URL', XMF_URL . '/templates');
34  define('XMF_KRUMO_URL', XMF_URL . '/css/krumo/');
35 
36  define('XMF_ROOT_PATH', \XoopsBaseConfig::get('root-path') . '/modules/xmf');
37  define('XMF_CSS_PATH', XMF_ROOT_PATH . '/css');
38  define('XMF_IMAGES_PATH', XMF_ROOT_PATH . '/images');
39  define('XMF_INCLUDE_PATH', XMF_ROOT_PATH . '/include');
40  define('XMF_LANGUAGE_PATH', XMF_ROOT_PATH . '/language');
41  define('XMF_LIBRARIES_PATH', XMF_ROOT_PATH . '/libraries');
42  define('XMF_TEMPLATES_PATH', XMF_ROOT_PATH . '/templates');
43 
44  define('XMF_NEWLINE', "\n");
45 
46  define('_GLOBAL_LEFT', 'left');
47  define('_GLOBAL_RIGHT', 'right');
48 }
49 //require dirname(__DIR__) . '/libraries/Xmf/Loader.php';
50 //spl_autoload_register(array('Xmf_Loader', 'loadClass'));
51 
52 //require_once dirname(__DIR__) . '/vendor/autoload.php';
53 // \Xmf\Loader::loadFile(\XoopsBaseConfig::get('root-path') . '/vendor/autoload.php');
54 
55 //require_once __DIR__ . '/functions.php';
56 \Xmf\Language::load('global', 'xmf');
static get($name)
static load($name, $domain= '', $language=null)
Definition: Language.php:54