home.php 3.4 KB
Newer Older
Lukas Fleischer's avatar
Lukas Fleischer committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

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

include_once("aur.inc.php");
set_lang();
check_sid();

include_once('stats.inc.php');

html_header( __("Home") );

$dbh = db_connect();

?>

<div id="content-left-wrapper">
	<div id="content-left">
		<div id="intro" class="box">
Lukas Fleischer's avatar
Lukas Fleischer committed
20
			<h2>AUR <?= __("Home"); ?></h2>
Lukas Fleischer's avatar
Lukas Fleischer committed
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
			<p>
			<?php
			echo __(
				'Welcome to the AUR! Please read the %sAUR User Guidelines%s and %sAUR TU Guidelines%s 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>'
				);
			?>
			</p>
			<p>
			<?php
			echo __(
				'Contributed PKGBUILDs %smust%s conform to the %sArch Packaging Standards%s otherwise they will be deleted!',
				'<b>', '</b>',
				'<a href="http://wiki.archlinux.org/index.php/Arch_Packaging_Standards">',
				'</a>'
				);
			?>
			</p>
			<p>
Lukas Fleischer's avatar
Lukas Fleischer committed
43
44
			<?= __('Remember to vote for your favourite packages!'); ?>
			<?= __('Some packages may be provided as binaries in [community].'); ?>
Lukas Fleischer's avatar
Lukas Fleischer committed
45
46
			</p>
			<p>
Lukas Fleischer's avatar
Lukas Fleischer committed
47
			<h4><?= __('Discussion') ?></h4>
Lukas Fleischer's avatar
Lukas Fleischer committed
48
49
50
51
52
53
54
55
56
57
			<?php
			echo __(
				'General discussion regarding the Arch User Repository (AUR) and Trusted User structure takes place on %saur-general%s. This list can be used for package orphan requests, merge requests, and deletion requests. For discussion relating to the development of the AUR, use the %saur-dev%s mailing list.',
				'<a href="http://mailman.archlinux.org/mailman/listinfo/aur-general">',
				'</a>',
				'<a href="http://mailman.archlinux.org/mailman/listinfo/aur-dev">',
				'</a>'
				);
			?>
			</p>
Lukas Fleischer's avatar
Lukas Fleischer committed
58
			<h4><?= __('Bug Reporting') ?></h4>
Lukas Fleischer's avatar
Lukas Fleischer committed
59
60
61
62
63
64
65
66
67
68
69
70
			<?php
			echo __(
				'If you find a bug in the AUR, 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.',
				'<a href="https://bugs.archlinux.org/index.php?project=2">',
				'</a>',
				'<strong>',
				'</strong>'
				);
			?>
			</p>

			<div class="important">
Lukas Fleischer's avatar
Lukas Fleischer committed
71
				<b><?= __('DISCLAIMER') ?> :</b>
Lukas Fleischer's avatar
Lukas Fleischer committed
72
				<br />
Lukas Fleischer's avatar
Lukas Fleischer committed
73
				<?= __('Unsupported packages are user produced content. Any use of the provided files is at your own risk.'); ?>
Lukas Fleischer's avatar
Lukas Fleischer committed
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
			</div>
		</div>
		<?php if (!empty($_COOKIE["AURSID"])): ?>
			<div id="pkg-updates" class="widget box">
				<table>
					<tr>
						<td class="pkg-name">
							<?php
							$userid = uid_from_sid($_COOKIE["AURSID"]);
							user_table($userid, $dbh);
							?>
						</td>
					</tr>
				</table>
			</div>
		<?php endif; ?>
	</div>
</div>
<div id="content-right">
	<div id="pkgsearch" class="widget">
Lukas Fleischer's avatar
Lukas Fleischer committed
94
		<form id="pkgsearch-form" method="get" action="<?= get_uri('/packages/'); ?>">
Lukas Fleischer's avatar
Lukas Fleischer committed
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
			<fieldset>
				<label for="pkgsearch-field">Package Search:</label>
				<input type="hidden" name="O" value="0" />
				<input type="text" name="K" size="30" value="<?php if (isset($_REQUEST["K"])) { print stripslashes(trim(htmlspecialchars($_REQUEST["K"], ENT_QUOTES))); } ?>" maxlength="35" />
			</fieldset>
		</form>
	</div>
	<div id="pkg-updates" class="widget box">
		<table>
			<tr>
				<td class="pkg-name">
					<?php updates_table($dbh); ?>
				</td>
			</tr>
		</table>
	</div>
	<div id="pkg-updates" class="widget box">
		<table>
			<tr>
				<td class="pkg-name">
					<?php general_stats_table($dbh); ?>
				</td>
			</tr>
		</table>
	</div>

</div>
<?php
html_footer(AUR_VERSION);