[geeklog-cvs] geeklog-1.3/plugins/staticpages functions.inc,1.26,1.27

dhaun at geeklog.net dhaun at geeklog.net
Fri Jan 2 17:09:01 EST 2004


Update of /usr/cvs/geeklog/geeklog-1.3/plugins/staticpages
In directory geeklog_prod:/tmp/cvs-serv11330/staticpages

Modified Files:
	functions.inc 
Log Message:
Implemented option to have "plain" PHP in Static Pages, i.e. without the need for a 'return' statement.


Index: functions.inc
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/plugins/staticpages/functions.inc,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** functions.inc	7 Sep 2003 20:50:43 -0000	1.26
--- functions.inc	2 Jan 2004 22:08:59 -0000	1.27
***************
*** 410,413 ****
--- 410,418 ----
              if ($spresult['sp_php'] == 1) {
                  $retval .= eval (stripslashes ($spresult['sp_content']));
+             } else if ($spresult['sp_php'] == 2) {
+                 ob_start ();
+                 eval (stripslashes ($spresult['sp_content']));
+                 $retval .= ob_get_contents ();
+                 ob_end_clean ();
              } else {
                  $retval .= stripslashes ($spresult['sp_content']);





More information about the geeklog-cvs mailing list