goba            Fri Nov 21 06:07:42 2003 EDT

  Added files:                 
    /phpdoc/scripts/quickref    test.html 

  Modified files:              
    /phpdoc/scripts/quickref    Makefile makefunclist.php originalafter.js 
                                prefixcompress.php processafter.php 
                                unusedcompress.php 
  Log:
  adding make clean, removing irrelevant make dependencies, adding license headers to 
PHP files, and tweaking the js code to be a bit more compact after compression
  
Index: phpdoc/scripts/quickref/Makefile
diff -u phpdoc/scripts/quickref/Makefile:1.2 phpdoc/scripts/quickref/Makefile:1.3
--- phpdoc/scripts/quickref/Makefile:1.2        Thu Nov 20 14:31:24 2003
+++ phpdoc/scripts/quickref/Makefile    Fri Nov 21 06:07:42 2003
@@ -15,5 +15,8 @@
 funclist.txt:
        php makefunclist.php
 
-funclist.zip: Makefile after.js before.js compkey.txt compressed.txt funclist.txt 
functions.js index.html makefunclist.php manual_en_contents.txt middle.js 
originalafter.js prefixcompress.php prefixcompressed.txt processafter.php readme.txt 
unusedcompress.php
-       zip funclist.zip Makefile after.js before.js compkey.txt compressed.txt 
funclist.txt functions.js index.html makefunclist.php manual_en_contents.txt middle.js 
originalafter.js prefixcompress.php prefixcompressed.txt processafter.php readme.txt 
unusedcompress.php
+funclist.zip: Makefile after.js before.js compkey.txt compressed.txt funclist.txt 
functions.js test.html makefunclist.php middle.js originalafter.js prefixcompress.php 
prefixcompressed.txt processafter.php readme.txt unusedcompress.php
+       zip funclist.zip Makefile after.js before.js compkey.txt compressed.txt 
funclist.txt functions.js test.html makefunclist.php middle.js originalafter.js 
prefixcompress.php prefixcompressed.txt processafter.php readme.txt unusedcompress.php
+
+clean:
+       rm funclist.txt prefixcompressed.txt compressed.txt functions.js after.js 
compkey.txt
Index: phpdoc/scripts/quickref/makefunclist.php
diff -u phpdoc/scripts/quickref/makefunclist.php:1.2 
phpdoc/scripts/quickref/makefunclist.php:1.3
--- phpdoc/scripts/quickref/makefunclist.php:1.2        Thu Nov 20 14:29:49 2003
+++ phpdoc/scripts/quickref/makefunclist.php    Fri Nov 21 06:07:42 2003
@@ -1,4 +1,24 @@
 <?php
+/*
+# +----------------------------------------------------------------------+
+# | PHP Version 4                                                        |
+# +----------------------------------------------------------------------+
+# | Copyright (c) 1997-2003 The PHP Group                                |
+# +----------------------------------------------------------------------+
+# | This source file is subject to version 2.02 of the PHP licence,      |
+# | that is bundled with this package in the file LICENCE and is         |
+# | avalible through the world wide web at                               |
+# | http://www.php.net/license/2_02.txt.                                 |
+# | If you did not receive a copy of the PHP license and are unable to   |
+# | obtain it through the world wide web, please send a note to          |
+# | [EMAIL PROTECTED] so we can mail you a copy immediately.               |
+# +----------------------------------------------------------------------+
+# | Authors:    Mitja Slenc <[EMAIL PROTECTED]>                              |
+# |             Gabor Hojtsy <[EMAIL PROTECTED]>                              |
+# +----------------------------------------------------------------------+
+# 
+# $Id: makefunclist.php,v 1.3 2003/11/21 11:07:42 goba Exp $
+*/
 
 $XML_REF_ROOT = "../../en/reference/";
 $FUNCTIONS    = array();
Index: phpdoc/scripts/quickref/originalafter.js
diff -u phpdoc/scripts/quickref/originalafter.js:1.1 
phpdoc/scripts/quickref/originalafter.js:1.2
--- phpdoc/scripts/quickref/originalafter.js:1.1        Thu Nov 20 14:03:51 2003
+++ phpdoc/scripts/quickref/originalafter.js    Fri Nov 21 06:07:42 2003
@@ -1,279 +1,277 @@
-';
+'; //'
 
