[geeklog-cvs] geeklog-1.3/public_html article.php,1.47,1.48
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Sun Jul 11 15:17:50 EDT 2004
Update of /var/cvs/geeklog-1.3/public_html
In directory www:/tmp/cvs-serv23081
Modified Files:
article.php
Log Message:
Fixed comment handling (which I f*cked up yesterday ...)
Index: article.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/article.php,v
retrieving revision 1.47
retrieving revision 1.48
diff -C2 -d -r1.47 -r1.48
*** article.php 10 Jul 2004 18:50:04 -0000 1.47
--- article.php 11 Jul 2004 19:17:48 -0000 1.48
***************
*** 55,73 ****
// MAIN
! COM_setArgNames (array ('story', 'mode'));
! $story = COM_applyFilter (COM_getArgument ('story'));
if (empty ($story)) {
echo COM_refresh ($_CONF['site_url'] . '/index.php');
exit();
}
- $mode = COM_applyFilter (COM_getArgument ('mode'));
- if ($mode != 'print') {
- $mode = '';
- }
- if (!empty ($HTTP_GET_VARS['order'])) {
- $order = COM_applyFilter ($HTTP_GET_VARS['order']);
- } else {
- $order = COM_applyFilter ($HTTP_POST_VARS['order']);
- }
if ((strcasecmp ($order, 'ASC') != 0) && (strcasecmp ($order, 'DESC') != 0)) {
$order = '';
--- 55,72 ----
// MAIN
! if (isset ($HTTP_POST_VARS['mode'])) {
! $story = COM_applyFilter ($HTTP_POST_VARS['story']);
! $mode = COM_applyFilter ($HTTP_POST_VARS['mode']);
! $order = COM_applyFilter ($HTTP_POST_VARS['order']);
! } else {
! COM_setArgNames (array ('story', 'mode'));
! $story = COM_applyFilter (COM_getArgument ('story'));
! $mode = COM_applyFilter (COM_getArgument ('mode'));
! $order = COM_applyFilter ($HTTP_GET_VARS['order']);
! }
if (empty ($story)) {
echo COM_refresh ($_CONF['site_url'] . '/index.php');
exit();
}
if ((strcasecmp ($order, 'ASC') != 0) && (strcasecmp ($order, 'DESC') != 0)) {
$order = '';
More information about the geeklog-cvs
mailing list