Example #1
0
 $lang_file = BASE_DIR . '/modules/download/lang/' . $_SESSION['admin_language'] . '.txt';
 $download = new Download();
 $GLOBALS['AVE_Template']->config_load($lang_file, 'admin');
 $config_vars = $GLOBALS['AVE_Template']->get_config_vars();
 $GLOBALS['AVE_Template']->assign('config_vars', $config_vars);
 $GLOBALS['AVE_Template']->assign('source', $tpl_dir_source);
 switch ($_REQUEST['moduleaction']) {
     // Kommentare
     case '1':
         $download->overView($tpl_dir);
         break;
     case 'categs':
         $download->categs($tpl_dir);
         break;
     case 'new_categ':
         $download->newCateg($tpl_dir, $_REQUEST['Id']);
         break;
     case 'edit_categ':
         $download->editCateg($tpl_dir, $_REQUEST['Id']);
         break;
     case 'delcateg':
         $download->delCategAll($_REQUEST['Id']);
         break;
     case 'overview':
         $download->overView($tpl_dir);
         break;
     case 'edit':
         $download->editDownload($tpl_dir, $_REQUEST['Id']);
         break;
     case 'new':
         $download->newDownload($tpl_dir);