Esempio n. 1
0
    }
}
if ($image_array = $fl->get_files(e_FILE . 'downloadimages/', '\\.gif$|\\.jpg$|\\.png$|\\.GIF$|\\.JPG$|\\.PNG$', 'standard', 2)) {
    sort($image_array);
}
if ($thumb_array = $fl->get_files(e_FILE . 'downloadimages/', '\\.gif$|\\.jpg$|\\.png$|\\.GIF$|\\.JPG$|\\.PNG$', 'standard', 2)) {
    sort($thumb_array);
}
if (isset($_POST)) {
    $e107cache->clear("download_cat");
}
if (isset($_POST['add_category'])) {
    $download->create_category($sub_action, $id);
}
if (isset($_POST['submit_download'])) {
    $download->submit_download($sub_action, $id);
    $action = "main";
    unset($sub_action, $id);
}
if (isset($_POST['update_catorder'])) {
    foreach ($_POST['catorder'] as $key => $order) {
        if (is_numeric($_POST['catorder'][$key])) {
            $sql->db_Update("download_category", "download_category_order='" . intval($order) . "' WHERE download_category_id='" . intval($key) . "'");
        }
    }
    $admin_log->log_event('DOWNL_08', implode(',', array_keys($_POST['catorder'])), E_LOG_INFORMATIVE, '');
    $ns->tablerender("", "<div style='text-align:center'><b>" . LAN_UPDATED . "</b></div>");
}
if (isset($_POST['updateoptions'])) {
    unset($temp);
    $temp['download_php'] = $_POST['download_php'];