-// CONFIGURATION
+// Initialisation --------------------------------------------------------------
 
-// how many matches to show at most, must be even
+// how many matches to show at most (must be even!)
 fh_showmatches=29;
 
-// END CONFIGURATION
-
 var _d=document;
 var isnotopera=true;
 
+fh_matches=new Array();
+fh_inmenu=fh_menupos=0;
+fh_matchesjoined="";
+fh_currenttext="";
+
+var f_p=_d.forms[0].pattern;
+var f_s=_d.forms[0].show;
+
+// Layer setup -----------------------------------------------------------------
+
 if (_d.all && (isnotopera=(navigator.userAgent.toLowerCase().indexOf("opera")==-1))) {
-       width="width:165px";
+    width="width:165px";
 } else {
-       isnotopera=true;
-       width="min-width:155px";
+    isnotopera=true;
+    width="min-width:155px";
 }
-_d.write("<div id=funchelper style=\"background-color: white; border: 1px solid 
black; top: 90px;"+width+"; padding: 4px; font-size: 9px; display:none; 
position:absolute;\"></div>");
+_d.write("<div id=\"funchelper\" style=\"background-color: white; border: 1px solid 
black; top: 90px;"+width+"; padding: 4px; font-size: 9px; display:none; 
position:absolute;\"></div>");
 
-// DECOMPRESSION
-dcp=dcp.split("}");for(a=0;a<dcp.length;a++){cpd=cpd.split(dcp[a].charAt(0)).join(dcp[a].substring(1,9));}
-function l(a) { return a[a.length-1]; }
+// Decompression ---------------------------------------------------------------
 
-fcl=new Array();pst=new Array("");ac="";
-for (pos=0;pos<cpd.length;pos++){switch(ch=cpd.charAt(pos)){case 
',':fcl.push(l(pst)+ac);ac="";break;
-case '(':pst.push(l(pst)+ac);ac="";break;case ')':case 
']':if(ac.length)fcl.push(l(pst)+ac);ac="";pst.pop();break;
-case '[':fcl.push(a=l(pst)+ac);pst.push(a);ac="";break;default:ac=ac+ch;}}
-// END DECOMPRESSION
+dcp=dcp.split("}");
+for(a=0; a<dcp.length; a++) {
+    cpd=cpd.split(dcp[a].charAt(0)).join(dcp[a].substring(1,9));
+}
+function l(a) { return a[a.length-1]; }
 
-function ElLeft(eE)
-{var DL_bIE=_d.all?true:false;var nLP=eE.offsetLeft;var ePE=eE.offsetParent;
-while(ePE!=null){if(DL_bIE){if(ePE.tagName=="TD")nLP+=ePE.clientLeft;}else{if(ePE.tagName=="TABLE"){
-var nPB=parseInt(ePE.border);if(isNaN(nPB)){var 
nPF=ePE.getAttribute('frame');if(nPF!=null)nLeftPos+=1;}else
-if(nPB>0)nLP+=nPB;}}nLP+=ePE.offsetLeft;ePE=ePE.offsetParent;}return nLP;}
+fcl=new Array(); pst=new Array(""); ac="";
+for (pos=0; pos<cpd.length; pos++) {
+    switch (ch=cpd.charAt(pos)) {
+        case ',': fcl.push(l(pst)+ac); ac=""; break;
+        case '(': pst.push(l(pst)+ac); ac=""; break;
+        case ')': case ']': if(ac.length)fcl.push(l(pst)+ac); ac=""; pst.pop(); break;
+        case '[': fcl.push(a=l(pst)+ac); pst.push(a); ac=""; break;
+        default: ac=ac+ch;
+    }
+}
 
-fh_matches=new Array();
-fh_inmenu=0;
-fh_menupos=0;
-fh_matchesjoined="";
-fh_currenttext="";
+// Functions -------------------------------------------------------------------
 
