Ejemplo n.º 1
0
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);
        $e_event->trigger('dldelete', $del_id);
    }
    unset($sub_action, $id);
}
if (isset($message)) {
    $ns->tablerender("", "<div style='text-align:center'><b>" . $message . "</b></div>");
}
if (!e_QUERY || $action == "main") {
    $download->show_existing_items($action, $sub_action, $id, $from, $amount);