[geeklog-cvs] geeklog: Updated article.php to use a page number from $_GET or ...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Fri Apr 17 01:42:27 EDT 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/be9bbaaa4bf8
changeset: 6950:be9bbaaa4bf8
user: vinny
date: Thu Apr 16 23:39:31 2009 -0600
description:
Updated article.php to use a page number from $_GET or $_POST instead of assuming register globals.
diffstat:
1 file changed, 7 insertions(+)
public_html/article.php | 7 +++++++
diffs (31 lines):
diff -r c55adbf4e2d4 -r be9bbaaa4bf8 public_html/article.php
--- a/public_html/article.php Thu Apr 16 19:43:08 2009 +0100
+++ b/public_html/article.php Thu Apr 16 23:39:31 2009 -0600
@@ -64,6 +64,7 @@
$order = '';
$query = '';
$reply = '';
+$page = 0;
if (isset ($_POST['mode'])) {
$sid = COM_applyFilter ($_POST['story']);
$mode = COM_applyFilter ($_POST['mode']);
@@ -75,6 +76,9 @@
}
if (isset ($_POST['reply'])) {
$reply = COM_applyFilter ($_POST['reply']);
+ }
+ if (isset ($_POST['page'])) {
+ $page = COM_applyFilter ($_REQUEST['page'], true);
}
} else {
COM_setArgNames (array ('story', 'mode'));
@@ -88,6 +92,9 @@
}
if (isset ($_GET['reply'])) {
$reply = COM_applyFilter ($_GET['reply']);
+ }
+ if (isset ($_GET['page'])) {
+ $page = COM_applyFilter ($_REQUEST['page'], true);
}
}
More information about the geeklog-cvs
mailing list