-var f_p=_d.forms[0].pattern;
-var f_s=_d.forms[0].show;
+function ElLeft(eE)
+{
+    var DL_bIE=_d.all?true:false;
+    var nLP=eE.offsetLeft;
+    var ePE=eE.offsetParent;
+    while (ePE!=null) {
+        if (DL_bIE) {
+            if (ePE.tagName=="TD") nLP+=ePE.clientLeft;
+        } else {
+            if (ePE.tagName=="TABLE") {
+                var nPB=parseInt(ePE.border);
+                if (isNaN(nPB)) {
+                    var nPF=ePE.getAttribute('frame');
+                    if (nPF!=null) nLeftPos+=1;
+                } else if (nPB>0) nLP+=nPB;
+            }
+        }
+        nLP+=ePE.offsetLeft;
+        ePE=ePE.offsetParent;
+    }
+    return nLP;
+}
 
 function fh_IsMatch(idx,pr)
 {
-       if (fcl[idx].substring(0,pr.length)==pr) return true;
-       return false;
+    if (fcl[idx].substring(0,pr.length)==pr) return true;
+    return false;
 }
 
 function fh_FindMatches(pr)
 {
-       f=0;
-       l=fcl.length-1;
-       m=(f+l)>>1;
-       while(f<l) {
-               if (fcl[m]==pr) break;
-               if (fcl[m]<pr) {
-                       f=m;
-               } else {
-                       l=m;
-               }
-               nm=(f+l+1)>>1;
-               if (m==nm) break;
-               m=nm;
-       }
-       if (m&&fh_IsMatch(m-1,pr)) m--;
-       if (!fh_IsMatch(m,pr) && m<(fcl.length-1) && fh_IsMatch(m+1,pr)) m++;
-       res=new Array;
-       while (m<fcl.length && fh_IsMatch(m,pr)) {
-               res.push(fcl[m++]);
-       }
-       return res;
+    f=0;
+    l=fcl.length-1;
+    m=(f+l)>>1;
+    while(f<l) {
+        if (fcl[m]==pr) break;
+        if (fcl[m]<pr) f=m; else l=m;
+        nm=(f+l+1)>>1;
+        if (m==nm) break;
+        m=nm;
+    }
+    if (m&&fh_IsMatch(m-1,pr)) m--;
+    if (!fh_IsMatch(m,pr) && m<(fcl.length-1) && fh_IsMatch(m+1,pr)) m++;
+    res=new Array;
+    while (m<fcl.length && fh_IsMatch(m,pr)) res.push(fcl[m++]);
+    return res;
 }
 
 function fh_Show(what)
 {
-       tdv=_d.getElementById("funchelper");
-       ts=tdv.style;
-       if (what=="") {
-               if (ts.display!="none")
-                       ts.display="none";
-       } else {
-               ts.display="block";
-               ts.left=ElLeft(f_p)+"px";
-               tdv.innerHTML=what;
-       }
+    tdv=_d.getElementById("funchelper");
+    ts=tdv.style;
+    if (what=="") {
+        if (ts.display!="none") ts.display="none";
+    } else {
+        ts.display="block";
+        ts.left=ElLeft(f_p)+"px";
+        tdv.innerHTML=what;
+    }
 }
 
 function fh_HideAll()
 {
-       fh_matches=new Array();
-       fh_matchesjoined="";
-       fh_inmenu=0;
-       fh_menupos=0;
-       fh_Show("");
+    fh_matches=new Array();
+    fh_matchesjoined="";
+    fh_inmenu=fh_menupos=0;
+    fh_Show("");
 }
 
 
 function fh_ShowNoMatch()
 {
-       fh_Show("<font color=\"gray\">No such function</font>");
+    fh_Show("<font color=\"gray\">No such function</font>");
 }
 
 function fh_UpdateMenu()
 {
-       flen=fh_matches.length;
-       if (flen<=fh_showmatches) {
-               first=0;
-               last=flen-1;
-               beforedots=0;
-               afterdots=0;
-       } else {
-               if (fh_inmenu) {
-                       mid=fh_showmatches>>1;
-                       if (fh_menupos<=mid) {
-                               beforedots=0;
-                               first=0;
-                       } else {
-                               beforedots=1;
-                               first=fh_menupos-mid+1;
-                               if (first>(flen-fh_showmatches+1))
-                                       first=flen-fh_showmatches+1;
-                       }
-                       if (fh_menupos>=(flen-mid-1)) {
-                               afterdots=0;
-                               last=flen-1;
-                       } else {
-                               afterdots=1;
-                               last=fh_menupos+mid-1;
-                               if (last<(fh_showmatches-2))
-                                       last=fh_showmatches-2;
-                       }
-               } else {
-                       first=0;
-                       last=fh_showmatches-2;
-                       beforedots=0;
-                       afterdots=1;
-               }
-       }
-
-       zh="";
-       if (beforedots)
-               zh=zh+"...<br />";
-       for (pos=first; pos<=last; pos++) {
-               f=fh_matches[pos];
-               zh=zh+"<a href=\"/"+f+"\" 
style=\"text-decoration:none;"+(fh_inmenu&&fh_menupos==pos?"background-color:rgb(204,204,255);":"")+"\">"+f+"</a><br
 />";
-       }
-       if (afterdots)
-               zh=zh+"...";
-
-       fh_Show(zh);
-       if (fh_inmenu) {
-               f_p.value=fh_matches[fh_menupos];
-       }
+    flen=fh_matches.length;
+    if (flen<=fh_showmatches) {
+        beforedots=first=afterdots=0;
+        last=flen-1;
+    } else {
+        if (fh_inmenu) {
+            mid=fh_showmatches>>1;
+            if (fh_menupos<=mid) beforedots=first=0;
+            else {
+                beforedots=1;
+                first=fh_menupos-mid+1;
+                if (first>(flen-fh_showmatches+1)) first=flen-fh_showmatches+1;
+            }
+            if (fh_menupos>=(flen-mid-1)) {
+                afterdots=0;
+                last=flen-1;
+            } else {
+                afterdots=1;
+                last=fh_menupos+mid-1;
+                if (last<(fh_showmatches-2)) last=fh_showmatches-2;
+            }
+        } else {
+            first=beforedots=0;
+            last=fh_showmatches-2;
+            afterdots=1;
+        }
+    }
+    zh="";
+    if (beforedots) zh=zh+"...<br />";
+    for (pos=first; pos<=last; pos++) {
+        f=fh_matches[pos];
+        zh=zh+"<a href=\"/"+f+
+              "\" style=\"text-decoration:none;"+
+              
(fh_inmenu&&fh_menupos==pos?"background-color:rgb(204,204,255);":"")+"\">"+f+"</a><br 
/>";
+    }
+    if (afterdots) zh=zh+"...";
+    fh_Show(zh);
+    if (fh_inmenu) f_p.value=fh_matches[fh_menupos];
 }
 
 function fh_NewText()
 {
-       t=f_p.value;
-       if (t=="") {
-               fh_HideAll();
-               return;
-       }
-       tmpmatches=fh_FindMatches(t);
-       if (tmpmatches.length==0) {
-               fh_matchesjoined="";
-               fh_ShowNoMatch();
-               return;
-       }
-       if (tmpmatches.join(",")==fh_matchesjoined) return; // do nothing
-       fh_inmenu=0;
-       fh_menupos=0;
-       fh_matchesjoined=tmpmatches.join(",");
-       fh_matches=tmpmatches;
-
-       fh_UpdateMenu();
+    t=f_p.value;
+    if (t=="") {
+        fh_HideAll();
+        return;
+    }
+    tmpmatches=fh_FindMatches(t);
+    if (tmpmatches.length==0) {
+        fh_matchesjoined="";
+        fh_ShowNoMatch();
+        return;
+    }
+    if (tmpmatches.join(",")==fh_matchesjoined) return; // do nothing
+    fh_inmenu=fh_menupos=0;
+    fh_matchesjoined=tmpmatches.join(",");
+    fh_matches=tmpmatches;
+    fh_UpdateMenu();
 }
 
 function fh_EFocus()
 {
-       if (f_s.value=="quickref") {
-               f_p.autocomplete="off";
-               fh_NewText();
-       }
+    if (f_s.value=="quickref") {
+        f_p.autocomplete="off";
+        fh_NewText();
+    }
 }
 
 function fh_EBlur()
 {
-       f_p.autocomplete="on";
-       fh_HideAll();
+    f_p.autocomplete="on";
+    fh_HideAll();
 }
 
