Esempio n. 1
0
                }
            }
            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':
            $functions->uploadwmImage($addon['dir'] . 'inc/' . $addon['config']['rg_wm_dir'], $_FILES['wmfile']['name']);
            break;
        default:
            break;
    }
}
// ----[ End Decide what to do next ]-----------------------
// just an array for future use
$pross_ign = array('config_name', 'gi_op');
$id = isset($_GET['id']);
$vop = isset($_GET['op']);
if ($id != '' && $addon['config']['rg_use_votepopup'] == '0' && $vop != 'vote') {
    $sql = "SELECT * FROM `" . ROSTER_SCREENTABLE . "` WHERE `id` = '" . $id . "'";
    $result = $roster->db->query($sql) or die_quietly($roster->db->error(), 'Database Error', basename(__FILE__), __LINE__, $query);
    $row = $roster->db->fetch($result);
    if ($row['rateing'] != 0 && $row['votes'] != 0) {
Esempio n. 2
0
            $functions->changecat($_POST['id'], $_POST['new_cat'], $_POST['old_cat'], $addon_cfg, $_POST['file'], $_POST['path']);
            break;
        case 'approve':
            if (isset($_POST['approve'])) {
                foreach ($_POST['approve'] as $approve) {
                    $functions->approvesc($approve);
                }
            }
            if (isset($_POST['delete'])) {
                foreach ($_POST['delete'] as $delete) {
                    $functions->deletesc($delete);
                }
            }
            break;
        case 'upload_wm':
            $functions->uploadwmImage($addon['dir'] . $addon_cfg['rg_wm_dir'], $_FILES['wmfile']['name']);
            break;
        default:
            break;
    }
}
if (isset($_GET['make_dir']) == 'chmod') {
    if ($functions->checkDirst($ssfolder, 1, 1)) {
        $functions->setMessage('All folders in Screenshots Changed to 777');
    } else {
        $functions->setMessage('Change chmod manualy');
    }
}
// ----[ End Decide what to do next ]-----------------------
/**
 * Get the current config values from the roster config table