Exemplo n.º 1
0
 #require_once(BASE_DIR . '/modules/download/funcs/func.parent_categ.php');
 require_once BASE_DIR . '/modules/download/funcs/func.rewrite.php';
 if (defined('THEME_FOLDER')) {
     $GLOBALS['AVE_Template']->assign('download_images', 'templates/' . THEME_FOLDER . '/modules/download/');
     $GLOBALS['AVE_Template']->assign('theme_folder', THEME_FOLDER);
 }
 $_REQUEST['action'] = !isset($_REQUEST['action']) || $_REQUEST['action'] == '' ? 'downloadstart' : $_REQUEST['action'];
 if (isset($_REQUEST['module']) && $_REQUEST['module'] == 'download' && isset($_REQUEST['action'])) {
     set_modul_globals('download');
     $download = new Download();
     switch ($_REQUEST['action']) {
         case 'downloadstart':
             $download->overView();
             break;
         case 'showfile':
             $download->showFile($_GET['file_id']);
             break;
         case 'get_file':
             $download->getFile($_GET['file_id']);
             break;
         case 'get_nouserpay_file':
             $download->getNoUserPayFile($_GET['file_id'], $_GET['diff'], $_GET['val']);
             break;
         case 'get_nopay_file':
             $download->getNoPayFile($_GET['file_id']);
             break;
         case 'get_notmine_file':
             $download->getNotMineFile($_GET['file_id']);
             break;
         case 'get_denied':
             $download->getDenied($_GET['file_id']);