|
From: Jon O. <jon...@us...> - 2006-09-17 21:03:42
|
Update of /cvsroot/mxbb/mx_simpledoc/simpledoc/modules In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv19144/modules/mx_simpledoc/simpledoc/modules Modified Files: simpledoc__tab-view-content.php simpledoc__tab-view-publish.php Log Message: further fixes Index: simpledoc__tab-view-publish.php =================================================================== RCS file: /cvsroot/mxbb/mx_simpledoc/simpledoc/modules/simpledoc__tab-view-publish.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** simpledoc__tab-view-publish.php 17 Sep 2006 20:15:57 -0000 1.4 --- simpledoc__tab-view-publish.php 17 Sep 2006 21:03:38 -0000 1.5 *************** *** 103,107 **** $html = IoFile::read($path); ! $html = mx_decode($html,''); $search = array ( --- 103,107 ---- $html = IoFile::read($path); ! //$html = mx_decode($html,''); $search = array ( *************** *** 145,147 **** <?php echo '<div id="parentTOC"></div>' ?> ! <?php echo mx_decode($html,''); ?> --- 145,147 ---- <?php echo '<div id="parentTOC"></div>' ?> ! <?php echo $html; ?> Index: simpledoc__tab-view-content.php =================================================================== RCS file: /cvsroot/mxbb/mx_simpledoc/simpledoc/modules/simpledoc__tab-view-content.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** simpledoc__tab-view-content.php 17 Sep 2006 20:15:57 -0000 1.4 --- simpledoc__tab-view-content.php 17 Sep 2006 21:03:37 -0000 1.5 *************** *** 103,106 **** --- 103,130 ---- $html = IoFile::read($path); + //$html = mx_decode($html,''); + + $search = array ( + "'<script[^>]*?>.*?</script>'si", // Strip out javascript + "'<head[^>]*?>.*?</head>'si", // Strip out javascript + //"'([\r\n])[\s]+'", // Strip out white space + "'<br />'i", + "'<html>'i", + "'</html>'i", + "'<body>'i", + "'</body>'i", + ); + $replace = array ( + "", + "", + //"\\1", + "", + "", + "", + "", + "", + ); + + $html = preg_replace( $search, $replace, $html ); // Date in the past *************** *** 120,122 **** ?> ! <?php echo mx_decode($html,''); ?> --- 144,146 ---- ?> ! <?php echo $html; ?> |