Ejemplo n.º 1
0
     $functions->incertData($_POST);
     break;
 case 'delete':
     if (is_array($_POST['deletess'])) {
         foreach ($_POST['deletess'] as $delete) {
             $functions->deletesc($delete);
         }
         //$functions->deletesc( $_POST['deletess'] );
     } else {
         $functions->deletesc($_POST['deletess']);
     }
     break;
 case 'approve':
     if ($_POST['approve']) {
         foreach ($_POST['approve'] as $approve) {
             $functions->approvesc($approve);
         }
     }
     if ($_POST['delete']) {
         foreach ($_POST['delete'] as $delete) {
             $functions->deletesc($delete);
         }
     }
     break;
 case 'vote':
     $functions->vote($_POST['id'], $_POST['vote']);
     break;
 case 'upload':
     $functions->uploadImage($addon['dir'] . 'screenshots/', $_FILES['userfile']['name'], addslashes($_POST['caption']), $_POST['catagory'], $_POST['desc'], $addon['config']['rg_width'], $addon['config']['rg_height'], $addon['config']['rg_wm_loc'], $addon['config']['rg_wm_use'], $addon['config']['rg_wm_file'], $addon['config']['rg_wm_dir'], ROSTER_SCREENTABLE, $addon['config']['rg_upload_size']);
     break;
 case 'upload_wm':