Revision: 1301
http://mrbs.svn.sourceforge.net/mrbs/?rev=1301&view=rev
Author: cimorrison
Date: 2010-02-22 11:42:44 +0000 (Mon, 22 Feb 2010)
Log Message:
-----------
More minor tidying of the code. No functional change to MRBS.
Modified Paths:
--------------
mrbs/trunk/web/edit_entry.php
Modified: mrbs/trunk/web/edit_entry.php
===================================================================
--- mrbs/trunk/web/edit_entry.php 2010-02-21 23:34:58 UTC (rev 1300)
+++ mrbs/trunk/web/edit_entry.php 2010-02-22 11:42:44 UTC (rev 1301)
@@ -45,6 +45,16 @@
$edit_type = "";
}
+// We might be going through edit_entry more than once, for example if we have
to log on on the way. We
+// still need to preserve the original calling page so that once we've
completed edit_entry_handler we can
+// go back to the page we started at (rather than going to the default view).
If this is the first time
+// through, then $HTTP_REFERER holds the original caller. If this is the
second time through we will have
+// stored it in $returl.
+if (!isset($returl))
+{
+ $returl = isset($HTTP_REFERER) ? $HTTP_REFERER : "";
+}
+
if (!getAuthorised(1))
{
showAccessDenied($day, $month, $year, $area, isset($room) ? $room : "");
@@ -852,15 +862,6 @@
echo "</fieldset>\n";
}
- // We might be going through edit_entry more than once, for example if we
have to log on on the way. We
- // still need to preserve the original calling page so that once we've
completed edit_entry_handler we can
- // go back to the page we started at (rather than going to the default
view). If this is the first time
- // through, then $HTTP_REFERER holds the original caller. If this is
the second time through we will have
- // stored it in $returl.
- if (!isset($returl))
- {
- $returl = isset($HTTP_REFERER) ? $HTTP_REFERER : "";
- }
?>
<input type="hidden" name="returl" value="<?php echo
htmlspecialchars($returl) ?>">
<input type="hidden" name="create_by" value="<?php echo $create_by?>">
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits