diff options
author | Loui Chang <louipc.ist@gmail.com> | 2008-12-21 12:26:46 -0500 |
---|---|---|
committer | Callan Barrett <wizzomafizzo@gmail.com> | 2008-12-22 13:19:56 +0900 |
commit | ae1c424c95f7912351f776096205e2a7b0b8952c (patch) | |
tree | 8102a866330813c80bf4a9e000b292fb45b94fba | |
parent | b56dfc3138816a521f48b73a35f7e49f21afaae4 (diff) | |
download | aurweb-ae1c424c95f7912351f776096205e2a7b0b8952c.tar.xz |
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>
-rw-r--r-- | web/html/pkgedit.php | 6 | ||||
-rw-r--r-- | web/html/pkgsubmit.php | 2 | ||||
-rw-r--r-- | web/lib/acctfuncs.inc | 8 | ||||
-rw-r--r-- | web/template/pkg_search_form.php | 2 |
4 files changed, 8 insertions, 10 deletions
diff --git a/web/html/pkgedit.php b/web/html/pkgedit.php index ff82663..2296470 100644 --- a/web/html/pkgedit.php +++ b/web/html/pkgedit.php @@ -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 /> <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").": \n"; @@ -170,4 +169,3 @@ print __("You've found a bug if you see this....")."<br />\n"; html_footer(AUR_VERSION); -?> diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index a3949ed..257e3b5 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -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> diff --git a/web/lib/acctfuncs.inc b/web/lib/acctfuncs.inc index 959ae4a..1ee2d9e 100644 --- a/web/lib/acctfuncs.inc +++ b/web/lib/acctfuncs.inc @@ -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 " </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"; diff --git a/web/template/pkg_search_form.php b/web/template/pkg_search_form.php index 5478cdb..f74e736 100644 --- a/web/template/pkg_search_form.php +++ b/web/template/pkg_search_form.php @@ -1,4 +1,4 @@ -<form action='/packages.php' method='get'> +<form action='packages.php' method='get'> <input type='hidden' name='O' value='0'> <center> |