3 set_include_path(get_include_path() . PATH_SEPARATOR
. '../lib');
5 include_once("aur.inc.php");
9 include_once('stats.inc.php');
11 html_header( __("Home") );
15 <div id
="content-left-wrapper">
16 <div id
="content-left">
17 <div id
="intro" class="box">
18 <h2
>AUR
<?
= __("Home"); ?
></h2
>
22 'Welcome to the AUR! Please read the %sAUR User Guidelines%s and %sAUR TU Guidelines%s for more information.',
23 '<a href="https://wiki.archlinux.org/index.php/AUR_User_Guidelines">',
25 '<a href="https://wiki.archlinux.org/index.php/AUR_Trusted_User_Guidelines">',
31 'Contributed PKGBUILDs %smust%s conform to the %sArch Packaging Standards%s otherwise they will be deleted!',
32 '<strong>', '</strong>',
33 '<a href="https://wiki.archlinux.org/index.php/Arch_Packaging_Standards">',
37 <?
= __('Remember to vote for your favourite packages!'); ?
>
38 <?
= __('Some packages may be provided as binaries in [community].'); ?
>
41 <?
= __('DISCLAIMER') ?
>:
42 <?
= __('Unsupported packages are user produced content. Any use of the provided files is at your own risk.'); ?
>
44 <p
class="readmore"><a href
="https://wiki.archlinux.org/index.php/AUR"><?
= __('Learn more...') ?
></a
></p
>
47 <h3
><a
><?
= __('Support') ?
></a
><span
class="arrow"></span
></h3
>
48 <h4
><?
= __('Package Requests') ?
></h4
>
49 <div
class="article-content">
53 'There are three types of requests that can be filed in the %sPackage Actions%s box on the package details page:',
60 <li
><em
><?
= __('Orphan Request') ?
></em
>: <?
= __('Request a package to be disowned, e.g. when the maintainer is inactive and the package has been flagged out-of-date for a long time.') ?
></li
>
61 <li
><em
><?
= __('Deletion Request') ?
></em
>: <?
= __('Request a package to be removed from the Arch User Repository. Please do not use this if a package is broken and can be fixed easily. Instead, contact the package maintainer and file orphan request if necessary.') ?
></li
>
62 <li
><em
><?
= __('Merge Request') ?
></em
>: <?
= __('Request a package to be merged into another one. Can be used when a package needs to be renamed or replaced by a split package.') ?
></li
>
67 'If you want to discuss a request, you can use the %saur-requests%s mailing list. However, please do not use that list to file requests.',
68 '<a href="https://mailman.archlinux.org/mailman/listinfo/aur-requests">',
74 <h4
><?
= __('Discussion') ?
></h4
>
75 <div
class="article-content">
79 'General discussion regarding the Arch User Repository (AUR) and Trusted User structure takes place on %saur-general%s. For discussion relating to the development of the AUR web interface, use the %saur-dev%s mailing list.',
80 '<a href="https://mailman.archlinux.org/mailman/listinfo/aur-general">',
82 '<a href="https://mailman.archlinux.org/mailman/listinfo/aur-dev">',
88 <h4
><?
= __('Bug Reporting') ?
></h4
>
89 <div
class="article-content">
93 'If you find a bug in the AUR web interface, please fill out a bug report on our %sbug tracker%s. Use the tracker to report bugs in the AUR %sonly%s. To report packaging bugs contact the package maintainer or leave a comment on the appropriate package page.',
94 '<a href="https://bugs.archlinux.org/index.php?project=2">',
105 <div id
="content-right">
106 <div id
="pkgsearch" class="widget">
107 <form id
="pkgsearch-form" method
="get" action
="<?= get_uri('/packages/'); ?>">
109 <label
for="pkgsearch-field"><?
= __('Package Search') ?
>:</label
>
110 <input type
="hidden" name
="O" value
="0" />
111 <input id
="pkgsearch-field" type
="text" name
="K" size
="30" value
="<?php if (isset($_REQUEST["K
"])) { print stripslashes(trim(htmlspecialchars($_REQUEST["K
"], ENT_QUOTES))); } ?>" maxlength
="35" />
115 <div id
="pkg-updates" class="widget box">
116 <?php
updates_table(); ?
>
118 <div id
="pkg-stats" class="widget box">
119 <?php
general_stats_table(); ?
>
121 <?php
if (!empty($_COOKIE["AURSID"])): ?
>
122 <div id
="pkg-stats" class="widget box">
123 <?php
user_table(uid_from_sid($_COOKIE["AURSID"])); ?
>
128 <script type
="text/javascript" src
="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script
>
129 <script type
="text/javascript" src
="/js/bootstrap-typeahead.min.js"></script
>
130 <script type
="text/javascript">
131 $
(document
).ready(function() {
132 $
('#pkgsearch-field').typeahead({
133 source
: function(query
, callback
) {
134 $
.getJSON('<?= get_uri('/rpc
'); ?>', {type
: "suggest", arg
: query
}, function(data
) {
138 matcher
: function(item
) { return true; },
139 sorter
: function(items
) { return items
; },
140 menu
: '<ul class="pkgsearch-typeahead"></ul>',
142 updater
: function(item
) {
143 document
.location
= '/packages/' + item
;
146 }).attr('autocomplete', 'off');
148 $
('#pkgsearch-field').keydown(function(e
) {
149 if (e
.keyCode
== 13) {
150 var selectedItem
= $
('ul.pkgsearch-typeahead li.active');
151 if (selectedItem
.length
== 0) {
152 $
('#pkgsearch-form').submit();
159 html_footer(AURWEB_VERSION
);