summaryrefslogtreecommitdiffstats
path: root/web/html
diff options
context:
space:
mode:
Diffstat (limited to 'web/html')
-rw-r--r--web/html/addvote.php20
-rw-r--r--web/html/home.php16
-rw-r--r--web/html/login.php24
-rw-r--r--web/html/packages.php2
-rw-r--r--web/html/passreset.php18
-rw-r--r--web/html/pkgsubmit.php18
-rw-r--r--web/html/tu.php6
-rw-r--r--web/html/voters.php4
8 files changed, 54 insertions, 54 deletions
diff --git a/web/html/addvote.php b/web/html/addvote.php
index d1cd809a..55750317 100644
--- a/web/html/addvote.php
+++ b/web/html/addvote.php
@@ -62,29 +62,29 @@ if ($atype == "Trusted User" || $atype == "Developer") {
?>
<?php if (!empty($error)): ?>
- <p style="color: red;" class="pkgoutput"><?php print $error ?></p>
+ <p style="color: red;" class="pkgoutput"><?= $error ?></p>
<?php endif; ?>
<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>
- <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); } ?>" />
- <?php print __("(empty if not applicable)") ?>
+ <?= __("(empty if not applicable)") ?>
</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); } ?>" />
- <?php print __("(defaults to 7 if empty)") ?>
+ <?= __("(defaults to 7 if empty)") ?>
</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 />
<input type="hidden" name="addVote" value="1" />
- <input type="hidden" name="token" value="<?php print htmlspecialchars($_COOKIE['AURSID']) ?>" />
- <input type="submit" class="button" value="<?php print __("Submit"); ?>" />
+ <input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" />
+ <input type="submit" class="button" value="<?= __("Submit"); ?>" />
</p>
</form>
</div>
diff --git a/web/html/home.php b/web/html/home.php
index 8fecfd49..3050bd10 100644
--- a/web/html/home.php
+++ b/web/html/home.php
@@ -17,7 +17,7 @@ $dbh = db_connect();
<div id="content-left-wrapper">
<div id="content-left">
<div id="intro" class="box">
- <h2>AUR <?php print __("Home"); ?></h2>
+ <h2>AUR <?= __("Home"); ?></h2>
<p>
<?php
echo __(
@@ -40,11 +40,11 @@ $dbh = db_connect();
?>
</p>
<p>
- <?php echo __('Remember to vote for your favourite packages!'); ?>
- <?php echo __('Some packages may be provided as binaries in [community].'); ?>
+ <?= __('Remember to vote for your favourite packages!'); ?>
+ <?= __('Some packages may be provided as binaries in [community].'); ?>
</p>
<p>
- <h4><?php echo __('Discussion') ?></h4>
+ <h4><?= __('Discussion') ?></h4>
<?php
echo __(
'General discussion regarding the Arch User Repository (AUR) and Trusted User structure takes place on %saur-general%s. This list can be used for package orphan requests, merge requests, and deletion requests. For discussion relating to the development of the AUR, use the %saur-dev%s mailing list.',
@@ -55,7 +55,7 @@ $dbh = db_connect();
);
?>
</p>
- <h4><?php echo __('Bug Reporting') ?></h4>
+ <h4><?= __('Bug Reporting') ?></h4>
<?php
echo __(
'If you find a bug in the AUR, please fill out a bug report on our %sbug tracker%s. Use the tracker to report bugs in the AUR %sonly%s. To report packaging bugs contact the package maintainer or leave a comment on the appropriate package page.',
@@ -68,9 +68,9 @@ $dbh = db_connect();
</p>
<div class="important">
- <b><?php echo __('DISCLAIMER') ?> :</b>
+ <b><?= __('DISCLAIMER') ?> :</b>
<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>
<?php if (!empty($_COOKIE["AURSID"])): ?>
@@ -91,7 +91,7 @@ $dbh = db_connect();
</div>
<div id="content-right">
<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>
<label for="pkgsearch-field">Package Search:</label>
<input type="hidden" name="O" value="0" />
diff --git a/web/html/login.php b/web/html/login.php
index 9c6a5469..ed323f83 100644
--- a/web/html/login.php
+++ b/web/html/login.php
@@ -13,34 +13,34 @@ if (!$DISABLE_HTTP_LOGIN || (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'])) {
html_header('AUR ' . __("Login"));
?>
<div id="dev-login" class="box">
- <h2>AUR <?php echo __('Login') ?></h2>
+ <h2>AUR <?= __('Login') ?></h2>
<?php if (isset($_COOKIE["AURSID"])): ?>
<p>
- <?php echo __("Logged-in as: %s", '<strong>' . username_from_sid($_COOKIE["AURSID"]) . '</strong>'); ?>
- <a href="<?php get_uri('/logout/'); ?>">[<?php print __("Logout"); ?>]</a>
+ <?= __("Logged-in as: %s", '<strong>' . username_from_sid($_COOKIE["AURSID"]) . '</strong>'); ?>
+ <a href="<?php get_uri('/logout/'); ?>">[<?= __("Logout"); ?>]</a>
</p>
<?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>
- <legend><?php echo __('Enter login credentials') ?></legend>
+ <legend><?= __('Enter login credentials') ?></legend>
<?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; ?>
<p>
- <label for="id_username"><?php print __('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); } ?>" />
+ <label for="id_username"><?= __('Username') . ':'; ?></label>
+ <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>
- <label for="id_password"><?php print __('Password') . ':'; ?></label>
- <input id="id_password" type="password" name="passwd" size="30" maxlength="<?php print PASSWD_MAX_LEN; ?>" />
+ <label for="id_password"><?= __('Password') . ':'; ?></label>
+ <input id="id_password" type="password" name="passwd" size="30" maxlength="<?= PASSWD_MAX_LEN; ?>" />
</p>
<p>
<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>
<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>
</fieldset>
</form>
diff --git a/web/html/packages.php b/web/html/packages.php
index 3478ab97..094c221d 100644
--- a/web/html/packages.php
+++ b/web/html/packages.php
@@ -97,7 +97,7 @@ html_header($title);
?>
<?php if ($output): ?>
- <p class="pkgoutput"><?php print $output ?></p>
+ <p class="pkgoutput"><?= $output ?></p>
<?php endif; ?>
<?php
diff --git a/web/html/passreset.php b/web/html/passreset.php
index 9fca5050..13697b97 100644
--- a/web/html/passreset.php
+++ b/web/html/passreset.php
@@ -66,10 +66,10 @@ html_header(__("Password Reset"));
?>
<div class="box">
- <h2><?php print __("Password Reset"); ?></h2>
+ <h2><?= __("Password Reset"); ?></h2>
<?php if ($error): ?>
- <p><span class="error"><?php echo $error ?></span></p>
+ <p><span class="error"><?= $error ?></span></p>
<?php endif;?>
<?php
if ($step == 'confirm') {
@@ -81,31 +81,31 @@ html_header(__("Password Reset"));
<form action="" method="post">
<table>
<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>
</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>
</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>
</tr>
</table>
<br />
- <input type="submit" class="button" value="<?php echo __('Continue') ?>" />
+ <input type="submit" class="button" value="<?= __('Continue') ?>" />
</form>
<?php
} 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>'); ?></p>
<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="submit" class="button" value="<?php echo __('Continue') ?>" />
+ <input type="submit" class="button" value="<?= __('Continue') ?>" />
</form>
<?php } ?>
</div>
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php
index b2a26f78..ffbc1c95 100644
--- a/web/html/pkgsubmit.php
+++ b/web/html/pkgsubmit.php
@@ -436,12 +436,12 @@ html_header("Submit");
?>
<?php if ($error): ?>
- <p class="pkgoutput"><?php print $error ?></p>
+ <p class="pkgoutput"><?= $error ?></p>
<?php endif; ?>
<div class="box">
- <h2><?php echo __("Submit"); ?></h2>
- <p><?php echo __("Upload your source packages here. Create source packages with `makepkg --source`.") ?></p>
+ <h2><?= __("Submit"); ?></h2>
+ <p><?= __("Upload your source packages here. Create source packages with `makepkg --source`.") ?></p>
<?php
if (empty($_REQUEST['pkgsubmit']) || $error):
@@ -452,16 +452,16 @@ html_header("Submit");
$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>
<div>
<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>
<p>
- <label for="id_category"><?php print __("Package Category"); ?>:</label>
+ <label for="id_category"><?= __("Package Category"); ?>:</label>
<select id="id_category" name="category">
- <option value="1"><?php print __("Select Category"); ?></option>
+ <option value="1"><?= __("Select Category"); ?></option>
<?php
foreach ($pkg_categories as $num => $cat):
print '<option value="' . $num . '"';
@@ -474,12 +474,12 @@ html_header("Submit");
</select>
</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' />
</p>
<p>
<label></label>
- <input class="button" type="submit" value="<?php print __("Upload"); ?>" />
+ <input class="button" type="submit" value="<?= __("Upload"); ?>" />
</p>
</fieldset>
</form>
diff --git a/web/html/tu.php b/web/html/tu.php
index 084a2232..5e85e787 100644
--- a/web/html/tu.php
+++ b/web/html/tu.php
@@ -116,17 +116,17 @@ if ($atype == "Trusted User" || $atype == "Developer") {
$nextresult = proposal_count();
?>
<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):
$by = htmlentities($by, ENT_QUOTES); ?>
<?php if ($off != 0):
$back = (($off - $limit) <= 0) ? 0 : $off - $limit; ?>
- <a href='<?php echo get_uri('/tu/'); ?>?off=<?php print $back ?>&amp;by=<?php print $by ?>'><?php print __("Back") ?></a>
+ <a href='<?= get_uri('/tu/'); ?>?off=<?= $back ?>&amp;by=<?= $by ?>'><?= __("Back") ?></a>
<?php endif; ?>
<?php if (($off + $limit) < $nextresult):
$forw = $off + $limit; ?>
- <a href="<?php echo get_uri('/tu/'); ?>?off=<?php print $forw ?>&amp;by=<?php print $by ?>"><?php print __("Next") ?></a>
+ <a href="<?= get_uri('/tu/'); ?>?off=<?= $forw ?>&amp;by=<?= $by ?>"><?= __("Next") ?></a>
<?php endif; ?>
<?php endif; ?>
</div>
diff --git a/web/html/voters.php b/web/html/voters.php
index 41c9d6f9..9cedeef5 100644
--- a/web/html/voters.php
+++ b/web/html/voters.php
@@ -15,11 +15,11 @@ if ($atype == 'Trusted User' || $atype== 'Developer'):
?>
<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">
<ul>
<?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; ?>
</ul>
</div>