|
From: Benjamin C. <bc...@us...> - 2002-05-08 01:10:03
|
Update of /cvsroot/phpbt/phpbt/templates/default
In directory usw-pr-cvs1:/tmp/cvs-serv23782/default
Modified Files:
bugattachmentform.html bugdisplay-printable.html
bugdisplay.html bughistory.html bugvotes.html install.html
newaccount.html queryform-simple.html queryform.html
report.html user.html
Log Message:
Fixes bug #553239 - Use PHP_SELF instead of SCRIPT_NAME
Index: bugattachmentform.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/bugattachmentform.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- bugattachmentform.html 11 Apr 2002 15:49:58 -0000 1.5
+++ bugattachmentform.html 8 May 2002 01:10:00 -0000 1.6
@@ -2,8 +2,8 @@
{include file="header-popup.html" page_title="Add Attachment"}
{else}
{include file="header.html" page_title="Add Attachment"}
-{/if}
-<form enctype="multipart/form-data" action="{$SCRIPT_NAME}" method="post">
+{/if}
+<form enctype="multipart/form-data" action="{$smarty.server.PHP_SELF}" method="post">
<input type="hidden" name="bugid" value="{$bugid}">
<input type="hidden" name="use_js" value="{$smarty.request.use_js}">
<table border="0" align="center">
@@ -48,4 +48,4 @@
{include file="admin/footer-popup.html"}
{else}
{include file="admin/footer.html"}
-{/if}
+{/if}
Index: bugdisplay-printable.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/bugdisplay-printable.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- bugdisplay-printable.html 6 Apr 2002 23:47:59 -0000 1.5
+++ bugdisplay-printable.html 8 May 2002 01:10:00 -0000 1.6
@@ -129,8 +129,7 @@
{/section}
</table>
<br>
-<a href="{$SCRIPT_NAME}?op=show&bugid={$bug_id}">Back to bug #{$bug_id}</a>
+<a href="{$smarty.server.PHP_SELF}?op=show&bugid={$bug_id}">Back to bug #{$bug_id}</a>
<br>
<br>
-
{include file="footer.html"}
Index: bugdisplay.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/bugdisplay.html,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- bugdisplay.html 8 May 2002 00:46:06 -0000 1.29
+++ bugdisplay.html 8 May 2002 01:10:00 -0000 1.30
@@ -219,10 +219,10 @@
</form>
<div align="center">
{if !empty($error.vote)}<div class="error">{$error.vote}</div>{/if}
-<b><a href="{$SCRIPT_NAME}?op=vote&bugid={$bug_id}" onClick="if ({$already_voted}) {literal}{ alert ('{/literal}{$STRING.already_voted}{literal}'); return false; }{/literal}">Vote for this bug</a></b> |
-<b><a href="{$SCRIPT_NAME}?op=viewvotes&bugid={$bug_id}">View votes ({$num_votes}) for this bug</a></b> |
-<b><a href="{$SCRIPT_NAME}?op=history&bugid={$bug_id}">View bug activity</a></b> |
-<b><a href="{$SCRIPT_NAME}?op=print&bugid={$bug_id}">Printable view</a></b>
+<b><a href="{$smarty.server.PHP_SELF}?op=vote&bugid={$bug_id}" onClick="if ({$already_voted}) {literal}{ alert ('{/literal}{$STRING.already_voted}{literal}'); return false; }{/literal}">Vote for this bug</a></b> |
+<b><a href="{$smarty.server.PHP_SELF}?op=viewvotes&bugid={$bug_id}">View votes ({$num_votes}) for this bug</a></b> |
+<b><a href="{$smarty.server.PHP_SELF}?op=history&bugid={$bug_id}">View bug activity</a></b> |
+<b><a href="{$smarty.server.PHP_SELF}?op=print&bugid={$bug_id}">Printable view</a></b>
</div>
<br>
<br>
Index: bughistory.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/bughistory.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- bughistory.html 3 Apr 2002 00:57:51 -0000 1.2
+++ bughistory.html 8 May 2002 01:10:00 -0000 1.3
@@ -22,7 +22,7 @@
{/section}
</table>
<br>
-<a href="{$SCRIPT_NAME}?op=show&bugid={$smarty.get.bugid}">Back to bug #{$smarty.get.bugid}</a>
+<a href="{$smarty.server.PHP_SELF}?op=show&bugid={$smarty.get.bugid}">Back to bug #{$smarty.get.bugid}</a>
<br>
<br>
{include file="footer.html"}
Index: bugvotes.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/bugvotes.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- bugvotes.html 3 Apr 2002 00:57:51 -0000 1.2
+++ bugvotes.html 8 May 2002 01:10:00 -0000 1.3
@@ -16,7 +16,7 @@
{/section}
</table>
<br>
-<a href="{$SCRIPT_NAME}?op=show&bugid={$smarty.get.bugid}">Back to bug #{$smarty.get.bugid}</a>
+<a href="{$smarty.server.PHP_SELF}?op=show&bugid={$smarty.get.bugid}">Back to bug #{$smarty.get.bugid}</a>
<br>
<br>
{include file="footer.html"}
Index: install.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/install.html,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- install.html 11 Apr 2002 20:29:34 -0000 1.6
+++ install.html 8 May 2002 01:10:00 -0000 1.7
@@ -3,7 +3,7 @@
<link rel="StyleSheet" href="styles/default.css" type="text/css">
</head>
<body bgcolor="#ffffff" link="#006699" vlink="#006699" alink="#006699">
-<form action="{$SCRIPT_NAME}" method="post">
+<form action="{$smarty.server.PHP_SELF}" method="post">
<table border="0" cellpadding="0" cellspacing="0" width="640">
<tr>
<td width="200" valign="top"><br><img src="logo.jpg"></td>
Index: newaccount.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/newaccount.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- newaccount.html 3 Apr 2002 18:54:08 -0000 1.4
+++ newaccount.html 8 May 2002 01:10:00 -0000 1.5
@@ -1,6 +1,6 @@
{include file="header.html" page_title="Create a New Account"}
<h2>Create a new account</h2>
-<form action="{$SCRIPT_NAME}" method="post">
+<form action="{$smarty.server.PHP_SELF}" method="post">
<input type="hidden" name="createaccount" value="1">
<table border="0">
{if $error}
Index: queryform-simple.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/queryform-simple.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- queryform-simple.html 3 Apr 2002 00:57:51 -0000 1.2
+++ queryform-simple.html 8 May 2002 01:10:00 -0000 1.3
@@ -87,6 +87,6 @@
<input type="submit" value="Submit query">
</form>
<br>
- Go to the <a href="{$SCRIPT_NAME}?op=query&form=advanced">advanced query page</a>
+ Go to the <a href="{$smarty.server.PHP_SELF}?op=query&form=advanced">advanced query page</a>
{include file="footer.html"}
Index: queryform.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/queryform.html,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- queryform.html 3 Apr 2002 00:57:51 -0000 1.8
+++ queryform.html 8 May 2002 01:10:00 -0000 1.9
@@ -224,12 +224,12 @@
<b>Saved Queries</b>
<br>
{section name=query loop=$queries}
- <a href="{$SCRIPT_NAME}?{$queries[query].saved_query_string}">{$queries[query].saved_query_name}</a> (<a href="{$SCRIPT_NAME}?op=delquery&queryid={$queries[query].saved_query_id}" onClick="return confirm('Are you sure you want to delete this saved query?');">Delete</a>)<br>
+ <a href="{$smarty.server.PHP_SELF}?{$queries[query].saved_query_string}">{$queries[query].saved_query_name}</a> (<a href="{$smarty.server.PHP_SELF}?op=delquery&queryid={$queries[query].saved_query_id}" onClick="return confirm('Are you sure you want to delete this saved query?');">Delete</a>)<br>
{/section}
{/if}
</form>
<br>
- Go to the <a href="{$SCRIPT_NAME}?op=query">simple query page</a>
+ Go to the <a href="{$smarty.server.PHP_SELF}?op=query">simple query page</a>
{include file="footer.html"}
Index: report.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/report.html,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- report.html 3 Apr 2002 00:57:51 -0000 1.6
+++ report.html 8 May 2002 01:10:00 -0000 1.7
@@ -1,7 +1,7 @@
{include file="header.html" page_title="Home"}
-<form action="{$SCRIPT_NAME}">
+<form action="{$smarty.server.PHP_SELF}">
Bug statistics for
-<select name="projectid" onChange="document.location.href='{$SCRIPT_NAME}?projectid='+this.options[this.selectedIndex].value">
+<select name="projectid" onChange="document.location.href='{$smarty.server.PHP_SELF}?projectid='+this.options[this.selectedIndex].value">
<option value="0">All projects</option>
{build_select box=project selected=$smarty.get.projectid}
</select>
Index: user.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/user.html,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- user.html 3 Apr 2002 19:01:04 -0000 1.6
+++ user.html 8 May 2002 01:10:00 -0000 1.7
@@ -1,7 +1,7 @@
{include file="header.html" page_title="User Page"}
<table border="0" cellpadding="0" cellspacing="0" width="600">
<td width="300" valign="top">
- <form action="{$SCRIPT_NAME}" method="post">
+ <form action="{$smarty.server.PHP_SELF}" method="post">
<input type="hidden" name="do" value="changepassword">
<table border="0" cellpadding="0" cellspacing="0" width="300">
<tr>
@@ -34,7 +34,7 @@
</form>
</td>
<td width="300" valign="top">
- <form action="{$SCRIPT_NAME}" method="post">
+ <form action="{$smarty.server.PHP_SELF}" method="post">
<input type="hidden" name="do" value="changeprefs">
<table border="0" cellpadding="0" cellspacing="0" width="300">
<tr>
@@ -61,7 +61,7 @@
</td>
</table>
<br>
-<form action="{$SCRIPT_NAME}" method="post">
+<form action="{$smarty.server.PHP_SELF}" method="post">
<input type="hidden" name="do" value="changecolumnlist">
<table border="0" cellpadding="0" cellspacing="0" width="300">
<td width="300">
@@ -102,7 +102,7 @@
<tr{if $smarty.section.vote.iteration is even} class="alt"{/if}>
<td align="center"><a href="bug.php?op=show&bugid={$votes[vote].bug_id}">#{$votes[vote].bug_id}</a></td>
<td align="center">{$votes[vote].created_date|date:DATE_FORMAT}</td>
- <td align="center"><a href="{$SCRIPT_NAME}?op=delvote&bugid={$votes[vote].bug_id}" onClick="return confirm('Are you sure you want to delete this vote?');">Delete</a></td>
+ <td align="center"><a href="{$smarty.server.PHP_SELF}?op=delvote&bugid={$votes[vote].bug_id}" onClick="return confirm('Are you sure you want to delete this vote?');">Delete</a></td>
</tr>
{/section}
</table>
|