Commit ae1c424c authored by Loui Chang's avatar Loui Chang Committed by Callan Barrett
Browse files

Really make all web paths relative.



I forgot about the forms.

Signed-off-by: default avatarLoui Chang <louipc.ist@gmail.com>
Signed-off-by: default avatarCallan Barrett <wizzomafizzo@gmail.com>
parent b56dfc31
......@@ -8,7 +8,6 @@ include_lang("pkgedit_po.inc"); # i18n translations for this script
set_lang(); # this sets up the visitor's language
check_sid(); # see if they're still logged in
html_header(); # print out the HTML header
$svn_idstr = "\$Id$";
# Make sure this visitor is logged in
#
......@@ -102,7 +101,7 @@ if ($_REQUEST["add_Comment"]) {
# Prompt visitor for comment
#
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='ID' value=\"".$_REQUEST["ID"]."\">\n";
print __("Enter your comment below.")."<br />&nbsp;<br />\n";
......@@ -143,7 +142,7 @@ if ($_REQUEST["change_Category"]) {
if ($result != NULL) {
$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='ID' value=\"".$_REQUEST["ID"]."\">\n";
print __("Select new category").":&nbsp;\n";
......@@ -170,4 +169,3 @@ print __("You've found a bug if you see this....")."<br />\n";
html_footer(AUR_VERSION);
?>
......@@ -415,7 +415,7 @@ html_header("Submit");
$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' />
<table border='0' cellspacing='5'>
<tr>
......
......@@ -21,7 +21,7 @@ function display_account_form($UTYPE,$A,$U="",$T="",$S="",
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";
if ($UID) {
print "<input type='hidden' name='ID' value='".$UID."'>\n";
......@@ -491,7 +491,7 @@ function search_results_page($UTYPE,$O=0,$SB="",$U="",$T="",
#
print "&nbsp;</span></td>";
} 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 "Edit</a></span></td>";
}
......@@ -503,7 +503,7 @@ function search_results_page($UTYPE,$O=0,$SB="",$U="",$T="",
print "<tr>";
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='O'";
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 "</td>";
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='O'";
print " value='".($OFFSET+$HITS_PER_PAGE)."'>\n";
......
<form action='/packages.php' method='get'>
<form action='packages.php' method='get'>
<input type='hidden' name='O' value='0'>
<center>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment