Code:<?php
//Updated with new abstraction by Unicornio, Enjoy the new Module Nuke Easy Tags 1.0
if (!defined('MODULE_FILE')) {
die ("You can't access this file directly...");
}
define('INDEX_FILE', true);
$index = 1;
require_once("mainfile.php");
include("header.php");
OpenTable();
echo '<td width=\"100%\" bgcolor=\"#D1D1D1\">';
echo "<p>\n";
echo "<center><img border=\"0\" src=\"modules/Nuke_Easy_Tags/images/cloud.jpg\" width=\"457\" height=\"220\"></p>\n";
function unhtmlspecialchars ($string) {
$string = str_replace ( '&', '&', $string );
$string = str_replace ( '$', '\'', $string );
$string = str_replace ( '"', '\"', $string );
$string = str_replace ( '<', '<', $string );
$string = str_replace ( '>', '>', $string );
return $string;
}
function otoTag($tag,$link,$en_kucuk=10,$en_buyuk=28) {
//$renk='#'.dechex(rand(1,16)).dechex(rand(16,3)).dechex(rand(3,16)).dechex(rand(1,1)).dechex(rand(3,1)).dechex(rand(1,2));
$renk='#'.dechex(rand(1,16)).dechex(rand(1,16)).dechex(rand(0,16)).dechex(rand(0,16)).dechex(rand(0,16)).dechex(rand(0,16));
$boy=rand($en_kucuk,$en_buyuk);
echo '<a href="'.$link.'"
style="font-size: ' . $boy . 'px;color:'.$renk.'"
tag="' . $tag . '">' . $tag . '</a> ';
}
$sorgu=$db->sql_query("SELECT cid, tag FROM ".$prefix."_tags ORDER BY rand() limit 600");
while ($sonuc=$db->sql_fetchrow($sorgu))
{
echo otoTag($sonuc[tag],'modules.php?name=Tags&op=list&tag='.$sonuc[tag]);
}
$sorgu=$db->sql_query("SELECT word_id, word_text FROM ".$prefix."_bbsearch_wordlist order by RAND() limit 300");
while ($sonuc=$db->sql_fetchrow($sorgu))
{
echo otoTag($sonuc[word_text],'modules.php?name=Forums&file=tag&k_id='.$sonuc[word_id]);
}
$sorgu=$db->sql_query("SELECT id_subcatg,subcatg FROM ".$prefix."_ads_subcatg order by RAND() limit 200");
while ($sonuc=$db->sql_fetchrow($sorgu))
{
echo otoTag($sonuc[subcatg],'modules.php?name=Tags&op=list&tag='.$sonuc[subcatg]);
}
$sorgu=$db->sql_query("SELECT aid,title FROM ".$prefix."_cpg_albums order by RAND() limit 200");
while ($sonuc=$db->sql_fetchrow($sorgu))
{
echo otoTag($sonuc[title],'modules.php?name=Tags&op=list&tag='.$sonuc[title]);
}
$sorgu=$db->sql_query("SELECT categ_id,categ_title FROM ".$prefix."_multiheadlines_categ order by RAND() limit 200");
while ($sonuc=$db->sql_fetchrow($sorgu))
{
echo otoTag($sonuc[categ_title],'modules.php?name=Tags&op=list&tag='.$sonuc[categ_title]);
}
$sorgu=$db->sql_query("SELECT id,categoria FROM ".$prefix."_nuketube_categorias order by RAND() limit 200");
while ($sonuc=$db->sql_fetchrow($sorgu))
{
echo otoTag($sonuc[categoria],'modules.php?name=Tags&op=list&tag='.$sonuc[categoria]);
}
CloseTable();
include("footer.php");
?>
|