Example #1
0
        }
    }
    $t_size = explode("x", $t_size);
    if (count($t_size) == 2) {
        $t_size = intval($t_size[0]) . "x" . intval($t_size[1]);
    } else {
        $t_size = intval($t_size[0]);
    }
    $m_size = explode("x", $m_size);
    if (count($m_size) == 2) {
        $m_size = intval($m_size[0]) . "x" . intval($m_size[1]);
    } else {
        $m_size = intval($m_size[0]);
    }
    $uploader = new FileUploader($area, $news_id, $author, $t_size, $t_seite, $make_thumb, $make_watermark, $m_size, $m_seite, $make_medium);
    $result = $uploader->FileUpload();
    echo $result;
    die;
}
//////////////////////
// go go delete uploaded files
//////////////////////
check_xss();
if ($_POST['subaction'] == "deluploads") {
    if ($_REQUEST['user_hash'] == "" or $_REQUEST['user_hash'] != $dle_login_hash) {
        die("Hacking attempt! User not found");
    }
    if (isset($_POST['images'])) {
        $row = $db->super_query("SELECT images  FROM " . PREFIX . "_images WHERE author = '{$author}' AND news_id = '{$news_id}'");
        $listimages = explode("|||", $row['images']);
        foreach ($_POST['images'] as $image) {