コード例 #1
0
ファイル: download.php プロジェクト: notzen/e107
            foreach (array('bw_num', 'bw_days', 'count_num', 'count_days') as $k => $lName) {
                $vals[$targetFields[$k + 1]] = intval($_POST[$lName][$idLim]);
            }
            $valString = implode(',', $vals);
            $sql->db_UpdateArray('generic', $vals, " WHERE gen_id = {$idLim}");
            $admin_log->log_event('DOWNL_10', $idLim . ', ' . $valString, E_LOG_INFORMATIVE, '');
            $message .= $idLim . " - " . DOWLAN_121 . "<br />";
            unset($vals);
        }
    }
}
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, '');
    }
}