Location: PHPKode > projects > Electronic Design Automation - Index > eda-index-1.0MLH/web/statistics.php
<?php
require("config.inc.php");
require("top.inc.php");

#########################################################################
# Electronic Design Automation - Index (EDA - Index)			#
#########################################################################
#									#
# Copyright (c) 2003 by Bruno Thomsen (hide@address.com)	#
# My Homepage: http://www.spacecave.dk/					#
# Project Homepage: http://eda-index.sourceforge.net/			#
# Project @ SourceForge.net: http://sourceforge.net/projects/eda-index/	#
# Project @ Freshmeat.net: http://freshmeat.net/projects/eda-index/	#
# Project Demo: http://eda-index.sourceforge.net/demo/			#
#									#
# This program is free software; you can redistribute it and/or modify	#
# it under the terms of the GNU General Public License as published by	#
# the Free Software Foundation; either version 2 of the License, or	#
# (at your option) any later version.					#
#									#
# This program is distributed in the hope that it will be useful,	#
# but WITHOUT ANY WARRANTY; without even the implied warranty of	#
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the		#
# GNU General Public License for more details.				#
#									#
#########################################################################

?>

<center><font size="4"><b><?php echo $statistics; ?></b><br/><br/></font></center>

<font size="3"><map id="stats"><table width="600" cellpadding="2" cellspacing="1" border="0" align="center"><tr><td>

<u><?php echo "$title v. $version"; ?>:</u><br/>

<?php
$type = "0";
while ($type < 5) {
opendb($dbhost,$dbuser,$dbpass,$dbname);
$sql = "SELECT * FROM `$tabels[$type]`";
$result = getdata($sql);
$num_row = mysql_num_rows($result);
if ($num_rows) {
printf ("%s $datatype1[$type]<br/>", $num_row);
} else {
printf ("%s $datatype2[$type]<br/>", $num_row);
}
closedb();
$type++;
}
?>

<br/>

<?php echo "$language: $langlong ($langshort)"; ?><br/>
<?php echo "$writtenby: $translator"; ?><br/>
<?php echo "$ver:  $langver"; ?>

<br/><br/><u><?php echo $client; ?>:</u><br/>

<?php
echo $_SERVER['HTTP_USER_AGENT'];
?>

<br/><br/><u><?php echo $server; ?>:</u><br/>

<?php
echo "PHP version: " . phpversion(). "<br/>";
echo "Zend engine version: " . zend_version(). "<br/>";
?>

<?php
opendb($dbhost,$dbuser,$dbpass,$dbname);
printf ("MySQL server version: %s<br/>", mysql_get_server_info());
printf ("MySQL protocol version: %s<br/>", mysql_get_proto_info());
printf ("MySQL host info: %s<br/>", mysql_get_host_info());
closedb();
?>

</td></tr></table></map></font>

<?php
require("bottom.inc.php");
?>
Return current item: Electronic Design Automation - Index