40 lines
No EOL
842 B
PHP
40 lines
No EOL
842 B
PHP
<?php
|
|
/*
|
|
Simple Plugin System
|
|
@ Author : Arslan
|
|
*/
|
|
|
|
//Getting Plugin Config Details
|
|
|
|
|
|
$installed_plugins = $cbplugin->getInstalledPlugins();
|
|
if(is_array($installed_plugins))
|
|
{
|
|
foreach($installed_plugins as $plugin)
|
|
{
|
|
$folder = "";
|
|
if($plugin['folder'])
|
|
$folder = '/'.$plugin['folder'];
|
|
$file = PLUG_DIR.$folder.'/'.$plugin['file'];
|
|
if(file_exists($file))
|
|
include_once($file);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 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');
|
|
|
|
?>
|