initial import

This commit is contained in:
Alchemy
2011-02-16 16:09:48 +01:00
parent 399a584b6f
commit 339d23c06d
5539 changed files with 2028637 additions and 1 deletions

39
lib/bootstrap_task.php Normal file
View File

@@ -0,0 +1,39 @@
<?php
define('__DIR__', dirname(__FILE__));
define('__CUSTOMDIR__', dirname(dirname(__FILE__)).'/config' );
function phrasea_autoload($class_name)
{
if(file_exists(__CUSTOMDIR__ . '/classes/'.str_replace('_','/',$class_name).'.class.php' ))
{
require_once __CUSTOMDIR__ . '/classes/'.str_replace('_','/',$class_name).'.class.php';
}
elseif(file_exists(__DIR__ . '/classes/'.str_replace('_','/',$class_name).'.class.php'))
{
require_once __DIR__ . '/classes/'.str_replace('_','/',$class_name).'.class.php';
}
}
require_once __DIR__ . '/version.inc';
require_once __DIR__ . '/../config/_GV.php';
spl_autoload_register('phrasea_autoload');
phrasea::start();
$session = session::getInstance();
if(defined('GV_timezone'))
date_default_timezone_set(GV_timezone);
define('USE_MINIFY_CSS', true);
define('USE_MINIFY_JS', true);
define('JETON_MAKE_SUBDEF', 0x01);
define('JETON_WRITE_META_DOC', 0x02);
define('JETON_WRITE_META_SUBDEF', 0x04);
define('JETON_WRITE_META', 0x06);
define('JETON_READ_META_DOC', 0x08);
define('JETON_READ_META_DOC_MAKE_SUBDEF', 0x10);
mb_internal_encoding("UTF-8");
phrasea::use_i18n();