Erase login IP addresses after seven days
[aur.git] / web / html / pkgdel.php
blob4620beb6e57c33164a203b668686fd96cff28b98
1 <?php
3 set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
5 include_once("aur.inc.php");
6 include_once("pkgfuncs.inc.php");
8 html_header(__("Package Deletion"));
10 if (has_credential(CRED_PKGBASE_DELETE)): ?>
11 <div class="box">
12 <h2><?= __('Delete Package') ?>: <?= htmlspecialchars($pkgbase_name) ?></h2>
13 <p>
14 <?= __('Use this form to delete the package base %s%s%s and the following packages from the AUR: ',
15 '<strong>', htmlspecialchars($pkgbase_name), '</strong>'); ?>
16 </p>
17 <ul>
18 <?php foreach(pkgbase_get_pkgnames($base_id) as $pkgname): ?>
19 <li><?= htmlspecialchars($pkgname) ?></li>
20 <?php endforeach; ?>
21 </ul>
22 <p>
23 <?= __('Deletion of a package is permanent. '); ?>
24 <?= __('Select the checkbox to confirm action.') ?>
25 </p>
26 <form action="<?= get_pkgbase_uri($pkgbase_name); ?>" method="post">
27 <fieldset>
28 <input type="hidden" name="IDs[<?= $base_id ?>]" value="1" />
29 <input type="hidden" name="ID" value="<?= $base_id ?>" />
30 <input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" />
31 <?php if (isset($_GET['via'])): ?>
32 <input type="hidden" name="via" value="<?= intval($_GET['via']) ?>" />
33 <?php endif; ?>
34 <p><label class="confirmation"><input type="checkbox" name="confirm" value="1" />
35 <?= __("Confirm package deletion") ?></label></p>
36 <p><input type="submit" class="button" name="do_Delete" value="<?= __("Delete") ?>" /></p>
37 </fieldset>
38 </form>
39 </div>
41 <?php else:
42 print __("Only Trusted Users and Developers can delete packages.");
43 endif;
45 html_footer(AURWEB_VERSION);