clipbucket/upload/admin_area/plugin.php

38 lines
748 B
PHP
Raw Normal View History

2013-10-07 12:17:06 +00:00
<?php
/**
* File used to operate plugin files
* this will include plugin file based on input folder and file
*/
2014-04-15 11:45:14 +00:00
2013-10-07 12:17:06 +00:00
require'../includes/admin_config.php';
$userquery->admin_login_check();
$userquery->login_check('video_moderation');
$pages->page_redir();
$file = get('file');
$folder = get('folder');
$player = get('player');
$folder = str_replace('..', '', $folder);
$file = str_replace('..', '', $file);
$player = str_replace('..', '', $player);
if($folder && $file)
{
if(!$player)
$file = PLUG_DIR.'/'.$folder.'/'.$file;
else
$file = PLAYER_DIR.'/'.$folder.'/'.$file;
2014-04-15 11:45:14 +00:00
2013-10-07 12:17:06 +00:00
if(file_exists($file))
{
require($file);
display_it();
exit();
}
}
header('location:plugin_manager.php?err=no_file');
2014-04-15 11:45:14 +00:00
2013-10-07 12:17:06 +00:00
?>