
Added : Ajax System Added : Ajax comments Added : New rating Added : Ajax Add to favorites Added : Ajax share this Added : Ajax Flag Video Added : new watch video page Added : New ClipBucket V2 Template
52 lines
No EOL
1.1 KiB
PHP
52 lines
No EOL
1.1 KiB
PHP
<?php
|
|
/*
|
|
Simple Plugin System
|
|
@ Author : Arslan
|
|
*/
|
|
|
|
//Getting Plugin Config Details
|
|
|
|
if(FRONT_END){
|
|
$installed_plugins = $cbplugin->getInstalledPlugins();
|
|
if(is_array($installed_plugins))
|
|
{
|
|
foreach($installed_plugins as $plugin)
|
|
{
|
|
if($plugin['folder'])
|
|
$folder = '/'.$plugin['folder'];
|
|
$file = PLUG_DIR.$folder.'/'.$plugin['file'];
|
|
if(file_exists($file))
|
|
include_once($file);
|
|
}
|
|
}
|
|
}
|
|
|
|
if(BACK_END)
|
|
{
|
|
$plugin_list = $cbplugin->getPluginList();
|
|
if(is_array($plugin_list))
|
|
foreach($plugin_list as $plugin)
|
|
{
|
|
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');
|
|
|
|
?>
|