[geeklog-cvs] geeklog-1.3/public_html/admin/plugins/staticpages index.php,1.33,1.34
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Sun Jul 11 15:07:32 EDT 2004
Update of /var/cvs/geeklog-1.3/public_html/admin/plugins/staticpages
In directory www:/tmp/cvs-serv22696
Modified Files:
index.php
Log Message:
Minor change that may (or may not) help with bug #173 ...
Index: index.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/admin/plugins/staticpages/index.php,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** index.php 23 Mar 2004 19:56:07 -0000 1.33
--- index.php 11 Jul 2004 19:07:29 -0000 1.34
***************
*** 559,570 ****
// MAIN
! if (empty($mode) OR empty($sp_id)) {
! COM_setArgNames(array('mode','sp_id'));
! $mode = COM_getArgument('mode');
! $sp_id = COM_getArgument('sp_id');
}
if (($mode == $LANG_STATIC['delete']) && !empty ($LANG_STATIC['delete'])) {
- $sp_id = COM_applyFilter ($HTTP_POST_VARS['sp_id']);
if (empty ($sp_id) || (is_numeric ($sp_id) && ($sp_id == 0))) {
COM_errorLog ('Attempted to delete static page sp_id=' . $sp_id);
--- 559,572 ----
// MAIN
! if (isset ($HTTP_POST_VARS['mode'])) {
! $mode = COM_applyFilter ($HTTP_POST_VARS['mode']);
! $sp_id = COM_applyFilter ($HTTP_POST_VARS['sp_id']);
! } else {
! COM_setArgNames (array ('mode', 'sp_id'));
! $mode = COM_applyFilter (COM_getArgument ('mode'));
! $sp_id = COM_applyFilter (COM_getArgument ('sp_id'));
}
if (($mode == $LANG_STATIC['delete']) && !empty ($LANG_STATIC['delete'])) {
if (empty ($sp_id) || (is_numeric ($sp_id) && ($sp_id == 0))) {
COM_errorLog ('Attempted to delete static page sp_id=' . $sp_id);
***************
*** 574,583 ****
}
} else if ($mode == 'edit') {
- $sp_id = COM_applyFilter ($sp_id);
$display .= COM_siteHeader ('menu');
$display .= staticpageeditor ($sp_id, $mode);
$display .= COM_siteFooter ();
} else if ($mode == 'clone') {
- $sp_id = COM_applyFilter ($sp_id);
if (!empty ($sp_id)) {
$display .= COM_siteHeader('menu');
--- 576,583 ----
***************
*** 588,592 ****
}
} else if (($mode == $LANG_STATIC['save']) && !empty ($LANG_STATIC['save'])) {
- $sp_id = COM_applyFilter ($HTTP_POST_VARS['sp_id']);
if (!empty ($sp_id)) {
submitstaticpage ($sp_id, $sp_uid, $sp_title, $sp_content, $unixdate,
--- 588,591 ----
More information about the geeklog-cvs
mailing list