summaryrefslogtreecommitdiffstats
path: root/web/html/index.php
blob: ce5e009103cd53cb233b25a9a2e20fcf491be57c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php

set_include_path(get_include_path() . PATH_SEPARATOR . '../lib' . PATH_SEPARATOR . '../lang');

# Add to handle the i18n of My Packages
include("pkgfuncs_po.inc");
include("aur.inc");
include('stats.inc');

set_lang();
check_sid();

html_header( __("Home") );
$dbh = db_connect();

?>

<div class="pgbox">
<div class="pgboxtitle">
<span class="f3">AUR <?php print __("Home"); ?></span>
</div>
<div class="frontpgboxbody">
<table border='0' cellpadding='0' cellspacing='3' width='90%'>
<tr>
<td class='boxSoft' valign='top' colspan='2'>
<p>

<?php 
print __( 'Welcome to the AUR! Please read the %hAUR User Guidelines%h and %hAUR TU Guidelines%h for more information.'
        , '<a href="http://wiki.archlinux.org/index.php/AUR_User_Guidelines">'
        , '</a>'
        , '<a href="http://wiki.archlinux.org/index.php/AUR_Trusted_User_Guidelines">'
        , '</a>'
        );
?>

<br>

<?php
print __( 'Contributed PKGBUILDs <b>must</b> conform to the %hArch Packaging Standards%h otherwise they will be deleted!'
        , '<a href="http://wiki.archlinux.org/index.php/Arch_Packaging_Standards">'
        , '</a>'
        );
?>

</p>
<p>
<?php print __("Remember to vote for your favourite packages!"); ?>
<br>
<?php print __("The most popular packages will be provided as binary packages in [community]."); ?>
</p>
</td>
</tr>
<tr>
<td class='boxSoft' valign='top'>
<?php updates_table($dbh); ?>
</td>
<td class='boxSoft' valign='top'>
<?php
$user = username_from_sid($_COOKIE["AURSID"]);
if (!empty($user)) {
	user_table($user, $dbh);
	echo '<br />';
}

general_stats_table($dbh);
?>

</td>
</tr>
</table>
<br /><span class='important'><?php print __("DISCLAIMER"); ?></span>
</div>
</div>

<?php
html_footer(AUR_VERSION);