-
Notifications
You must be signed in to change notification settings - Fork 0
/
agavi.php
51 lines (43 loc) · 2.06 KB
/
agavi.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
// +---------------------------------------------------------------------------+
// | This file is part of the Agavi package. |
// | Copyright (c) 2005-2010 the Agavi Project. |
// | |
// | For the full copyright and license information, please view the LICENSE |
// | file that was distributed with this source code. You can also view the |
// | LICENSE file online at http://www.agavi.org/LICENSE.txt |
// | vi: set noexpandtab: |
// | Local Variables: |
// | indent-tabs-mode: t |
// | End: |
// +---------------------------------------------------------------------------+
/**
* Pre-initialization script.
*
* @package agavi
*
* @author Sean Kerr <[email protected]>
* @author Mike Vincent <[email protected]>
* @author David Zülke <[email protected]>
* @copyright Authors
* @copyright The Agavi Project
*
* @since 0.9.0
*
* @version $Id: agavi.php 4399 2010-01-11 16:41:20Z david $
*/
// load the AgaviConfig class
require(dirname(__FILE__) . '/config/AgaviConfig.class.php');
// check minimum PHP version
AgaviConfig::set('core.minimum_php_version', '5.2.0');
if(!version_compare(PHP_VERSION, AgaviConfig::get('core.minimum_php_version'), 'ge') ) {
die('You must be using PHP version ' . AgaviConfig::get('core.minimum_php_version') . ' or greater.');
}
// define a few filesystem paths
AgaviConfig::set('core.agavi_dir', dirname(__FILE__), true, true);
// default exception template
AgaviConfig::set('exception.default_template', AgaviConfig::get('core.agavi_dir') . '/exception/templates/shiny.php');
// required files
require(AgaviConfig::get('core.agavi_dir') . '/version.php');
require(AgaviConfig::get('core.agavi_dir') . '/core/Agavi.class.php');
?>