2009-08-25 12:16:42 +00:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
Simple Plugin System
|
|
|
|
@ Author : Arslan
|
|
|
|
*/
|
|
|
|
|
|
|
|
//Getting Plugin Config Details
|
|
|
|
|
2009-10-03 10:38:28 +00:00
|
|
|
if(FRONT_END){
|
|
|
|
$installed_plugins = $cbplugin->getInstalledPlugins();
|
2009-11-30 19:46:45 +00:00
|
|
|
if(is_array($installed_plugins))
|
2009-10-03 10:38:28 +00:00
|
|
|
{
|
2009-11-30 19:46:45 +00:00
|
|
|
foreach($installed_plugins as $plugin)
|
|
|
|
{
|
|
|
|
if($plugin['folder'])
|
|
|
|
$folder = '/'.$plugin['folder'];
|
|
|
|
$file = PLUG_DIR.$folder.'/'.$plugin['file'];
|
|
|
|
if(file_exists($file))
|
|
|
|
include_once($file);
|
|
|
|
}
|
2009-08-25 12:16:42 +00:00
|
|
|
}
|
2009-10-03 10:38:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if(BACK_END)
|
2009-08-25 12:16:42 +00:00
|
|
|
{
|
2009-10-03 10:38:28 +00:00
|
|
|
$plugin_list = $cbplugin->getPluginList();
|
2009-11-30 19:46:45 +00:00
|
|
|
if(is_array($plugin_list))
|
2009-10-03 10:38:28 +00:00
|
|
|
foreach($plugin_list as $plugin)
|
|
|
|
{
|
|
|
|
if($plugin['folder'])
|
|
|
|
$folder = '/'.$plugin['folder'];
|
|
|
|
$file = PLUG_DIR.$folder.'/'.$plugin['file'];
|
|
|
|
if(file_exists($file))
|
|
|
|
include_once($file);
|
2009-08-25 12:16:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-10-03 10:38:28 +00:00
|
|
|
/**
|
|
|
|
* Include ClipBucket Player
|
|
|
|
*/
|
|
|
|
|
|
|
|
if($Cbucket->configs['player_file'] !='cbplayer.plug.php' && $Cbucket->configs['player_file'] !='')
|
|
|
|
{
|
|
|
|
if($Cbucket->configs['player_dir'])
|
|
|
|
$folder = '/'.$Cbucket->configs['player_dir'] ;
|
|
|
|
$file = PLAYER_DIR.$folder.'/'.$Cbucket->configs['player_file'] ;
|
|
|
|
if(file_exists($file))
|
|
|
|
include_once($file);
|
|
|
|
}
|
|
|
|
include_once(PLAYER_DIR.'/cbplayer/cbplayer.plug.php');
|
2009-08-25 12:16:42 +00:00
|
|
|
|
|
|
|
?>
|