2 set_include_path(get_include_path() . PATH_SEPARATOR
. '../lib');
4 include_once("aur.inc.php");
6 $uid = uid_from_sid($_COOKIE["AURSID"]);
8 if (isset($_POST["accept"]) && $_POST["accept"]) {
9 accept_terms($uid, $_POST["rev"]);
10 header("Location: " . get_uri('/'));
13 $terms = fetch_updated_terms($uid);
15 header("Location: " . get_uri('/'));
18 html_header('AUR ' . __("Terms of Service"));
20 <div id
="dev-login" class="box">
21 <h2
>AUR
<?
= __('Terms of Service') ?
></h2
>
22 <?php
if (isset($_COOKIE["AURSID"])): ?
>
23 <form method
="post" action
="<?= get_uri('/tos') ?>">
26 <?
= __("Logged-in as: %s", '<strong>' . username_from_sid($_COOKIE["AURSID"]) . '</strong>'); ?
>
29 <?
= __("The following documents have been updated. Please review them carefully:"); ?
>
32 <?php
foreach($terms as $row): ?
>
33 <li
><a href
="<?= htmlspecialchars(sprintf($row["URL
"], $row["Revision
"]), ENT_QUOTES) ?>"><?
= htmlspecialchars($row["Description"]) ?
></a
> (<?
= __('revision %d', $row["Revision"]) ?
>)</li
>
37 <?php
foreach($terms as $row): ?
>
38 <input type
="hidden" name
="rev[<?= $row["ID
"] ?>]" value
="<?= $row["Revision
"] ?>" />
40 <input type
="checkbox" name
="accept" /> <?
= __("I accept the terms and conditions above."); ?
>
43 <input type
="submit" name
="submit" value
="<?= __("Continue") ?>" />
50 html_footer(AURWEB_VERSION
);