-function fh_EKeyPress(evt)
+function fh_EKeyPress(ev)
 {
-       if (f_s.value!="quickref") return true;
-       evt=(evt)?evt:((event)?event:null);
-       if (!evt) return true;
-       var charCode=(evt.charCode || 
evt.charCode==0)?evt.charCode:((evt.keyCode)?evt.keyCode:evt.which);
-       if (charCode==32) {
-               p=f_p.value;
-               if (p=="") return false;
-               matches=fh_FindMatches(p);
-               if (matches.length==0) return false;
-               if (matches.length==1) {
-                       f_p.value=matches[0];
-                       return false;
-               }
-               if (isnotopera) {
-                       len=0;
-                       first=matches[0];
-                               last=matches.pop();
-                       while (len<first.length && 
first.substring(0,len+1)==last.substring(0,len+1)) len++;
-                       if (f_p.value!=first.substring(0,len)) {
-                               f_p.value=first.substring(0,len);
-                       }
-               }
-               return false;
-       }
-       if ((charCode>=97 && charCode<=122) || (charCode>=65 && charCode<=90) || 
(charCode>=48 && charCode<=57) || charCode==95)
-               return true; // a-z A-Z 0-9 _
-
-       return true;
-}
-
-
-function fh_EKeyDown(evt)
-{
-       if (f_s.value!="quickref") return true;
-       evt=(evt)?evt:((event)?event:null);
-       if (!evt) return true;
-       var charCode=evt.charCode?evt.charCode:((evt.keyCode)?evt.keyCode:evt.which);
-
-       if (charCode==38 || charCode==57385) { // up
-               if (fh_inmenu) {
-                       fh_menupos--;
-                       if (fh_menupos<0) {
-                               fh_menupos=fh_matches.length-1;
-                       }
-               } else {
-                       fh_inmenu=1;
-                       fh_menupos=fh_matches.length-1;
-               }
-               fh_UpdateMenu();
-               return false;
-       } else
-       if (charCode==40 || charCode==57386) { // down
-               if (fh_inmenu) {
-                       fh_menupos++;
-                       if (fh_menupos>=fh_matches.length)
-                               fh_menupos=0;
-               } else {
-                       fh_inmenu=1;
-                       fh_menupos=0;
-               }
-               fh_UpdateMenu();
-               return false;
-       }
-       return true;
-}
-
-function fh_EKeyUp(evt)
-{
-       if (f_s.value!="quickref") return true;
-       evt=(evt)?evt:((event)?event:null);
-       if (!evt) return true;
-       var charCode=evt.charCode?evt.charCode:((evt.keyCode)?evt.keyCode:evt.which);
-       if (charCode==38 || charCode==40 || charCode==57385 || charCode==57386) return 
false;
-       if (f_p.value!=fh_currenttext) {
-               fh_currenttext=f_p.value;
-               fh_NewText();
-       }
-       return true;
+    ev=ev||event||null;
+    if (f_s.value=="quickref"&&ev) {
+        var cc=(ev.charCode||ev.charCode==0)?ev.charCode:ev.keyCode||ev.which;
+        if (cc==32) { // spacebar autocomplete 
+            if ((p=f_p.value)=="") return false;
+            matches=fh_FindMatches(p);
+            if (matches.length==0) return false;
+            if (matches.length==1) { // full autocomplete in case of single match
+                f_p.value=matches[0];
+                return false;
+            }
+            if (isnotopera) {
+                len=0;
+                first=matches[0];
+                last=matches.pop();
+                while (len<first.length && 
first.substring(0,len+1)==last.substring(0,len+1)) len++;
+                if (f_p.value!=first.substring(0,len)) {
+                    f_p.value=first.substring(0,len);
+                }
+            }
+            return false;
+        }
+        //if ((cc>=97&&cc<=122)||(cc>=65&&cc<=90)||(cc>=48&&cc<=57)||cc==95) return 
true; // a-z A-Z 0-9 _
+    }
+    return true;
+}
+
+function fh_EKeyDown(ev)
+{
+    ev=ev||event||null;
+    if (f_s.value=="quickref"&&ev) {
+        var cc=ev.charCode||ev.keyCode||ev.which;
+        if (cc==38||cc==57385) { // up
+            if (fh_inmenu) {
+                if (--fh_menupos<0) fh_menupos=fh_matches.length-1;
+            } else {
+                fh_inmenu=1;
+                fh_menupos=fh_matches.length-1;
+            }
+            fh_UpdateMenu();
+            return false;
+        }
+        if (cc==40||cc==57386) { // down
+            if (fh_inmenu) {
+                if (++fh_menupos>=fh_matches.length) fh_menupos=0;
+            } else {
+                fh_inmenu=1;
+                fh_menupos=0;
+            }
+            fh_UpdateMenu();
+            return false;
+        }
+    }
+    return true;
+}
+
+function fh_EKeyUp(ev)
+{
+    ev=ev||event||null;
+    if (f_s.value=="quickref"&&ev) {
+        var cc=ev.charCode||ev.keyCode||ev.which;
+        if (cc==38||cc==40||cc==57385||cc==57386) return false;
+        if (f_p.value!=fh_currenttext) {
+            fh_currenttext=f_p.value;
+            fh_NewText();
+        }
+    }
+    return true;
 }
 
