[geeklog-cvs] Geeklog-1.x/public_html/staticpages index.php, 1.45, 1.46
Dirk Haun
dhaun at qs1489.pair.com
Sat Dec 29 10:28:14 EST 2007
Update of /cvsroot/geeklog/Geeklog-1.x/public_html/staticpages
In directory qs1489.pair.com:/tmp/cvs-serv41724/public_html/staticpages
Modified Files:
index.php
Log Message:
Fixed variable usage and initialisation
Index: index.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/staticpages/index.php,v
retrieving revision 1.45
retrieving revision 1.46
diff -C2 -d -r1.45 -r1.46
*** index.php 9 Aug 2007 08:03:04 -0000 1.45
--- index.php 29 Dec 2007 15:28:12 -0000 1.46
***************
*** 3,11 ****
/* Reminder: always indent with 4 spaces (no tabs). */
// +---------------------------------------------------------------------------+
! // | Static Page Geeklog Plugin 1.4.4 |
// +---------------------------------------------------------------------------+
// | index.php |
// | |
! // | This is the main page for the Geeklog Static Page Plugin |
// +---------------------------------------------------------------------------+
// | Copyright (C) 2000-2007 by the following authors: |
--- 3,11 ----
/* Reminder: always indent with 4 spaces (no tabs). */
// +---------------------------------------------------------------------------+
! // | Geeklog Static Pages Plugin 1.5 |
// +---------------------------------------------------------------------------+
// | index.php |
// | |
! // | This is the main page for the Geeklog Static Pages Plugin |
// +---------------------------------------------------------------------------+
// | Copyright (C) 2000-2007 by the following authors: |
***************
*** 43,57 ****
// from comments display refresh:
! if (isset ($_POST['order'])) {
! $comment_order = COM_applyFilter ($_POST['order']);
! $comment_mode = COM_applyFilter ($_POST['mode']);
$page = COM_applyFilter($_POST['id']);
! if ((strcasecmp ($order, 'ASC') != 0) && (strcasecmp ($order, 'DESC') != 0)) {
! $order = '';
}
}
! if ($mode != 'print') {
! $mode = '';
}
--- 43,61 ----
// from comments display refresh:
! if (isset($_POST['order'])) {
! $comment_order = COM_applyFilter($_POST['order']);
! $comment_mode = COM_applyFilter($_POST['mode']);
$page = COM_applyFilter($_POST['id']);
! if ((strcasecmp($comment_order, 'ASC') != 0) &&
! (strcasecmp($comment_order, 'DESC') != 0)) {
! $comment_order = '';
}
+ } else {
+ $comment_order = '';
+ $comment_mode = '';
}
! if ($display_mode != 'print') {
! $display_mode = '';
}
More information about the geeklog-cvs
mailing list