blob: 44f6708f2dce891bf86684c3a2c3a7b81d26437d (
plain)
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
|
<?php
/**
* base package include
*
* @author spider <spider@steelsun.com>
* @version $Revision: 1.9 $
* @package liberty
* @subpackage functions
*/
$registerHash = array(
'package_name' => 'liberty',
'package_path' => dirname( __FILE__ ).'/',
'required_package'=> TRUE,
);
$gBitSystem->registerPackage( $registerHash );
require_once( LIBERTY_PKG_PATH.'LibertySystem.php' );
global $gLibertySystem;
$gLibertySystem = new LibertySystem();
// load only the active plugins unless this is the first run after an install
$current_default_format_guid = $gBitSystem->getConfig( 'default_format' );
$plugin_status = $gBitSystem->getConfig( 'liberty_plugin_status_'.$current_default_format_guid );
if( empty( $current_default_format_guid ) || empty( $plugin_status ) || $plugin_status != 'y' ) {
$gLibertySystem->scanAllPlugins();
} else {
$gLibertySystem->loadActivePlugins();
}
$gBitSmarty->assign_by_ref( 'gLibertySystem', $gLibertySystem );
?>
|