mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Really make all web paths relative.
I forgot about the forms. Signed-off-by: Loui Chang <louipc.ist@gmail.com> Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
This commit is contained in:
parent
b56dfc3138
commit
ae1c424c95
4 changed files with 8 additions and 10 deletions
|
@ -8,7 +8,6 @@ include_lang("pkgedit_po.inc"); # i18n translations for this script
|
||||||
set_lang(); # this sets up the visitor's language
|
set_lang(); # this sets up the visitor's language
|
||||||
check_sid(); # see if they're still logged in
|
check_sid(); # see if they're still logged in
|
||||||
html_header(); # print out the HTML header
|
html_header(); # print out the HTML header
|
||||||
$svn_idstr = "\$Id$";
|
|
||||||
|
|
||||||
# Make sure this visitor is logged in
|
# Make sure this visitor is logged in
|
||||||
#
|
#
|
||||||
|
@ -102,7 +101,7 @@ if ($_REQUEST["add_Comment"]) {
|
||||||
# Prompt visitor for comment
|
# Prompt visitor for comment
|
||||||
#
|
#
|
||||||
print "<div align='center'>\n";
|
print "<div align='center'>\n";
|
||||||
print "<form action='/pkgedit.php' method='post'>\n";
|
print "<form action='pkgedit.php' method='post'>\n";
|
||||||
print "<input type='hidden' name='add_Comment' value='1'>\n";
|
print "<input type='hidden' name='add_Comment' value='1'>\n";
|
||||||
print "<input type='hidden' name='ID' value=\"".$_REQUEST["ID"]."\">\n";
|
print "<input type='hidden' name='ID' value=\"".$_REQUEST["ID"]."\">\n";
|
||||||
print __("Enter your comment below.")."<br /> <br />\n";
|
print __("Enter your comment below.")."<br /> <br />\n";
|
||||||
|
@ -143,7 +142,7 @@ if ($_REQUEST["change_Category"]) {
|
||||||
if ($result != NULL) {
|
if ($result != NULL) {
|
||||||
$catid = mysql_fetch_row($result);
|
$catid = mysql_fetch_row($result);
|
||||||
}
|
}
|
||||||
print "<form action='/pkgedit.php' method='post'>\n";
|
print "<form action='pkgedit.php' method='post'>\n";
|
||||||
print "<input type='hidden' name='change_Category' value='1'>\n";
|
print "<input type='hidden' name='change_Category' value='1'>\n";
|
||||||
print "<input type='hidden' name='ID' value=\"".$_REQUEST["ID"]."\">\n";
|
print "<input type='hidden' name='ID' value=\"".$_REQUEST["ID"]."\">\n";
|
||||||
print __("Select new category").": \n";
|
print __("Select new category").": \n";
|
||||||
|
@ -170,4 +169,3 @@ print __("You've found a bug if you see this....")."<br />\n";
|
||||||
|
|
||||||
html_footer(AUR_VERSION);
|
html_footer(AUR_VERSION);
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
|
@ -415,7 +415,7 @@ html_header("Submit");
|
||||||
$pkg_locations = pkgLocations();
|
$pkg_locations = pkgLocations();
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<form action='/pkgsubmit.php' method='post' enctype='multipart/form-data'>
|
<form action='pkgsubmit.php' method='post' enctype='multipart/form-data'>
|
||||||
<input type='hidden' name='pkgsubmit' value='1' />
|
<input type='hidden' name='pkgsubmit' value='1' />
|
||||||
<table border='0' cellspacing='5'>
|
<table border='0' cellspacing='5'>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -21,7 +21,7 @@ function display_account_form($UTYPE,$A,$U="",$T="",$S="",
|
||||||
|
|
||||||
global $SUPPORTED_LANGS;
|
global $SUPPORTED_LANGS;
|
||||||
|
|
||||||
print "<form action='/account.php' method='post'>\n";
|
print "<form action='account.php' method='post'>\n";
|
||||||
print "<input type='hidden' name='Action' value='".$A."'>\n";
|
print "<input type='hidden' name='Action' value='".$A."'>\n";
|
||||||
if ($UID) {
|
if ($UID) {
|
||||||
print "<input type='hidden' name='ID' value='".$UID."'>\n";
|
print "<input type='hidden' name='ID' value='".$UID."'>\n";
|
||||||
|
@ -491,7 +491,7 @@ function search_results_page($UTYPE,$O=0,$SB="",$U="",$T="",
|
||||||
#
|
#
|
||||||
print " </span></td>";
|
print " </span></td>";
|
||||||
} else {
|
} else {
|
||||||
$edit_url = "/account.php?Action=DisplayAccount&ID=".$row["ID"];
|
$edit_url = "account.php?Action=DisplayAccount&ID=".$row["ID"];
|
||||||
print "<a href='".$edit_url . "'>";
|
print "<a href='".$edit_url . "'>";
|
||||||
print "Edit</a></span></td>";
|
print "Edit</a></span></td>";
|
||||||
}
|
}
|
||||||
|
@ -503,7 +503,7 @@ function search_results_page($UTYPE,$O=0,$SB="",$U="",$T="",
|
||||||
|
|
||||||
print "<tr>";
|
print "<tr>";
|
||||||
print "<td align='left'>";
|
print "<td align='left'>";
|
||||||
print "<form action='/account.php' method='post'>\n";
|
print "<form action='account.php' method='post'>\n";
|
||||||
print "<input type='hidden' name='Action' value='SearchAccounts'>\n";
|
print "<input type='hidden' name='Action' value='SearchAccounts'>\n";
|
||||||
print "<input type='hidden' name='O'";
|
print "<input type='hidden' name='O'";
|
||||||
print " value='".($OFFSET-$HITS_PER_PAGE)."'>\n";
|
print " value='".($OFFSET-$HITS_PER_PAGE)."'>\n";
|
||||||
|
@ -517,7 +517,7 @@ function search_results_page($UTYPE,$O=0,$SB="",$U="",$T="",
|
||||||
print "</form>\n";
|
print "</form>\n";
|
||||||
print "</td>";
|
print "</td>";
|
||||||
print "<td align='right'>";
|
print "<td align='right'>";
|
||||||
print "<form action='/account.php' method='post'>\n";
|
print "<form action='account.php' method='post'>\n";
|
||||||
print "<input type='hidden' name='Action' value='SearchAccounts'>\n";
|
print "<input type='hidden' name='Action' value='SearchAccounts'>\n";
|
||||||
print "<input type='hidden' name='O'";
|
print "<input type='hidden' name='O'";
|
||||||
print " value='".($OFFSET+$HITS_PER_PAGE)."'>\n";
|
print " value='".($OFFSET+$HITS_PER_PAGE)."'>\n";
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<form action='/packages.php' method='get'>
|
<form action='packages.php' method='get'>
|
||||||
<input type='hidden' name='O' value='0'>
|
<input type='hidden' name='O' value='0'>
|
||||||
|
|
||||||
<center>
|
<center>
|
||||||
|
|
Loading…
Add table
Reference in a new issue