[geeklog-cvs] geeklog-1.3/public_html/staticpages index.php,1.15,1.16

dhaun at geeklog.net dhaun at geeklog.net
Wed Jan 21 14:13:36 EST 2004


Update of /usr/cvs/geeklog/geeklog-1.3/public_html/staticpages
In directory geeklog_prod:/tmp/cvs-serv23632/public_html/staticpages

Modified Files:
	index.php 
Log Message:
When execution of PHP code is not allowed, don't display static pages marked as containing PHP code - display a deny message instead and log it in error.log.


Index: index.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/staticpages/index.php,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** index.php	14 Jan 2004 18:05:42 -0000	1.15
--- index.php	21 Jan 2004 19:13:34 -0000	1.16
***************
*** 89,93 ****
          }
      } else {
!         $retval .= stripslashes ($A['sp_content']);
      }
      if ($A['sp_format'] <> 'blankpage') {
--- 89,98 ----
          }
      } else {
!         if ($A['sp_php'] != 0) {
!             COM_errorLog ("PHP in static pages is disabled. Can not display page '$page'.", 1);
!             $retval .= $LANG_STATIC['deny_msg'];
!         } else {
!             $retval .= stripslashes ($A['sp_content']);
!         }
      }
      if ($A['sp_format'] <> 'blankpage') {





More information about the geeklog-cvs mailing list