+// Event listener setup --------------------------------------------------------
+
 f_p.onkeypress=fh_EKeyPress;
 f_p.onfocus=fh_EFocus;
 f_p.onblur=fh_EBlur;
Index: phpdoc/scripts/quickref/prefixcompress.php
diff -u phpdoc/scripts/quickref/prefixcompress.php:1.1 
phpdoc/scripts/quickref/prefixcompress.php:1.2
--- phpdoc/scripts/quickref/prefixcompress.php:1.1      Thu Nov 20 14:03:51 2003
+++ phpdoc/scripts/quickref/prefixcompress.php  Fri Nov 21 06:07:42 2003
@@ -1,4 +1,23 @@
-<?
+<?php
+/*
+# +----------------------------------------------------------------------+
+# | PHP Version 4                                                        |
+# +----------------------------------------------------------------------+
+# | Copyright (c) 1997-2003 The PHP Group                                |
+# +----------------------------------------------------------------------+
+# | This source file is subject to version 2.02 of the PHP licence,      |
+# | that is bundled with this package in the file LICENCE and is         |
+# | avalible through the world wide web at                               |
+# | http://www.php.net/license/2_02.txt.                                 |
+# | If you did not receive a copy of the PHP license and are unable to   |
+# | obtain it through the world wide web, please send a note to          |
+# | [EMAIL PROTECTED] so we can mail you a copy immediately.               |
+# +----------------------------------------------------------------------+
+# | Authors:    Mitja Slenc <[EMAIL PROTECTED]>                              |
+# +----------------------------------------------------------------------+
+# 
+# $Id: prefixcompress.php,v 1.2 2003/11/21 11:07:42 goba Exp $
+*/
 
 $funcs=file("funclist.txt");
 foreach($funcs as $key => $val)
