Redirect to details pages after performing actions
[aur.git] / web / html / pkgflag.php
blobb1ca03b2e3e3e1ae6a29a146a32af7e63a88a342
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 set_lang();
9 check_sid();
11 html_header(__("Flag Package Out-Of-Date"));
13 if (has_credential(CRED_PKGBASE_FLAG)): ?>
14 <div class="box">
15 <h2><?= __('Flag Package Out-Of-Date: %s', htmlspecialchars($pkgbase_name)) ?></h2>
16 <p>
17 <?= __('Use this form to flag the package base %s%s%s and the following packages out-of-date: ',
18 '<strong>', htmlspecialchars($pkgbase_name), '</strong>'); ?>
19 </p>
20 <ul>
21 <?php foreach(pkgbase_get_pkgnames($base_id) as $pkgname): ?>
22 <li><?= htmlspecialchars($pkgname) ?></li>
23 <?php endforeach; ?>
24 </ul>
25 <p>
26 <?= __('Please do %snot%s use this form to report bugs. Use the package comments instead.',
27 '<strong>', '</strong>'); ?>
28 <?= __('Enter details on why the package is out-of-date below, preferably including links to the release announcement or the new release tarball.'); ?>
29 </p>
30 <form action="<?= get_pkgbase_uri($pkgbase_name); ?>" method="post">
31 <fieldset>
32 <input type="hidden" name="IDs[<?= $base_id ?>]" value="1" />
33 <input type="hidden" name="ID" value="<?= $base_id ?>" />
34 <input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" />
35 <p>
36 <label for="id_comments"><?= __("Comments") ?>:</label>
37 <textarea name="comments" id="id_comments" rows="5" cols="50"></textarea>
38 </p>
39 <p><input type="submit" class="button" name="do_Flag" value="<?= __("Flag") ?>" /></p>
40 </fieldset>
41 </form>
42 </div>
44 <?php
45 else:
46 print __("Only registered users can flag packages out-of-date.");
47 endif;
49 html_footer(AURWEB_VERSION);