(GPLv2)
or write to the Free Software Foundation, Inc., 51 Franklin Street,
Fifth Floor, Boston, MA02110-1301, USA.
********************************************************************************/
if (stristr(htmlentities($_SERVER['PHP_SELF']), "block_tags.php")) {
die("
Error: This file cannot be opened directly! |
");
}
global $dblink;
echo "";
/* wittawas order by tag and order by charebtor */
echo "
";
$result = $dblink->get_list("SELECT tag,tot
FROM (SELECT tag,COUNT(tag) AS tot FROM memht_tags GROUP BY tag ORDER by 2 desc LIMIT 20) tt order by 1");
foreach ($result as $row) {
$tag = outCode($row['tag']);
$num = intval($row['tot']);
if ($num<=1) { $dim = "xs"; }
else if ($num<=5) { $dim = "s"; }
else if ($num<=20) { $dim = "m"; }
else if ($num<=50) { $dim = "l"; }
else { $dim = "xl"; }
echo "
$tag\n";
}
echo "
";
?>