cvs: phpdoc /scripts/rtlpatch HtmlExtParser.class.php rtlpatch.php
| From: | Moshe Doron | Date: | Mon, 26 May 2003 09:44:28 +0000 |
| Subject: | cvs: phpdoc /scripts/rtlpatch HtmlExtParser.class.php rtlpatch.php | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969353916@lists.php.net to get a copy of this message | ||
momo Mon May 26 05:44:28 2003 EDT
Modified files:
/phpdoc/scripts/rtlpatch HtmlExtParser.class.php rtlpatch.php
Log:
support for phpweb
Index: phpdoc/scripts/rtlpatch/HtmlExtParser.class.php
diff -u phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.2
phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.3
--- phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.2 Sun May 25 05:31:52 2003
+++ phpdoc/scripts/rtlpatch/HtmlExtParser.class.php Mon May 26 05:44:27 2003
@@ -16,7 +16,7 @@
| Authors: Moshe Doron <momo@php.net> |
+----------------------------------------------------------------------+
- $Id: HtmlExtParser.class.php,v 1.2 2003/05/25 09:31:52 momo Exp $
+ $Id: HtmlExtParser.class.php,v 1.3 2003/05/26 09:44:27 momo Exp $
*/
class CHtmlExtParse extends CHtmlParse{
@@ -96,7 +96,7 @@
for($a=1;$a<$cnt;$a++){
$tg = array_shift($this->ATE[$a]);
if($tg<0) continue;
- if($tg>4) {
+ if($tg>9) {
$tag = $EHType[$tg];
$ret[$a] .= "<$tag";
foreach ($this->ATE[$a] as $key=>$value){
@@ -105,7 +105,9 @@
$ret[$a].=">";
if($this->ECE[$a]!=$a) $ret[$this->ECE[$a]] .= " </$tag>";
- } else {
+ } else if($tg == __HTML_PROCESS__){
+ $ret[$a].="<".$this->ATE[$a]["data"]. "\n?>";
+ } else if($tg < __HTML_UNKNOWN__){
$ret[$a].=$this->ATE[$a]["data"];
}
//mysyslog($ret[$a]);
Index: phpdoc/scripts/rtlpatch/rtlpatch.php
diff -u phpdoc/scripts/rtlpatch/rtlpatch.php:1.3 phpdoc/scripts/rtlpatch/rtlpatch.php:1.4
--- phpdoc/scripts/rtlpatch/rtlpatch.php:1.3 Sun May 25 05:31:52 2003
+++ phpdoc/scripts/rtlpatch/rtlpatch.php Mon May 26 05:44:27 2003
@@ -16,7 +16,7 @@
| Authors: Moshe Doron <momo@php.net> |
+----------------------------------------------------------------------+
- $Id: rtlpatch.php,v 1.3 2003/05/25 09:31:52 momo Exp $
+ $Id: rtlpatch.php,v 1.4 2003/05/26 09:44:27 momo Exp $
*/
/*
@@ -61,7 +61,7 @@
// ------------------- Functions: -----------------
function loopfiles($dirName){
- $qudir=array();
+ $qudir=$qufile=array();
if(!($d = @dir($dirName))){
mysyslog("Die: $dirName doesn't exists or have no read permission!\n");
exit;
@@ -72,7 +72,7 @@
if (is_dir($dirName."/".$entry)) {
$qudir[] = $entry;
}else{
- if(eregi(".html",$entry)) {
+ if(eregi(".html",$entry)||eregi(".php",$entry)) {
$qufile[] = $dirName."/".$entry;
}
}