Example #1
0
        }
    }
}
if (isset($_POST['submit_mirror'])) {
    $download->submit_mirror($sub_action, $id);
}
if ($action == "mirror") {
    $download->show_existing_mirrors();
}
if ($action == "dlm") {
    $action = "create";
    $id = $sub_action;
    $sub_action = "dlm";
}
if ($action == "create") {
    $download->create_download($sub_action, $id);
}
if ($delete == 'category') {
    if (admin_update($sql->db_Delete('download_category', 'download_category_id=' . $del_id), 'delete', DOWLAN_49 . " #" . $del_id . " " . DOWLAN_36)) {
        $sql->db_Delete('download_category', 'download_category_parent=' . $del_id);
        $admin_log->log_event('DOWNL_04', $del_id, E_LOG_INFORMATIVE, '');
    }
}
if ($action == 'cat') {
    $download->show_categories($sub_action, $id);
}
if ($delete == 'main') {
    $result = admin_update($sql->db_Delete('download', 'download_id=' . $del_id), 'delete', DOWLAN_27 . " #" . $del_id . " " . DOWLAN_36);
    if ($result) {
        $admin_log->log_event('DOWNL_07', $del_id, E_LOG_INFORMATIVE, '');
        admin_purge_related('download', $del_id);