mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Use echo shortcut syntax
Replace all occurrences of "<?php echo" and "<?php print" by "<?=" to reduce noise in templates. Note that as of PHP 5.4.0, "<?=" is always available and no longer requires "short_open_tag" to be set. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
964ea083e6
commit
6102759b7c
26 changed files with 368 additions and 366 deletions
|
@ -17,6 +17,8 @@ ALTER TABLE Users ADD COLUMN PGPKey VARCHAR(40) NULL DEFAULT NULL;
|
||||||
|
|
||||||
4. Enable the PDO MySQL extension (pdo_mysql.so) in "php.ini".
|
4. Enable the PDO MySQL extension (pdo_mysql.so) in "php.ini".
|
||||||
|
|
||||||
|
5. Upgrade to PHP>=5.4.0 or enable "short_open_tag" in "php.ini".
|
||||||
|
|
||||||
From 1.9.0 to 1.9.1
|
From 1.9.0 to 1.9.1
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
|
|
|
@ -62,29 +62,29 @@ if ($atype == "Trusted User" || $atype == "Developer") {
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php if (!empty($error)): ?>
|
<?php if (!empty($error)): ?>
|
||||||
<p style="color: red;" class="pkgoutput"><?php print $error ?></p>
|
<p style="color: red;" class="pkgoutput"><?= $error ?></p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<h2><?php print __("Submit a proposal to vote on.") ?></h2>
|
<h2><?= __("Submit a proposal to vote on.") ?></h2>
|
||||||
|
|
||||||
<form action="<?php echo get_uri('/addvote/'); ?>" method="post">
|
<form action="<?= get_uri('/addvote/'); ?>" method="post">
|
||||||
<p>
|
<p>
|
||||||
<b><?php print __("Applicant/TU") ?></b>
|
<b><?= __("Applicant/TU") ?></b>
|
||||||
<input type="text" name="user" value="<?php if (!empty($_POST['user'])) { print htmlentities($_POST['user'], ENT_QUOTES); } ?>" />
|
<input type="text" name="user" value="<?php if (!empty($_POST['user'])) { print htmlentities($_POST['user'], ENT_QUOTES); } ?>" />
|
||||||
<?php print __("(empty if not applicable)") ?>
|
<?= __("(empty if not applicable)") ?>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<b><?php print __("Length in days") ?></b>
|
<b><?= __("Length in days") ?></b>
|
||||||
<input type="text" name="length" value="<?php if (!empty($_POST['length'])) { print htmlentities($_POST['length'], ENT_QUOTES); } ?>" />
|
<input type="text" name="length" value="<?php if (!empty($_POST['length'])) { print htmlentities($_POST['length'], ENT_QUOTES); } ?>" />
|
||||||
<?php print __("(defaults to 7 if empty)") ?>
|
<?= __("(defaults to 7 if empty)") ?>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<b><?php print __("Proposal") ?></b><br />
|
<b><?= __("Proposal") ?></b><br />
|
||||||
<textarea name="agenda" rows="15" cols="80"><?php if (!empty($_POST['agenda'])) { print htmlentities($_POST['agenda']); } ?></textarea><br />
|
<textarea name="agenda" rows="15" cols="80"><?php if (!empty($_POST['agenda'])) { print htmlentities($_POST['agenda']); } ?></textarea><br />
|
||||||
<input type="hidden" name="addVote" value="1" />
|
<input type="hidden" name="addVote" value="1" />
|
||||||
<input type="hidden" name="token" value="<?php print htmlspecialchars($_COOKIE['AURSID']) ?>" />
|
<input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" />
|
||||||
<input type="submit" class="button" value="<?php print __("Submit"); ?>" />
|
<input type="submit" class="button" value="<?= __("Submit"); ?>" />
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -17,7 +17,7 @@ $dbh = db_connect();
|
||||||
<div id="content-left-wrapper">
|
<div id="content-left-wrapper">
|
||||||
<div id="content-left">
|
<div id="content-left">
|
||||||
<div id="intro" class="box">
|
<div id="intro" class="box">
|
||||||
<h2>AUR <?php print __("Home"); ?></h2>
|
<h2>AUR <?= __("Home"); ?></h2>
|
||||||
<p>
|
<p>
|
||||||
<?php
|
<?php
|
||||||
echo __(
|
echo __(
|
||||||
|
@ -40,11 +40,11 @@ $dbh = db_connect();
|
||||||
?>
|
?>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<?php echo __('Remember to vote for your favourite packages!'); ?>
|
<?= __('Remember to vote for your favourite packages!'); ?>
|
||||||
<?php echo __('Some packages may be provided as binaries in [community].'); ?>
|
<?= __('Some packages may be provided as binaries in [community].'); ?>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<h4><?php echo __('Discussion') ?></h4>
|
<h4><?= __('Discussion') ?></h4>
|
||||||
<?php
|
<?php
|
||||||
echo __(
|
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.',
|
'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.',
|
||||||
|
@ -55,7 +55,7 @@ $dbh = db_connect();
|
||||||
);
|
);
|
||||||
?>
|
?>
|
||||||
</p>
|
</p>
|
||||||
<h4><?php echo __('Bug Reporting') ?></h4>
|
<h4><?= __('Bug Reporting') ?></h4>
|
||||||
<?php
|
<?php
|
||||||
echo __(
|
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.',
|
'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.',
|
||||||
|
@ -68,9 +68,9 @@ $dbh = db_connect();
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="important">
|
<div class="important">
|
||||||
<b><?php echo __('DISCLAIMER') ?> :</b>
|
<b><?= __('DISCLAIMER') ?> :</b>
|
||||||
<br />
|
<br />
|
||||||
<?php echo __('Unsupported packages are user produced content. Any use of the provided files is at your own risk.'); ?>
|
<?= __('Unsupported packages are user produced content. Any use of the provided files is at your own risk.'); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php if (!empty($_COOKIE["AURSID"])): ?>
|
<?php if (!empty($_COOKIE["AURSID"])): ?>
|
||||||
|
@ -91,7 +91,7 @@ $dbh = db_connect();
|
||||||
</div>
|
</div>
|
||||||
<div id="content-right">
|
<div id="content-right">
|
||||||
<div id="pkgsearch" class="widget">
|
<div id="pkgsearch" class="widget">
|
||||||
<form id="pkgsearch-form" method="get" action="<?php echo get_uri('/packages/'); ?>">
|
<form id="pkgsearch-form" method="get" action="<?= get_uri('/packages/'); ?>">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<label for="pkgsearch-field">Package Search:</label>
|
<label for="pkgsearch-field">Package Search:</label>
|
||||||
<input type="hidden" name="O" value="0" />
|
<input type="hidden" name="O" value="0" />
|
||||||
|
|
|
@ -13,34 +13,34 @@ if (!$DISABLE_HTTP_LOGIN || (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'])) {
|
||||||
html_header('AUR ' . __("Login"));
|
html_header('AUR ' . __("Login"));
|
||||||
?>
|
?>
|
||||||
<div id="dev-login" class="box">
|
<div id="dev-login" class="box">
|
||||||
<h2>AUR <?php echo __('Login') ?></h2>
|
<h2>AUR <?= __('Login') ?></h2>
|
||||||
<?php if (isset($_COOKIE["AURSID"])): ?>
|
<?php if (isset($_COOKIE["AURSID"])): ?>
|
||||||
<p>
|
<p>
|
||||||
<?php echo __("Logged-in as: %s", '<strong>' . username_from_sid($_COOKIE["AURSID"]) . '</strong>'); ?>
|
<?= __("Logged-in as: %s", '<strong>' . username_from_sid($_COOKIE["AURSID"]) . '</strong>'); ?>
|
||||||
<a href="<?php get_uri('/logout/'); ?>">[<?php print __("Logout"); ?>]</a>
|
<a href="<?php get_uri('/logout/'); ?>">[<?= __("Logout"); ?>]</a>
|
||||||
</p>
|
</p>
|
||||||
<?php elseif (!$DISABLE_HTTP_LOGIN || (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'])): ?>
|
<?php elseif (!$DISABLE_HTTP_LOGIN || (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'])): ?>
|
||||||
<form method="post" action="<?php echo htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES) ?>">
|
<form method="post" action="<?= htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES) ?>">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend><?php echo __('Enter login credentials') ?></legend>
|
<legend><?= __('Enter login credentials') ?></legend>
|
||||||
<?php if (!empty($login_error)): ?>
|
<?php if (!empty($login_error)): ?>
|
||||||
<ul class="errorlist"><li><?php echo $login_error ?></li></ul>
|
<ul class="errorlist"><li><?= $login_error ?></li></ul>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<p>
|
<p>
|
||||||
<label for="id_username"><?php print __('Username') . ':'; ?></label>
|
<label for="id_username"><?= __('Username') . ':'; ?></label>
|
||||||
<input id="id_username" type="text" name="user" size="30" maxlength="<?php print USERNAME_MAX_LEN; ?>" value="<?php if (isset($_POST['user'])) { print htmlspecialchars($_POST['user'], ENT_QUOTES); } ?>" />
|
<input id="id_username" type="text" name="user" size="30" maxlength="<?= USERNAME_MAX_LEN; ?>" value="<?php if (isset($_POST['user'])) { print htmlspecialchars($_POST['user'], ENT_QUOTES); } ?>" />
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<label for="id_password"><?php print __('Password') . ':'; ?></label>
|
<label for="id_password"><?= __('Password') . ':'; ?></label>
|
||||||
<input id="id_password" type="password" name="passwd" size="30" maxlength="<?php print PASSWD_MAX_LEN; ?>" />
|
<input id="id_password" type="password" name="passwd" size="30" maxlength="<?= PASSWD_MAX_LEN; ?>" />
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<input type="checkbox" name="remember_me" id="id_remember_me" />
|
<input type="checkbox" name="remember_me" id="id_remember_me" />
|
||||||
<label for="id_remember_me"><?php print __("Remember me"); ?></label>
|
<label for="id_remember_me"><?= __("Remember me"); ?></label>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<input type="submit" class="button" value="<?php print __("Login"); ?>" />
|
<input type="submit" class="button" value="<?php print __("Login"); ?>" />
|
||||||
<a href="<?php echo get_uri('/passreset/') ?>">[<?php echo __('Forgot Password') ?>]</a>
|
<a href="<?= get_uri('/passreset/') ?>">[<?= __('Forgot Password') ?>]</a>
|
||||||
</p>
|
</p>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -97,7 +97,7 @@ html_header($title);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php if ($output): ?>
|
<?php if ($output): ?>
|
||||||
<p class="pkgoutput"><?php print $output ?></p>
|
<p class="pkgoutput"><?= $output ?></p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
|
@ -66,10 +66,10 @@ html_header(__("Password Reset"));
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<h2><?php print __("Password Reset"); ?></h2>
|
<h2><?= __("Password Reset"); ?></h2>
|
||||||
|
|
||||||
<?php if ($error): ?>
|
<?php if ($error): ?>
|
||||||
<p><span class="error"><?php echo $error ?></span></p>
|
<p><span class="error"><?= $error ?></span></p>
|
||||||
<?php endif;?>
|
<?php endif;?>
|
||||||
<?php
|
<?php
|
||||||
if ($step == 'confirm') {
|
if ($step == 'confirm') {
|
||||||
|
@ -81,31 +81,31 @@ html_header(__("Password Reset"));
|
||||||
<form action="" method="post">
|
<form action="" method="post">
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo __("Confirm your e-mail address:"); ?></td>
|
<td><?= __("Confirm your e-mail address:"); ?></td>
|
||||||
<td><input type="text" name="email" size="30" maxlength="64" /></td>
|
<td><input type="text" name="email" size="30" maxlength="64" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo __("Enter your new password:"); ?></td>
|
<td><?= __("Enter your new password:"); ?></td>
|
||||||
<td><input type="password" name="password" size="30" maxlength="32" /></td>
|
<td><input type="password" name="password" size="30" maxlength="32" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo __("Confirm your new password:"); ?></td>
|
<td><?= __("Confirm your new password:"); ?></td>
|
||||||
<td><input type="password" name="confirm" size="30" maxlength="32" /></td>
|
<td><input type="password" name="confirm" size="30" maxlength="32" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<br />
|
<br />
|
||||||
<input type="submit" class="button" value="<?php echo __('Continue') ?>" />
|
<input type="submit" class="button" value="<?= __('Continue') ?>" />
|
||||||
</form>
|
</form>
|
||||||
<?php
|
<?php
|
||||||
} else {
|
} else {
|
||||||
?>
|
?>
|
||||||
<p><?php echo __('If you have forgotten the e-mail address you used to register, please send a message to the %saur-general%s mailing list.',
|
<p><?= __('If you have forgotten the e-mail address you used to register, please send a message to the %saur-general%s mailing list.',
|
||||||
'<a href="http://mailman.archlinux.org/mailman/listinfo/aur-general">',
|
'<a href="http://mailman.archlinux.org/mailman/listinfo/aur-general">',
|
||||||
'</a>'); ?></p>
|
'</a>'); ?></p>
|
||||||
<form action="" method="post">
|
<form action="" method="post">
|
||||||
<p><?php echo __("Enter your e-mail address:"); ?>
|
<p><?= __("Enter your e-mail address:"); ?>
|
||||||
<input type="text" name="email" size="30" maxlength="64" /></p>
|
<input type="text" name="email" size="30" maxlength="64" /></p>
|
||||||
<input type="submit" class="button" value="<?php echo __('Continue') ?>" />
|
<input type="submit" class="button" value="<?= __('Continue') ?>" />
|
||||||
</form>
|
</form>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -436,12 +436,12 @@ html_header("Submit");
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php if ($error): ?>
|
<?php if ($error): ?>
|
||||||
<p class="pkgoutput"><?php print $error ?></p>
|
<p class="pkgoutput"><?= $error ?></p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<h2><?php echo __("Submit"); ?></h2>
|
<h2><?= __("Submit"); ?></h2>
|
||||||
<p><?php echo __("Upload your source packages here. Create source packages with `makepkg --source`.") ?></p>
|
<p><?= __("Upload your source packages here. Create source packages with `makepkg --source`.") ?></p>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if (empty($_REQUEST['pkgsubmit']) || $error):
|
if (empty($_REQUEST['pkgsubmit']) || $error):
|
||||||
|
@ -452,16 +452,16 @@ html_header("Submit");
|
||||||
$pkg_categories = pkgCategories();
|
$pkg_categories = pkgCategories();
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<form action="<?php echo get_uri('/submit/'); ?>" method="post" enctype="multipart/form-data">
|
<form action="<?= get_uri('/submit/'); ?>" method="post" enctype="multipart/form-data">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<div>
|
<div>
|
||||||
<input type="hidden" name="pkgsubmit" value="1" />
|
<input type="hidden" name="pkgsubmit" value="1" />
|
||||||
<input type="hidden" name="token" value="<?php print htmlspecialchars($_COOKIE['AURSID']) ?>" />
|
<input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" />
|
||||||
</div>
|
</div>
|
||||||
<p>
|
<p>
|
||||||
<label for="id_category"><?php print __("Package Category"); ?>:</label>
|
<label for="id_category"><?= __("Package Category"); ?>:</label>
|
||||||
<select id="id_category" name="category">
|
<select id="id_category" name="category">
|
||||||
<option value="1"><?php print __("Select Category"); ?></option>
|
<option value="1"><?= __("Select Category"); ?></option>
|
||||||
<?php
|
<?php
|
||||||
foreach ($pkg_categories as $num => $cat):
|
foreach ($pkg_categories as $num => $cat):
|
||||||
print '<option value="' . $num . '"';
|
print '<option value="' . $num . '"';
|
||||||
|
@ -474,12 +474,12 @@ html_header("Submit");
|
||||||
</select>
|
</select>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<label for="id_file"><?php print __("Upload package file"); ?>:</label>
|
<label for="id_file"><?= __("Upload package file"); ?>:</label>
|
||||||
<input id="id_file" type="file" name="pfile" size='30' />
|
<input id="id_file" type="file" name="pfile" size='30' />
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<label></label>
|
<label></label>
|
||||||
<input class="button" type="submit" value="<?php print __("Upload"); ?>" />
|
<input class="button" type="submit" value="<?= __("Upload"); ?>" />
|
||||||
</p>
|
</p>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -116,17 +116,17 @@ if ($atype == "Trusted User" || $atype == "Developer") {
|
||||||
$nextresult = proposal_count();
|
$nextresult = proposal_count();
|
||||||
?>
|
?>
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<p><a href="<?php echo get_uri('/addvote/'); ?>"><?php print __("Add Proposal") ?></a></p>
|
<p><a href="<?= get_uri('/addvote/'); ?>"><?= __("Add Proposal") ?></a></p>
|
||||||
|
|
||||||
<?php if ($result):
|
<?php if ($result):
|
||||||
$by = htmlentities($by, ENT_QUOTES); ?>
|
$by = htmlentities($by, ENT_QUOTES); ?>
|
||||||
<?php if ($off != 0):
|
<?php if ($off != 0):
|
||||||
$back = (($off - $limit) <= 0) ? 0 : $off - $limit; ?>
|
$back = (($off - $limit) <= 0) ? 0 : $off - $limit; ?>
|
||||||
<a href='<?php echo get_uri('/tu/'); ?>?off=<?php print $back ?>&by=<?php print $by ?>'><?php print __("Back") ?></a>
|
<a href='<?= get_uri('/tu/'); ?>?off=<?= $back ?>&by=<?= $by ?>'><?= __("Back") ?></a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if (($off + $limit) < $nextresult):
|
<?php if (($off + $limit) < $nextresult):
|
||||||
$forw = $off + $limit; ?>
|
$forw = $off + $limit; ?>
|
||||||
<a href="<?php echo get_uri('/tu/'); ?>?off=<?php print $forw ?>&by=<?php print $by ?>"><?php print __("Next") ?></a>
|
<a href="<?= get_uri('/tu/'); ?>?off=<?= $forw ?>&by=<?= $by ?>"><?= __("Next") ?></a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -15,11 +15,11 @@ if ($atype == 'Trusted User' || $atype== 'Developer'):
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<h2>Votes for <a href="<?php echo get_pkg_uri(pkgname_from_id($pkgid)); ?>"><?php echo pkgname_from_id($pkgid) ?></a></h2>
|
<h2>Votes for <a href="<?= get_pkg_uri(pkgname_from_id($pkgid)); ?>"><?= pkgname_from_id($pkgid) ?></a></h2>
|
||||||
<div class="boxbody">
|
<div class="boxbody">
|
||||||
<ul>
|
<ul>
|
||||||
<?php while (list($indx, $row) = each($votes)): ?>
|
<?php while (list($indx, $row) = each($votes)): ?>
|
||||||
<li><a href="<?php echo get_user_uri($row['Username']); ?>"><?php echo htmlspecialchars($row['Username']) ?></a></li>
|
<li><a href="<?= get_user_uri($row['Username']); ?>"><?= htmlspecialchars($row['Username']) ?></a></li>
|
||||||
<?php endwhile; ?>
|
<?php endwhile; ?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -4,12 +4,12 @@
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left"><?php echo __("Username") . ":" ?></td>
|
<td align="left"><?= __("Username") . ":" ?></td>
|
||||||
<td align="left"><?php echo $row["Username"] ?></td>
|
<td align="left"><?= $row["Username"] ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left"><?php echo __("Account Type") . ":" ?></td>
|
<td align="left"><?= __("Account Type") . ":" ?></td>
|
||||||
<td align="left">
|
<td align="left">
|
||||||
<?php
|
<?php
|
||||||
if ($row["AccountType"] == "User") {
|
if ($row["AccountType"] == "User") {
|
||||||
|
@ -24,34 +24,34 @@
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left"><?php echo __("Email Address") . ":" ?></td>
|
<td align="left"><?= __("Email Address") . ":" ?></td>
|
||||||
<td align="left"><a href="mailto:<?php echo htmlspecialchars($row["Email"], ENT_QUOTES) ?>"><?php echo htmlspecialchars($row["Email"], ENT_QUOTES) ?></a></td>
|
<td align="left"><a href="mailto:<?= htmlspecialchars($row["Email"], ENT_QUOTES) ?>"><?= htmlspecialchars($row["Email"], ENT_QUOTES) ?></a></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left"><?php echo __("Real Name") . ":" ?></td>
|
<td align="left"><?= __("Real Name") . ":" ?></td>
|
||||||
<td align="left"><?php echo htmlspecialchars($row["RealName"], ENT_QUOTES) ?></td>
|
<td align="left"><?= htmlspecialchars($row["RealName"], ENT_QUOTES) ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left"><?php echo __("IRC Nick") . ":" ?></td>
|
<td align="left"><?= __("IRC Nick") . ":" ?></td>
|
||||||
<td align="left"><?php echo htmlspecialchars($row["IRCNick"], ENT_QUOTES) ?></td>
|
<td align="left"><?= htmlspecialchars($row["IRCNick"], ENT_QUOTES) ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left"><?php echo __("PGP Key Fingerprint") . ":" ?></td>
|
<td align="left"><?= __("PGP Key Fingerprint") . ":" ?></td>
|
||||||
<td align="left"><?php echo html_format_pgp_fingerprint($row["PGPKey"]) ?></td>
|
<td align="left"><?= html_format_pgp_fingerprint($row["PGPKey"]) ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left"><?php echo __("Last Voted") . ":" ?></td>
|
<td align="left"><?= __("Last Voted") . ":" ?></td>
|
||||||
<td align="left">
|
<td align="left">
|
||||||
<?php print $row["LastVoted"] ? date("Y-m-d", $row["LastVoted"]) : __("Never"); ?>
|
<?= $row["LastVoted"] ? date("Y-m-d", $row["LastVoted"]) : __("Never"); ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2"><a href="<?php echo get_uri('/packages/'); ?>?K=<?php echo $row['Username'] ?>&SeB=m"><?php echo __("View this user's packages") ?></a></td>
|
<td colspan="2"><a href="<?= get_uri('/packages/'); ?>?K=<?= $row['Username'] ?>&SeB=m"><?= __("View this user's packages") ?></a></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
<?php if ($A == "UpdateAccount"): ?>
|
<?php if ($A == "UpdateAccount"): ?>
|
||||||
<form action="<?php echo get_user_uri($U) . 'update/'; ?>" method="post">
|
<form action="<?= get_user_uri($U) . 'update/'; ?>" method="post">
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<form action="<?php echo get_uri('/register/'); ?>" method="post">
|
<form action="<?= get_uri('/register/'); ?>" method="post">
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<input type="hidden" name="Action" value="<?php echo $A ?>" />
|
<input type="hidden" name="Action" value="<?= $A ?>" />
|
||||||
<?php if ($UID): ?>
|
<?php if ($UID): ?>
|
||||||
<input type="hidden" name="ID" value="<?php echo $UID ?>" />
|
<input type="hidden" name="ID" value="<?= $UID ?>" />
|
||||||
<input type="hidden" name="token" value="<?php print htmlspecialchars($_COOKIE['AURSID']) ?>" />
|
<input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" />
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<table>
|
<table>
|
||||||
|
@ -16,26 +16,26 @@
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left"><?php echo __("Username") ?>:</td>
|
<td align="left"><?= __("Username") ?>:</td>
|
||||||
<td align="left"><input type="text" size="30" maxlength="64" name="U" value="<?php echo htmlspecialchars($U,ENT_QUOTES) ?>" /> (<?php echo __("required") ?>)</td>
|
<td align="left"><input type="text" size="30" maxlength="64" name="U" value="<?= htmlspecialchars($U,ENT_QUOTES) ?>" /> (<?= __("required") ?>)</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
# Only TUs or Devs can promote/demote/suspend a user
|
# Only TUs or Devs can promote/demote/suspend a user
|
||||||
if ($UTYPE == "Trusted User" || $UTYPE == "Developer"):
|
if ($UTYPE == "Trusted User" || $UTYPE == "Developer"):
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left"><?php echo __("Account Type") ?>:</td>
|
<td align="left"><?= __("Account Type") ?>:</td>
|
||||||
<td align="left">
|
<td align="left">
|
||||||
<select name=T>
|
<select name=T>
|
||||||
<?php if ($T == "User"): ?>
|
<?php if ($T == "User"): ?>
|
||||||
<option value="1" selected><?php echo __("Normal user") ?>
|
<option value="1" selected><?= __("Normal user") ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<option value="1"><?php echo __("Normal user") ?>
|
<option value="1"><?= __("Normal user") ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if ($T == "Trusted User"): ?>
|
<?php if ($T == "Trusted User"): ?>
|
||||||
<option value="2" selected><?php echo __("Trusted user") ?>
|
<option value="2" selected><?= __("Trusted user") ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<option value="2"><?php echo __("Trusted user") ?>
|
<option value="2"><?= __("Trusted user") ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php
|
<?php
|
||||||
# Only developers can make another account a developer
|
# Only developers can make another account a developer
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left"><?php echo __("Account Suspended") ?>:</td>
|
<td align="left"><?= __("Account Suspended") ?>:</td>
|
||||||
|
|
||||||
<?php if ($S): ?>
|
<?php if ($S): ?>
|
||||||
<td align="left"><input type="checkbox" name="S" checked="checked" />
|
<td align="left"><input type="checkbox" name="S" checked="checked" />
|
||||||
|
@ -61,14 +61,14 @@
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left"><?php echo __("Email Address") ?>:</td>
|
<td align="left"><?= __("Email Address") ?>:</td>
|
||||||
<td align="left"><input type="text" size="30" maxlength="64" name="E" value="<?php echo htmlspecialchars($E,ENT_QUOTES) ?>" /> (<?php echo __("required") ?>)</td>
|
<td align="left"><input type="text" size="30" maxlength="64" name="E" value="<?= htmlspecialchars($E,ENT_QUOTES) ?>" /> (<?= __("required") ?>)</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left"><?php echo __("Password") ?>:</td>
|
<td align="left"><?= __("Password") ?>:</td>
|
||||||
<td align="left">
|
<td align="left">
|
||||||
<input type="password" size="30" maxlength="32" name="P" value="<?php echo $P ?>" />
|
<input type="password" size="30" maxlength="32" name="P" value="<?= $P ?>" />
|
||||||
<?php if ($A != "UpdateAccount"):
|
<?php if ($A != "UpdateAccount"):
|
||||||
print " (".__("required").")";
|
print " (".__("required").")";
|
||||||
endif; ?>
|
endif; ?>
|
||||||
|
@ -76,9 +76,9 @@
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left"><?php echo __("Re-type password") ?>:</td>
|
<td align="left"><?= __("Re-type password") ?>:</td>
|
||||||
<td align="left">
|
<td align="left">
|
||||||
<input type="password" size="30" maxlength="32" name="C" value="<?php echo $C ?>" />
|
<input type="password" size="30" maxlength="32" name="C" value="<?= $C ?>" />
|
||||||
<?php if ($A != "UpdateAccount"):
|
<?php if ($A != "UpdateAccount"):
|
||||||
print " (".__("required").")";
|
print " (".__("required").")";
|
||||||
endif; ?>
|
endif; ?>
|
||||||
|
@ -86,28 +86,28 @@
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left"><?php echo __("Real Name") ?>:</td>
|
<td align="left"><?= __("Real Name") ?>:</td>
|
||||||
<td align="left">
|
<td align="left">
|
||||||
<input type="text" size="30" maxlength="32" name="R" value="<?php echo htmlspecialchars($R,ENT_QUOTES) ?>" />
|
<input type="text" size="30" maxlength="32" name="R" value="<?= htmlspecialchars($R,ENT_QUOTES) ?>" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left"><?php echo __("IRC Nick") ?>:</td>
|
<td align="left"><?= __("IRC Nick") ?>:</td>
|
||||||
<td align="left">
|
<td align="left">
|
||||||
<input type="text" size="30" maxlength="32" name="I" value="<?php echo htmlspecialchars($I,ENT_QUOTES) ?>" />
|
<input type="text" size="30" maxlength="32" name="I" value="<?= htmlspecialchars($I,ENT_QUOTES) ?>" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left"><?php echo __("PGP Key Fingerprint") ?>:</td>
|
<td align="left"><?= __("PGP Key Fingerprint") ?>:</td>
|
||||||
<td align="left">
|
<td align="left">
|
||||||
<input type="text" size="30" maxlength="50" name="K" value="<?php echo html_format_pgp_fingerprint($K) ?>" />
|
<input type="text" size="30" maxlength="50" name="K" value="<?= html_format_pgp_fingerprint($K) ?>" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left"><?php echo __("Language") ?>:</td>
|
<td align="left"><?= __("Language") ?>:</td>
|
||||||
<td align="left">
|
<td align="left">
|
||||||
<select name=L>
|
<select name=L>
|
||||||
<?php
|
<?php
|
||||||
|
@ -131,11 +131,11 @@
|
||||||
<td> </td>
|
<td> </td>
|
||||||
<td align="left">
|
<td align="left">
|
||||||
<?php if ($A == "UpdateAccount"): ?>
|
<?php if ($A == "UpdateAccount"): ?>
|
||||||
<input type="submit" class="button" value="<?php echo __("Update") ?>" />
|
<input type="submit" class="button" value="<?= __("Update") ?>" />
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<input type="submit" class="button" value="<?php echo __("Create") ?>" />
|
<input type="submit" class="button" value="<?= __("Create") ?>" />
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<input type="reset" class="button" value="<?php echo __("Reset") ?>" />
|
<input type="reset" class="button" value="<?= __("Reset") ?>" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
|
@ -7,14 +7,14 @@ else:
|
||||||
<table class="results">
|
<table class="results">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th><?php echo __("Username") ?></th>
|
<th><?= __("Username") ?></th>
|
||||||
<th><?php echo __("Type") ?></th>
|
<th><?= __("Type") ?></th>
|
||||||
<th><?php echo __("Status") ?></th>
|
<th><?= __("Status") ?></th>
|
||||||
<th><?php echo __("Real Name") ?></th>
|
<th><?= __("Real Name") ?></th>
|
||||||
<th><?php echo __("IRC Nick") ?></th>
|
<th><?= __("IRC Nick") ?></th>
|
||||||
<th><?php echo __("PGP Key Fingerprint") ?></th>
|
<th><?= __("PGP Key Fingerprint") ?></th>
|
||||||
<th><?php echo __("Last Voted") ?></th>
|
<th><?= __("Last Voted") ?></th>
|
||||||
<th><?php echo __("Edit Account") ?></th>
|
<th><?= __("Edit Account") ?></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<?php
|
<?php
|
||||||
|
@ -27,9 +27,9 @@ else:
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr class ="<?php echo $c ?>">
|
<tr class ="<?= $c ?>">
|
||||||
<td><a href="<?php echo get_uri('/packages/'); ?>?SeB=m&K=<?php echo $row["Username"] ?>"><?php echo $row["Username"] ?></a></td>
|
<td><a href="<?= get_uri('/packages/'); ?>?SeB=m&K=<?= $row["Username"] ?>"><?= $row["Username"] ?></a></td>
|
||||||
<td><?php echo $row["AccountType"] ?></td>
|
<td><?= $row["AccountType"] ?></td>
|
||||||
<td>
|
<td>
|
||||||
<?php
|
<?php
|
||||||
if ($row["Suspended"]):
|
if ($row["Suspended"]):
|
||||||
|
@ -50,7 +50,7 @@ else:
|
||||||
print " ";
|
print " ";
|
||||||
else:
|
else:
|
||||||
?>
|
?>
|
||||||
<a href="<?php echo get_user_uri($row["Username"]) . "edit/" ?>"><?php echo __("Edit") ?></a>
|
<a href="<?= get_user_uri($row["Username"]) . "edit/" ?>"><?= __("Edit") ?></a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -63,32 +63,32 @@ else:
|
||||||
<table class="results">
|
<table class="results">
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left">
|
<td align="left">
|
||||||
<form action="<?php echo get_uri('/accounts/'); ?>" method="post">
|
<form action="<?= get_uri('/accounts/'); ?>" method="post">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<input type="hidden" name="Action" value="SearchAccounts" />
|
<input type="hidden" name="Action" value="SearchAccounts" />
|
||||||
<input type="hidden" name="O" value="<?php echo ($OFFSET-$HITS_PER_PAGE) ?>" />
|
<input type="hidden" name="O" value="<?= ($OFFSET-$HITS_PER_PAGE) ?>" />
|
||||||
<?php
|
<?php
|
||||||
reset($search_vars);
|
reset($search_vars);
|
||||||
while (list($k, $ind) = each($search_vars)):
|
while (list($k, $ind) = each($search_vars)):
|
||||||
?>
|
?>
|
||||||
<input type="hidden" name="<?php echo $ind ?>" value="<?php echo ${$ind} ?>" />
|
<input type="hidden" name="<?= $ind ?>" value="<?= ${$ind} ?>" />
|
||||||
<?php endwhile; ?>
|
<?php endwhile; ?>
|
||||||
<input type="submit" class="button" value="<-- <?php echo __("Less") ?>" />
|
<input type="submit" class="button" value="<-- <?= __("Less") ?>" />
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
<td align="right">
|
<td align="right">
|
||||||
<form action="<?php echo get_uri('/accounts/'); ?>" method="post">
|
<form action="<?= get_uri('/accounts/'); ?>" method="post">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<input type="hidden" name="Action" value="SearchAccounts" />
|
<input type="hidden" name="Action" value="SearchAccounts" />
|
||||||
<input type="hidden" name="O" value="<?php echo ($OFFSET+$HITS_PER_PAGE) ?>" />
|
<input type="hidden" name="O" value="<?= ($OFFSET+$HITS_PER_PAGE) ?>" />
|
||||||
<?php
|
<?php
|
||||||
reset($search_vars);
|
reset($search_vars);
|
||||||
while (list($k, $ind) = each($search_vars)):
|
while (list($k, $ind) = each($search_vars)):
|
||||||
?>
|
?>
|
||||||
<input type="hidden" name="<?php echo $ind ?>" value="<?php echo ${$ind} ?>" />
|
<input type="hidden" name="<?= $ind ?>" value="<?= ${$ind} ?>" />
|
||||||
<?php endwhile; ?>
|
<?php endwhile; ?>
|
||||||
<input type="submit" class="button" value="<?php echo __("More") ?> -->" />
|
<input type="submit" class="button" value="<?= __("More") ?> -->" />
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
|
@ -96,7 +96,7 @@ else:
|
||||||
</table>
|
</table>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<p style="text-align:center;">
|
<p style="text-align:center;">
|
||||||
<?php print __("No more results to display."); ?>
|
<?= __("No more results to display."); ?>
|
||||||
</p>
|
</p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
|
@ -1,38 +1,38 @@
|
||||||
<?php if (!$USE_VIRTUAL_URLS || $atype == "Trusted User" || $atype == "Developer" ): ?>
|
<?php if (!$USE_VIRTUAL_URLS || $atype == "Trusted User" || $atype == "Developer" ): ?>
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<form action="<?php echo htmlspecialchars(get_pkg_uri($row['Name']), ENT_QUOTES); ?>" method="post">
|
<form action="<?= htmlspecialchars(get_pkg_uri($row['Name']), ENT_QUOTES); ?>" method="post">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<input type="hidden" name="IDs[<?php echo $row['ID'] ?>]" value="1" />
|
<input type="hidden" name="IDs[<?= $row['ID'] ?>]" value="1" />
|
||||||
<input type="hidden" name="ID" value="<?php echo $row['ID'] ?>" />
|
<input type="hidden" name="ID" value="<?= $row['ID'] ?>" />
|
||||||
<input type="hidden" name="token" value="<?php echo htmlspecialchars($_COOKIE['AURSID']) ?>" />
|
<input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" />
|
||||||
|
|
||||||
<?php if (!$USE_VIRTUAL_URLS): ?>
|
<?php if (!$USE_VIRTUAL_URLS): ?>
|
||||||
<?php if (user_voted($uid, $row['ID'])): ?>
|
<?php if (user_voted($uid, $row['ID'])): ?>
|
||||||
<input type="submit" class="button" name="do_UnVote" value="<?php echo __("UnVote") ?>" />
|
<input type="submit" class="button" name="do_UnVote" value="<?= __("UnVote") ?>" />
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<input type="submit" class="button" name="do_Vote" value="<?php echo __("Vote") ?>" />
|
<input type="submit" class="button" name="do_Vote" value="<?= __("Vote") ?>" />
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if (user_notify($uid, $row['ID'])): ?>
|
<?php if (user_notify($uid, $row['ID'])): ?>
|
||||||
<input type="submit" class="button" name="do_UnNotify" value="<?php echo __("UnNotify") ?>" title="<?php echo __("No New Comment Notification") ?>" />
|
<input type="submit" class="button" name="do_UnNotify" value="<?= __("UnNotify") ?>" title="<?= __("No New Comment Notification") ?>" />
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<input type="submit" class="button" name="do_Notify" value="<?php echo __("Notify") ?>" title="<?php echo __("New Comment Notification") ?>" />
|
<input type="submit" class="button" name="do_Notify" value="<?= __("Notify") ?>" title="<?= __("New Comment Notification") ?>" />
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if ($row["OutOfDateTS"] === NULL): ?>
|
<?php if ($row["OutOfDateTS"] === NULL): ?>
|
||||||
<input type="submit" class="button" name="do_Flag" value="<?php echo __("Flag Out-of-date") ?>" />
|
<input type="submit" class="button" name="do_Flag" value="<?= __("Flag Out-of-date") ?>" />
|
||||||
<?php elseif (($row["OutOfDateTS"] !== NULL) &&
|
<?php elseif (($row["OutOfDateTS"] !== NULL) &&
|
||||||
($uid == $row["MaintainerUID"] || $atype == "Trusted User" || $atype == "Developer")): ?>
|
($uid == $row["MaintainerUID"] || $atype == "Trusted User" || $atype == "Developer")): ?>
|
||||||
<input type="submit" class="button" name="do_UnFlag" value="<?php echo __("UnFlag Out-of-date") ?>" />
|
<input type="submit" class="button" name="do_UnFlag" value="<?= __("UnFlag Out-of-date") ?>" />
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if ($atype == "Trusted User" || $atype == "Developer"): ?>
|
<?php if ($atype == "Trusted User" || $atype == "Developer"): ?>
|
||||||
<input type="submit" class="button" name="do_Delete" value="<?php echo __("Delete Packages") ?>" />
|
<input type="submit" class="button" name="do_Delete" value="<?= __("Delete Packages") ?>" />
|
||||||
<label for="merge_Into" ><?php echo __("Merge into") ?></label>
|
<label for="merge_Into" ><?= __("Merge into") ?></label>
|
||||||
<input type="text" id="merge_Into" name="merge_Into" />
|
<input type="text" id="merge_Into" name="merge_Into" />
|
||||||
<input type="checkbox" name="confirm_Delete" value="1" />
|
<input type="checkbox" name="confirm_Delete" value="1" />
|
||||||
<?php echo __("Confirm") ?>
|
<?= __("Confirm") ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
|
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
<?php if ($ver): ?>
|
<?php if ($ver): ?>
|
||||||
<p>AUR <?php echo htmlspecialchars($ver) ?></p>
|
<p>AUR <?= htmlspecialchars($ver) ?></p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<p>Copyright © 2004-2012 AUR Development Team.</p>
|
<p>Copyright © 2004-2012 AUR Development Team.</p>
|
||||||
<p><?php echo __('Unsupported packages are user produced content. Any use of the provided files is at your own risk.') ?></p>
|
<p><?= __('Unsupported packages are user produced content. Any use of the provided files is at your own risk.') ?></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
|
<?= '<?xml version="1.0" encoding="UTF-8"?>'; ?>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml"
|
<html xmlns="http://www.w3.org/1999/xhtml"
|
||||||
xml:lang="<?php print htmlspecialchars($LANG, ENT_QUOTES) ?>" lang="<?php print htmlspecialchars($LANG, ENT_QUOTES) ?>">
|
xml:lang="<?= htmlspecialchars($LANG, ENT_QUOTES) ?>" lang="<?= htmlspecialchars($LANG, ENT_QUOTES) ?>">
|
||||||
<head>
|
<head>
|
||||||
<title>AUR (<?php print htmlspecialchars($LANG); ?>)<?php if ($title != "") { print " - " . htmlspecialchars($title); } ?></title>
|
<title>AUR (<?= htmlspecialchars($LANG); ?>)<?php if ($title != "") { print " - " . htmlspecialchars($title); } ?></title>
|
||||||
<link rel='stylesheet' type='text/css' href='/css/archweb.css' />
|
<link rel='stylesheet' type='text/css' href='/css/archweb.css' />
|
||||||
<link rel='stylesheet' type='text/css' href='/css/aur.css' />
|
<link rel='stylesheet' type='text/css' href='/css/aur.css' />
|
||||||
<link rel='shortcut icon' href='/images/favicon.ico' />
|
<link rel='shortcut icon' href='/images/favicon.ico' />
|
||||||
<link rel='alternate' type='application/rss+xml' title='Newest Packages RSS' href='<?php echo get_uri('/rss/'); ?>' />
|
<link rel='alternate' type='application/rss+xml' title='Newest Packages RSS' href='<?= get_uri('/rss/'); ?>' />
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<div id="lang_sub">
|
<div id="lang_sub">
|
||||||
<form method="get" action="<?php echo htmlspecialchars($_SERVER["REQUEST_URI"], ENT_QUOTES) ?>">
|
<form method="get" action="<?= htmlspecialchars($_SERVER["REQUEST_URI"], ENT_QUOTES) ?>">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<div>
|
<div>
|
||||||
<select name="setlang" id="id_setlang">
|
<select name="setlang" id="id_setlang">
|
||||||
|
@ -50,20 +50,20 @@
|
||||||
</div>
|
</div>
|
||||||
<div id="archdev-navbar">
|
<div id="archdev-navbar">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="<?php echo get_uri('/'); ?>">AUR <?php print __("Home"); ?></a></li>
|
<li><a href="<?= get_uri('/'); ?>">AUR <?= __("Home"); ?></a></li>
|
||||||
<li><a href="<?php echo get_uri('/packages/'); ?>"><?php print __("Packages"); ?></a></li>
|
<li><a href="<?= get_uri('/packages/'); ?>"><?= __("Packages"); ?></a></li>
|
||||||
<?php if (isset($_COOKIE['AURSID'])): ?>
|
<?php if (isset($_COOKIE['AURSID'])): ?>
|
||||||
<li><a href="<?php echo get_uri('/packages/'); ?>?SeB=m&K=<?php print username_from_sid($_COOKIE["AURSID"]); ?>"><?php print __("My Packages"); ?></a></li>
|
<li><a href="<?= get_uri('/packages/'); ?>?SeB=m&K=<?= username_from_sid($_COOKIE["AURSID"]); ?>"><?= __("My Packages"); ?></a></li>
|
||||||
<li><a href="<?php echo get_uri('/submit/'); ?>"><?php print __("Submit"); ?></a></li>
|
<li><a href="<?= get_uri('/submit/'); ?>"><?= __("Submit"); ?></a></li>
|
||||||
<?php if (check_user_privileges()): ?>
|
<?php if (check_user_privileges()): ?>
|
||||||
<li><a href="<?php echo get_uri('/accounts/') ; ?>"><?php print __("Accounts"); ?></a></li>
|
<li><a href="<?= get_uri('/accounts/') ; ?>"><?= __("Accounts"); ?></a></li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<li><a href="<?php echo get_user_uri(username_from_sid($_COOKIE['AURSID'])) . 'edit/'; ?>"><?php print __(" My Account"); ?></a></li>
|
<li><a href="<?= get_user_uri(username_from_sid($_COOKIE['AURSID'])) . 'edit/'; ?>"><?= __(" My Account"); ?></a></li>
|
||||||
<?php if (check_user_privileges()): ?><li><a href="<?php echo get_uri('/tu/'); ?>"><?php print __("Trusted User"); ?></a></li><?php endif; ?>
|
<?php if (check_user_privileges()): ?><li><a href="<?= get_uri('/tu/'); ?>"><?= __("Trusted User"); ?></a></li><?php endif; ?>
|
||||||
<li><a href="<?php echo get_uri('/logout/'); ?>"><?php print __("Logout"); ?></a></li>
|
<li><a href="<?= get_uri('/logout/'); ?>"><?= __("Logout"); ?></a></li>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<li><a href="<?php echo get_uri('/register/'); ?>"><?php print __("Register"); ?></a></li>
|
<li><a href="<?= get_uri('/register/'); ?>"><?= __("Register"); ?></a></li>
|
||||||
<li><a href="<?php echo get_uri('/login/'); ?>"><?php print __("Login"); ?></a></li>
|
<li><a href="<?= get_uri('/login/'); ?>"><?= __("Login"); ?></a></li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</ul>
|
</ul>
|
||||||
</div><!-- #archdev-navbar -->
|
</div><!-- #archdev-navbar -->
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<div id="generic-form" class="box">
|
<div id="generic-form" class="box">
|
||||||
<h2><?php echo __("Add Comment"); ?></h2>
|
<h2><?= __("Add Comment"); ?></h2>
|
||||||
<form call="general-form" action="<?php echo $_SERVER['REQUEST_URI'] ?>" method="post">
|
<form call="general-form" action="<?= $_SERVER['REQUEST_URI'] ?>" method="post">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<?php
|
<?php
|
||||||
if (isset($_REQUEST['comment']) && check_token()) {
|
if (isset($_REQUEST['comment']) && check_token()) {
|
||||||
|
@ -8,16 +8,16 @@ if (isset($_REQUEST['comment']) && check_token()) {
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<div>
|
<div>
|
||||||
<input type="hidden" name="ID" value="<?php echo intval($row['ID']) ?>" />
|
<input type="hidden" name="ID" value="<?= intval($row['ID']) ?>" />
|
||||||
<input type="hidden" name="token" value="<?php echo htmlspecialchars($_COOKIE['AURSID']) ?>" />
|
<input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" />
|
||||||
</div>
|
</div>
|
||||||
<p>
|
<p>
|
||||||
<label for="id_comment"><?php echo __("Comment") . ':' ?></label>
|
<label for="id_comment"><?= __("Comment") . ':' ?></label>
|
||||||
<textarea id="id_comment" name="comment" cols="80" rows="10"></textarea>
|
<textarea id="id_comment" name="comment" cols="80" rows="10"></textarea>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<label></label>
|
<label></label>
|
||||||
<input type="submit" value="<?php echo __("Add Comment") ?>" />
|
<input type="submit" value="<?= __("Add Comment") ?>" />
|
||||||
</p>
|
</p>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -5,7 +5,7 @@ $pkgname = $row['Name'];
|
||||||
?>
|
?>
|
||||||
<div id="news">
|
<div id="news">
|
||||||
<h3>
|
<h3>
|
||||||
<a href="<?php echo htmlentities(get_pkg_uri($pkgname), ENT_QUOTES) . '?' . mkurl('comments=all') ?>" title="<?php echo __('View all %s comments' , $count) ?>"><?php echo __('Latest Comments') ?></a>
|
<a href="<?= htmlentities(get_pkg_uri($pkgname), ENT_QUOTES) . '?' . mkurl('comments=all') ?>" title="<?= __('View all %s comments' , $count) ?>"><?= __('Latest Comments') ?></a>
|
||||||
<span class="arrow"></span>
|
<span class="arrow"></span>
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
|
@ -15,21 +15,21 @@ $pkgname = $row['Name'];
|
||||||
endif; ?>
|
endif; ?>
|
||||||
<h4>
|
<h4>
|
||||||
<?php if (canDeleteCommentArray($row, $atype, $uid)): ?>
|
<?php if (canDeleteCommentArray($row, $atype, $uid)): ?>
|
||||||
<form method="post" action="<?php echo htmlspecialchars(get_pkg_uri($pkgname), ENT_QUOTES); ?>">
|
<form method="post" action="<?= htmlspecialchars(get_pkg_uri($pkgname), ENT_QUOTES); ?>">
|
||||||
<fieldset style="display:inline;">
|
<fieldset style="display:inline;">
|
||||||
<input type="hidden" name="action" value="do_DeleteComment" />
|
<input type="hidden" name="action" value="do_DeleteComment" />
|
||||||
<input type="hidden" name="comment_id" value="<?php echo $row['ID'] ?>" />
|
<input type="hidden" name="comment_id" value="<?= $row['ID'] ?>" />
|
||||||
<input type="hidden" name="token" value="<?php echo htmlspecialchars($_COOKIE['AURSID']) ?>" />
|
<input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" />
|
||||||
<input type="image" src="/images/x.png" alt="<?php echo __('Delete comment') ?>" name="submit" value="1" />
|
<input type="image" src="/images/x.png" alt="<?= __('Delete comment') ?>" name="submit" value="1" />
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php echo __('Comment by %s', $row['UserName']) ?>
|
<?= __('Comment by %s', $row['UserName']) ?>
|
||||||
</h4>
|
</h4>
|
||||||
<p class="timestamp"><?php echo gmdate('Y-m-d H:i', $row['CommentTS']) ?></p>
|
<p class="timestamp"><?= gmdate('Y-m-d H:i', $row['CommentTS']) ?></p>
|
||||||
<div class="article-content">
|
<div class="article-content">
|
||||||
<p>
|
<p>
|
||||||
<?php echo parse_comment($row['Comments']) ?>
|
<?= parse_comment($row['Comments']) ?>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<?php endwhile; ?>
|
<?php endwhile; ?>
|
||||||
|
@ -38,7 +38,7 @@ $pkgname = $row['Name'];
|
||||||
<?php if ($count > 10 && !isset($_GET['comments'])): ?>
|
<?php if ($count > 10 && !isset($_GET['comments'])): ?>
|
||||||
<div id="news">
|
<div id="news">
|
||||||
<h3>
|
<h3>
|
||||||
<a href="<?php echo htmlentities(get_pkg_uri($pkgname), ENT_QUOTES) . '?' . mkurl('comments=all') ?>" title="<?php echo __('View all %s comments', $count) ?>"><?php echo __('All comments', $count) ?></a>
|
<a href="<?= htmlentities(get_pkg_uri($pkgname), ENT_QUOTES) . '?' . mkurl('comments=all') ?>" title="<?= __('View all %s comments', $count) ?>"><?= __('All comments', $count) ?></a>
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
|
@ -29,46 +29,46 @@ $requiredby = package_required($row["Name"]);
|
||||||
$sources = package_sources($row["ID"]);
|
$sources = package_sources($row["ID"]);
|
||||||
?>
|
?>
|
||||||
<div id="pkgdetails" class="box">
|
<div id="pkgdetails" class="box">
|
||||||
<h2><?php echo __('Package Details') . ': ' . htmlspecialchars($row['Name']) . ' ' . htmlspecialchars($row['Version']) ?></h2>
|
<h2><?= __('Package Details') . ': ' . htmlspecialchars($row['Name']) . ' ' . htmlspecialchars($row['Version']) ?></h2>
|
||||||
<div id="detailslinks" class="listing">
|
<div id="detailslinks" class="listing">
|
||||||
<div id="actionlist">
|
<div id="actionlist">
|
||||||
<h4>Package Actions</h4>
|
<h4>Package Actions</h4>
|
||||||
<ul class="small">
|
<ul class="small">
|
||||||
<li><a href="<?php echo $urlpath ?>/PKGBUILD"><?php echo __('View PKGBUILD') ?></a></li>
|
<li><a href="<?= $urlpath ?>/PKGBUILD"><?= __('View PKGBUILD') ?></a></li>
|
||||||
<li><a href="<?php echo $urlpath . '/' . $row['Name'] ?>.tar.gz"><?php echo __('Download tarball') ?></a></li>
|
<li><a href="<?= $urlpath . '/' . $row['Name'] ?>.tar.gz"><?= __('Download tarball') ?></a></li>
|
||||||
<li><span class="flagged"><?php if ($row["OutOfDateTS"] !== NULL) { echo __('Flagged out-of-date')." (${out_of_date_time})"; } ?></span></li>
|
<li><span class="flagged"><?php if ($row["OutOfDateTS"] !== NULL) { echo __('Flagged out-of-date')." (${out_of_date_time})"; } ?></span></li>
|
||||||
<?php if ($USE_VIRTUAL_URLS && $uid): ?>
|
<?php if ($USE_VIRTUAL_URLS && $uid): ?>
|
||||||
<?php if ($row["OutOfDateTS"] === NULL): ?>
|
<?php if ($row["OutOfDateTS"] === NULL): ?>
|
||||||
<li><a href="<?php echo get_pkg_uri($row['Name']) . 'flag/'; ?>"><?php echo __('Flag package out-of-date'); ?></a></li>
|
<li><a href="<?= get_pkg_uri($row['Name']) . 'flag/'; ?>"><?= __('Flag package out-of-date'); ?></a></li>
|
||||||
<?php elseif (($row["OutOfDateTS"] !== NULL) &&
|
<?php elseif (($row["OutOfDateTS"] !== NULL) &&
|
||||||
($uid == $row["MaintainerUID"] || $atype == "Trusted User" || $atype == "Developer")): ?>
|
($uid == $row["MaintainerUID"] || $atype == "Trusted User" || $atype == "Developer")): ?>
|
||||||
<li><a href="<?php echo get_pkg_uri($row['Name']) . 'unflag/'; ?>"><?php echo __('Unflag package'); ?></a></li>
|
<li><a href="<?= get_pkg_uri($row['Name']) . 'unflag/'; ?>"><?= __('Unflag package'); ?></a></li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if (user_voted($uid, $row['ID'])): ?>
|
<?php if (user_voted($uid, $row['ID'])): ?>
|
||||||
<li><a href="<?php echo get_pkg_uri($row['Name']) . 'unvote/'; ?>"><?php echo __('Remove vote'); ?></a></li>
|
<li><a href="<?= get_pkg_uri($row['Name']) . 'unvote/'; ?>"><?= __('Remove vote'); ?></a></li>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<li><a href="<?php echo get_pkg_uri($row['Name']) . 'vote/'; ?>"><?php echo __('Vote for this package'); ?></a></li>
|
<li><a href="<?= get_pkg_uri($row['Name']) . 'vote/'; ?>"><?= __('Vote for this package'); ?></a></li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if (user_notify($uid, $row['ID'])): ?>
|
<?php if (user_notify($uid, $row['ID'])): ?>
|
||||||
<li><a href="<?php echo get_pkg_uri($row['Name']) . 'unnotify/'; ?>"><?php echo __('Disable notifications'); ?></a></li>
|
<li><a href="<?= get_pkg_uri($row['Name']) . 'unnotify/'; ?>"><?= __('Disable notifications'); ?></a></li>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<li><a href="<?php echo get_pkg_uri($row['Name']) . 'notify/'; ?>"><?php echo __('Notify of new comments'); ?></a></li>
|
<li><a href="<?= get_pkg_uri($row['Name']) . 'notify/'; ?>"><?= __('Notify of new comments'); ?></a></li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</ul>
|
</ul>
|
||||||
<?php if ($uid): ?>
|
<?php if ($uid): ?>
|
||||||
<form action="<?php echo htmlspecialchars(get_pkg_uri($row['Name']), ENT_QUOTES); ?>" method="post">
|
<form action="<?= htmlspecialchars(get_pkg_uri($row['Name']), ENT_QUOTES); ?>" method="post">
|
||||||
<div>
|
<div>
|
||||||
<input type="hidden" name="IDs[<?php echo $row['ID'] ?>]" value="1" />
|
<input type="hidden" name="IDs[<?= $row['ID'] ?>]" value="1" />
|
||||||
<input type="hidden" name="ID" value="<?php echo $row['ID'] ?>" />
|
<input type="hidden" name="ID" value="<?= $row['ID'] ?>" />
|
||||||
<input type="hidden" name="token" value="<?php echo htmlspecialchars($_COOKIE['AURSID']) ?>" />
|
<input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" />
|
||||||
</div>
|
</div>
|
||||||
<p>
|
<p>
|
||||||
<?php if ($row["MaintainerUID"] === NULL): ?>
|
<?php if ($row["MaintainerUID"] === NULL): ?>
|
||||||
<input type="submit" class="button" name="do_Adopt" value="<?php echo __("Adopt Packages") ?>" />
|
<input type="submit" class="button" name="do_Adopt" value="<?= __("Adopt Packages") ?>" />
|
||||||
<?php elseif ($uid == $row["MaintainerUID"] ||
|
<?php elseif ($uid == $row["MaintainerUID"] ||
|
||||||
$atype == "Trusted User" || $atype == "Developer"): ?>
|
$atype == "Trusted User" || $atype == "Developer"): ?>
|
||||||
<input type="submit" class="button" name="do_Disown" value="<?php echo __("Disown Packages") ?>" />
|
<input type="submit" class="button" name="do_Disown" value="<?= __("Disown Packages") ?>" />
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
|
@ -78,97 +78,97 @@ $sources = package_sources($row["ID"]);
|
||||||
|
|
||||||
<table id="pkginfo">
|
<table id="pkginfo">
|
||||||
<tr>
|
<tr>
|
||||||
<th><?php echo __('Description') . ': ' ?></th>
|
<th><?= __('Description') . ': ' ?></th>
|
||||||
<td class="wrap"><?php echo htmlspecialchars($row['Description']); ?></td>
|
<td class="wrap"><?= htmlspecialchars($row['Description']); ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Upstream URL:</th>
|
<th>Upstream URL:</th>
|
||||||
<td><a href="<?php echo htmlspecialchars($row['URL'], ENT_QUOTES) ?>" title="<?php echo __('Visit the website for') . ' ' . htmlspecialchars( $row['Name'])?>"><?php echo htmlspecialchars($row['URL'], ENT_QUOTES) ?></a></td>
|
<td><a href="<?= htmlspecialchars($row['URL'], ENT_QUOTES) ?>" title="<?= __('Visit the website for') . ' ' . htmlspecialchars( $row['Name'])?>"><?= htmlspecialchars($row['URL'], ENT_QUOTES) ?></a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th><?php echo __('Category') . ': ' ?></th>
|
<th><?= __('Category') . ': ' ?></th>
|
||||||
<?php
|
<?php
|
||||||
if ($SID && ($uid == $row["MaintainerUID"] ||
|
if ($SID && ($uid == $row["MaintainerUID"] ||
|
||||||
($atype == "Developer" || $atype == "Trusted User"))):
|
($atype == "Developer" || $atype == "Trusted User"))):
|
||||||
?>
|
?>
|
||||||
<td>
|
<td>
|
||||||
<form method="post" action="<?php echo htmlspecialchars(get_pkg_uri($row['Name']), ENT_QUOTES); ?>">
|
<form method="post" action="<?= htmlspecialchars(get_pkg_uri($row['Name']), ENT_QUOTES); ?>">
|
||||||
<div>
|
<div>
|
||||||
<input type="hidden" name="action" value="do_ChangeCategory" />
|
<input type="hidden" name="action" value="do_ChangeCategory" />
|
||||||
<?php if ($SID): ?>
|
<?php if ($SID): ?>
|
||||||
<input type="hidden" name="token" value="<?php echo htmlspecialchars($_COOKIE['AURSID']) ?>" />
|
<input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" />
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<select name="category_id">
|
<select name="category_id">
|
||||||
<?php
|
<?php
|
||||||
foreach ($catarr as $cid => $catname):
|
foreach ($catarr as $cid => $catname):
|
||||||
?>
|
?>
|
||||||
<option value="<?php echo $cid ?>"<?php if ($cid == $row["CategoryID"]) { ?> selected="selected" <?php } ?>><?php echo $catname ?></option>
|
<option value="<?= $cid ?>"<?php if ($cid == $row["CategoryID"]) { ?> selected="selected" <?php } ?>><?= $catname ?></option>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</select>
|
</select>
|
||||||
<input type="submit" value="<?php echo __('Change category') ?>"/>
|
<input type="submit" value="<?= __('Change category') ?>"/>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<td>
|
<td>
|
||||||
<a href="<?php echo get_uri('/packages/'); ?>?C=<?php echo $row['CategoryID'] ?>"><?php print $row['Category'] ?></a>
|
<a href="<?= get_uri('/packages/'); ?>?C=<?= $row['CategoryID'] ?>"><?= $row['Category'] ?></a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<tr>
|
<tr>
|
||||||
<th><?php echo __('License') . ': ' ?></th>
|
<th><?= __('License') . ': ' ?></th>
|
||||||
<td><?php echo htmlspecialchars($license) ?></td>
|
<td><?= htmlspecialchars($license) ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th><?php echo __('Submitter') .': ' ?></th>
|
<th><?= __('Submitter') .': ' ?></th>
|
||||||
<?php
|
<?php
|
||||||
if ($row["SubmitterUID"]):
|
if ($row["SubmitterUID"]):
|
||||||
if ($SID):
|
if ($SID):
|
||||||
?>
|
?>
|
||||||
<td><a href="<?php echo get_uri('/account/'); ?>?Action=AccountInfo&ID=<?php echo htmlspecialchars($row['SubmitterUID'], ENT_QUOTES) ?>" title="<?php echo __('View account information for')?> <?php echo htmlspecialchars($submitter) ?>"><?php echo htmlspecialchars($submitter) ?></a></td>
|
<td><a href="<?= get_uri('/account/'); ?>?Action=AccountInfo&ID=<?= htmlspecialchars($row['SubmitterUID'], ENT_QUOTES) ?>" title="<?= __('View account information for')?> <?= htmlspecialchars($submitter) ?>"><?= htmlspecialchars($submitter) ?></a></td>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<td><?php echo htmlspecialchars($submitter) ?></td>
|
<td><?= htmlspecialchars($submitter) ?></td>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<td>None</td>
|
<td>None</td>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<tr>
|
<tr>
|
||||||
<th><?php echo __('Maintainer') .': ' ?></th>
|
<th><?= __('Maintainer') .': ' ?></th>
|
||||||
<?php
|
<?php
|
||||||
if ($row["MaintainerUID"]):
|
if ($row["MaintainerUID"]):
|
||||||
if ($SID):
|
if ($SID):
|
||||||
?>
|
?>
|
||||||
<td><a href="<?php echo get_uri('/account/'); ?>?Action=AccountInfo&ID=<?php echo htmlspecialchars($row['MaintainerUID'], ENT_QUOTES) ?>" title="<?php echo __('View account information for')?> <?php echo htmlspecialchars($maintainer) ?>"><?php echo htmlspecialchars($maintainer) ?></a></td>
|
<td><a href="<?= get_uri('/account/'); ?>?Action=AccountInfo&ID=<?= htmlspecialchars($row['MaintainerUID'], ENT_QUOTES) ?>" title="<?= __('View account information for')?> <?= htmlspecialchars($maintainer) ?>"><?= htmlspecialchars($maintainer) ?></a></td>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<td><?php echo htmlspecialchars($maintainer) ?></td>
|
<td><?= htmlspecialchars($maintainer) ?></td>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<td>None</td>
|
<td>None</td>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th><?php echo __('Votes') . ': ' ?></th>
|
<th><?= __('Votes') . ': ' ?></th>
|
||||||
<?php if ($atype == "Developer" || $atype == "Trusted User"): ?>
|
<?php if ($atype == "Developer" || $atype == "Trusted User"): ?>
|
||||||
<?php if ($USE_VIRTUAL_URLS): ?>
|
<?php if ($USE_VIRTUAL_URLS): ?>
|
||||||
<td><a href="<?php echo get_pkg_uri($row['Name']); ?>voters/"><?php echo $votes ?></a>
|
<td><a href="<?= get_pkg_uri($row['Name']); ?>voters/"><?= $votes ?></a>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<td><a href="<?php echo get_uri('/voters/'); ?>?ID=<?php echo $pkgid ?>"><?php echo $votes ?></a>
|
<td><a href="<?= get_uri('/voters/'); ?>?ID=<?= $pkgid ?>"><?= $votes ?></a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<td><?php echo $votes ?></td>
|
<td><?= $votes ?></td>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th><?php echo __('First Submitted') . ': ' ?></th>
|
<th><?= __('First Submitted') . ': ' ?></th>
|
||||||
<td><?php echo $submitted_time ?></td>
|
<td><?= $submitted_time ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th><?php echo __('Last Updated') . ': ' ?></th>
|
<th><?= __('Last Updated') . ': ' ?></th>
|
||||||
<td><?php echo $updated_time ?></td>
|
<td><?= $updated_time ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<div id="metadata">
|
<div id="metadata">
|
||||||
<div id="pkgdeps" class="listing">
|
<div id="pkgdeps" class="listing">
|
||||||
<h3><?php echo __('Dependencies') . " (" . count($deps) . ")"?></h3>
|
<h3><?= __('Dependencies') . " (" . count($deps) . ")"?></h3>
|
||||||
<?php if (count($deps) > 0): ?>
|
<?php if (count($deps) > 0): ?>
|
||||||
<ul>
|
<ul>
|
||||||
<?php
|
<?php
|
||||||
|
@ -176,29 +176,29 @@ if ($row["MaintainerUID"]):
|
||||||
# darr: (DepName, DepCondition, PackageID), where ID is NULL if it didn't exist
|
# darr: (DepName, DepCondition, PackageID), where ID is NULL if it didn't exist
|
||||||
if (!is_null($darr[2])):
|
if (!is_null($darr[2])):
|
||||||
?>
|
?>
|
||||||
<li><a href="<?php echo htmlspecialchars(get_pkg_uri($darr[0]), ENT_QUOTES); ?>" title="<?php echo __('View packages details for').' '.$darr[0].$darr[1]?>"><?php echo $darr[0].$darr[1]?></a></li>
|
<li><a href="<?= htmlspecialchars(get_pkg_uri($darr[0]), ENT_QUOTES); ?>" title="<?= __('View packages details for').' '.$darr[0].$darr[1]?>"><?= $darr[0].$darr[1]?></a></li>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<li><a href="http://www.archlinux.org/packages/?q=<?php echo urlencode($darr[0])?>" title="<?php echo __('View packages details for').' '.$darr[0].$darr[1] ?>"><?php echo $darr[0].$darr[1] ?></a></li>
|
<li><a href="http://www.archlinux.org/packages/?q=<?= urlencode($darr[0])?>" title="<?= __('View packages details for').' '.$darr[0].$darr[1] ?>"><?= $darr[0].$darr[1] ?></a></li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endwhile; ?>
|
<?php endwhile; ?>
|
||||||
</ul>
|
</ul>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<div id="pkgreqs" class="listing">
|
<div id="pkgreqs" class="listing">
|
||||||
<h3><?php echo __('Required by') . " (" . count($requiredby) . ")"?></h3>
|
<h3><?= __('Required by') . " (" . count($requiredby) . ")"?></h3>
|
||||||
<?php if (count($requiredby) > 0): ?>
|
<?php if (count($requiredby) > 0): ?>
|
||||||
<ul>
|
<ul>
|
||||||
<?php
|
<?php
|
||||||
# darr: (PackageName, PackageID)
|
# darr: (PackageName, PackageID)
|
||||||
while (list($k, $darr) = each($requiredby)):
|
while (list($k, $darr) = each($requiredby)):
|
||||||
?>
|
?>
|
||||||
<li><a href="<?php echo htmlspecialchars(get_pkg_uri($darr[0]), ENT_QUOTES); ?>" title="<?php echo __('View packages details for').' '.$darr[0]?>"><?php echo $darr[0] ?></a></li>
|
<li><a href="<?= htmlspecialchars(get_pkg_uri($darr[0]), ENT_QUOTES); ?>" title="<?= __('View packages details for').' '.$darr[0]?>"><?= $darr[0] ?></a></li>
|
||||||
<?php endwhile; ?>
|
<?php endwhile; ?>
|
||||||
</ul>
|
</ul>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<div id="pkgfiles" class="listing">
|
<div id="pkgfiles" class="listing">
|
||||||
<h3><?php echo __('Sources') ?></h3>
|
<h3><?= __('Sources') ?></h3>
|
||||||
</div>
|
</div>
|
||||||
<?php if (count($sources) > 0): ?>
|
<?php if (count($sources) > 0): ?>
|
||||||
<div>
|
<div>
|
||||||
|
@ -211,13 +211,13 @@ if ($row["MaintainerUID"]):
|
||||||
# It is an external source
|
# It is an external source
|
||||||
if (isset($parsed_url['scheme']) || isset($src[1])):
|
if (isset($parsed_url['scheme']) || isset($src[1])):
|
||||||
?>
|
?>
|
||||||
<li><a href="<?php echo htmlspecialchars((isset($src[1]) ? $src[1] : $src[0]), ENT_QUOTES) ?>"><?php echo htmlspecialchars($src[0]) ?> </a></li>
|
<li><a href="<?= htmlspecialchars((isset($src[1]) ? $src[1] : $src[0]), ENT_QUOTES) ?>"><?= htmlspecialchars($src[0]) ?> </a></li>
|
||||||
<?php
|
<?php
|
||||||
else:
|
else:
|
||||||
# It is presumably an internal source
|
# It is presumably an internal source
|
||||||
$src = $src[0];
|
$src = $src[0];
|
||||||
?>
|
?>
|
||||||
<li><?php echo htmlspecialchars($src) ?></li>
|
<li><?= htmlspecialchars($src) ?></li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endwhile; ?>
|
<?php endwhile; ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -34,94 +34,94 @@ $per_page = array(50, 100, 250);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div id="pkglist-search" class="box filter-criteria">
|
<div id="pkglist-search" class="box filter-criteria">
|
||||||
<h2><?php print __("Search Criteria"); ?></h2>
|
<h2><?= __("Search Criteria"); ?></h2>
|
||||||
|
|
||||||
<form action='<?php echo get_uri('/packages/'); ?>' method='get'>
|
<form action='<?= get_uri('/packages/'); ?>' method='get'>
|
||||||
<p><input type='hidden' name='O' value='0' /></p>
|
<p><input type='hidden' name='O' value='0' /></p>
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend><?php echo __('Enter search criteria') ?></legend>
|
<legend><?= __('Enter search criteria') ?></legend>
|
||||||
<div>
|
<div>
|
||||||
<label for="id_category"><?php print __("Category"); ?></label>
|
<label for="id_category"><?= __("Category"); ?></label>
|
||||||
<select name='C' id="id_category">
|
<select name='C' id="id_category">
|
||||||
<option value='0'><?php print __("Any"); ?></option>
|
<option value='0'><?= __("Any"); ?></option>
|
||||||
<?php foreach (pkgCategories() as $id => $cat): ?>
|
<?php foreach (pkgCategories() as $id => $cat): ?>
|
||||||
<?php if (isset($_REQUEST['C']) && $_REQUEST['C'] == $id): ?>
|
<?php if (isset($_REQUEST['C']) && $_REQUEST['C'] == $id): ?>
|
||||||
<option value="<?php print $id ?>" selected="selected"><?php print $cat; ?></option>
|
<option value="<?= $id ?>" selected="selected"><?= $cat; ?></option>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<option value="<?php print $id ?>"><?php print $cat; ?></option>
|
<option value="<?= $id ?>"><?= $cat; ?></option>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="id_method"><?php print __("Search by"); ?></label>
|
<label for="id_method"><?= __("Search by"); ?></label>
|
||||||
<select name='SeB'>
|
<select name='SeB'>
|
||||||
<?php foreach ($searchby as $k => $v): ?>
|
<?php foreach ($searchby as $k => $v): ?>
|
||||||
<?php if (isset($_REQUEST['SeB']) && $_REQUEST['SeB'] == $k): ?>
|
<?php if (isset($_REQUEST['SeB']) && $_REQUEST['SeB'] == $k): ?>
|
||||||
<option value="<?php print $k; ?>" selected="selected"><?php print $v; ?></option>
|
<option value="<?= $k; ?>" selected="selected"><?= $v; ?></option>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<option value="<?php print $k; ?>"><?php print $v; ?></option>
|
<option value="<?= $k; ?>"><?= $v; ?></option>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="id_q"><?php print __("Keywords"); ?></label>
|
<label for="id_q"><?= __("Keywords"); ?></label>
|
||||||
<input type='text' name='K' size='30' value="<?php if (isset($_REQUEST["K"])) { print stripslashes(trim(htmlspecialchars($_REQUEST["K"], ENT_QUOTES))); } ?>" maxlength='35' />
|
<input type='text' name='K' size='30' value="<?php if (isset($_REQUEST["K"])) { print stripslashes(trim(htmlspecialchars($_REQUEST["K"], ENT_QUOTES))); } ?>" maxlength='35' />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="id_out_of_date"><?php echo __('Out of Date'); ?></label>
|
<label for="id_out_of_date"><?= __('Out of Date'); ?></label>
|
||||||
<select name='outdated'>
|
<select name='outdated'>
|
||||||
<?php foreach ($outdated_flags as $k => $v): ?>
|
<?php foreach ($outdated_flags as $k => $v): ?>
|
||||||
<?php if (isset($_REQUEST['outdated']) && $_REQUEST['outdated'] == $k): ?>
|
<?php if (isset($_REQUEST['outdated']) && $_REQUEST['outdated'] == $k): ?>
|
||||||
<option value='<?php print $k; ?>' selected="selected"><?php print $v; ?></option>
|
<option value='<?= $k; ?>' selected="selected"><?= $v; ?></option>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<option value='<?php print $k; ?>'><?php print $v; ?></option>
|
<option value='<?= $k; ?>'><?= $v; ?></option>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="id_sort_by"><?php print __("Sort by"); ?></label>
|
<label for="id_sort_by"><?= __("Sort by"); ?></label>
|
||||||
<select name='SB'>
|
<select name='SB'>
|
||||||
<?php foreach ($sortby as $k => $v): ?>
|
<?php foreach ($sortby as $k => $v): ?>
|
||||||
<?php if (isset($_REQUEST['SB']) && $_REQUEST['SB'] == $k): ?>
|
<?php if (isset($_REQUEST['SB']) && $_REQUEST['SB'] == $k): ?>
|
||||||
<option value='<?php print $k; ?>' selected="selected"><?php print $v; ?></option>
|
<option value='<?= $k; ?>' selected="selected"><?= $v; ?></option>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<option value='<?php print $k; ?>'><?php print $v; ?></option>
|
<option value='<?= $k; ?>'><?= $v; ?></option>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="id_order_by"><?php print __("Sort order"); ?></label>
|
<label for="id_order_by"><?= __("Sort order"); ?></label>
|
||||||
<select name='SO'>
|
<select name='SO'>
|
||||||
<?php foreach ($orderby as $k => $v): ?>
|
<?php foreach ($orderby as $k => $v): ?>
|
||||||
<?php if (isset($_REQUEST['SO']) && $_REQUEST['SO'] == $k): ?>
|
<?php if (isset($_REQUEST['SO']) && $_REQUEST['SO'] == $k): ?>
|
||||||
<option value='<?php print $k; ?>' selected="selected"><?php print $v; ?></option>
|
<option value='<?= $k; ?>' selected="selected"><?= $v; ?></option>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<option value='<?php print $k; ?>'><?php print $v; ?></option>
|
<option value='<?= $k; ?>'><?= $v; ?></option>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="id_per_page"><?php print __("Per page"); ?></label>
|
<label for="id_per_page"><?= __("Per page"); ?></label>
|
||||||
<select name='PP'>
|
<select name='PP'>
|
||||||
<?php foreach ($per_page as $i): ?>
|
<?php foreach ($per_page as $i): ?>
|
||||||
<?php if (isset($_REQUEST['PP']) && $_REQUEST['PP'] == $i): ?>
|
<?php if (isset($_REQUEST['PP']) && $_REQUEST['PP'] == $i): ?>
|
||||||
<option value="<?php print $i; ?>" selected="selected"><?php print $i; ?></option>
|
<option value="<?= $i; ?>" selected="selected"><?= $i; ?></option>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<option value="<?php print $i; ?>"><?php print $i; ?></option>
|
<option value="<?= $i; ?>"><?= $i; ?></option>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label> </label>
|
<label> </label>
|
||||||
<input type='submit' class='button' name='do_Search' value='<?php print __("Go"); ?>' />
|
<input type='submit' class='button' name='do_Search' value='<?= __("Go"); ?>' />
|
||||||
<input type='submit' class='button' name='do_Orphans' value='<?php print __("Orphans"); ?>' />
|
<input type='submit' class='button' name='do_Orphans' value='<?= __("Orphans"); ?>' />
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -6,74 +6,74 @@ if (isset($_COOKIE['AURSID'])) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$result): ?>
|
if (!$result): ?>
|
||||||
<div class="box"><p><?php echo __("Error retrieving package list.") ?></p></div>
|
<div class="box"><p><?= __("Error retrieving package list.") ?></p></div>
|
||||||
<?php elseif ($total == 0): ?>
|
<?php elseif ($total == 0): ?>
|
||||||
<div class="box"><p><?php echo __("No packages matched your search criteria.") ?></p></div>
|
<div class="box"><p><?= __("No packages matched your search criteria.") ?></p></div>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div id="pkglist-results" class="box">
|
<div id="pkglist-results" class="box">
|
||||||
<div class="pkglist-stats">
|
<div class="pkglist-stats">
|
||||||
<p><?php echo __('%d packages found. Page %d of %d.', $total, $current, $pages) ?></p>
|
<p><?= __('%d packages found. Page %d of %d.', $total, $current, $pages) ?></p>
|
||||||
<?php if (count($templ_pages) > 1): ?>
|
<?php if (count($templ_pages) > 1): ?>
|
||||||
<p class="pkglist-nav">
|
<p class="pkglist-nav">
|
||||||
<?php foreach ($templ_pages as $pagenr => $pagestart): ?>
|
<?php foreach ($templ_pages as $pagenr => $pagestart): ?>
|
||||||
<?php if ($pagestart === false): ?>
|
<?php if ($pagestart === false): ?>
|
||||||
<span class="page"><?php echo $pagenr ?></span>
|
<span class="page"><?= $pagenr ?></span>
|
||||||
<?php elseif ($pagestart + 1 == $first): ?>
|
<?php elseif ($pagestart + 1 == $first): ?>
|
||||||
<span class="page"><?php echo $pagenr ?></span>
|
<span class="page"><?= $pagenr ?></span>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<a class="page" href="<?php echo get_uri('/packages/'); ?>?<?php echo mkurl('O=' . $pagestart) ?>"><?php echo $pagenr ?></a>
|
<a class="page" href="<?= get_uri('/packages/'); ?>?<?= mkurl('O=' . $pagestart) ?>"><?= $pagenr ?></a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</p>
|
</p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form id="pkglist-results-form" method="post" action="<?php echo get_uri('/packages/'); ?>?<?php echo htmlentities($_SERVER['QUERY_STRING']) ?>">
|
<form id="pkglist-results-form" method="post" action="<?= get_uri('/packages/'); ?>?<?= htmlentities($_SERVER['QUERY_STRING']) ?>">
|
||||||
<table class="results">
|
<table class="results">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<?php if ($SID): ?>
|
<?php if ($SID): ?>
|
||||||
<th> </th>
|
<th> </th>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<th><a href="?<?php echo mkurl('SB=c&SO=' . $SO_next) ?>"><?php echo __("Category") ?></a></th>
|
<th><a href="?<?= mkurl('SB=c&SO=' . $SO_next) ?>"><?= __("Category") ?></a></th>
|
||||||
<th><a href="?<?php echo mkurl('SB=n&SO=' . $SO_next) ?>"><?php echo __("Name") ?></a></th>
|
<th><a href="?<?= mkurl('SB=n&SO=' . $SO_next) ?>"><?= __("Name") ?></a></th>
|
||||||
<th><a href="?<?php echo mkurl('SB=v&SO=' . $SO_next) ?>"><?php echo __("Votes") ?></a></th>
|
<th><a href="?<?= mkurl('SB=v&SO=' . $SO_next) ?>"><?= __("Votes") ?></a></th>
|
||||||
<?php if ($SID): ?>
|
<?php if ($SID): ?>
|
||||||
<th><a href="?<?php echo mkurl('SB=w&SO=' . $SO_next) ?>"><?php echo __("Voted") ?></a></th>
|
<th><a href="?<?= mkurl('SB=w&SO=' . $SO_next) ?>"><?= __("Voted") ?></a></th>
|
||||||
<th><a href="?<?php echo mkurl('SB=o&SO=' . $SO_next) ?>"><?php echo __("Notify") ?></a></th>
|
<th><a href="?<?= mkurl('SB=o&SO=' . $SO_next) ?>"><?= __("Notify") ?></a></th>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<th><?php echo __("Description") ?></th>
|
<th><?= __("Description") ?></th>
|
||||||
<th><a href="?<?php echo mkurl('SB=m&SO=' . $SO_next) ?>"><?php echo __("Maintainer") ?></a></th>
|
<th><a href="?<?= mkurl('SB=m&SO=' . $SO_next) ?>"><?= __("Maintainer") ?></a></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
||||||
<?php while (list($indx, $row) = each($searchresults)): ?>
|
<?php while (list($indx, $row) = each($searchresults)): ?>
|
||||||
<tr class="<?php echo ($indx % 2 == 0) ? 'odd' : 'even' ?>">
|
<tr class="<?= ($indx % 2 == 0) ? 'odd' : 'even' ?>">
|
||||||
<?php if ($SID): ?>
|
<?php if ($SID): ?>
|
||||||
<td><input type="checkbox" name="IDs[<?php echo $row["ID"] ?>]" value="1" /></td>
|
<td><input type="checkbox" name="IDs[<?= $row["ID"] ?>]" value="1" /></td>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<td><?php echo htmlspecialchars($row["Category"]) ?></td>
|
<td><?= htmlspecialchars($row["Category"]) ?></td>
|
||||||
<td><a href="<?php echo htmlspecialchars(get_pkg_uri($row["Name"]), ENT_QUOTES); ?>"><?php echo htmlspecialchars($row["Name"]) . ' ' . htmlspecialchars($row["Version"]) ?></a></td>
|
<td><a href="<?= htmlspecialchars(get_pkg_uri($row["Name"]), ENT_QUOTES); ?>"><?= htmlspecialchars($row["Name"]) . ' ' . htmlspecialchars($row["Version"]) ?></a></td>
|
||||||
<td><?php echo $row["NumVotes"] ?></td>
|
<td><?= $row["NumVotes"] ?></td>
|
||||||
<?php if ($SID): ?>
|
<?php if ($SID): ?>
|
||||||
<td>
|
<td>
|
||||||
<?php if (isset($row["Voted"])): ?>
|
<?php if (isset($row["Voted"])): ?>
|
||||||
<?php echo __("Yes") ?>
|
<?= __("Yes") ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<?php if (isset($row["Notify"])): ?>
|
<?php if (isset($row["Notify"])): ?>
|
||||||
<?php echo __("Yes") ?>
|
<?= __("Yes") ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<td><?php echo htmlspecialchars($row['Description'], ENT_QUOTES); ?></td>
|
<td><?= htmlspecialchars($row['Description'], ENT_QUOTES); ?></td>
|
||||||
<td>
|
<td>
|
||||||
<?php if (isset($row["Maintainer"])): ?>
|
<?php if (isset($row["Maintainer"])): ?>
|
||||||
<a href="<?php echo get_uri('/packages/'); ?>?K=<?php echo htmlspecialchars($row['Maintainer'], ENT_QUOTES) ?>&SeB=m"><?php echo htmlspecialchars($row['Maintainer']) ?></a>
|
<a href="<?= get_uri('/packages/'); ?>?K=<?= htmlspecialchars($row['Maintainer'], ENT_QUOTES) ?>&SeB=m"><?= htmlspecialchars($row['Maintainer']) ?></a>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<span><?php echo __("orphan") ?></span>
|
<span><?= __("orphan") ?></span>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -83,16 +83,16 @@ if (!$result): ?>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<div class="pkglist-stats">
|
<div class="pkglist-stats">
|
||||||
<p><?php echo __('%d packages found. Page %d of %d.', $total, $current, $pages) ?></p>
|
<p><?= __('%d packages found. Page %d of %d.', $total, $current, $pages) ?></p>
|
||||||
<?php if (count($templ_pages) > 1): ?>
|
<?php if (count($templ_pages) > 1): ?>
|
||||||
<p class="pkglist-nav">
|
<p class="pkglist-nav">
|
||||||
<?php foreach ($templ_pages as $pagenr => $pagestart): ?>
|
<?php foreach ($templ_pages as $pagenr => $pagestart): ?>
|
||||||
<?php if ($pagestart === false): ?>
|
<?php if ($pagestart === false): ?>
|
||||||
<span class="page"><?php echo $pagenr ?></span>
|
<span class="page"><?= $pagenr ?></span>
|
||||||
<?php elseif ($pagestart + 1 == $first): ?>
|
<?php elseif ($pagestart + 1 == $first): ?>
|
||||||
<span class="page"><?php echo $pagenr ?></span>
|
<span class="page"><?= $pagenr ?></span>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<a class="page" href="<?php echo get_uri('/packages/'); ?>?<?php echo mkurl('O=' . $pagestart) ?>"><?php echo $pagenr ?></a>
|
<a class="page" href="<?= get_uri('/packages/'); ?>?<?= mkurl('O=' . $pagestart) ?>"><?= $pagenr ?></a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</p>
|
</p>
|
||||||
|
@ -102,24 +102,24 @@ if (!$result): ?>
|
||||||
<?php if ($SID): ?>
|
<?php if ($SID): ?>
|
||||||
<p>
|
<p>
|
||||||
<select name="action">
|
<select name="action">
|
||||||
<option><?php echo __("Actions") ?></option>
|
<option><?= __("Actions") ?></option>
|
||||||
<option value="do_Flag"><?php echo __("Flag Out-of-date") ?></option>
|
<option value="do_Flag"><?= __("Flag Out-of-date") ?></option>
|
||||||
<option value="do_UnFlag"><?php echo __("Unflag Out-of-date") ?></option>
|
<option value="do_UnFlag"><?= __("Unflag Out-of-date") ?></option>
|
||||||
<option value="do_Adopt"><?php echo __("Adopt Packages") ?></option>
|
<option value="do_Adopt"><?= __("Adopt Packages") ?></option>
|
||||||
<option value="do_Disown"><?php echo __("Disown Packages") ?></option>
|
<option value="do_Disown"><?= __("Disown Packages") ?></option>
|
||||||
<?php if ($atype == "Trusted User" || $atype == "Developer"): ?>
|
<?php if ($atype == "Trusted User" || $atype == "Developer"): ?>
|
||||||
<option value="do_Delete"><?php echo __("Delete Packages") ?></option>
|
<option value="do_Delete"><?= __("Delete Packages") ?></option>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<option value="do_Notify"><?php echo __("Notify") ?></option>
|
<option value="do_Notify"><?= __("Notify") ?></option>
|
||||||
<option value="do_UnNotify"><?php echo __("UnNotify") ?></option>
|
<option value="do_UnNotify"><?= __("UnNotify") ?></option>
|
||||||
</select>
|
</select>
|
||||||
<?php if ($atype == "Trusted User" || $atype == "Developer"): ?>
|
<?php if ($atype == "Trusted User" || $atype == "Developer"): ?>
|
||||||
<label for="merge_Into"><?php echo __("Merge into") ?></label>
|
<label for="merge_Into"><?= __("Merge into") ?></label>
|
||||||
<input type="text" id="merge_Into" name="merge_Into" />
|
<input type="text" id="merge_Into" name="merge_Into" />
|
||||||
<input type="checkbox" name="confirm_Delete" value="1" /> <?php echo __("Confirm") ?>
|
<input type="checkbox" name="confirm_Delete" value="1" /> <?= __("Confirm") ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<input type="hidden" name="token" value="<?php echo htmlspecialchars($_COOKIE['AURSID']) ?>" />
|
<input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" />
|
||||||
<input type="submit" class="button" style="width: 80px" value="<?php echo __("Go") ?>" />
|
<input type="submit" class="button" style="width: 80px" value="<?= __("Go") ?>" />
|
||||||
</p>
|
</p>
|
||||||
<?php endif; # if ($SID) ?>
|
<?php endif; # if ($SID) ?>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -1,63 +1,63 @@
|
||||||
<br />
|
<br />
|
||||||
<form action="<?php echo get_uri('/accounts/'); ?>" method="post">
|
<form action="<?= get_uri('/accounts/'); ?>" method="post">
|
||||||
<table>
|
<table>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left"><?php print __("Username"); ?>:</td>
|
<td align="left"><?= __("Username"); ?>:</td>
|
||||||
<td align="left">
|
<td align="left">
|
||||||
<input type="text" size="30" maxlength="64" name="U" />
|
<input type="text" size="30" maxlength="64" name="U" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left"><?php print __("Account Type"); ?>:</td>
|
<td align="left"><?= __("Account Type"); ?>:</td>
|
||||||
<td align="left">
|
<td align="left">
|
||||||
<select name="T">
|
<select name="T">
|
||||||
<option value=""><?php print __("Any type"); ?></option>
|
<option value=""><?= __("Any type"); ?></option>
|
||||||
<option value="u"><?php print __("Normal user"); ?></option>
|
<option value="u"><?= __("Normal user"); ?></option>
|
||||||
<option value="t"><?php print __("Trusted user"); ?></option>
|
<option value="t"><?= __("Trusted user"); ?></option>
|
||||||
<option value="d"><?php print __("Developer"); ?></option>
|
<option value="d"><?= __("Developer"); ?></option>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left"><?php print __("Account Suspended"); ?>:</td>
|
<td align="left"><?= __("Account Suspended"); ?>:</td>
|
||||||
<td align="left">
|
<td align="left">
|
||||||
<input type="checkbox" name="S" />
|
<input type="checkbox" name="S" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left"><?php print __("Email Address"); ?>:</td>
|
<td align="left"><?= __("Email Address"); ?>:</td>
|
||||||
<td align="left">
|
<td align="left">
|
||||||
<input type="text" size="30" maxlength="64" name="E" />
|
<input type="text" size="30" maxlength="64" name="E" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left"><?php print __("Real Name"); ?>:</td>
|
<td align="left"><?= __("Real Name"); ?>:</td>
|
||||||
<td align="left">
|
<td align="left">
|
||||||
<input type="text" size="30" maxlength="32" name="R" />
|
<input type="text" size="30" maxlength="32" name="R" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left"><?php print __("IRC Nick"); ?>:</td>
|
<td align="left"><?= __("IRC Nick"); ?>:</td>
|
||||||
<td align="left">
|
<td align="left">
|
||||||
<input type="text" size="30" maxlength="32" name="I" />
|
<input type="text" size="30" maxlength="32" name="I" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left"><?php print __("Sort by"); ?>:</td>
|
<td align="left"><?= __("Sort by"); ?>:</td>
|
||||||
<td align="left">
|
<td align="left">
|
||||||
<select name="SB">
|
<select name="SB">
|
||||||
<option value="u"><?php print __("Username"); ?></option>
|
<option value="u"><?= __("Username"); ?></option>
|
||||||
<option value="t"><?php print __("Account Type"); ?></option>
|
<option value="t"><?= __("Account Type"); ?></option>
|
||||||
<option value="r"><?php print __("Real Name"); ?></option>
|
<option value="r"><?= __("Real Name"); ?></option>
|
||||||
<option value="i"><?php print __("IRC Nick"); ?></option>
|
<option value="i"><?= __("IRC Nick"); ?></option>
|
||||||
<option value="v"><?php print __("Last vote"); ?></option>
|
<option value="v"><?= __("Last vote"); ?></option>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -67,8 +67,8 @@
|
||||||
<td align="left">
|
<td align="left">
|
||||||
<br />
|
<br />
|
||||||
<input type="hidden" name="Action" value="SearchAccounts" />
|
<input type="hidden" name="Action" value="SearchAccounts" />
|
||||||
<input type="submit" class="button" value="<?php print __("Search"); ?>" />
|
<input type="submit" class="button" value="<?= __("Search"); ?>" />
|
||||||
<input type="reset" class="button" value="<?php print __("Reset"); ?>" />
|
<input type="reset" class="button" value="<?= __("Reset"); ?>" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
|
@ -1,36 +1,36 @@
|
||||||
<h3><?php echo __("Statistics") ?></h3>
|
<h3><?= __("Statistics") ?></h3>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php print __("Packages"); ?></td>
|
<td><?= __("Packages"); ?></td>
|
||||||
<td><?php print $unsupported_count; ?></td>
|
<td><?= $unsupported_count; ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php print __("Orphan Packages"); ?></td>
|
<td><?= __("Orphan Packages"); ?></td>
|
||||||
<td><?php print $orphan_count; ?></td>
|
<td><?= $orphan_count; ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php print __("Packages added in the past 7 days"); ?></td>
|
<td><?= __("Packages added in the past 7 days"); ?></td>
|
||||||
<td><?php print $add_count; ?></td>
|
<td><?= $add_count; ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php print __("Packages updated in the past 7 days"); ?></td>
|
<td><?= __("Packages updated in the past 7 days"); ?></td>
|
||||||
<td><?php print $update_count; ?></td>
|
<td><?= $update_count; ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php print __("Packages updated in the past year"); ?></td>
|
<td><?= __("Packages updated in the past year"); ?></td>
|
||||||
<td><?php print $update_year_count; ?></td>
|
<td><?= $update_year_count; ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php print __("Packages never updated"); ?></td>
|
<td><?= __("Packages never updated"); ?></td>
|
||||||
<td><?php print $never_update_count; ?></td>
|
<td><?= $never_update_count; ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php print __("Registered Users"); ?></td>
|
<td><?= __("Registered Users"); ?></td>
|
||||||
<td><?php print $user_count; ?></td>
|
<td><?= $user_count; ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php print __("Trusted Users"); ?></td>
|
<td><?= __("Trusted Users"); ?></td>
|
||||||
<td><?php print $tu_count; ?></td>
|
<td><?= $tu_count; ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
<h3><?php echo __("Recent Updates") ?></h3>
|
<h3><?= __("Recent Updates") ?></h3>
|
||||||
|
|
||||||
<a href="<?php echo get_uri('/rss/') ?>" title="Arch Package Updates RSS Feed" class="rss-icon"><img src="/images/feed-icon-14x14.png" alt="RSS Feed" /></a>
|
<a href="<?= get_uri('/rss/') ?>" title="Arch Package Updates RSS Feed" class="rss-icon"><img src="/images/feed-icon-14x14.png" alt="RSS Feed" /></a>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php foreach ($newest_packages->getIterator() as $row): ?>
|
<?php foreach ($newest_packages->getIterator() as $row): ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="pkg-name">
|
<td class="pkg-name">
|
||||||
<a href="<?php echo get_pkg_uri($row["Name"]); ?>"><?php print htmlspecialchars($row["Name"]) . ' ' . htmlspecialchars($row["Version"]); ?></a>
|
<a href="<?= get_pkg_uri($row["Name"]); ?>"><?= htmlspecialchars($row["Name"]) . ' ' . htmlspecialchars($row["Version"]); ?></a>
|
||||||
</td>
|
</td>
|
||||||
<td class="pkg-new">
|
<td class="pkg-new">
|
||||||
<?php if ($row["ModifiedTS"] === $row["SubmittedTS"]): ?>
|
<?php if ($row["ModifiedTS"] === $row["SubmittedTS"]): ?>
|
||||||
|
@ -15,7 +15,7 @@
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<span><?php print gmdate("Y-m-d H:i", intval($row["ModifiedTS"])); ?></span>
|
<span><?= gmdate("Y-m-d H:i", intval($row["ModifiedTS"])); ?></span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
|
|
@ -2,20 +2,20 @@
|
||||||
$username = username_from_sid($_COOKIE["AURSID"]);
|
$username = username_from_sid($_COOKIE["AURSID"]);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<h3><?php echo __("My Statistics"); ?></h3>
|
<h3><?= __("My Statistics"); ?></h3>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<a href="<?php echo get_uri('/packages/'); ?>?SeB=m&L=2&K=<?php echo $username; ?>">
|
<a href="<?= get_uri('/packages/'); ?>?SeB=m&L=2&K=<?= $username; ?>">
|
||||||
<?php print __("Packages in unsupported"); ?></a>
|
<?= __("Packages in unsupported"); ?></a>
|
||||||
</td>
|
</td>
|
||||||
<td><?php print $maintainer_unsupported_count; ?></td>
|
<td><?= $maintainer_unsupported_count; ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<a href="<?php echo get_uri('/packages/'); ?>?SeB=m&outdated=on&K=<?php echo $username; ?>"><?php print __("Out of Date"); ?></a>
|
<a href="<?= get_uri('/packages/'); ?>?SeB=m&outdated=on&K=<?= $username; ?>"><?= __("Out of Date"); ?></a>
|
||||||
</td>
|
</td>
|
||||||
<td><?php echo $flagged_outdated ?></td>
|
<td><?= $flagged_outdated ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -1,50 +1,50 @@
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<h2><?php print __("Proposal Details") ?></h2>
|
<h2><?= __("Proposal Details") ?></h2>
|
||||||
|
|
||||||
<?php if ($isrunning == 1): ?>
|
<?php if ($isrunning == 1): ?>
|
||||||
<p style="font-weight: bold; color: red">
|
<p style="font-weight: bold; color: red">
|
||||||
<?php print __("This vote is still running.") ?>
|
<?= __("This vote is still running.") ?>
|
||||||
</p>
|
</p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<?php echo __("User") ?>:
|
<?= __("User") ?>:
|
||||||
<b>
|
<b>
|
||||||
<?php if (!empty($row['User'])): ?>
|
<?php if (!empty($row['User'])): ?>
|
||||||
<a href="<?php echo get_uri('/packages/'); ?>?K=<?php print $row['User'] ?>&SeB=m"><?php print $row['User'] ?></a>
|
<a href="<?= get_uri('/packages/'); ?>?K=<?= $row['User'] ?>&SeB=m"><?= $row['User'] ?></a>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
N/A
|
N/A
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</b>
|
</b>
|
||||||
<br />
|
<br />
|
||||||
<?php print __("Submitted: %s by %s", "<b>" . gmdate("Y-m-d H:i", $row['Submitted']) . "</b>", "<b>" . username_from_id($row['SubmitterID']) . "</b>") ?>
|
<?= __("Submitted: %s by %s", "<b>" . gmdate("Y-m-d H:i", $row['Submitted']) . "</b>", "<b>" . username_from_id($row['SubmitterID']) . "</b>") ?>
|
||||||
<br />
|
<br />
|
||||||
<?php print __("End") ?>:
|
<?= __("End") ?>:
|
||||||
<b><?php print gmdate("Y-m-d H:i", $row['End']) ?></b>
|
<b><?= gmdate("Y-m-d H:i", $row['End']) ?></b>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<?php print str_replace("\n", "<br />\n", htmlspecialchars($row['Agenda'])) ?>
|
<?= str_replace("\n", "<br />\n", htmlspecialchars($row['Agenda'])) ?>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<th><?php print __("Yes") ?></th>
|
<th><?= __("Yes") ?></th>
|
||||||
<th><?php print __("No") ?></th>
|
<th><?= __("No") ?></th>
|
||||||
<th><?php print __("Abstain") ?></th>
|
<th><?= __("Abstain") ?></th>
|
||||||
<th><?php print __("Total") ?></th>
|
<th><?= __("Total") ?></th>
|
||||||
<th><?php print __('Voted') ?></th>
|
<th><?= __('Voted') ?></th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php print $row['Yes'] ?></td>
|
<td><?= $row['Yes'] ?></td>
|
||||||
<td><?php print $row['No'] ?></td>
|
<td><?= $row['No'] ?></td>
|
||||||
<td><?php print $row['Abstain'] ?></td>
|
<td><?= $row['Abstain'] ?></td>
|
||||||
<td><?php print ($row['Yes'] + $row['No'] + $row['Abstain']) ?></td>
|
<td><?= ($row['Yes'] + $row['No'] + $row['Abstain']) ?></td>
|
||||||
<td>
|
<td>
|
||||||
<?php if ($hasvoted == 0): ?>
|
<?php if ($hasvoted == 0): ?>
|
||||||
<span style="color: red; font-weight: bold"><?php print __("No") ?></span>
|
<span style="color: red; font-weight: bold"><?= __("No") ?></span>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<span style="color: green; font-weight: bold"><?php print __("Yes") ?></span>
|
<span style="color: green; font-weight: bold"><?= __("Yes") ?></span>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -53,21 +53,21 @@
|
||||||
|
|
||||||
<?php if (!$isrunning): ?>
|
<?php if (!$isrunning): ?>
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<h2><?php echo __("Voters"); ?></h2>
|
<h2><?= __("Voters"); ?></h2>
|
||||||
<?php echo $whovoted; ?>
|
<?= $whovoted; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<div class="box">
|
<div class="box">
|
||||||
|
|
||||||
<?php if ($canvote == 1): ?>
|
<?php if ($canvote == 1): ?>
|
||||||
<form action="<?php echo get_uri('/tu/'); ?>?id=<?php print $row['ID'] ?>" method="post">
|
<form action="<?= get_uri('/tu/'); ?>?id=<?= $row['ID'] ?>" method="post">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<input type="submit" class="button" name="voteYes" value="<?php print __("Yes") ?>" />
|
<input type="submit" class="button" name="voteYes" value="<?= __("Yes") ?>" />
|
||||||
<input type="submit" class="button" name="voteNo" value="<?php print __("No") ?>" />
|
<input type="submit" class="button" name="voteNo" value="<?= __("No") ?>" />
|
||||||
<input type="submit" class="button" name="voteAbstain" value="<?php print __("Abstain") ?>" />
|
<input type="submit" class="button" name="voteAbstain" value="<?= __("Abstain") ?>" />
|
||||||
<input type="hidden" name="doVote" value="1" />
|
<input type="hidden" name="doVote" value="1" />
|
||||||
<input type="hidden" name="token" value="<?php echo htmlspecialchars($_COOKIE['AURSID']) ?>" />
|
<input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" />
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
<?php else:
|
<?php else:
|
||||||
|
|
|
@ -1,21 +1,21 @@
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<h2><?php print $type ?></h2>
|
<h2><?= $type ?></h2>
|
||||||
<table class="results">
|
<table class="results">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th><?php print __("Proposal") ?></th>
|
<th><?= __("Proposal") ?></th>
|
||||||
<th><a href="?off=<?php print $off ?>&by=<?php print $by_next ?>"><?php print __("Start") ?></a></th>
|
<th><a href="?off=<?= $off ?>&by=<?= $by_next ?>"><?= __("Start") ?></a></th>
|
||||||
<th><?php print __("End") ?></th>
|
<th><?= __("End") ?></th>
|
||||||
<th><?php print __("User") ?></th>
|
<th><?= __("User") ?></th>
|
||||||
<th><?php print __("Yes") ?></th>
|
<th><?= __("Yes") ?></th>
|
||||||
<th><?php print __("No") ?></th>
|
<th><?= __("No") ?></th>
|
||||||
<th><?php print __('Voted') ?></th>
|
<th><?= __('Voted') ?></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php if (empty($result)): ?>
|
<?php if (empty($result)): ?>
|
||||||
<tr><td align="center" colspan="0"><?php print __("No results found.") ?></td></tr>
|
<tr><td align="center" colspan="0"><?= __("No results found.") ?></td></tr>
|
||||||
<?php else: while (list($indx, $row) = each($result)):
|
<?php else: while (list($indx, $row) = each($result)):
|
||||||
if ($indx % 2):
|
if ($indx % 2):
|
||||||
$c = "even";
|
$c = "even";
|
||||||
|
@ -23,27 +23,27 @@
|
||||||
$c = "odd";
|
$c = "odd";
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
<tr class="<?php print $c ?>">
|
<tr class="<?= $c ?>">
|
||||||
<td><?php $row["Agenda"] = htmlspecialchars(substr($row["Agenda"], 0, $prev_Len)); ?>
|
<td><?php $row["Agenda"] = htmlspecialchars(substr($row["Agenda"], 0, $prev_Len)); ?>
|
||||||
<a href="<?php echo get_uri('/tu/'); ?>?id=<?php print $row['ID'] ?>"><?php print $row["Agenda"] ?></a></span></span>
|
<a href="<?= get_uri('/tu/'); ?>?id=<?= $row['ID'] ?>"><?= $row["Agenda"] ?></a></span></span>
|
||||||
</td>
|
</td>
|
||||||
<td><?php print gmdate("Y-m-d", $row["Submitted"]) ?></td>
|
<td><?= gmdate("Y-m-d", $row["Submitted"]) ?></td>
|
||||||
<td><?php print gmdate("Y-m-d", $row["End"]) ?></td>
|
<td><?= gmdate("Y-m-d", $row["End"]) ?></td>
|
||||||
<td>
|
<td>
|
||||||
<?php if (!empty($row['User'])): ?>
|
<?php if (!empty($row['User'])): ?>
|
||||||
<a href="<?php echo get_uri('/packages/'); ?>?K=<?php echo $row['User'] ?>&SeB=m"><?php echo $row['User'] ?></a>
|
<a href="<?= get_uri('/packages/'); ?>?K=<?= $row['User'] ?>&SeB=m"><?= $row['User'] ?></a>
|
||||||
<?php else:
|
<?php else:
|
||||||
print "N/A";
|
print "N/A";
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
<td><?php print $row['Yes'] ?></td>
|
<td><?= $row['Yes'] ?></td>
|
||||||
<td><?php print $row['No'] ?></td>
|
<td><?= $row['No'] ?></td>
|
||||||
<td>
|
<td>
|
||||||
<?php if (tu_voted($row['ID'], uid_from_sid($_COOKIE["AURSID"]))): ?>
|
<?php if (tu_voted($row['ID'], uid_from_sid($_COOKIE["AURSID"]))): ?>
|
||||||
<span style="color: green; font-weight: bold"><?php print __("Yes") ?></span>
|
<span style="color: green; font-weight: bold"><?= __("Yes") ?></span>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<span style="color: red; font-weight: bold"><?php print __("No") ?></span>
|
<span style="color: red; font-weight: bold"><?= __("No") ?></span>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Add table
Reference in a new issue