Index: phpdoc/scripts/quickref/processafter.php
diff -u phpdoc/scripts/quickref/processafter.php:1.1 
phpdoc/scripts/quickref/processafter.php:1.2
--- phpdoc/scripts/quickref/processafter.php:1.1        Thu Nov 20 14:03:51 2003
+++ phpdoc/scripts/quickref/processafter.php    Fri Nov 21 06:07:42 2003
@@ -1,11 +1,30 @@
-<?
+<?php
+/*
+# +----------------------------------------------------------------------+
+# | PHP Version 4                                                        |
+# +----------------------------------------------------------------------+
+# | Copyright (c) 1997-2003 The PHP Group                                |
+# +----------------------------------------------------------------------+
+# | This source file is subject to version 2.02 of the PHP licence,      |
+# | that is bundled with this package in the file LICENCE and is         |
+# | avalible through the world wide web at                               |
+# | http://www.php.net/license/2_02.txt.                                 |
+# | If you did not receive a copy of the PHP license and are unable to   |
+# | obtain it through the world wide web, please send a note to          |
+# | [EMAIL PROTECTED] so we can mail you a copy immediately.               |
+# +----------------------------------------------------------------------+
+# | Authors:    Mitja Slenc <[EMAIL PROTECTED]>                              |
+# +----------------------------------------------------------------------+
+# 
+# $Id: processafter.php,v 1.2 2003/11/21 11:07:42 goba Exp $
+*/
 
 $lines=file("originalafter.js");
 foreach($lines as $key => $line) {
        $lines[$key]=array_shift(explode("//", trim($line)));
 }
 
