3 set_include_path(get_include_path() . PATH_SEPARATOR
. '../lib');
5 include_once("aur.inc.php");
6 include_once("pkgfuncs.inc.php");
11 html_header(__("Disown Package"));
13 $maintainer_uids = array(pkgbase_maintainer_uid($base_id));
14 $comaintainers = pkgbase_get_comaintainers($base_id);
16 if (has_credential(CRED_PKGBASE_DISOWN
, $maintainer_uids)): ?
>
18 <h2
><?
= __('Disown Package: %s', htmlspecialchars($pkgbase_name)) ?
></h2
>
20 <?
= __('Use this form to disown the package base %s%s%s which includes the following packages: ',
21 '<strong>', htmlspecialchars($pkgbase_name), '</strong>'); ?
>
24 <?php
foreach(pkgbase_get_pkgnames($base_id) as $pkgname): ?
>
25 <li
><?
= htmlspecialchars($pkgname) ?
></li
>
29 <?php
if (count($comaintainers) > 0 && !has_credential(CRED_PKGBASE_DISOWN
)): ?
>
30 <?
= __('By selecting the checkbox, you confirm that you want to disown the package and transfer ownership to %s%s%s.',
31 '<strong>', $comaintainers[0], '</strong>'); ?
>
33 <?
= __('By selecting the checkbox, you confirm that you want to disown the package.') ?
>
36 <form action
="<?= get_uri('/pkgbase/'); ?>" method
="post">
38 <input type
="hidden" name
="IDs[<?= $base_id ?>]" value
="1" />
39 <input type
="hidden" name
="ID" value
="<?= $base_id ?>" />
40 <input type
="hidden" name
="token" value
="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" />
41 <?php
if (isset($_GET['via'])): ?
>
42 <input type
="hidden" name
="via" value
="<?= intval($_GET['via']) ?>" />
44 <p
><label
class="confirmation"><input type
="checkbox" name
="confirm" value
="1" />
45 <?
= __("Confirm to disown the package") ?
></label
</p
>
46 <p
><input type
="submit" class="button" name
="do_Disown" value
="<?= __("Disown
") ?>" /></p
>
52 print __("Only Trusted Users and Developers can disown packages.");
55 html_footer(AURWEB_VERSION
);