cvs: functable /lib extensions_4.php
| From: | Hartmut Holzgraefe | Date: | Tue, 28 May 2002 11:31:57 +0000 |
| Subject: | cvs: functable /lib extensions_4.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-12136@lists.php.net to get a copy of this message | ||
hholzgra Tue May 28 07:31:57 2002 EDT
Added files:
/functable/lib extensions_4.php
Log:
initial checkin
Index: functable/lib/extensions_4.php
+++ functable/lib/extensions_4.php
<?php
$query = "SELECT DISTINCT
funclist.function AS function
, substring_index(substring_index(filename,'/',-2),'/',1) AS
extension
, author
FROM funclist
, author
WHERE versionid = 499
AND funclist.function = author.function
ORDER BY extension
, function
";
$result = mysql_query($query);
reset($extensions);
$extension = " ";
while($row=mysql_fetch_array($result)) {
$function=$row["function"];
if($row["extension"]!=$extension) {
if(trim($extension)) {
print("</table>\n");
foot("$outdir/extension.$extension.$ext");
}
$extension=$row["extension"];
head($version4,false,"Extension","$extension extension
(<i>$extensions[$extension]</i>)");
}
$versions = $entry[strtolower(trim($function))];
bg_toggle();
print("<tr bgcolor=\"$bgcolor\">");
if(@isset($alias[$function])) {
print("<td><font
color=\"green\"><i>".fpage($function)."</i></font></td>");
} else {
print("<td>".fpage($function)."</td>");
}
reset($version);
while(list($versionid,$versiontag)=each($version)) {//abc
if($versionid>=400) {
if(isset($versions[$versiontag])) {
print("<td>$ok_mark</td>");
}else{
if($versionid>=400) {
print("<td>$fail_mark</td>");
} else {
print("<td> </td>");
}
}
if($versionid%100==99) { // *99->latest cvs versions
if(($versionid<400)?isset($proto3[$function]):isset($proto4[$function])) {
print("<td align=\"center\">$ok_mark</td>");
} else {
print("<td> </td>");
}
}
}
}
$docname=str_replace("_","-",$function);
if(isset($docfile[$function])) {
print("<td
align=center>".docref($function,"yes")."</td>");
} else {
print("<td> </td>");
}
reset($translation);
while(list($language,)=each($translation)) {
if($language=='en') continue;
if(isset($doc[$language][$function])) {
print("<td align=center>".docref($function,$language)."</td>");
} else {
print("<td> </td>");
}
}
print("<td>".author_ref($row["author"])."</td>");
print("</tr>\n");
}
mysql_free_result($result);
print("</table>\n");
foot("$outdir/extension.$extension.$ext");
?>