-$leave=array("cpd", "dcp", "for", "document", "forms", "break", "if", "continue", 
"var", "style", "innerHTML", "value", "getElementById", "autocomplete", "onblur", 
"onfocus", "onkeyup", "onkeydown", "onkeypress", "display", "pattern", "show", "left", 
"top", "event", "evt", "which", "length", "all", "navigator", "userAgent", 
"toLowerCase", "indexOf", "width", "else", "write", "split", "join", "charAt", 
"substring", "function", "return", "new", "Array", "switch", "case", "push", "pop", 
"default", "true", "false", "offsetLeft", "offsetParent", "while", "null", "tagName", 
"clientLeft", "parseInt", "border", "isNaN", "getAttribute", "charCode", "keyCode");
+$leave=array("cpd", "dcp", "for", "document", "forms", "break", "if", "continue", 
"var", "style", "innerHTML", "value", "getElementById", "autocomplete", "onblur", 
"onfocus", "onkeyup", "onkeydown", "onkeypress", "display", "pattern", "show", "left", 
"top", "event", "evt", "ev", "which", "length", "all", "navigator", "userAgent", 
"toLowerCase", "indexOf", "width", "else", "write", "split", "join", "charAt", 
"substring", "function", "return", "new", "Array", "switch", "case", "push", "pop", 
"default", "true", "false", "offsetLeft", "offsetParent", "while", "null", "tagName", 
"clientLeft", "parseInt", "border", "isNaN", "getAttribute", "charCode", "keyCode", 
"cc", "test", "u57385", "u57386");
 
 $text=implode(" ", $lines);
 
Index: phpdoc/scripts/quickref/unusedcompress.php
diff -u phpdoc/scripts/quickref/unusedcompress.php:1.1 
phpdoc/scripts/quickref/unusedcompress.php:1.2
--- phpdoc/scripts/quickref/unusedcompress.php:1.1      Thu Nov 20 14:03:51 2003
+++ phpdoc/scripts/quickref/unusedcompress.php  Fri Nov 21 06:07:42 2003
@@ -1,4 +1,23 @@
-<?
+<?php
+/*
+# +----------------------------------------------------------------------+
+# | PHP Version 4                                                        |
+# +----------------------------------------------------------------------+
+# | Copyright (c) 1997-2003 The PHP Group                                |
+# +----------------------------------------------------------------------+
+# | This source file is subject to version 2.02 of the PHP licence,      |
+# | that is bundled with this package in the file LICENCE and is         |
+# | avalible through the world wide web at                               |
+# | http://www.php.net/license/2_02.txt.                                 |
+# | If you did not receive a copy of the PHP license and are unable to   |
+# | obtain it through the world wide web, please send a note to          |
+# | [EMAIL PROTECTED] so we can mail you a copy immediately.               |
+# +----------------------------------------------------------------------+
+# | Authors:    Mitja Slenc <[EMAIL PROTECTED]>                              |
+# +----------------------------------------------------------------------+
+# 
+# $Id: unusedcompress.php,v 1.2 2003/11/21 11:07:42 goba Exp $
+*/
 
 $tocomp=implode("", file("prefixcompressed.txt"));
 $tocomp=str_replace("\n", "", $tocomp);

Index: phpdoc/scripts/quickref/test.html
+++ phpdoc/scripts/quickref/test.html
<html>
<head><title>JS test</title></head>
<body>

<div id="headsearch">
 <form method="post" action="/search.php" id="topsearch">
  <p>
   <span title="Keyboard shortcut: Alt+S (Win), Ctrl+S (Apple)">
    <span class="shortkey">s</span>earch for
   </span>
   <input type="text" name="pattern" value="" size="30" accesskey="s" />

   <span>in the</span>
   <select name="show">
    <option value="quickref" selected="selected">function list</option>
    <option value="wholesite">whole site</option>
    <option value="manual"   >online documentation [en]</option>
    <option value="bugdb"    >bug database</option>

    <option value="maillist" >general mailing list</option>
    <option value="devlist"  >developer mailing list</option>
    <option value="phpdoc"   >documentation mailing list </option>
   </select>
   <input type="image"
          src="/images/small_submit_white.gif"
          class="submit" alt="search" />
  </p>
 </form>
</div>

<script src="functions.js" type="text/javascript"></script>

</body>

Reply via email to