<?xml version="1.0" encoding="ISO-8859-1"?>

<product productid="cyb_topstats" active="1">
	<title>هاك إحصائيات المنتدي المتقدمة الشاملة</title>
	<description>هاك يقوم بعمل إحصائية شاملة للمنتدي سلس وبلوحه تحكم رائعه , من تعريب شركة الجابري</description>
	<version>5.2</version>
	<url>http://www.ffir.net/vb</url>
	<versioncheckurl />
	<dependencies>
	</dependencies>
	<codes>
		<code version="5.1">
			<installcode><![CDATA[$db->hide_errors();
		$vbulletin->db->query_write("ALTER TABLE `" . TABLE_PREFIX . "user` ADD threads INT(10) UNSIGNED NOT NULL DEFAULT '0'");
		$vbulletin->db->query_write("ALTER TABLE `" . TABLE_PREFIX . "user` ADD showcybstats TINYINT( 1 ) DEFAULT '1' NOT NULL");

		$vbulletin->db->query_write("
			UPDATE " . TABLE_PREFIX . "user AS user 
			SET user.threads =
			(
				SELECT COUNT(threadid)
				FROM " . TABLE_PREFIX . "thread AS thread
				LEFT JOIN " . TABLE_PREFIX . "forum AS forum ON forum.forumid = thread.forumid 
				WHERE visible = 1 
				AND (forum.options & 4096) 
				AND user.userid=postuserid
			)
		");

		$cyb_check_indexes = $vbulletin->db->query_read("SHOW INDEX FROM " . TABLE_PREFIX . "user");
		while ($cyb_found_indexes = $vbulletin->db->fetch_array($cyb_check_indexes))
		{
			if ($cyb_found_indexes['Key_name'] == 'threads')
			{
				$cyb_ind_a = true;
			}
			if ($cyb_found_indexes['Key_name'] == 'post_thanks_thanked_times')
			{
				$cyb_ind_b = true;
			}
		}
		if (!$cyb_ind_a)
		{
			$vbulletin->db->query_write("ALTER TABLE " . TABLE_PREFIX . "user ADD INDEX (threads)");
		}
		if (mysql_query("SELECT post_thanks_thanked_times FROM " . TABLE_PREFIX . "user LIMIT 0") AND !$cyb_ind_b)
		{
			$vbulletin->db->query_write("ALTER TABLE " . TABLE_PREFIX . "user ADD INDEX (post_thanks_thanked_times)");
		}
		$db->show_errors();]]></installcode>
			<uninstallcode><![CDATA[$db->hide_errors();
		$vbulletin->db->query_write("ALTER TABLE " . TABLE_PREFIX . "user DROP threads");
		$vbulletin->db->query_write("ALTER TABLE " . TABLE_PREFIX . "user DROP showcybstats");
		$db->show_errors();]]></uninstallcode>
		</code>
	</codes>
	<templates>
		<template name="cyb_topstats_hottest" templatetype="template" date="1177871322" username="Cybernetec" version="5.2"><![CDATA[
	<tr style="height:14px;vertical-align:top">
		<if condition="$get_hottest_threads[isdeleted]">
			<td align="$stylevar[left]" colspan=2" nowrap="nowrap" class="smallfont"><phrase 1="member.php?$session[sessionurl]u=$get_hottest_threads[del_userid]" 2="$get_hottest_threads[del_username]">$vbphrase[thread_deleted_by_x]</phrase></td>
		<else />
			<td align="$stylevar[left]" nowrap="nowrap" class="smallfont" title="$get_hottest_threads[fullthreadtitle]"><if condition="$get_hottest_threads[newpost]">$newpostprefix<else />$oldpostprefix</if>&nbsp;<a href="showthread.php?$session[sessionurl]t=$get_hottest_threads[threadid]">$get_hottest_threads[titletrimmed]</a></td>
			<td align="$stylevar[right]" nowrap="nowrap" class="smallfont" title="$vbphrase[replies]" width="1%">&nbsp;$get_hottest_threads[replycount]</td>
		</if>
	</tr>
	]]></template>
		<template name="cyb_topstats_infractions" templatetype="template" date="1177871322" username="Cybernetec" version="5.2"><![CDATA[
	<tr style="height:14px;vertical-align:top">
		<td align="$stylevar[left]" nowrap="nowrap" class="smallfont" title="$getstats_infraction[fullusername]"><a href="member.php?$session[sessionurl]u=$getstats_infraction[userid]">$getstats_infraction[musername]</a></td>
		<td align="$stylevar[right]" nowrap="nowrap" class="smallfont" title="$vbphrase[infractions]" width="1%">&nbsp;$getstats_infraction[infractions]</td>
	</tr>
	]]></template>
		<template name="cyb_topstats_latestnews" templatetype="template" date="1177871322" username="Cybernetec" version="5.2"><![CDATA[
	<tr style="height:14px;vertical-align:top">
		<if condition="$get_latest_news[isdeleted]">
			<td align="$stylevar[left]" colspan=2" nowrap="nowrap" class="smallfont">&nbsp;<phrase 1="member.php?$session[sessionurl]u=$get_latest_news[del_userid]" 2="$get_latest_news[del_username]">$vbphrase[thread_deleted_by_x]</phrase></td>
		<else />
			<td align="$stylevar[left]" nowrap="nowrap" class="smallfont" title="$get_latest_news[fullthreadtitle]"><if condition="$get_latest_news[newpost]">$newpostprefix<else />$oldpostprefix</if>&nbsp;<a href="showthread.php?$session[sessionurl]t=$get_latest_news[threadid]">$get_latest_news[titletrimmed]</a></td>
			<td align="$stylevar[right]" nowrap="nowrap" class="smallfont" title="$vbphrase[date]" width="1%">&nbsp;<font color="<if condition="$get_latest_news[newpost]">$vboptions[cybtopstats_color_new]<else />$vboptions[cybtopstats_color_old]</if>">$get_news_postdate</font></td>
		</if>
	</tr>
	]]></template>
		<template name="cyb_topstats_member" templatetype="template" date="1177871322" username="Cybernetec" version="5.2"><![CDATA[
	<tr style="height:14px;vertical-align:top">
		<td align="$stylevar[left]" nowrap="nowrap" class="smallfont" title="$get_new_mem[fullusername]" width="<if condition="($vboptions[cybtopstats_newmem_details]=='3')">33%<else />100%</if>"><a href="member.php?$session[sessionurl]u=$get_new_mem[userid]">$get_new_mem[musername]</a></td>
		<if condition="($vboptions[cybtopstats_newmem_details]=='3')">
			<td align="center" nowrap="nowrap" class="smallfont" title="$vbphrase[posts]" width="33%">&nbsp;<font color="<if condition="$get_new_mem[newuser]">$vboptions[cybtopstats_color_new]<else />$vboptions[cybtopstats_color_old]</if>">$get_new_mem[posts]</font></td>
			<td align="$stylevar[right]" nowrap="nowrap" class="smallfont" title="$vbphrase[join_date]" width="33%">&nbsp;<font color="<if condition="$get_new_mem[newuser]">$vboptions[cybtopstats_color_new]<else />$vboptions[cybtopstats_color_old]</if>">$cybmemberjoined</font></td>
		<else />
			<td align="$stylevar[right]" nowrap="nowrap" class="smallfont" title="<if condition="($vboptions[cybtopstats_newmem_details]=='1')">$vbphrase[join_date]</if><if condition="($vboptions[cybtopstats_newmem_details]=='2')">$vbphrase[posts]</if>" width="1%">&nbsp;<font color="<if condition="$get_new_mem[newuser]">$vboptions[cybtopstats_color_new]<else />$vboptions[cybtopstats_color_old]</if>"><if condition="($vboptions[cybtopstats_newmem_details]=='1')">$cybmemberjoined</if><if condition="($vboptions[cybtopstats_newmem_details]=='2')">$get_new_mem[posts]</if></font></td>
		</if>
	</tr>
	]]></template>
		<template name="cyb_topstats_mostviewed" templatetype="template" date="1177871322" username="Cybernetec" version="5.2"><![CDATA[
	<tr style="height:14px;vertical-align:top">
		<if condition="$get_most_viewed[isdeleted]">
			<td align="$stylevar[left]" colspan=2" nowrap="nowrap" class="smallfont"><phrase 1="member.php?$session[sessionurl]u=$get_most_viewed[del_userid]" 2="$get_most_viewed[del_username]">$vbphrase[thread_deleted_by_x]</phrase></td>
		<else />
			<td align="$stylevar[left]" nowrap="nowrap" class="smallfont" title="$get_most_viewed[fullthreadtitle]"><if condition="$get_most_viewed[newpost]">$newpostprefix<else />$oldpostprefix</if>&nbsp;<a href="showthread.php?$session[sessionurl]t=$get_most_viewed[threadid]">$get_most_viewed[titletrimmed]</a></td>
			<td align="$stylevar[right]" nowrap="nowrap" class="smallfont" title="$vbphrase[views]" width="1%">&nbsp;$get_most_viewed[views]</td>
		</if>
	</tr>
	]]></template>
		<template name="cyb_topstats_newposts" templatetype="template" date="1177871322" username="Cybernetec" version="5.2"><![CDATA[
	<tr valign="top">
		<if condition="$vboptions[cybtopstats_lastpost_linking]=='1'">
		<td align="$stylevar[left]" nowrap="nowrap" class="smallfont" title="$get_new_posts[fullthreadtitle]"><if condition="$get_new_posts[newpost]">$newpostprefix<else />$oldpostprefix</if>&nbsp;<a href="showthread.php?$session[sessionurl]t=$get_new_posts[threadid]">$get_new_posts[titletrimmed]</a></td>
		<td align="$stylevar[left]" class="smallfont" title="<phrase 1="$get_new_posts[title]">$vbphrase[cyb_jump_to_last_post_in_x]</phrase>"><a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$get_new_posts[threadid]" style="text-decoration:none">&nbsp;<font face="arial">&#9660;</font></a></td>
		</if>

		<if condition="$vboptions[cybtopstats_lastpost_linking]=='2'">
		<td align="$stylevar[left]" nowrap="nowrap" class="smallfont" title="<phrase 1="$get_new_posts[title]">$vbphrase[cyb_jump_to_last_post_in_x]</phrase>"><if condition="$get_new_posts[newpost]">$newpostprefix<else />$oldpostprefix</if>&nbsp;<a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$get_new_posts[threadid]">$get_new_posts[titletrimmed]</a></td>
		<td align="$stylevar[left]" class="smallfont" title="<phrase 1="$get_new_posts[title]">$vbphrase[cyb_jump_to_first_post_in_x]</phrase>"><a href="showthread.php?$session[sessionurl]t=$get_new_posts[threadid]" style="text-decoration:none">&nbsp;<font face="arial">&#9650;</font></a></td>
		</if>

		<if condition="$vboptions[cybtopstats_lastpost_linking]=='3'">
		<td align="$stylevar[left]" nowrap="nowrap" colspan="2" class="smallfont" title="<phrase 1="$get_new_posts[title]">$vbphrase[cyb_jump_to_last_post_in_x]</phrase>"><if condition="$get_new_posts[newpost]">$newpostprefix<else />$oldpostprefix</if>&nbsp;<a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$get_new_posts[threadid]">$get_new_posts[titletrimmed]</a></td>
		</if>

		<if condition="$vboptions[cybtopstats_lastpost_linking]=='4'">
		<td align="$stylevar[left]" nowrap="nowrap" class="smallfont" title="<phrase 1="$get_new_posts[title]">$vbphrase[cyb_jump_to_last_post_in_x]</phrase>"><if condition="$get_new_posts[newpost]">$newpostprefix<else />$oldpostprefix</if>&nbsp;<a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$get_new_posts[threadid]">$get_new_posts[titletrimmed]</a></td>
		<td align="$stylevar[left]" class="smallfont" title="<phrase 1="$get_new_posts[title]">$vbphrase[cyb_jump_to_last_post_in_x]</phrase>"><a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$get_new_posts[threadid]" style="text-decoration:none">&nbsp;<font face="arial">&#9660;</font></a></td>
		</if>

		<if condition="$get_new_posts[isdeleted]">
			<td align="$stylevar[left]" colspan=3" nowrap="nowrap" class="smallfont">&nbsp;<phrase 1="member.php?$session[sessionurl]u=$get_new_posts[del_userid]" 2="$get_new_posts[del_username]">$vbphrase[thread_deleted_by_x]</phrase></td>
		<else />
			<if condition="$vboptions[cybtopstats_lastpost_dateline]">
			<td align="$stylevar[left]" nowrap="nowrap" class="smallfont" title="$vbphrase[date]/$vbphrase[time]">&nbsp;<font color="<if condition="$get_new_posts[newpost]">$vboptions[cybtopstats_color_new]<else />$vboptions[cybtopstats_color_old]</if>">$get_new_postdate, $get_new_posttime</font></td>
			</if>
			<if condition="$vboptions[cybtopstats_lastpost_poster]">
			<td align="$stylevar[left]" nowrap="nowrap" class="smallfont" title="<if condition="!$get_new_posts[musername]">$vbphrase[guest]<else />$get_new_posts[fullusername]</if>">&nbsp;<if condition="!$get_new_posts[musername]"><div style="cursor:pointer;">&nbsp;$vbphrase[guest]</div><else /><a href="member.php?$session[sessionurl]u=$get_new_posts[userid]">$get_new_posts[musername]</a></if></td>
			</if>
			<if condition="($vboptions[cybtopstats_lastpost_rvcounts]=='1') OR ($vboptions[cybtopstats_lastpost_rvcounts]=='3')">
			<td align="$stylevar[left]" nowrap="nowrap" class="smallfont" title="$vbphrase[replies]">&nbsp;$get_new_posts[replycount]</td>
			</if>
			<if condition="($vboptions[cybtopstats_lastpost_rvcounts]=='2') OR ($vboptions[cybtopstats_lastpost_rvcounts]=='3')">
			<td align="$stylevar[left]" nowrap="nowrap" class="smallfont" title="$vbphrase[views]">&nbsp;$get_new_posts[views]</td>
			</if>
			<if condition="$vboptions[cybtopstats_lastpost_forums]">
			<td align="$stylevar[left]" nowrap="nowrap" class="smallfont" title="$get_new_posts[fullforumtitle]" width="1%">&nbsp;&nbsp;<a href="forumdisplay.php?$session[sessionurl]f=$get_new_posts[forumid]">$get_new_posts[forumtitle]</a></td>
			</if>
		</if>
	</tr>
	]]></template>
		<template name="cyb_topstats_php" templatetype="template" date="1177871322" username="Cybernetec" version="5.2"><![CDATA[
		$stylevar[htmldoctype]
		<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
		<head>
		<title>$vboptions[bbtitle] - <phrase 1="$resultsnr">$vbphrase[cyb_top_x_stats]</phrase></title>
		$headinclude
		<script language="Javascript" type="text/javascript">
			function CybAFSUpd() {
				var updateswitcher = document.getElementById("resultsnr").value;
				document.getElementById("resultsnrsw").value = updateswitcher;
				document.getElementById("cybnp").style.height = '100%';
			}
			function CybAFSSend() {
				var reqres = document.getElementById("resultsnrsw").value;
				document.getElementById("resultsnr").value = reqres;
			}
		</script>
		</head>
		<body onload="CybAFSUpd()">
		$header
		$navbar
		<table class="tborder" width="100%" align="center" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0">
			<tr valign="top" class="alt1">
				<if condition="$vboptions[cybtopstats_enable_global] AND !in_array($bbuserinfo[usergroupid], array($cybtopstats_cantviewmore))">
					<td align="$stylevar[left]" width="100%">
						<form action="" id="cybstatsresnum" name="cybstatsresnum" method="post" onsubmit="CybAFSSend(this);"><div class="smallfont">
						<phrase 1='<br /><select size="1" id="resultsnrsw" name="resultsnrsw" tabindex="1" onchange="CybAFSSend(this);cybstatsresnum.submit();">$resultsnrsw</select>'>$vbphrase[cyb_afs_show_x_results]</phrase>&nbsp;<input type="submit" class="button" value="$vbphrase[cyb_afs_results_update]" accesskey="s" />
						<input type="hidden" id="resultsnr" name="resultsnr" value="$resultsnr" size="1" /></div>
						</form>
					</td>
				<else />
					<td width="100%" align="center">$vbphrase[cyb_disabled]</td>
				</if>
				<td align="center">$forumjump</td>
			</tr>
		</table>
		<if condition="!in_array($bbuserinfo[usergroupid], array($cybtopstats_cantviewmore))"><br />$cybtopstats</if>
		<br />
		$footer
		</body>
		</html>
	]]></template>
		<template name="cyb_topstats_poster" templatetype="template" date="1177871322" username="Cybernetec" version="5.2"><![CDATA[
	<tr style="height:14px;vertical-align:top">
		<td align="$stylevar[left]" nowrap="nowrap" class="smallfont" title="$getstats_poster[fullusername]"><a href="member.php?$session[sessionurl]u=$getstats_poster[userid]">$getstats_poster[musername]</a></td>
		<td align="$stylevar[right]" nowrap="nowrap" class="smallfont" title="$vbphrase[posts]" width="1%">&nbsp;$getstats_poster[posts]</td>
	</tr>
	]]></template>
		<template name="cyb_topstats_referrer" templatetype="template" date="1177871322" username="Cybernetec" version="5.2"><![CDATA[
	<tr style="height:14px;vertical-align:top">
		<td align="$stylevar[left]" nowrap="nowrap" class="smallfont" title="$getstats_referrer[fullusername]"><a href="member.php?$session[sessionurl]u=$getstats_referrer[userid]">$getstats_referrer[musername]</a></td>
		<td align="$stylevar[right]" nowrap="nowrap" class="smallfont" title="$vbphrase[cyb_referrals]" width="1%">&nbsp;$getstats_referrer[refnumber]</td>
	</tr>
	]]></template>
		<template name="cyb_topstats_reputation" templatetype="template" date="1177871322" username="Cybernetec" version="5.2"><![CDATA[
	<tr style="height:14px;vertical-align:top">
		<td align="$stylevar[left]" nowrap="nowrap" class="smallfont" title="$getstats_rep[fullusername]"><a href="member.php?$session[sessionurl]u=$getstats_rep[userid]">$getstats_rep[musername]</a></td>
		<td align="$stylevar[right]" nowrap="nowrap" class="smallfont" title="$vbphrase[reputation]" width="1%">&nbsp;$getstats_rep[reputation]</td>
	</tr>
	]]></template>
		<template name="cyb_topstats_starter" templatetype="template" date="1177871322" username="Cybernetec" version="5.2"><![CDATA[
	<tr style="height:14px;">
		<td align="$stylevar[left]" nowrap="nowrap" class="smallfont" title="$getstats_starter[fullusername]"><a href="member.php?$session[sessionurl]u=$getstats_starter[userid]">$getstats_starter[musername]</a></td>
		<td align="$stylevar[right]" nowrap="nowrap" class="smallfont" title="$vbphrase[threads]" width="1%">&nbsp;$getstats_starter[threads]</td>
	</tr>
	]]></template>
		<template name="cyb_topstats_stats" templatetype="template" date="1177871322" username="Cybernetec" version="5.2"><![CDATA[
		<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
		<thead>
			<tr valign="top">
				<td class="tcat" <if condition="($cybtopstats_t_colspan>'1')">colspan="$cybtopstats_t_colspan"</if>><a name="cyb_stats" style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('cyb_fh_stats')"><img id="collapseimg_cyb_fh_stats" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_cyb_fh_stats].gif" alt="" border="0" /></a>
				<if condition="!in_array($bbuserinfo[usergroupid], array($cybtopstats_cantviewmore)) OR $bbuserinfo[userid]">
					<div id="cybstatsoptions"><phrase 1="$resultsnr">$vbphrase[cyb_top_x_stats]</phrase><script language="Javascript" type="text/javascript"> vbmenu_register("cybstatsoptions"); </script></div>
					<div class="vbmenu_popup" id="cybstatsoptions_menu" style="display:none">
						<table cellpadding="4" cellspacing="1" border="0">
							<tr valign="top">
								<td class="thead">$vbphrase[options]</td>
							</tr>
							<if condition="!in_array($bbuserinfo[usergroupid], array($cybtopstats_cantviewmore)) AND !$_REQUEST['do'] == 'cybstats'">
								<tr valign="top">
									<td class="vbmenu_option" title="<phrase 1="$resultsnr">$vbphrase[cyb_afs_more_stats]</phrase>"><a href="misc.php?do=cybstats" rel="nofollow"><phrase 1="$resultsnr">$vbphrase[cyb_afs_more_stats]</phrase></a></td>
								</tr>
							</if>
							<if condition="$bbuserinfo[userid] AND $cybstats_show">
								<tr valign="top">
									<td class="vbmenu_option" title="$vbphrase[cyb_afs_turnoff_stats]"><a href="misc.php?do=disablestats" rel="nofollow">$vbphrase[cyb_afs_turnoff_stats]</a></td>
								</tr>
							</if>		
						</table>
					</div>
				<else />
					<phrase 1="$resultsnr">$vbphrase[cyb_top_x_stats]</phrase>
				</if>
				</td>
			</tr>
		</thead>
		<tbody id="collapseobj_cyb_fh_stats" style="background-color:$cybstats_tbg;$vbcollapse[collapseobj_cyb_fh_stats]">
			<tr style="height:1px;vertical-align:top">
				<if condition="($vboptions[cybtopstats_switch_lpl]=='1')">
					<td class="thead" align="$stylevar[left]" nowrap="nowrap">$vbphrase[cyb_latest_posts]</td>
				</if>
				<if condition="($vboptions[cybtopstats_switch_s1]>'0')">
					<td class="thead" align="$stylevar[left]" nowrap="nowrap">$cyb_topstats_s1t</td>
				</if>
				<if condition="($vboptions[cybtopstats_switch_s3]>'0')">
					<td class="thead" align="$stylevar[left]" nowrap="nowrap">$cyb_topstats_s3t</td>
				</if>
				<if condition="($vboptions[cybtopstats_switch_s5]>'0')">
					<td class="thead" align="$stylevar[left]" nowrap="nowrap">$cyb_topstats_s5t</td>
				</if>
				<if condition="($vboptions[cybtopstats_switch_s7]>'0')">
					<td class="thead" align="$stylevar[left]" nowrap="nowrap">$cyb_topstats_s7t</td>
				</if>
				<if condition="($vboptions[cybtopstats_switch_s9]>'0')">
					<td class="thead" align="$stylevar[left]" nowrap="nowrap">$cyb_topstats_s9t</td>
				</if>
				<if condition="($vboptions[cybtopstats_switch_lpr]=='1')">
					<td class="thead" align="$stylevar[left]" nowrap="nowrap">$vbphrase[cyb_latest_posts]</td>
				</if>
			</tr>
			<tr style="vertical-align:top;height:$cybosheight">
				<if condition="($vboptions[cybtopstats_switch_lpl]=='1')">
					<td <if condition="($vboptions[cybtopstats_layout]=='2')">rowspan="3"</if> style="height:$cybnpheight">
						<table width="100%" cellpadding="0" cellspacing="0" border="0" style="height:<if condition="(THIS_SCRIPT!='misc')">100%<else />1%</if>" id="cybnp">
							<tr style="height:14px;vertical-align:top">
								<td align="$stylevar[left]" nowrap="nowrap" class="smallfont">$vbphrase[thread]</td>
								<td>&nbsp;</td>
								<if condition="$vboptions[cybtopstats_lastpost_dateline]">
									<td align="$stylevar[left]" nowrap="nowrap" class="smallfont">&nbsp;$vbphrase[date], $vbphrase[time]</td>
								</if>
								<if condition="$vboptions[cybtopstats_lastpost_poster]">
									<td align="$stylevar[left]" nowrap="nowrap" class="smallfont">&nbsp;$vbphrase[posted_by]</td>
								</if>
								<if condition="($vboptions[cybtopstats_lastpost_rvcounts]=='1') OR ($vboptions[cybtopstats_lastpost_rvcounts]=='3')">
									<td align="$stylevar[left]" nowrap="nowrap" class="smallfont">&nbsp;$vbphrase[replies]</td>
								</if>
								<if condition="($vboptions[cybtopstats_lastpost_rvcounts]=='2') OR ($vboptions[cybtopstats_lastpost_rvcounts]=='3')">
									<td align="$stylevar[left]" nowrap="nowrap" class="smallfont">&nbsp;$vbphrase[views]</td>
								</if>
								<if condition="$vboptions[cybtopstats_lastpost_forums]">
									<td align="$stylevar[left]" nowrap="nowrap" class="smallfont">&nbsp;&nbsp;$vbphrase[forum]</td>
								</if>
							</tr>
							$cybtopstats_newposts
						</table>
					</td>
				</if>
				<if condition="($vboptions[cybtopstats_switch_s1]>'0')">
					<td>
						<table width="100%" cellpadding="0" cellspacing="0" border="0">
							<if condition="($vboptions[cybtopstats_layout]=='1')">
							<tr style="height:14px;vertical-align:top">
								<td align="$stylevar[left]" nowrap="nowrap" class="smallfont">$cyb_topstats_s1p1</td>
								<td align="$stylevar[right]" nowrap="nowrap" class="smallfont">$cyb_topstats_s1p2</td>
							</tr>
							</if>
							$cyb_topstats_s1
						</table>
					</td>
				</if>
				<if condition="($vboptions[cybtopstats_switch_s3]>'0')">
					<td>
						<table width="100%" cellpadding="0" cellspacing="0" border="0">
							<if condition="($vboptions[cybtopstats_layout]=='1')">
							<tr style="height:14px;vertical-align:top">
								<td align="$stylevar[left]" nowrap="nowrap" class="smallfont">$cyb_topstats_s3p1</td>
								<td align="$stylevar[right]" nowrap="nowrap" class="smallfont">$cyb_topstats_s3p2</td>
							</tr>
							</if>
							$cyb_topstats_s3
						</table>
					</td>
				</if>
				<if condition="($vboptions[cybtopstats_switch_s5]>'0')">
					<td>
						<table width="100%" cellpadding="0" cellspacing="0" border="0">
							<if condition="($vboptions[cybtopstats_layout]=='1')">
							<tr style="height:14px;vertical-align:top">
								<td align="$stylevar[left]" nowrap="nowrap" class="smallfont">$cyb_topstats_s5p1</td>
								<td align="$stylevar[right]" nowrap="nowrap" class="smallfont">$cyb_topstats_s5p2</td>
							</tr>
							</if>
							$cyb_topstats_s5
						</table>
					</td>
				</if>
				<if condition="($vboptions[cybtopstats_switch_s7]>'0')">
					<td>
						<table width="100%" cellpadding="0" cellspacing="0" border="0">
							<if condition="($vboptions[cybtopstats_layout]=='1')">
							<tr style="height:14px;vertical-align:top">
								<td align="$stylevar[left]" nowrap="nowrap" class="smallfont">$cyb_topstats_s7p1</td>
								<td align="$stylevar[right]" nowrap="nowrap" class="smallfont">$cyb_topstats_s7p2</td>
							</tr>
							</if>
							$cyb_topstats_s7
						</table>
					</td>
				</if>
				<if condition="($vboptions[cybtopstats_switch_s9]>'0')">
					<td>
						<table width="100%" cellpadding="0" cellspacing="0" border="0">
							<if condition="($vboptions[cybtopstats_layout]=='1')">
							<tr style="height:14px;vertical-align:top">
								<td align="$stylevar[left]" nowrap="nowrap" class="smallfont">$cyb_topstats_s9p1</td>
								<td align="$stylevar[right]" nowrap="nowrap" class="smallfont">$cyb_topstats_s9p2</td>
							</tr>
							</if>
							$cyb_topstats_s9
						</table>
					</td>
				</if>
				<if condition="($vboptions[cybtopstats_switch_lpr]=='1')">
					<td <if condition="($vboptions[cybtopstats_layout]=='2')">rowspan="3"</if> style="height:$cybnpheight">
						<table width="100%" cellpadding="0" cellspacing="0" border="0" style="height:<if condition="(THIS_SCRIPT!='misc')">100%<else />1%</if>" id="cybnp">
							<tr style="height:14px;vertical-align:top">
								<td align="$stylevar[left]" nowrap="nowrap" class="smallfont">$vbphrase[thread]</td>
								<td>&nbsp;</td>
								<if condition="$vboptions[cybtopstats_lastpost_dateline]">
									<td align="$stylevar[left]" nowrap="nowrap" class="smallfont">&nbsp;$vbphrase[date], $vbphrase[time]</td>
								</if>
								<if condition="$vboptions[cybtopstats_lastpost_poster]">
									<td align="$stylevar[left]" nowrap="nowrap" class="smallfont">&nbsp;$vbphrase[posted_by]</td>
								</if>
								<if condition="($vboptions[cybtopstats_lastpost_rvcounts]=='1') OR ($vboptions[cybtopstats_lastpost_rvcounts]=='3')">
									<td align="$stylevar[left]" nowrap="nowrap" class="smallfont">&nbsp;$vbphrase[replies]</td>
								</if>
								<if condition="($vboptions[cybtopstats_lastpost_rvcounts]=='2') OR ($vboptions[cybtopstats_lastpost_rvcounts]=='3')">
									<td align="$stylevar[left]" nowrap="nowrap" class="smallfont">&nbsp;$vbphrase[views]</td>
								</if>
								<if condition="$vboptions[cybtopstats_lastpost_forums]">
									<td align="$stylevar[left]" nowrap="nowrap" class="smallfont">&nbsp;&nbsp;$vbphrase[forum]</td>
								</if>
							</tr>
							$cybtopstats_newposts
						</table>
					</td>
				</if>
			</tr>
		<if condition="($vboptions[cybtopstats_layout]=='2')">
			<tr style="height:1px;vertical-align:top">
				<if condition="($vboptions[cybtopstats_switch_s2]>'0')">
					<td class="thead" align="$stylevar[left]" nowrap="nowrap">$cyb_topstats_s2t</td>
				</if>
				<if condition="($vboptions[cybtopstats_switch_s4]>'0')">
					<td class="thead" align="$stylevar[left]" nowrap="nowrap">$cyb_topstats_s4t</td>
				</if>
				<if condition="($vboptions[cybtopstats_switch_s6]>'0')">
					<td class="thead" align="$stylevar[left]" nowrap="nowrap">$cyb_topstats_s6t</td>
				</if>
				<if condition="($vboptions[cybtopstats_switch_s8]>'0')">
					<td class="thead" align="$stylevar[left]" nowrap="nowrap">$cyb_topstats_s8t</td>
				</if>
				<if condition="($vboptions[cybtopstats_switch_s10]>'0')">
					<td class="thead" align="$stylevar[left]" nowrap="nowrap">$cyb_topstats_s10t</td>
				</if>
			</tr>
			<tr style="vertical-align:top;height:$cybosheight">
				<if condition="($vboptions[cybtopstats_switch_s2]>'0')">
					<td>
						<table width="100%" cellpadding="0" cellspacing="0" border="0">
							<if condition="($vboptions[cybtopstats_layout]=='1')">
							<tr style="height:14px;vertical-align:top">
								<td align="$stylevar[left]" nowrap="nowrap" class="smallfont">$cyb_topstats_s2p1</td>
								<td align="$stylevar[right]" nowrap="nowrap" class="smallfont">$cyb_topstats_s2p2</td>
							</tr>
							</if>
							$cyb_topstats_s2
						</table>
					</td>
				</if>
				<if condition="($vboptions[cybtopstats_switch_s4]>'0')">
					<td>
						<table width="100%" cellpadding="0" cellspacing="0" border="0">
							<if condition="($vboptions[cybtopstats_layout]=='1')">
							<tr style="height:14px;vertical-align:top">
								<td align="$stylevar[left]" nowrap="nowrap" class="smallfont">$cyb_topstats_s4p1</td>
								<td align="$stylevar[right]" nowrap="nowrap" class="smallfont">$cyb_topstats_s4p2</td>
							</tr>
							</if>
							$cyb_topstats_s4
						</table>
					</td>
				</if>
				<if condition="($vboptions[cybtopstats_switch_s6]>'0')">
					<td>
						<table width="100%" cellpadding="0" cellspacing="0" border="0">
							<if condition="($vboptions[cybtopstats_layout]=='1')">
							<tr style="height:14px;vertical-align:top">
								<td align="$stylevar[left]" nowrap="nowrap" class="smallfont">$cyb_topstats_s6p1</td>
								<td align="$stylevar[right]" nowrap="nowrap" class="smallfont">$cyb_topstats_s6p2</td>
							</tr>
							</if>
							$cyb_topstats_s6
						</table>
					</td>
				</if>
				<if condition="($vboptions[cybtopstats_switch_s8]>'0')">
					<td>
						<table width="100%" cellpadding="0" cellspacing="0" border="0">
							<if condition="($vboptions[cybtopstats_layout]=='1')">
							<tr style="height:14px;vertical-align:top">
								<td align="$stylevar[left]" nowrap="nowrap" class="smallfont">$cyb_topstats_s8p1</td>
								<td align="$stylevar[right]" nowrap="nowrap" class="smallfont">$cyb_topstats_s8p2</td>
							</tr>
							</if>
							$cyb_topstats_s8
						</table>
					</td>
				</if>
				<if condition="($vboptions[cybtopstats_switch_s10]>'0')">
					<td>
						<table width="100%" cellpadding="0" cellspacing="0" border="0">
							<if condition="($vboptions[cybtopstats_layout]=='1')">
							<tr style="height:14px;vertical-align:top">
								<td align="$stylevar[left]" nowrap="nowrap" class="smallfont">$cyb_topstats_s10p1</td>
								<td align="$stylevar[right]" nowrap="nowrap" class="smallfont">$cyb_topstats_s10p2</td>
							</tr>
							</if>
							$cyb_topstats_s10
						</table>
					</td>
				</if>
			</tr>
		</if>	
		</tbody>
	</table>
	<br />]]></template>
		<template name="cyb_topstats_thanks" templatetype="template" date="1177871322" username="Cybernetec" version="5.2"><![CDATA[
	<tr style="height:14px;vertical-align:top">
		<td align="$stylevar[left]" nowrap="nowrap" class="smallfont" title="$getstats_thx[fullusername]"><a href="member.php?$session[sessionurl]u=$getstats_thx[userid]">$getstats_thx[musername]</a></td>
		<td align="$stylevar[right]" nowrap="nowrap" class="smallfont" title="$vbphrase[post_thanks_total_thanks]" width="1%">&nbsp;$getstats_thx[post_thanks_thanked_times]</td>
	</tr>
	]]></template>
		<template name="cyb_topstats_topforums" templatetype="template" date="1177871322" username="Cybernetec" version="5.2"><![CDATA[
	<tr style="height:14px;vertical-align:top">
		<td align="$stylevar[left]" nowrap="nowrap" class="smallfont" title="$get_topforums[fullforumtitle]"><a href="forumdisplay.php?$session[sessionurl]f=$get_topforums[forumid]">$get_topforums[titletrimmed]</a></td>
		<td align="$stylevar[right]" nowrap="nowrap" class="smallfont" title="$vbphrase[posts]" width="1%">&nbsp;$get_topforums[replycount]</td>
	</tr>
	]]></template>
		<template name="cyb_topstats_turnon" templatetype="template" date="1177871322" username="Cybernetec" version="5.2"><![CDATA[
	<if condition="!$cybstats_show"><a href="misc.php?do=enablestats" rel="nofollow">$vbphrase[cyb_afs_turnon_stats]</a></if>
	]]></template>
	</templates>
	<plugins>
		<plugin active="1" executionorder="5">
			<title>Cyb - Advanced Forum Statistics - CT</title>
			<hookname>cache_templates</hookname>
			<phpcode><![CDATA[
		if ($vbulletin->options['cybtopstats_enable_global'])
		{
			$globaltemplates = array_merge($globaltemplates, array('cyb_topstats_stats', 'cyb_topstats_latestnews', 'cyb_topstats_member', 'cyb_topstats_poster', 'cyb_topstats_starter', 'cyb_topstats_referrer', 'cyb_topstats_mostviewed', 'cyb_topstats_hottest', 'cyb_topstats_reputation', 'cyb_topstats_thanks', 'cyb_topstats_topforums', 'cyb_topstats_newposts', 'cyb_topstats_infractions', 'cyb_topstats_turnon', 'cyb_topstats_php'));
		}]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>Cyb - Advanced Forum Statistics - UT</title>
			<hookname>cron_script_cleanup</hookname>
			<phpcode><![CDATA[
		if ($vbulletin->options['cybtopstats_enable_global'] AND (($vbulletin->options['cybtopstats_switch_s1']=='4') OR ($vbulletin->options['cybtopstats_switch_s2']=='4') OR ($vbulletin->options['cybtopstats_switch_s3']=='4') OR ($vbulletin->options['cybtopstats_switch_s4']=='4') OR ($vbulletin->options['cybtopstats_switch_s5']=='4') OR ($vbulletin->options['cybtopstats_switch_s6']=='4') OR ($vbulletin->options['cybtopstats_switch_s7']=='4') OR ($vbulletin->options['cybtopstats_switch_s8']=='4') OR ($vbulletin->options['cybtopstats_switch_s9']=='4') OR ($vbulletin->options['cybtopstats_switch_s10']=='4')))
		{
			$vbulletin->db->query_write("
			UPDATE " . TABLE_PREFIX . "user AS user 
			SET user.threads =
			(
				SELECT COUNT(threadid) 
				FROM " . TABLE_PREFIX . "thread AS thread
				LEFT JOIN " . TABLE_PREFIX . "forum AS forum ON forum.forumid = thread.forumid 
				WHERE visible = 1
				AND (forum.options & 4096) 
				AND user.userid=postuserid
			)
			");
		}]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>Cyb - Advanced Forum Statistics - FH</title>
			<hookname>misc_start</hookname>
			<phpcode><![CDATA[
		if ($vbulletin->options['cybtopstats_enable_global'] AND ($_REQUEST['do'] == 'cybstats') AND !in_array($vbulletin->userinfo['usergroupid'], array($cybtopstats_exclgroups)))
		{
			require_once('./global.php');
			construct_forum_jump();
			$navbits = construct_navbits(array('' => $vbphrase['cyb_top_stats']));
			eval('$navbar = "' . fetch_template('navbar') . '";');
			eval('print_output("' . fetch_template('cyb_topstats_php') . '");');
		}
		if ($vbulletin->options['cybtopstats_enable_global'] AND ($_REQUEST['do'] == 'enablestats') AND !in_array($vbulletin->userinfo['usergroupid'], array($cybtopstats_exclgroups)))
		{
			$vbulletin->db->query_write(" UPDATE " . TABLE_PREFIX . "user SET showcybstats = '1' WHERE userid = " . $vbulletin->userinfo['userid'] . " ");
			exec_header_redirect($vbulletin->options['bburl'].'#cyb_stats');
		}
		if ($vbulletin->options['cybtopstats_enable_global'] AND ($_REQUEST['do'] == 'disablestats') AND !in_array($vbulletin->userinfo['usergroupid'], array($cybtopstats_exclgroups)))
		{
			$vbulletin->db->query_write(" UPDATE " . TABLE_PREFIX . "user SET showcybstats = '0' WHERE userid = " . $vbulletin->userinfo['userid'] . " ");
			$vbulletin->templatecache['navbar'] = str_replace('$vbphrase[miscellaneous]</td></tr>', '$vbphrase[miscellaneous]</td></tr><tr><td class=\"vbmenu_option\" title=\"'.$vbphrase['cyb_afs_turnon_stats'].'\">'.$vbulletin->templatecache['cyb_topstats_turnon'].'</td></tr>', $vbulletin->templatecache['navbar']);
			eval(standard_error(fetch_error('cyb_topstats_disabled_note', $vbphrase['cyb_afs_turnon_stats'], $vbphrase['quick_links'])));
		}]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>Cyb - Advanced Forum Statistics - MN</title>
			<hookname>parse_templates</hookname>
			<phpcode><![CDATA[
		eval('$cybtopstats_exclgroups = in_array($vbulletin->userinfo[usergroupid], array(' . $vbulletin->options['cybtopstats_excl_groups'] . '));');
		eval('$cybtopstats_locs = in_array(THIS_SCRIPT, array(misc,' . $vbulletin->options['cybtopstats_add_loc'] . '));');
		eval('$cybtopstats_cantviewmore = in_array($vbulletin->userinfo[usergroupid], array(' . $vbulletin->options['cybtopstats_cant_viewmore'] . '));');

		if ($vbulletin->options['cybtopstats_enable_global'] AND !in_array($vbulletin->userinfo['usergroupid'], array($cybtopstats_exclgroups)) AND !isset($_POST['fromquickreply']))
		{
			if ($vbulletin->userinfo['userid'])
			{
				$cybstats_show_check = $vbulletin->db->query_read(" SELECT showcybstats FROM " . TABLE_PREFIX . "user AS user WHERE userid = " . $vbulletin->userinfo['userid'] . " ");
				while ($cybstats_show_status = $db->fetch_array($cybstats_show_check))
				{
					$cybstats_show = $cybstats_show_status['showcybstats'];
				}
				if ($cybstats_show=='1')
				{
					$cybstats_show = true;
				}
				else
				{
					$cybstats_show = false;
				}

				if (!$cybstats_show)
				{
					$vbulletin->templatecache['navbar'] = str_replace('$vbphrase[miscellaneous]</td></tr>', '$vbphrase[miscellaneous]</td></tr><tr><td class=\"vbmenu_option\" title=\"'.$vbphrase['cyb_afs_turnon_stats'].'\">'.$vbulletin->templatecache['cyb_topstats_turnon'].'</td></tr>', $vbulletin->templatecache['navbar']);
				}
			}
			else
			{
				$cybstats_show = true;
			}
		}

		if (!$cybstats_show)
		{
			eval('$cybts_enablelink = "' . fetch_template('cyb_topstats_turnon') . '";');
		}

		if ($cybstats_show AND ((($vbulletin->options['cybtopstats_window_loc']!='0') AND (THIS_SCRIPT == "index")) OR in_array(THIS_SCRIPT, array($cybtopstats_locs))))
		{
			$db->hide_errors();
			global $vbulletin;

			$cybstatsforumperms = array();
			foreach($vbulletin->forumcache AS $cybtsforum)
			{
				$cybstatsforumperms[$cybtsforum["forumid"]] = fetch_permissions($cybtsforum['forumid']);
				if ((!($cybstatsforumperms[$cybtsforum["forumid"]] & $vbulletin->bf_ugp_forumpermissions['canview'])) OR (!($cybtsforum['options'] & $vbulletin->bf_misc_forumoptions['active']) AND !$vbulletin->options['showprivateforums'] AND !in_array($vbulletin->userinfo['usergroupid'], array(5,6,7))))
				{
					$cybexclfids .= ','.$cybtsforum['forumid'];
				}
			}
			if ($vbulletin->options['cybtopstats_excl_forums']!='')
			{
				$cybexclfids .= ','.$vbulletin->options['cybtopstats_excl_forums'];
			}
			$cybexclfids = substr($cybexclfids, 1);
			if ($cybexclfids!='')
			{
				$cybexclforums_lastposts = "AND thread.forumid NOT IN($cybexclfids)";
				$cybexclforums = "AND forumid NOT IN($cybexclfids)";
			}
			unset($cybtsforum);

			if ($vbulletin->options['cybtopstats_excl_groups_listing']!='')
			{
				$cybexclgids = ','.$vbulletin->options['cybtopstats_excl_groups_listing'];
			}			
			$cybexclgids = substr($cybexclgids, 1);
			if ($cybexclgids!='')
			{
				$cybexclgroups_ref = "AND user.usergroupid NOT IN ($cybexclgids)";
				$cybexclgroups = "AND usergroupid NOT IN ($cybexclgids)";
			}			

			$cyb_rnr_first_srch = strpos($vbulletin->options['cybtopstats_amount_more'], ",");
			$cyb_rnr_first = substr($vbulletin->options['cybtopstats_amount_more'],0,$cyb_rnr_first_srch);

			if ($_REQUEST['do'] == 'cybstats')
			{
				$cyb_rnr_options = explode(',', $vbulletin->options['cybtopstats_amount_more']);
				foreach ($cyb_rnr_options AS $cyb_rnr_option)
				{
					eval('$resultsnrsw .= " <option value=\"'.$cyb_rnr_option.'\" >'.$cyb_rnr_option.'</option> ";');
				}

				$resultsnr = $vbulletin->input->clean_gpc('r', 'resultsnr', TYPE_UINT);
				if ($resultsnr == '')
				{
					$resultsnr = $cyb_rnr_first;
				}
			}
			else
			{
				$resultsnr = intval($vbulletin->options['cybtopstats_amount_main']);
				if ($resultsnr <= 0)
				{
					$resultsnr = $cyb_rnr_first;
				}
			}

			if ($vbulletin->options['cybtopstats_layout']=='1')
			{
				$resultsnrnp = $resultsnr;
			}
			else
			{
				$resultsnrnp = $resultsnr*2;
			}

			$trimthreadtitle = $vbulletin->options['cybtopstats_trim_threadtitles'];
			if ($trimthreadtitle <= 0)
			{
				$trimthreadtitle = $vbulletin->options['lastthreadchars'];
			}
			$trimusername = $vbulletin->options['cybtopstats_trim_usernames'];
			$trimforumtitles = $vbulletin->options['cybtopstats_trim_forumtitles'];	

			switch ($vbulletin->options['cybtopstats_tablebg'])
			{
				case 1: $cybstats_tbg = $stylevar['alt1_bgcolor']; break;
				case 2: $cybstats_tbg = $stylevar['alt2_bgcolor']; break;
			}

			$newpostprefix = '<img border="0" alt="'.$vbphrase['new'].'" src="'.$vbulletin->options['cybtopstats_prefix_new'].'" />';
			$oldpostprefix = '<img border="0" alt="'.$vbphrase['old'].'" src="'.$vbulletin->options['cybtopstats_prefix_old'].'" />';
			$cyb_afs_bpar = array("<strong>","</strong>","<b>","</b>", "font-weight: bold", "font-weight:bold");

			if ($vbulletin->options['cybtopstats_layout']=='2')
			{
				if ($vbulletin->options['cybtopstats_switch_s1']=='0')
				{
					$vbulletin->options['cybtopstats_switch_s2']='0';
				}
				if ($vbulletin->options['cybtopstats_switch_s3']=='0')
				{
					$vbulletin->options['cybtopstats_switch_s4']='0';
				}
				if ($vbulletin->options['cybtopstats_switch_s5']=='0')
				{
					$vbulletin->options['cybtopstats_switch_s6']='0';
				}
				if ($vbulletin->options['cybtopstats_switch_s7']=='0')
				{
					$vbulletin->options['cybtopstats_switch_s8']='0';
				}
				if ($vbulletin->options['cybtopstats_switch_s9']=='0')
				{
					$vbulletin->options['cybtopstats_switch_s10']='0';
				}

				if ($vbulletin->options['cybtopstats_switch_s2']=='0')
				{
					$vbulletin->options['cybtopstats_switch_s1']='0';
				}
				if ($vbulletin->options['cybtopstats_switch_s4']=='0')
				{
					$vbulletin->options['cybtopstats_switch_s3']='0';
				}
				if ($vbulletin->options['cybtopstats_switch_s6']=='0')
				{
					$vbulletin->options['cybtopstats_switch_s5']='0';
				}
				if ($vbulletin->options['cybtopstats_switch_s8']=='0')
				{
					$vbulletin->options['cybtopstats_switch_s7']='0';
				}
				if ($vbulletin->options['cybtopstats_switch_s10']=='0')
				{
					$vbulletin->options['cybtopstats_switch_s9']='0';
				}
			}

			if (($vbulletin->options['cybtopstats_switch_s1']=='1') OR ($vbulletin->options['cybtopstats_switch_s2']=='1') OR ($vbulletin->options['cybtopstats_switch_s3']=='1') OR ($vbulletin->options['cybtopstats_switch_s4']=='1') OR ($vbulletin->options['cybtopstats_switch_s5']=='1') OR ($vbulletin->options['cybtopstats_switch_s6']=='1') OR ($vbulletin->options['cybtopstats_switch_s7']=='1') OR ($vbulletin->options['cybtopstats_switch_s8']=='1') OR ($vbulletin->options['cybtopstats_switch_s9']=='1') OR ($vbulletin->options['cybtopstats_switch_s10']=='1'))
			{
				$cybtopstats_enable_latestnews = true;
			}
			if (($vbulletin->options['cybtopstats_switch_s1']=='2') OR ($vbulletin->options['cybtopstats_switch_s2']=='2') OR ($vbulletin->options['cybtopstats_switch_s3']=='2') OR ($vbulletin->options['cybtopstats_switch_s4']=='2') OR ($vbulletin->options['cybtopstats_switch_s5']=='2') OR ($vbulletin->options['cybtopstats_switch_s6']=='2') OR ($vbulletin->options['cybtopstats_switch_s7']=='2') OR ($vbulletin->options['cybtopstats_switch_s8']=='2') OR ($vbulletin->options['cybtopstats_switch_s9']=='2') OR ($vbulletin->options['cybtopstats_switch_s10']=='2'))
			{
				$cybtopstats_enable_newmem = true;
			}
			if (($vbulletin->options['cybtopstats_switch_s1']=='3') OR ($vbulletin->options['cybtopstats_switch_s2']=='3') OR ($vbulletin->options['cybtopstats_switch_s3']=='3') OR ($vbulletin->options['cybtopstats_switch_s4']=='3') OR ($vbulletin->options['cybtopstats_switch_s5']=='3') OR ($vbulletin->options['cybtopstats_switch_s6']=='3') OR ($vbulletin->options['cybtopstats_switch_s7']=='3') OR ($vbulletin->options['cybtopstats_switch_s8']=='3') OR ($vbulletin->options['cybtopstats_switch_s9']=='3') OR ($vbulletin->options['cybtopstats_switch_s10']=='3'))
			{
				$cybtopstats_enable_toppost = true;
			}
			if (($vbulletin->options['cybtopstats_switch_s1']=='4') OR ($vbulletin->options['cybtopstats_switch_s2']=='4') OR ($vbulletin->options['cybtopstats_switch_s3']=='4') OR ($vbulletin->options['cybtopstats_switch_s4']=='4') OR ($vbulletin->options['cybtopstats_switch_s5']=='4') OR ($vbulletin->options['cybtopstats_switch_s6']=='4') OR ($vbulletin->options['cybtopstats_switch_s7']=='4') OR ($vbulletin->options['cybtopstats_switch_s8']=='4') OR ($vbulletin->options['cybtopstats_switch_s9']=='4') OR ($vbulletin->options['cybtopstats_switch_s10']=='4'))
			{
				$cybtopstats_enable_topstarters = true;
			}
			if (($vbulletin->options['cybtopstats_switch_s1']=='5') OR ($vbulletin->options['cybtopstats_switch_s2']=='5') OR ($vbulletin->options['cybtopstats_switch_s3']=='5') OR ($vbulletin->options['cybtopstats_switch_s4']=='5') OR ($vbulletin->options['cybtopstats_switch_s5']=='5') OR ($vbulletin->options['cybtopstats_switch_s6']=='5') OR ($vbulletin->options['cybtopstats_switch_s7']=='5') OR ($vbulletin->options['cybtopstats_switch_s8']=='5') OR ($vbulletin->options['cybtopstats_switch_s9']=='5') OR ($vbulletin->options['cybtopstats_switch_s10']=='5'))
			{
				$cybtopstats_enable_topreferrers = true;
			}
			if (($vbulletin->options['cybtopstats_switch_s1']=='6') OR ($vbulletin->options['cybtopstats_switch_s2']=='6') OR ($vbulletin->options['cybtopstats_switch_s3']=='6') OR ($vbulletin->options['cybtopstats_switch_s4']=='6') OR ($vbulletin->options['cybtopstats_switch_s5']=='6') OR ($vbulletin->options['cybtopstats_switch_s6']=='6') OR ($vbulletin->options['cybtopstats_switch_s7']=='6') OR ($vbulletin->options['cybtopstats_switch_s8']=='6') OR ($vbulletin->options['cybtopstats_switch_s9']=='6') OR ($vbulletin->options['cybtopstats_switch_s10']=='6'))
			{
				$cybtopstats_enable_mostviewed = true;
			}
			if (($vbulletin->options['cybtopstats_switch_s1']=='7') OR ($vbulletin->options['cybtopstats_switch_s2']=='7') OR ($vbulletin->options['cybtopstats_switch_s3']=='7') OR ($vbulletin->options['cybtopstats_switch_s4']=='7') OR ($vbulletin->options['cybtopstats_switch_s5']=='7') OR ($vbulletin->options['cybtopstats_switch_s6']=='7') OR ($vbulletin->options['cybtopstats_switch_s7']=='7') OR ($vbulletin->options['cybtopstats_switch_s8']=='7') OR ($vbulletin->options['cybtopstats_switch_s9']=='7') OR ($vbulletin->options['cybtopstats_switch_s10']=='7'))
			{
				$cybtopstats_enable_hottest = true;
			}
			if (($vbulletin->options['cybtopstats_switch_s1']=='8') OR ($vbulletin->options['cybtopstats_switch_s2']=='8') OR ($vbulletin->options['cybtopstats_switch_s3']=='8') OR ($vbulletin->options['cybtopstats_switch_s4']=='8') OR ($vbulletin->options['cybtopstats_switch_s5']=='8') OR ($vbulletin->options['cybtopstats_switch_s6']=='8') OR ($vbulletin->options['cybtopstats_switch_s7']=='8') OR ($vbulletin->options['cybtopstats_switch_s8']=='8') OR ($vbulletin->options['cybtopstats_switch_s9']=='8') OR ($vbulletin->options['cybtopstats_switch_s10']=='8'))
			{
				$cybtopstats_enable_rep = true;
			}
			if (($vbulletin->options['cybtopstats_switch_s1']=='9') OR ($vbulletin->options['cybtopstats_switch_s2']=='9') OR ($vbulletin->options['cybtopstats_switch_s3']=='9') OR ($vbulletin->options['cybtopstats_switch_s4']=='9') OR ($vbulletin->options['cybtopstats_switch_s5']=='9') OR ($vbulletin->options['cybtopstats_switch_s6']=='9') OR ($vbulletin->options['cybtopstats_switch_s7']=='9') OR ($vbulletin->options['cybtopstats_switch_s8']=='9') OR ($vbulletin->options['cybtopstats_switch_s9']=='9') OR ($vbulletin->options['cybtopstats_switch_s10']=='9'))
			{
				$cybtopstats_enable_thx = true;
			}
			if (($vbulletin->options['cybtopstats_switch_s1']=='10') OR ($vbulletin->options['cybtopstats_switch_s2']=='10') OR ($vbulletin->options['cybtopstats_switch_s3']=='10') OR ($vbulletin->options['cybtopstats_switch_s4']=='10') OR ($vbulletin->options['cybtopstats_switch_s5']=='10') OR ($vbulletin->options['cybtopstats_switch_s6']=='10') OR ($vbulletin->options['cybtopstats_switch_s7']=='10') OR ($vbulletin->options['cybtopstats_switch_s8']=='10') OR ($vbulletin->options['cybtopstats_switch_s9']=='10') OR ($vbulletin->options['cybtopstats_switch_s10']=='10'))
			{
				$cybtopstats_enable_topforums = true;
			}
			if (($vbulletin->options['cybtopstats_switch_s1']=='11') OR ($vbulletin->options['cybtopstats_switch_s2']=='11') OR ($vbulletin->options['cybtopstats_switch_s3']=='11') OR ($vbulletin->options['cybtopstats_switch_s4']=='11') OR ($vbulletin->options['cybtopstats_switch_s5']=='11') OR ($vbulletin->options['cybtopstats_switch_s6']=='11') OR ($vbulletin->options['cybtopstats_switch_s7']=='11') OR ($vbulletin->options['cybtopstats_switch_s8']=='11') OR ($vbulletin->options['cybtopstats_switch_s9']=='11') OR ($vbulletin->options['cybtopstats_switch_s10']=='11'))
			{
				$cybtopstats_enable_infractions = true;
			}
			if (($vbulletin->options['cybtopstats_switch_lpl']=='1') OR ($vbulletin->options['cybtopstats_switch_lpr']=='1'))
			{
				$cybtopstats_enable_lastpost = true;
			}

			if ($cybtopstats_enable_latestnews)
			{
				if ($vbulletin->options['cybtopstats_latestnews_newsforumid'] !== '')
				{
					$cybnewsforums = ',' . $vbulletin->options['cybtopstats_latestnews_newsforumid'];
				}
				$cybnewsforums = substr($cybnewsforums, 1);
				if ($cybnewsforums != '')
				{
					$cybnewsforums = "AND thread.forumid IN ($cybnewsforums)";
				}
				$get_stats_latestnews = $vbulletin->db->query_read("
					SELECT threadid, title, lastpost, forumid, dateline, visible
					FROM " . TABLE_PREFIX . "thread AS thread
					WHERE NOT ISNULL(threadid) $cybnewsforums AND visible = '1'
					ORDER BY dateline DESC LIMIT 0, $resultsnr
				");
				while ($get_latest_news = $db->fetch_array($get_stats_latestnews))
				{
					$get_latest_news[title] = strip_tags($get_latest_news[title]);
					$get_latest_news[fullthreadtitle] = strip_tags($get_latest_news[title]);
					if ($trimthreadtitle > 0)
					{
						if (strlen($get_latest_news[title]) > $trimthreadtitle)
						{		
							$get_latest_news[titletrimmed] = fetch_trimmed_title($get_latest_news[title], $trimthreadtitle);
						}
						else
						{
							$get_latest_news[titletrimmed] = $get_latest_news[title];
						}
						$get_latest_news[titletrimmed] = strip_tags($get_latest_news[titletrimmed]);
					}
					if ($get_latest_news[lastpost] > $vbulletin->userinfo['lastvisit'])
					{
						$get_latest_news[newpost] = true;
					}
					if ($get_latest_news[isdeleted])
					{
						$get_latest_news[isdeleted] = true;
					}
					$get_news_postdate = vbdate($vbulletin->options['cybtopstats_date_format'], $get_latest_news[dateline]);
					eval('$cybtopstats_latestnews .= "' . $vbulletin->templatecache['cyb_topstats_latestnews'] . '";');
				}
			}

			if ($cybtopstats_enable_newmem)
			{
				$get_stats_newmem = $vbulletin->db->query_read("
					SELECT userid, usergroupid, IF(displaygroupid=0, usergroupid, displaygroupid) AS displaygroupid, username, joindate, posts
					FROM " . TABLE_PREFIX . "user AS user
					WHERE userid > '0' $cybexclgroups
					ORDER BY joindate DESC LIMIT 0, $resultsnr
				");
				while ($get_new_mem = $db->fetch_array($get_stats_newmem))
				{
					if ($get_new_mem[joindate] > $vbulletin->userinfo['lastvisit'])
					{
						$get_new_mem[newuser] = true;
					}
					$get_new_mem[fullusername] = strip_tags($get_new_mem[username]);
					if ($trimusername > 0)
					{
						if (strlen($get_new_mem[username]) > $trimusername)
						{		
							$get_new_mem[username] = fetch_trimmed_title($get_new_mem[username], $trimusername);
						}
						else
						{
							$get_new_mem[username] = $get_new_mem[username];
						}
						$get_new_mem[username] = strip_tags($get_new_mem[username]);
					}
					$get_new_mem[musername] = fetch_musername($get_new_mem);
					if ($vbulletin->options['cybtopstats_bold_remove'])
					{
						$get_new_mem[musername] = str_replace($cyb_afs_bpar, "", $get_new_mem[musername]);
					}
					$cybmemberjoined = vbdate($vbulletin->options['cybtopstats_date_format'], $get_new_mem['joindate']);
					eval('$cybtopstats_members .= "' . $vbulletin->templatecache['cyb_topstats_member'] . '";');
				}
			}

			if ($cybtopstats_enable_toppost)
			{
				$get_stats_posters = $vbulletin->db->query_read("
					SELECT userid, usergroupid, IF(displaygroupid=0, usergroupid, displaygroupid) AS displaygroupid, username, posts
					FROM " . TABLE_PREFIX . "user AS user
					WHERE posts > '0' $cybexclgroups
					ORDER BY posts DESC LIMIT 0, $resultsnr
				");
				while ($getstats_poster = $db->fetch_array($get_stats_posters))
				{
					$getstats_poster[fullusername] = strip_tags($getstats_poster[username]);
					if ($trimusername > 0)
					{
						if (strlen($getstats_poster[username]) > $trimusername)
						{		
							$getstats_poster[username] = fetch_trimmed_title($getstats_poster[username], $trimusername);
						}
						else
						{
							$getstats_poster[username] = $getstats_poster[username];
						}
						$getstats_poster[username] = strip_tags($getstats_poster[username]);
					}
					$getstats_poster[musername] = fetch_musername($getstats_poster);
					if ($vbulletin->options['cybtopstats_bold_remove'])
					{
						$getstats_poster[musername] = str_replace($cyb_afs_bpar, "", $getstats_poster[musername]);
					}
					eval('$cybtopstats_posters .= "' . $vbulletin->templatecache['cyb_topstats_poster'] . '";');
				}
			}

			if ($cybtopstats_enable_topstarters)
			{
				$get_stats_starters = $vbulletin->db->query_read("
					SELECT userid, usergroupid, IF(displaygroupid=0, usergroupid, displaygroupid) AS displaygroupid, username, threads
					FROM " . TABLE_PREFIX . "user AS user
					WHERE threads > '0' $cybexclgroups
					ORDER BY threads DESC LIMIT 0, $resultsnr
				");
				while ($getstats_starter = $db->fetch_array($get_stats_starters))
				{
					$getstats_starter[fullusername] = strip_tags($getstats_starter[username]);
					if ($trimusername > 0)
					{
						if (strlen($getstats_starter[username]) > $trimusername)
						{		
							$getstats_starter[username] = fetch_trimmed_title($getstats_starter[username], $trimusername);
						}
						else
						{
							$getstats_starter[username] = $getstats_starter[username];
						}
						$getstats_starter[username] = strip_tags($getstats_starter[username]);
					}
					$getstats_starter[musername] = fetch_musername($getstats_starter);
					if ($vbulletin->options['cybtopstats_bold_remove'])
					{
						$getstats_starter[musername] = str_replace($cyb_afs_bpar, "", $getstats_starter[musername]);
					}
					eval('$cybtopstats_starters .= "' . $vbulletin->templatecache['cyb_topstats_starter'] . '";');
				}
			}

			if ($cybtopstats_enable_topreferrers)
			{
				$get_stats_referrers = $vbulletin->db->query_read("
					SELECT COUNT(*) AS refnumber, user.username, user.userid, user.usergroupid, user.referrerid
					FROM " . TABLE_PREFIX . "user AS refs
					LEFT JOIN " . TABLE_PREFIX . "user AS user ON (refs.referrerid = user.userid)
					WHERE refs.referrerid > '0' $cybexclgroups_ref
					GROUP BY refs.referrerid
					ORDER BY refnumber DESC LIMIT 0, $resultsnr
				");
				while ($getstats_referrer = $db->fetch_array($get_stats_referrers))
				{
					$getstats_referrer[fullusername] = strip_tags($getstats_referrer[username]);
					if ($trimusername > 0)
					{
						if (strlen($getstats_referrer[username]) > $trimusername)
						{		
							$getstats_referrer[username] = fetch_trimmed_title($getstats_referrer[username], $trimusername);
						}
						else
						{
							$getstats_referrer[username] = $getstats_referrer[username];
						}
						$getstats_referrer[username] = strip_tags($getstats_referrer[username]);
					}
					$getstats_referrer[musername] = fetch_musername($getstats_referrer);
					if ($vbulletin->options['cybtopstats_bold_remove'])
					{
						$getstats_referrer[musername] = str_replace($cyb_afs_bpar, "", $getstats_referrer[musername]);
					}
					eval('$cybtopstats_referrers .= "' . $vbulletin->templatecache['cyb_topstats_referrer'] . '";');
				}
			}

			if ($cybtopstats_enable_mostviewed)
			{
				$get_stats_mostviewed = $vbulletin->db->query_read("
					SELECT threadid, title, forumid, dateline, IF(views<=replycount, replycount+1, views) AS views, visible
					FROM " . TABLE_PREFIX . "thread AS thread
					WHERE NOT ISNULL(threadid) AND visible = '1' AND views > '0' $cybexclforums
					ORDER BY views DESC LIMIT 0, $resultsnr
				");
				while ($get_most_viewed = $db->fetch_array($get_stats_mostviewed))
				{
					$get_most_viewed[title] = strip_tags($get_most_viewed[title]);
					$get_most_viewed[fullthreadtitle] = strip_tags($get_most_viewed[title]);
					if ($trimthreadtitle > 0)
					{
						if (strlen($get_most_viewed[title]) > $trimthreadtitle)
						{		
							$get_most_viewed[titletrimmed] = fetch_trimmed_title($get_most_viewed[title], $trimthreadtitle);
						}
						else
						{
							$get_most_viewed[titletrimmed] = $get_most_viewed[title];
						}
						$get_most_viewed[titletrimmed] = strip_tags($get_most_viewed[titletrimmed]);
					}
					if ($get_most_viewed[lastpost] > $vbulletin->userinfo['lastvisit'])
					{
						$get_most_viewed[newpost] = true;
					}
					if ($get_most_viewed[isdeleted])
					{
						$get_most_viewed[isdeleted] = true;
					}
					eval('$cybtopstats_mostviewed .= "' . $vbulletin->templatecache['cyb_topstats_mostviewed'] . '";');
				}
			}

			if ($cybtopstats_enable_hottest)
			{
				$get_stats_hottest = $vbulletin->db->query_read("
					SELECT threadid, title, lastpost, forumid, replycount, dateline, visible
					FROM " . TABLE_PREFIX . "thread AS thread
					WHERE NOT ISNULL(threadid) AND visible = '1' AND replycount > '0' $cybexclforums
					ORDER BY replycount DESC LIMIT 0, $resultsnr
				");
				while ($get_hottest_threads = $db->fetch_array($get_stats_hottest))
				{
					$get_hottest_threads[title] = strip_tags($get_hottest_threads[title]);
					$get_hottest_threads[fullthreadtitle] = strip_tags($get_hottest_threads[title]);
					if ($trimthreadtitle > 0)
					{
						if (strlen($get_hottest_threads[title]) > $trimthreadtitle)
						{		
							$get_hottest_threads[titletrimmed] = fetch_trimmed_title($get_hottest_threads[title], $trimthreadtitle);
						}
						else
						{
							$get_hottest_threads[titletrimmed] = $get_hottest_threads[title];
						}
						$get_hottest_threads[titletrimmed] = strip_tags($get_hottest_threads[titletrimmed]);
					}
					if ($get_hottest_threads[lastpost] > $vbulletin->userinfo['lastvisit'])
					{
						$get_hottest_threads[newpost] = true;
					}
					if ($get_hottest_threads[isdeleted])
					{
						$get_hottest_threads[isdeleted] = true;
					}
					eval('$cybtopstats_hottest .= "' . $vbulletin->templatecache['cyb_topstats_hottest'] . '";');
				}
			}

			if ($cybtopstats_enable_rep)
			{
				$get_stats_reputation = $vbulletin->db->query_read("
					SELECT userid, usergroupid, IF(displaygroupid=0, usergroupid, displaygroupid) AS displaygroupid, username, posts, reputation
					FROM " . TABLE_PREFIX . "user AS user
					WHERE reputation > '0' $cybexclgroups
					ORDER BY reputation DESC LIMIT 0, $resultsnr
				");
				while ($getstats_rep = $db->fetch_array($get_stats_reputation))
				{
					$getstats_rep[fullusername] = strip_tags($getstats_rep[username]);
					if ($trimusername > 0)
					{
						if (strlen($getstats_rep[username]) > $trimusername)
						{		
							$getstats_rep[username] = fetch_trimmed_title($getstats_rep[username], $trimusername);
						}
						else
						{
							$getstats_rep[username] = $getstats_rep[username];
						}
						$getstats_rep[username] = strip_tags($getstats_rep[username]);
					}
					$getstats_rep[musername] = fetch_musername($getstats_rep);
					if ($vbulletin->options['cybtopstats_bold_remove'])
					{
						$getstats_rep[musername] = str_replace($cyb_afs_bpar, "", $getstats_rep[musername]);
					}
					eval('$cybtopstats_reputation .= "' . $vbulletin->templatecache['cyb_topstats_reputation'] . '";');
				}
			}

			if ($cybtopstats_enable_thx AND $vbulletin->options['post_thanks_on_off'])
			{
				$get_stats_thanks = $vbulletin->db->query_read("
					SELECT userid, usergroupid, IF(displaygroupid=0, usergroupid, displaygroupid) AS displaygroupid, username, posts, post_thanks_thanked_times
					FROM " . TABLE_PREFIX . "user AS user
					WHERE post_thanks_thanked_times > '0' $cybexclgroups
					ORDER BY post_thanks_thanked_times DESC LIMIT 0, $resultsnr
				");
				while ($getstats_thx = $db->fetch_array($get_stats_thanks))
				{
					$getstats_thx[fullusername] = strip_tags($getstats_thx[username]);
					if ($trimusername > 0)
					{
						if (strlen($getstats_thx[username]) > $trimusername)
						{		
							$getstats_thx[username] = fetch_trimmed_title($getstats_thx[username], $trimusername);
						}
						else
						{
							$getstats_thx[username] = $getstats_thx[username];
						}
						$getstats_thx[username] = strip_tags($getstats_thx[username]);
					}
					$getstats_thx[musername] = fetch_musername($getstats_thx);
					if ($vbulletin->options['cybtopstats_bold_remove'])
					{
						$getstats_thx[musername] = str_replace($cyb_afs_bpar, "", $getstats_thx[musername]);
					}
					eval('$cybtopstats_thanks .= "' . $vbulletin->templatecache['cyb_topstats_thanks'] . '";');
				}
			}

			if ($cybtopstats_enable_topforums)
			{
				$get_stats_topforums = $vbulletin->db->query_read("
					SELECT forumid, title_clean, replycount
					FROM " . TABLE_PREFIX . "forum AS forum
					WHERE replycount > '0' $cybexclforums
					ORDER BY replycount DESC LIMIT 0, $resultsnr");
				while ($get_topforums = $db->fetch_array($get_stats_topforums))
				{
					$get_topforums[title] = strip_tags($get_topforums[title_clean]);
					$get_topforums[fullforumtitle] = strip_tags($get_topforums[title_clean]);
					if ($trimforumtitles > 0)
					{
						if (strlen($get_topforums[title]) > $trimforumtitles)
						{		
							$get_topforums[titletrimmed] = fetch_trimmed_title($get_topforums[title], $trimforumtitles);
						}
						else
						{
							$get_topforums[titletrimmed] = $get_topforums[title];
						}
						$get_topforums[titletrimmed] = strip_tags($get_topforums[titletrimmed]);
					}
					eval('$cybtopstats_topforums .= "' . $vbulletin->templatecache['cyb_topstats_topforums'] . '";');
				}
			}

			if ($cybtopstats_enable_infractions)
			{
				$get_stats_infractions = $vbulletin->db->query_read("
					SELECT userid, usergroupid, IF(displaygroupid=0, usergroupid, displaygroupid) AS displaygroupid, username, infractions
					FROM " . TABLE_PREFIX . "user AS user
					WHERE infractions > '0' $cybexclgroups
					ORDER BY infractions DESC LIMIT 0, $resultsnr
				");
				while ($getstats_infraction = $db->fetch_array($get_stats_infractions))
				{
					$getstats_infraction[fullusername] = strip_tags($getstats_infraction[username]);
					if ($trimusername > 0)
					{
						if (strlen($getstats_infraction[username]) > $trimusername)
						{		
							$getstats_infraction[username] = fetch_trimmed_title($getstats_infraction[username], $trimusername);
						}
						else
						{
							$getstats_infraction[username] = $getstats_infraction[username];
						}
						$getstats_infraction[username] = strip_tags($getstats_infraction[username]);
					}
					$getstats_infraction[musername] = fetch_musername($getstats_infraction);
					if ($vbulletin->options['cybtopstats_bold_remove'])
					{
						$getstats_infraction[musername] = str_replace($cyb_afs_bpar, "", $getstats_infraction[musername]);
					}
					eval('$cybtopstats_infractions .= "' . $vbulletin->templatecache['cyb_topstats_infractions'] . '";');
				}
			}

			if ($cybtopstats_enable_lastpost)
			{
				$get_stats_newposts = $vbulletin->db->query_read("
					SELECT thread.threadid, thread.title, thread.lastpost, thread.forumid, thread.replycount, thread.lastposter, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, thread.visible, user.username, user.userid, user.usergroupid, IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
					FROM " . TABLE_PREFIX . "thread AS thread
					LEFT JOIN " . TABLE_PREFIX . "user AS user ON (user.username = thread.lastposter) $deljoin
					WHERE NOT ISNULL(thread.threadid) AND thread.visible = '1' $cybexclforums_lastposts
					ORDER BY lastpost DESC LIMIT 0, $resultsnrnp
				");
				while ($get_new_posts = $db->fetch_array($get_stats_newposts))
				{
					$get_new_posts[title] = strip_tags($get_new_posts[title]);
					$get_new_posts[fullthreadtitle] = strip_tags($get_new_posts[title]);
					if ($trimthreadtitle > 0)
					{
						if (strlen($get_new_posts[title]) > $trimthreadtitle)
						{		
							$get_new_posts[titletrimmed] = fetch_trimmed_title($get_new_posts[title], $trimthreadtitle);
						}
						else
						{
							$get_new_posts[titletrimmed] = $get_new_posts[title];
						}
						$get_new_posts[titletrimmed] = strip_tags($get_new_posts[titletrimmed]);
					}
					if ($get_new_posts[lastpost] > $vbulletin->userinfo['lastvisit'])
					{
						$get_new_posts[newpost] = true;
					}
					if ($get_new_posts[isdeleted])
					{
						$get_new_posts[isdeleted] = true;
					}
					$get_new_posts[fullusername] = strip_tags($get_new_posts[username]);
					if ($trimusername > 0)
					{
						if (strlen($get_new_posts[username]) > $trimusername)
						{		
							$get_new_posts[username] = fetch_trimmed_title($get_new_posts[username], $trimusername);
						}
						else
						{
							$get_new_posts[username] = $get_new_posts[username];
						}
						$get_new_posts[username] = strip_tags($get_new_posts[username]);
					}
					$get_new_posts[forumtitle] = strip_tags($vbulletin->forumcache["$get_new_posts[forumid]"]['title']);
					$get_new_posts[fullforumtitle] = strip_tags($get_new_posts[forumtitle]);
					if ($trimforumtitles > 0)
					{
						if (strlen($get_new_posts[forumtitle]) > $trimforumtitles)
						{		
							$get_new_posts[forumtitle] = fetch_trimmed_title($get_new_posts[forumtitle], $trimforumtitles);
						}
						else
						{
							$get_new_posts[forumtitle] = $get_new_posts[forumtitle];
						}
						$get_new_posts[forumtitle] = strip_tags($get_new_posts[forumtitle]);
					}
					$get_new_posts[musername] = fetch_musername($get_new_posts);
					if ($vbulletin->options['cybtopstats_bold_remove'])
					{
						$get_new_posts[musername] = str_replace($cyb_afs_bpar, "", $get_new_posts[musername]); 
					}
					$get_new_postdate = vbdate($vbulletin->options['cybtopstats_date_format'], $get_new_posts[lastpost]);
					$get_new_posttime = vbdate($vbulletin->options['cybtopstats_time_format'], $get_new_posts[lastpost]);
					eval('$cybtopstats_newposts .= "' . $vbulletin->templatecache['cyb_topstats_newposts'] . '";');
				}
			}

			if ($vbulletin->options['cybtopstats_newmem_details']=='3')
			{
				$cybtopstats_members_details = '<div align="center">'.$vbphrase['posts'].'</div></td><td align="'.$stylevar['right'].'" nowrap="nowrap" class="smallfont">'.$vbphrase['cyb_joined'];
			}
			else if ($vbulletin->options['cybtopstats_newmem_details']=='2')
			{
				$cybtopstats_members_details = $vbphrase['posts'];
			}
			else if ($vbulletin->options['cybtopstats_newmem_details']=='1')
			{
				$cybtopstats_members_details = $vbphrase['cyb_joined'];
			}

			switch ($vbulletin->options['cybtopstats_switch_s1'])
			{
				case 1: $cyb_topstats_s1t = $vbphrase['cyb_latest_news']; $cyb_topstats_s1 = $cybtopstats_latestnews; $cyb_topstats_s1p1 = $vbphrase['thread']; $cyb_topstats_s1p2 = $vbphrase['date']; break;
				case 2: $cyb_topstats_s1t = $vbphrase['cyb_newest_members']; $cyb_topstats_s1 = $cybtopstats_members; $cyb_topstats_s1p1 = $vbphrase['user']; $cyb_topstats_s1p2 = $cybtopstats_members_details; break;
				case 3: $cyb_topstats_s1t = $vbphrase['cyb_top_posters']; $cyb_topstats_s1 = $cybtopstats_posters; $cyb_topstats_s1p1 = $vbphrase['user']; $cyb_topstats_s1p2 = $vbphrase['posts']; break;
				case 4: $cyb_topstats_s1t = $vbphrase['cyb_top_starters']; $cyb_topstats_s1 = $cybtopstats_starters; $cyb_topstats_s1p1 = $vbphrase['user']; $cyb_topstats_s1p2 = $vbphrase['threads']; break;
				case 5: $cyb_topstats_s1t = $vbphrase['cyb_top_referrers']; $cyb_topstats_s1 = $cybtopstats_referrers; $cyb_topstats_s1p1 = $vbphrase['user']; $cyb_topstats_s1p2 = $vbphrase['cyb_referrals']; break;
				case 6: $cyb_topstats_s1t = $vbphrase['cyb_most_viewed']; $cyb_topstats_s1 = $cybtopstats_mostviewed; $cyb_topstats_s1p1 = $vbphrase['thread']; $cyb_topstats_s1p2 = $vbphrase['views']; break;
				case 7: $cyb_topstats_s1t = $vbphrase['cyb_hottest_threads']; $cyb_topstats_s1 = $cybtopstats_hottest; $cyb_topstats_s1p1 = $vbphrase['thread']; $cyb_topstats_s1p2 = $vbphrase['replies']; break;
				case 8: $cyb_topstats_s1t = $vbphrase['cyb_top_reputation']; $cyb_topstats_s1 = $cybtopstats_reputation; $cyb_topstats_s1p1 = $vbphrase['user']; $cyb_topstats_s1p2 = $vbphrase['reputation']; break;
				case 9: $cyb_topstats_s1t = $vbphrase['cyb_thanked_members']; $cyb_topstats_s1 = $cybtopstats_thanks; $cyb_topstats_s1p1 = $vbphrase['user']; $cyb_topstats_s1p2 = $vbphrase['cyb_thanked_times']; break;
				case 10: $cyb_topstats_s1t = $vbphrase['cyb_top_forums']; $cyb_topstats_s1 = $cybtopstats_topforums; $cyb_topstats_s1p1 = $vbphrase['forum']; $cyb_topstats_s1p2 = $vbphrase['posts']; break;
				case 11: $cyb_topstats_s1t = $vbphrase['cyb_top_infractions']; $cyb_topstats_s1 = $cybtopstats_infractions; $cyb_topstats_s1p1 = $vbphrase['user']; $cyb_topstats_s1p2 = $vbphrase['infractions']; break;
			}
			switch ($vbulletin->options['cybtopstats_switch_s2'])
			{
				case 1: $cyb_topstats_s2t = $vbphrase['cyb_latest_news']; $cyb_topstats_s2 = $cybtopstats_latestnews; $cyb_topstats_s2p1 = $vbphrase['thread']; $cyb_topstats_s2p2 = $vbphrase['date']; break;
				case 2: $cyb_topstats_s2t = $vbphrase['cyb_newest_members']; $cyb_topstats_s2 = $cybtopstats_members; $cyb_topstats_s2p1 = $vbphrase['user']; $cyb_topstats_s2p2 = $cybtopstats_members_details; break;
				case 3: $cyb_topstats_s2t = $vbphrase['cyb_top_posters']; $cyb_topstats_s2 = $cybtopstats_posters; $cyb_topstats_s2p1 = $vbphrase['user']; $cyb_topstats_s2p2 = $vbphrase['posts']; break;
				case 4: $cyb_topstats_s2t = $vbphrase['cyb_top_starters']; $cyb_topstats_s2 = $cybtopstats_starters; $cyb_topstats_s2p1 = $vbphrase['user']; $cyb_topstats_s2p2 = $vbphrase['threads']; break;
				case 5: $cyb_topstats_s2t = $vbphrase['cyb_top_referrers']; $cyb_topstats_s2 = $cybtopstats_referrers; $cyb_topstats_s2p1 = $vbphrase['user']; $cyb_topstats_s2p2 = $vbphrase['cyb_referrals']; break;
				case 6: $cyb_topstats_s2t = $vbphrase['cyb_most_viewed']; $cyb_topstats_s2 = $cybtopstats_mostviewed; $cyb_topstats_s2p1 = $vbphrase['thread']; $cyb_topstats_s2p2 = $vbphrase['views']; break;
				case 7: $cyb_topstats_s2t = $vbphrase['cyb_hottest_threads']; $cyb_topstats_s2 = $cybtopstats_hottest; $cyb_topstats_s2p1 = $vbphrase['thread']; $cyb_topstats_s2p2 = $vbphrase['replies']; break;
				case 8: $cyb_topstats_s2t = $vbphrase['cyb_top_reputation']; $cyb_topstats_s2 = $cybtopstats_reputation; $cyb_topstats_s2p1 = $vbphrase['user']; $cyb_topstats_s2p2 = $vbphrase['reputation']; break;
				case 9: $cyb_topstats_s2t = $vbphrase['cyb_thanked_members']; $cyb_topstats_s2 = $cybtopstats_thanks; $cyb_topstats_s2p1 = $vbphrase['user']; $cyb_topstats_s2p2 = $vbphrase['cyb_thanked_times']; break;
				case 10: $cyb_topstats_s2t = $vbphrase['cyb_top_forums']; $cyb_topstats_s2 = $cybtopstats_topforums; $cyb_topstats_s2p1 = $vbphrase['forum']; $cyb_topstats_s2p2 = $vbphrase['posts']; break;
				case 11: $cyb_topstats_s2t = $vbphrase['cyb_top_infractions']; $cyb_topstats_s2 = $cybtopstats_infractions; $cyb_topstats_s2p1 = $vbphrase['user']; $cyb_topstats_s2p2 = $vbphrase['infractions']; break;
			}
			switch ($vbulletin->options['cybtopstats_switch_s3'])
			{
				case 1: $cyb_topstats_s3t = $vbphrase['cyb_latest_news']; $cyb_topstats_s3 = $cybtopstats_latestnews; $cyb_topstats_s3p1 = $vbphrase['thread']; $cyb_topstats_s3p2 = $vbphrase['date']; break;
				case 2: $cyb_topstats_s3t = $vbphrase['cyb_newest_members']; $cyb_topstats_s3 = $cybtopstats_members; $cyb_topstats_s3p1 = $vbphrase['user']; $cyb_topstats_s3p2 = $cybtopstats_members_details; break;
				case 3: $cyb_topstats_s3t = $vbphrase['cyb_top_posters']; $cyb_topstats_s3 = $cybtopstats_posters; $cyb_topstats_s3p1 = $vbphrase['user']; $cyb_topstats_s3p2 = $vbphrase['posts']; break;
				case 4: $cyb_topstats_s3t = $vbphrase['cyb_top_starters']; $cyb_topstats_s3 = $cybtopstats_starters; $cyb_topstats_s3p1 = $vbphrase['user']; $cyb_topstats_s3p2 = $vbphrase['threads']; break;
				case 5: $cyb_topstats_s3t = $vbphrase['cyb_top_referrers']; $cyb_topstats_s3 = $cybtopstats_referrers; $cyb_topstats_s3p1 = $vbphrase['user']; $cyb_topstats_s3p2 = $vbphrase['cyb_referrals']; break;
				case 6: $cyb_topstats_s3t = $vbphrase['cyb_most_viewed']; $cyb_topstats_s3 = $cybtopstats_mostviewed; $cyb_topstats_s3p1 = $vbphrase['thread']; $cyb_topstats_s3p2 = $vbphrase['views']; break;
				case 7: $cyb_topstats_s3t = $vbphrase['cyb_hottest_threads']; $cyb_topstats_s3 = $cybtopstats_hottest; $cyb_topstats_s3p1 = $vbphrase['thread']; $cyb_topstats_s3p2 = $vbphrase['replies']; break;
				case 8: $cyb_topstats_s3t = $vbphrase['cyb_top_reputation']; $cyb_topstats_s3 = $cybtopstats_reputation; $cyb_topstats_s3p1 = $vbphrase['user']; $cyb_topstats_s3p2 = $vbphrase['reputation']; break;
				case 9: $cyb_topstats_s3t = $vbphrase['cyb_thanked_members']; $cyb_topstats_s3 = $cybtopstats_thanks; $cyb_topstats_s3p1 = $vbphrase['user']; $cyb_topstats_s3p2 = $vbphrase['cyb_thanked_times']; break;
				case 10: $cyb_topstats_s3t = $vbphrase['cyb_top_forums']; $cyb_topstats_s3 = $cybtopstats_topforums; $cyb_topstats_s3p1 = $vbphrase['forum']; $cyb_topstats_s3p2 = $vbphrase['posts']; break;
				case 11: $cyb_topstats_s3t = $vbphrase['cyb_top_infractions']; $cyb_topstats_s3 = $cybtopstats_infractions; $cyb_topstats_s3p1 = $vbphrase['user']; $cyb_topstats_s3p2 = $vbphrase['infractions']; break;
			}
			switch ($vbulletin->options['cybtopstats_switch_s4'])
			{
				case 1: $cyb_topstats_s4t = $vbphrase['cyb_latest_news']; $cyb_topstats_s4 = $cybtopstats_latestnews; $cyb_topstats_s4p1 = $vbphrase['thread']; $cyb_topstats_s4p2 = $vbphrase['date']; break;
				case 2: $cyb_topstats_s4t = $vbphrase['cyb_newest_members']; $cyb_topstats_s4 = $cybtopstats_members; $cyb_topstats_s4p1 = $vbphrase['user']; $cyb_topstats_s4p2 = $cybtopstats_members_details; break;
				case 3: $cyb_topstats_s4t = $vbphrase['cyb_top_posters']; $cyb_topstats_s4 = $cybtopstats_posters; $cyb_topstats_s4p1 = $vbphrase['user']; $cyb_topstats_s4p2 = $vbphrase['posts']; break;
				case 4: $cyb_topstats_s4t = $vbphrase['cyb_top_starters']; $cyb_topstats_s4 = $cybtopstats_starters; $cyb_topstats_s4p1 = $vbphrase['user']; $cyb_topstats_s4p2 = $vbphrase['threads']; break;
				case 5: $cyb_topstats_s4t = $vbphrase['cyb_top_referrers']; $cyb_topstats_s4 = $cybtopstats_referrers; $cyb_topstats_s4p1 = $vbphrase['user']; $cyb_topstats_s4p2 = $vbphrase['cyb_referrals']; break;
				case 6: $cyb_topstats_s4t = $vbphrase['cyb_most_viewed']; $cyb_topstats_s4 = $cybtopstats_mostviewed; $cyb_topstats_s4p1 = $vbphrase['thread']; $cyb_topstats_s4p2 = $vbphrase['views']; break;
				case 7: $cyb_topstats_s4t = $vbphrase['cyb_hottest_threads']; $cyb_topstats_s4 = $cybtopstats_hottest; $cyb_topstats_s4p1 = $vbphrase['thread']; $cyb_topstats_s4p2 = $vbphrase['replies']; break;
				case 8: $cyb_topstats_s4t = $vbphrase['cyb_top_reputation']; $cyb_topstats_s4 = $cybtopstats_reputation; $cyb_topstats_s4p1 = $vbphrase['user']; $cyb_topstats_s4p2 = $vbphrase['reputation']; break;
				case 9: $cyb_topstats_s4t = $vbphrase['cyb_thanked_members']; $cyb_topstats_s4 = $cybtopstats_thanks; $cyb_topstats_s4p1 = $vbphrase['user']; $cyb_topstats_s4p2 = $vbphrase['cyb_thanked_times']; break;
				case 10: $cyb_topstats_s4t = $vbphrase['cyb_top_forums']; $cyb_topstats_s4 = $cybtopstats_topforums; $cyb_topstats_s4p1 = $vbphrase['forum']; $cyb_topstats_s4p2 = $vbphrase['posts']; break;
				case 11: $cyb_topstats_s4t = $vbphrase['cyb_top_infractions']; $cyb_topstats_s4 = $cybtopstats_infractions; $cyb_topstats_s4p1 = $vbphrase['user']; $cyb_topstats_s4p2 = $vbphrase['infractions']; break;
			}
			switch ($vbulletin->options['cybtopstats_switch_s5'])
			{
				case 1: $cyb_topstats_s5t = $vbphrase['cyb_latest_news']; $cyb_topstats_s5 = $cybtopstats_latestnews; $cyb_topstats_s5p1 = $vbphrase['thread']; $cyb_topstats_s5p2 = $vbphrase['date']; break;
				case 2: $cyb_topstats_s5t = $vbphrase['cyb_newest_members']; $cyb_topstats_s5 = $cybtopstats_members; $cyb_topstats_s5p1 = $vbphrase['user']; $cyb_topstats_s5p2 = $cybtopstats_members_details; break;
				case 3: $cyb_topstats_s5t = $vbphrase['cyb_top_posters']; $cyb_topstats_s5 = $cybtopstats_posters; $cyb_topstats_s5p1 = $vbphrase['user']; $cyb_topstats_s5p2 = $vbphrase['posts']; break;
				case 4: $cyb_topstats_s5t = $vbphrase['cyb_top_starters']; $cyb_topstats_s5 = $cybtopstats_starters; $cyb_topstats_s5p1 = $vbphrase['user']; $cyb_topstats_s5p2 = $vbphrase['threads']; break;
				case 5: $cyb_topstats_s5t = $vbphrase['cyb_top_referrers']; $cyb_topstats_s5 = $cybtopstats_referrers; $cyb_topstats_s5p1 = $vbphrase['user']; $cyb_topstats_s5p2 = $vbphrase['cyb_referrals']; break;
				case 6: $cyb_topstats_s5t = $vbphrase['cyb_most_viewed']; $cyb_topstats_s5 = $cybtopstats_mostviewed; $cyb_topstats_s5p1 = $vbphrase['thread']; $cyb_topstats_s5p2 = $vbphrase['views']; break;
				case 7: $cyb_topstats_s5t = $vbphrase['cyb_hottest_threads']; $cyb_topstats_s5 = $cybtopstats_hottest; $cyb_topstats_s5p1 = $vbphrase['thread']; $cyb_topstats_s5p2 = $vbphrase['replies']; break;
				case 8: $cyb_topstats_s5t = $vbphrase['cyb_top_reputation']; $cyb_topstats_s5 = $cybtopstats_reputation; $cyb_topstats_s5p1 = $vbphrase['user']; $cyb_topstats_s5p2 = $vbphrase['reputation']; break;
				case 9: $cyb_topstats_s5t = $vbphrase['cyb_thanked_members']; $cyb_topstats_s5 = $cybtopstats_thanks; $cyb_topstats_s5p1 = $vbphrase['user']; $cyb_topstats_s5p2 = $vbphrase['cyb_thanked_times']; break;
				case 10: $cyb_topstats_s5t = $vbphrase['cyb_top_forums']; $cyb_topstats_s5 = $cybtopstats_topforums; $cyb_topstats_s5p1 = $vbphrase['forum']; $cyb_topstats_s5p2 = $vbphrase['posts']; break;
				case 11: $cyb_topstats_s5t = $vbphrase['cyb_top_infractions']; $cyb_topstats_s5 = $cybtopstats_infractions; $cyb_topstats_s5p1 = $vbphrase['user']; $cyb_topstats_s5p2 = $vbphrase['infractions']; break;
			}
			switch ($vbulletin->options['cybtopstats_switch_s6'])
			{
				case 1: $cyb_topstats_s6t = $vbphrase['cyb_latest_news']; $cyb_topstats_s6 = $cybtopstats_latestnews; $cyb_topstats_s6p1 = $vbphrase['thread']; $cyb_topstats_s6p2 = $vbphrase['date']; break;
				case 2: $cyb_topstats_s6t = $vbphrase['cyb_newest_members']; $cyb_topstats_s6 = $cybtopstats_members; $cyb_topstats_s6p1 = $vbphrase['user']; $cyb_topstats_s6p2 = $cybtopstats_members_details; break;
				case 3: $cyb_topstats_s6t = $vbphrase['cyb_top_posters']; $cyb_topstats_s6 = $cybtopstats_posters; $cyb_topstats_s6p1 = $vbphrase['user']; $cyb_topstats_s6p2 = $vbphrase['posts']; break;
				case 4: $cyb_topstats_s6t = $vbphrase['cyb_top_starters']; $cyb_topstats_s6 = $cybtopstats_starters; $cyb_topstats_s6p1 = $vbphrase['user']; $cyb_topstats_s6p2 = $vbphrase['threads']; break;
				case 5: $cyb_topstats_s6t = $vbphrase['cyb_top_referrers']; $cyb_topstats_s6 = $cybtopstats_referrers; $cyb_topstats_s6p1 = $vbphrase['user']; $cyb_topstats_s6p2 = $vbphrase['cyb_referrals']; break;
				case 6: $cyb_topstats_s6t = $vbphrase['cyb_most_viewed']; $cyb_topstats_s6 = $cybtopstats_mostviewed; $cyb_topstats_s6p1 = $vbphrase['thread']; $cyb_topstats_s6p2 = $vbphrase['views']; break;
				case 7: $cyb_topstats_s6t = $vbphrase['cyb_hottest_threads']; $cyb_topstats_s6 = $cybtopstats_hottest; $cyb_topstats_s6p1 = $vbphrase['thread']; $cyb_topstats_s6p2 = $vbphrase['replies']; break;
				case 8: $cyb_topstats_s6t = $vbphrase['cyb_top_reputation']; $cyb_topstats_s6 = $cybtopstats_reputation; $cyb_topstats_s6p1 = $vbphrase['user']; $cyb_topstats_s6p2 = $vbphrase['reputation']; break;
				case 9: $cyb_topstats_s6t = $vbphrase['cyb_thanked_members']; $cyb_topstats_s6 = $cybtopstats_thanks; $cyb_topstats_s6p1 = $vbphrase['user']; $cyb_topstats_s6p2 = $vbphrase['cyb_thanked_times']; break;
				case 10: $cyb_topstats_s6t = $vbphrase['cyb_top_forums']; $cyb_topstats_s6 = $cybtopstats_topforums; $cyb_topstats_s6p1 = $vbphrase['forum']; $cyb_topstats_s6p2 = $vbphrase['posts']; break;
				case 11: $cyb_topstats_s6t = $vbphrase['cyb_top_infractions']; $cyb_topstats_s6 = $cybtopstats_infractions; $cyb_topstats_s6p1 = $vbphrase['user']; $cyb_topstats_s6p2 = $vbphrase['infractions']; break;
			}
			switch ($vbulletin->options['cybtopstats_switch_s7'])
			{
				case 1: $cyb_topstats_s7t = $vbphrase['cyb_latest_news']; $cyb_topstats_s7 = $cybtopstats_latestnews; $cyb_topstats_s7p1 = $vbphrase['thread']; $cyb_topstats_s7p2 = $vbphrase['date']; break;
				case 2: $cyb_topstats_s7t = $vbphrase['cyb_newest_members']; $cyb_topstats_s7 = $cybtopstats_members; $cyb_topstats_s7p1 = $vbphrase['user']; $cyb_topstats_s7p2 = $cybtopstats_members_details; break;
				case 3: $cyb_topstats_s7t = $vbphrase['cyb_top_posters']; $cyb_topstats_s7 = $cybtopstats_posters; $cyb_topstats_s7p1 = $vbphrase['user']; $cyb_topstats_s7p2 = $vbphrase['posts']; break;
				case 4: $cyb_topstats_s7t = $vbphrase['cyb_top_starters']; $cyb_topstats_s7 = $cybtopstats_starters; $cyb_topstats_s7p1 = $vbphrase['user']; $cyb_topstats_s7p2 = $vbphrase['threads']; break;
				case 5: $cyb_topstats_s7t = $vbphrase['cyb_top_referrers']; $cyb_topstats_s7 = $cybtopstats_referrers; $cyb_topstats_s7p1 = $vbphrase['user']; $cyb_topstats_s7p2 = $vbphrase['cyb_referrals']; break;
				case 6: $cyb_topstats_s7t = $vbphrase['cyb_most_viewed']; $cyb_topstats_s7 = $cybtopstats_mostviewed; $cyb_topstats_s7p1 = $vbphrase['thread']; $cyb_topstats_s7p2 = $vbphrase['views']; break;
				case 7: $cyb_topstats_s7t = $vbphrase['cyb_hottest_threads']; $cyb_topstats_s7 = $cybtopstats_hottest; $cyb_topstats_s7p1 = $vbphrase['thread']; $cyb_topstats_s7p2 = $vbphrase['replies']; break;
				case 8: $cyb_topstats_s7t = $vbphrase['cyb_top_reputation']; $cyb_topstats_s7 = $cybtopstats_reputation; $cyb_topstats_s7p1 = $vbphrase['user']; $cyb_topstats_s7p2 = $vbphrase['reputation']; break;
				case 9: $cyb_topstats_s7t = $vbphrase['cyb_thanked_members']; $cyb_topstats_s7 = $cybtopstats_thanks; $cyb_topstats_s7p1 = $vbphrase['user']; $cyb_topstats_s7p2 = $vbphrase['cyb_thanked_times']; break;
				case 10: $cyb_topstats_s7t = $vbphrase['cyb_top_forums']; $cyb_topstats_s7 = $cybtopstats_topforums; $cyb_topstats_s7p1 = $vbphrase['forum']; $cyb_topstats_s7p2 = $vbphrase['posts']; break;
				case 11: $cyb_topstats_s7t = $vbphrase['cyb_top_infractions']; $cyb_topstats_s7 = $cybtopstats_infractions; $cyb_topstats_s7p1 = $vbphrase['user']; $cyb_topstats_s7p2 = $vbphrase['infractions']; break;
			}
			switch ($vbulletin->options['cybtopstats_switch_s8'])
			{
				case 1: $cyb_topstats_s8t = $vbphrase['cyb_latest_news']; $cyb_topstats_s8 = $cybtopstats_latestnews; $cyb_topstats_s8p1 = $vbphrase['thread']; $cyb_topstats_s8p2 = $vbphrase['date']; break;
				case 2: $cyb_topstats_s8t = $vbphrase['cyb_newest_members']; $cyb_topstats_s8 = $cybtopstats_members; $cyb_topstats_s8p1 = $vbphrase['user']; $cyb_topstats_s8p2 = $cybtopstats_members_details; break;
				case 3: $cyb_topstats_s8t = $vbphrase['cyb_top_posters']; $cyb_topstats_s8 = $cybtopstats_posters; $cyb_topstats_s8p1 = $vbphrase['user']; $cyb_topstats_s8p2 = $vbphrase['posts']; break;
				case 4: $cyb_topstats_s8t = $vbphrase['cyb_top_starters']; $cyb_topstats_s8 = $cybtopstats_starters; $cyb_topstats_s8p1 = $vbphrase['user']; $cyb_topstats_s8p2 = $vbphrase['threads']; break;
				case 5: $cyb_topstats_s8t = $vbphrase['cyb_top_referrers']; $cyb_topstats_s8 = $cybtopstats_referrers; $cyb_topstats_s8p1 = $vbphrase['user']; $cyb_topstats_s8p2 = $vbphrase['cyb_referrals']; break;
				case 6: $cyb_topstats_s8t = $vbphrase['cyb_most_viewed']; $cyb_topstats_s8 = $cybtopstats_mostviewed; $cyb_topstats_s8p1 = $vbphrase['thread']; $cyb_topstats_s8p2 = $vbphrase['views']; break;
				case 7: $cyb_topstats_s8t = $vbphrase['cyb_hottest_threads']; $cyb_topstats_s8 = $cybtopstats_hottest; $cyb_topstats_s8p1 = $vbphrase['thread']; $cyb_topstats_s8p2 = $vbphrase['replies']; break;
				case 8: $cyb_topstats_s8t = $vbphrase['cyb_top_reputation']; $cyb_topstats_s8 = $cybtopstats_reputation; $cyb_topstats_s8p1 = $vbphrase['user']; $cyb_topstats_s8p2 = $vbphrase['reputation']; break;
				case 9: $cyb_topstats_s8t = $vbphrase['cyb_thanked_members']; $cyb_topstats_s8 = $cybtopstats_thanks; $cyb_topstats_s8p1 = $vbphrase['user']; $cyb_topstats_s8p2 = $vbphrase['cyb_thanked_times']; break;
				case 10: $cyb_topstats_s8t = $vbphrase['cyb_top_forums']; $cyb_topstats_s8 = $cybtopstats_topforums; $cyb_topstats_s8p1 = $vbphrase['forum']; $cyb_topstats_s8p2 = $vbphrase['posts']; break;
				case 11: $cyb_topstats_s8t = $vbphrase['cyb_top_infractions']; $cyb_topstats_s8 = $cybtopstats_infractions; $cyb_topstats_s8p1 = $vbphrase['user']; $cyb_topstats_s8p2 = $vbphrase['infractions']; break;
			}
			switch ($vbulletin->options['cybtopstats_switch_s9'])
			{
				case 1: $cyb_topstats_s9t = $vbphrase['cyb_latest_news']; $cyb_topstats_s9 = $cybtopstats_latestnews; $cyb_topstats_s9p1 = $vbphrase['thread']; $cyb_topstats_s9p2 = $vbphrase['date']; break;
				case 2: $cyb_topstats_s9t = $vbphrase['cyb_newest_members']; $cyb_topstats_s9 = $cybtopstats_members; $cyb_topstats_s9p1 = $vbphrase['user']; $cyb_topstats_s9p2 = $cybtopstats_members_details; break;
				case 3: $cyb_topstats_s9t = $vbphrase['cyb_top_posters']; $cyb_topstats_s9 = $cybtopstats_posters; $cyb_topstats_s9p1 = $vbphrase['user']; $cyb_topstats_s9p2 = $vbphrase['posts']; break;
				case 4: $cyb_topstats_s9t = $vbphrase['cyb_top_starters']; $cyb_topstats_s9 = $cybtopstats_starters; $cyb_topstats_s9p1 = $vbphrase['user']; $cyb_topstats_s9p2 = $vbphrase['threads']; break;
				case 5: $cyb_topstats_s9t = $vbphrase['cyb_top_referrers']; $cyb_topstats_s9 = $cybtopstats_referrers; $cyb_topstats_s9p1 = $vbphrase['user']; $cyb_topstats_s9p2 = $vbphrase['cyb_referrals']; break;
				case 6: $cyb_topstats_s9t = $vbphrase['cyb_most_viewed']; $cyb_topstats_s9 = $cybtopstats_mostviewed; $cyb_topstats_s9p1 = $vbphrase['thread']; $cyb_topstats_s9p2 = $vbphrase['views']; break;
				case 7: $cyb_topstats_s9t = $vbphrase['cyb_hottest_threads']; $cyb_topstats_s9 = $cybtopstats_hottest; $cyb_topstats_s9p1 = $vbphrase['thread']; $cyb_topstats_s9p2 = $vbphrase['replies']; break;
				case 8: $cyb_topstats_s9t = $vbphrase['cyb_top_reputation']; $cyb_topstats_s9 = $cybtopstats_reputation; $cyb_topstats_s9p1 = $vbphrase['user']; $cyb_topstats_s9p2 = $vbphrase['reputation']; break;
				case 9: $cyb_topstats_s9t = $vbphrase['cyb_thanked_members']; $cyb_topstats_s9 = $cybtopstats_thanks; $cyb_topstats_s9p1 = $vbphrase['user']; $cyb_topstats_s9p2 = $vbphrase['cyb_thanked_times']; break;
				case 10: $cyb_topstats_s9t = $vbphrase['cyb_top_forums']; $cyb_topstats_s9 = $cybtopstats_topforums; $cyb_topstats_s9p1 = $vbphrase['forum']; $cyb_topstats_s9p2 = $vbphrase['posts']; break;
				case 11: $cyb_topstats_s9t = $vbphrase['cyb_top_infractions']; $cyb_topstats_s9 = $cybtopstats_infractions; $cyb_topstats_s9p1 = $vbphrase['user']; $cyb_topstats_s9p2 = $vbphrase['infractions']; break;
			}
			switch ($vbulletin->options['cybtopstats_switch_s10'])
			{
				case 1: $cyb_topstats_s10t = $vbphrase['cyb_latest_news']; $cyb_topstats_s10 = $cybtopstats_latestnews; $cyb_topstats_s10p1 = $vbphrase['thread']; $cyb_topstats_s10p2 = $vbphrase['date']; break;
				case 2: $cyb_topstats_s10t = $vbphrase['cyb_newest_members']; $cyb_topstats_s10 = $cybtopstats_members; $cyb_topstats_s10p1 = $vbphrase['user']; $cyb_topstats_s10p2 = $cybtopstats_members_details; break;
				case 3: $cyb_topstats_s10t = $vbphrase['cyb_top_posters']; $cyb_topstats_s10 = $cybtopstats_posters; $cyb_topstats_s10p1 = $vbphrase['user']; $cyb_topstats_s10p2 = $vbphrase['posts']; break;
				case 4: $cyb_topstats_s10t = $vbphrase['cyb_top_starters']; $cyb_topstats_s10 = $cybtopstats_starters; $cyb_topstats_s10p1 = $vbphrase['user']; $cyb_topstats_s10p2 = $vbphrase['threads']; break;
				case 5: $cyb_topstats_s10t = $vbphrase['cyb_top_referrers']; $cyb_topstats_s10 = $cybtopstats_referrers; $cyb_topstats_s10p1 = $vbphrase['user']; $cyb_topstats_s10p2 = $vbphrase['cyb_referrals']; break;
				case 6: $cyb_topstats_s10t = $vbphrase['cyb_most_viewed']; $cyb_topstats_s10 = $cybtopstats_mostviewed; $cyb_topstats_s10p1 = $vbphrase['thread']; $cyb_topstats_s10p2 = $vbphrase['views']; break;
				case 7: $cyb_topstats_s10t = $vbphrase['cyb_hottest_threads']; $cyb_topstats_s10 = $cybtopstats_hottest; $cyb_topstats_s10p1 = $vbphrase['thread']; $cyb_topstats_s10p2 = $vbphrase['replies']; break;
				case 8: $cyb_topstats_s10t = $vbphrase['cyb_top_reputation']; $cyb_topstats_s10 = $cybtopstats_reputation; $cyb_topstats_s10p1 = $vbphrase['user']; $cyb_topstats_s10p2 = $vbphrase['reputation']; break;
				case 9: $cyb_topstats_s10t = $vbphrase['cyb_thanked_members']; $cyb_topstats_s10 = $cybtopstats_thanks; $cyb_topstats_s10p1 = $vbphrase['user']; $cyb_topstats_s10p2 = $vbphrase['cyb_thanked_times']; break;
				case 10: $cyb_topstats_s10t = $vbphrase['cyb_top_forums']; $cyb_topstats_s10 = $cybtopstats_topforums; $cyb_topstats_s10p1 = $vbphrase['forum']; $cyb_topstats_s10p2 = $vbphrase['posts']; break;
				case 11: $cyb_topstats_s10t = $vbphrase['cyb_top_infractions']; $cyb_topstats_s10 = $cybtopstats_infractions; $cyb_topstats_s10p1 = $vbphrase['user']; $cyb_topstats_s10p2 = $vbphrase['infractions']; break;
			}

			if ($vbulletin->options['cybtopstats_switch_lpl']!='0')
			{
				$cybtopstats_t_colspan += 1;
			}
			if ($vbulletin->options['cybtopstats_switch_s1']!='0')
			{
				$cybtopstats_t_colspan += 1;
			}
			if ($vbulletin->options['cybtopstats_switch_s3']!='0')
			{
				$cybtopstats_t_colspan += 1;
			}
			if ($vbulletin->options['cybtopstats_switch_s5']!='0')
			{
				$cybtopstats_t_colspan += 1;
			}
			if ($vbulletin->options['cybtopstats_switch_s7']!='0')
			{
				$cybtopstats_t_colspan += 1;
			}
			if ($vbulletin->options['cybtopstats_switch_s9']!='0')
			{
				$cybtopstats_t_colspan += 1;
			}
			if ($vbulletin->options['cybtopstats_switch_lpr']!='0')
			{
				$cybtopstats_t_colspan += 1;
			}

			$cybtrheight=$resultsnr*14;
			$cybosheight=$cybtrheight.'px';

			if ($vbulletin->options['cybtopstats_layout']=='1')
			{
				$cybnphcnt = 14*$resultsnr;
			}
			else
			{
				$cybnphcnt = ($cybtrheight*2)+($stylevar['cellpadding']*2)+21;
			}
			$cybnpheight = $cybnphcnt.'px';

			eval('$cybtopstats .= "' . $vbulletin->templatecache['cyb_topstats_stats'] . '";');	
			switch ($vbulletin->options['cybtopstats_window_loc'])
			{
				case 0: $cyb_topstats_sr1 = ''; break;
				case 1: $cyb_topstats_sr1 = '$navbar'; break;
				case 2:	$cyb_topstats_sr1 = '<!-- main -->'; break;
				case 3: $cyb_topstats_sr1 = '<!-- what\'s going on box -->'; break;
				case 4:	$cyb_topstats_sr1 = '<!-- end what\'s going on box -->'; break;
			}

			if ($vbulletin->options['cybtopstats_window_loc']!='0')
			{
				$vbulletin->templatecache['FORUMHOME'] = str_replace($cyb_topstats_sr1, $cyb_topstats_sr1.'$cybtopstats', $vbulletin->templatecache['FORUMHOME']);
			}
			$db->show_errors();
		}]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title><![CDATA[Cybernetec's Hacks Template Group]]></title>
			<hookname>template_groups</hookname>
			<phpcode><![CDATA[$only['cyb_'] = 'Cybernetec';
		]]></phpcode>
		</plugin>
	</plugins>
	<phrases>
		<phrasetype name="Error Messages" fieldname="error">
			<phrase name="cyb_topstats_disabled_note" date="0" username="" version=""><![CDATA[<center>الإحصائيات تم إيقافها بنجاح ,<br /><br />لإعادة تفعيل الإحصائيات إستخدم خيارات "  {1}  " من قائمة "  {2}  " .</center>]]></phrase>
		</phrasetype>
		<phrasetype name="GLOBAL" fieldname="global">
			<phrase name="cyb_afs_more_stats" date="0" username="" version=""><![CDATA[مشاهدة نتائج أكثر]]></phrase>
			<phrase name="cyb_afs_results_update" date="0" username="" version=""><![CDATA[تحديث]]></phrase>
			<phrase name="cyb_afs_show_x_results" date="0" username="" version=""><![CDATA[النتائج للمشاهدة :- {1}]]></phrase>
			<phrase name="cyb_afs_turnoff_stats" date="0" username="" version=""><![CDATA[إيقاف الإحصائيات]]></phrase>
			<phrase name="cyb_afs_turnon_stats" date="0" username="" version=""><![CDATA[تفعيل الإحصائيات]]></phrase>
			<phrase name="cyb_disabled" date="0" username="" version=""><![CDATA[موقف]]></phrase>
			<phrase name="cyb_hottest_threads" date="0" username="" version=""><![CDATA[أقوي المواضيع]]></phrase>
			<phrase name="cyb_joined" date="0" username="" version=""><![CDATA[مُسجل]]></phrase>
			<phrase name="cyb_jump_to_first_post_in_x" date="0" username="" version=""><![CDATA[الذهاب إلي أول مشاركة في الموضوع ' {1} ']]></phrase>
			<phrase name="cyb_jump_to_last_post_in_x" date="0" username="" version=""><![CDATA[الذهاب إلي أول مشاركة غير مقروءة في الموضوع ' {1} ']]></phrase>
			<phrase name="cyb_latest_news" date="0" username="" version=""><![CDATA[آخر أخبار المنتدي]]></phrase>
			<phrase name="cyb_latest_posts" date="0" username="" version=""><![CDATA[آخر المشاركات]]></phrase>
			<phrase name="cyb_layout_onerow" date="0" username="" version=""><![CDATA[صف واحد]]></phrase>
			<phrase name="cyb_layout_tworows" date="0" username="" version=""><![CDATA[صفين]]></phrase>
			<phrase name="cyb_most_viewed" date="0" username="" version=""><![CDATA[المواضيع الأكثر مشاهدة]]></phrase>
			<phrase name="cyb_newest_members" date="0" username="" version=""><![CDATA[الأعضاء الجدد]]></phrase>
			<phrase name="cyb_referrals" date="0" username="" version=""><![CDATA[الداعيين]]></phrase>
			<phrase name="cyb_thanked_members" date="0" username="" version=""><![CDATA[الأكثر شكرا]]></phrase>
			<phrase name="cyb_thanked_times" date="0" username="" version=""><![CDATA[تم شكره]]></phrase>
			<phrase name="cyb_top_forums" date="0" username="" version=""><![CDATA[أكثر الأقسام شعبية]]></phrase>
			<phrase name="cyb_top_infractions" date="0" username="" version=""><![CDATA[الأكثر مخالفة]]></phrase>
			<phrase name="cyb_top_posters" date="0" username="" version=""><![CDATA[أعلي المشاركين]]></phrase>
			<phrase name="cyb_top_referrers" date="0" username="" version=""><![CDATA[الأكثر داعيين]]></phrase>
			<phrase name="cyb_top_reputation" date="0" username="" version=""><![CDATA[أعلي التقاييم]]></phrase>
			<phrase name="cyb_top_starters" date="0" username="" version=""><![CDATA[بداية أكثر المواضيع]]></phrase>
			<phrase name="cyb_top_stats" date="0" username="" version=""><![CDATA[أعلي إحصائيات]]></phrase>
			<phrase name="cyb_top_x_stats" date="0" username="" version=""><![CDATA[أعلي {1} إحصائيات]]></phrase>
			<phrase name="cybstats_mainbox_noauto" date="0" username="" version=""><![CDATA[لاشئ]]></phrase>
			<phrase name="cybstats_put_above_forums" date="0" username="" version=""><![CDATA[وضعه أعلي المنتديات]]></phrase>
			<phrase name="cybstats_put_bellow_navbar" date="0" username="" version=""><![CDATA[وضعه اسفل الــ Navbar]]></phrase>
			<phrase name="cybstats_put_below_forums" date="0" username="" version=""><![CDATA[وضعه اسفل المنتديات]]></phrase>
			<phrase name="cybstats_put_below_wol" date="0" username="" version=""><![CDATA[وضعه أسفل " إحصائيات المنتدي" ]]></phrase>
			<phrase name="cybstats_ttlp_an" date="0" username="" version=""><![CDATA[عنوان إلي آخر مشاركة , بدون إشارة]]></phrase>
			<phrase name="cybstats_ttlp_atlp" date="0" username="" version=""><![CDATA[كلاهما , عنوان و إشارة إلي آخر مشاركة]]></phrase>
			<phrase name="cybstats_ttlp_atts" date="0" username="" version=""><![CDATA[عنوان آخر مشاركة , إشارة إلي بداية الموضوع]]></phrase>
			<phrase name="cybstats_tts_atlp" date="0" username="" version=""><![CDATA[عنوان بداية الموضوع , إشارة إلي آخر مشاركة]]></phrase>
			<phrase name="new" date="0" username="" version=""><![CDATA[جديد]]></phrase>
		</phrasetype>
		<phrasetype name="vBulletin Settings" fieldname="vbsettings">
			<phrase name="setting_F-CTS-v5.2_Copyright_desc" date="0" username="" version=""><![CDATA[للدعم الفنى لهذا الهاك يرجي زيارة الموضوع الرسمي للهاك من موقع شركة vBulletin.Org للمبرمج Cybernetec من <a href='http://www.vbulletin.org/forum/showthread.php?t=122986'>هنـــــــــــــــــــا</a> <br /><HR> تمت الترجمة من قبل النسر من منتديات شركة الجابري للمشاريع www.ffir.net/vb <a href='http://www.ffir.net/vb'>هنـــــــــــــــــــا</a>]]></phrase>
			<phrase name="setting_F-CTS-v5.2_Copyright_title" date="0" username="" version=""><![CDATA[حقوق البرمجه و التعريب - Programming and Translation Copyright]]></phrase>
			<phrase name="setting_cybtopstats_add_loc_desc" date="0" username="" version=""><![CDATA[ضع مكان الإحصائايات الرئيسي على حسب الطلب <br /><br />ملاحظة :- خطوة إختيارية وغير مستحبة إلا لو كنت تريد وضع الإحصائيات في مكان معين , لمزيد من الإيضاح يرجي مراجعه ملف إقرأني .]]></phrase>
			<phrase name="setting_cybtopstats_amount_main_desc" date="0" username="" version=""><![CDATA[عدد النتائج للعرض في رئيسية الإحصائيات]]></phrase>
			<phrase name="setting_cybtopstats_amount_more_desc" date="0" username="" version=""><![CDATA[عد النتائج التي سوف تظهر في <a href="../misc.php?do=cybstats" target="_blank">صفحة منفصلة</a><br /> ( قائمة النتائج القابلة للعرض , إفصل بينهم بعلامة (,) )]]></phrase>
			<phrase name="setting_cybtopstats_bold_remove_desc" date="0" username="" version=""><![CDATA[إزالة نظام تعريض الكلام في إسم المستخدمين]]></phrase>
			<phrase name="setting_cybtopstats_cant_viewmore_desc" date="0" username="" version=""><![CDATA[مجموعات الأعضاء الغير مسموح لها بمشاهدة <a href="../misc.php?do=cybstats" target="_blank">نتائج أكثر</a>]]></phrase>
			<phrase name="setting_cybtopstats_color_new_desc" date="0" username="" version=""><![CDATA[لون المشاركات الجديدة]]></phrase>
			<phrase name="setting_cybtopstats_color_old_desc" date="0" username="" version=""><![CDATA[لون المشاركات القديمة]]></phrase>
			<phrase name="setting_cybtopstats_date_format_desc" date="0" username="" version=""><![CDATA[هيئة التاريخ]]></phrase>
			<phrase name="setting_cybtopstats_enable_global_desc" date="0" username="" version=""><![CDATA[تفعيل الهاك]]></phrase>
			<phrase name="setting_cybtopstats_enable_global_title" date="0" username="" version=""><![CDATA[خيارات]]></phrase>
			<phrase name="setting_cybtopstats_excl_forums_desc" date="0" username="" version=""><![CDATA[الأقسام الممنوعه من الظهور في الإحصائيات ( قائمة أرقام الأقسام , إفصل بينهم بعلامة (,) )]]></phrase>
			<phrase name="setting_cybtopstats_excl_forums_title" date="0" username="" version=""><![CDATA[الصلاحيات]]></phrase>
			<phrase name="setting_cybtopstats_excl_groups_desc" date="0" username="" version=""><![CDATA[مجموعات الأعضاء الغير مسموح لها بمشاهدة الإحصائيات ( قائمة أرقام مجموعات الأعضاء , إفصل بينهم بعلامة (,) )]]></phrase>
			<phrase name="setting_cybtopstats_excl_groups_listing_desc" date="0" username="" version=""><![CDATA[مجموعات الأعضاء الممنوعه من الظهور في الإحصائيات ( قائمة أرقام المجموعات , إفصل بينهم بعلامة (,) )]]></phrase>
			<phrase name="setting_cybtopstats_lastpost_dateline_desc" date="0" username="" version=""><![CDATA[آخر المشاركات - عرض وقت و تاريخ المشاركة]]></phrase>
			<phrase name="setting_cybtopstats_lastpost_forums_desc" date="0" username="" version=""><![CDATA[آخر المشاركات - عرض الأقسام]]></phrase>
			<phrase name="setting_cybtopstats_lastpost_linking_desc" date="0" username="" version=""><![CDATA[آخر المشاركات - عنواين المواضيع و روابط المشار بها]]></phrase>
			<phrase name="setting_cybtopstats_lastpost_poster_desc" date="0" username="" version=""><![CDATA[آخر المشاركات - عرض آخر مشارك]]></phrase>
			<phrase name="setting_cybtopstats_lastpost_rvcounts_desc" date="0" username="" version=""><![CDATA[آخر المشاركات - عرض عدد المشاهدات و الردود]]></phrase>
			<phrase name="setting_cybtopstats_latestnews_newsforumid_desc" date="0" username="" version=""><![CDATA[آخر أخبار المنتدي ( قائمة أرقام المنتديات التي يتم عرض آخر أخبارها , إفصل بينهم بعلامة (,) )]]></phrase>
			<phrase name="setting_cybtopstats_latestnews_newsforumid_title" date="0" username="" version=""><![CDATA[تفاصيل الإحصائيات]]></phrase>
			<phrase name="setting_cybtopstats_layout_desc" date="0" username="" version=""><![CDATA[خيارات العرض]]></phrase>
			<phrase name="setting_cybtopstats_newmem_details_desc" date="0" username="" version=""><![CDATA[تفاصيل الأعضاء الجدد]]></phrase>
			<phrase name="setting_cybtopstats_prefix_new_desc" date="0" username="" version=""><![CDATA[مسار أيقونة ( المشاركات الجديدة )]]></phrase>
			<phrase name="setting_cybtopstats_prefix_old_desc" date="0" username="" version=""><![CDATA[مسار أيقونة ( المشاركات القديمة )]]></phrase>
			<phrase name="setting_cybtopstats_switch_lpl_desc" date="0" username="" version=""><![CDATA[<table style="margin-left:20px" width="55%" border="1" cellspacing="0" cellpadding="0"><tr><td bgcolor="silver">&nbsp;</td><td></td><td></td><td></td><td></td><td></td><td>&nbsp;</td></tr></table>]]></phrase>
			<phrase name="setting_cybtopstats_switch_lpl_title" date="0" username="" version=""><![CDATA[إدارة الإحصائيات - الصف الأول]]></phrase>
			<phrase name="setting_cybtopstats_switch_lpr_desc" date="0" username="" version=""><![CDATA[<table style="margin-left:20px" width="55%" border="1" cellspacing="0" cellpadding="0"><tr><td>&nbsp;</td><td></td><td></td><td></td><td></td><td></td><td bgcolor="silver">&nbsp;</td></tr></table>]]></phrase>
			<phrase name="setting_cybtopstats_switch_s10_desc" date="0" username="" version=""><![CDATA[<table style="margin-left:20px" width="55%" border="1" cellspacing="0" cellpadding="0"><tr><td rowspan="2">&nbsp;</td><td></td><td></td><td></td><td></td><td></td><td rowspan="2">&nbsp;</td></tr><tr><td></td><td></td><td></td><td></td><td bgcolor="silver"></td></tr></table>]]></phrase>
			<phrase name="setting_cybtopstats_switch_s1_desc" date="0" username="" version=""><![CDATA[<table style="margin-left:20px" width="55%" border="1" cellspacing="0" cellpadding="0"><tr><td>&nbsp;</td><td bgcolor="silver"></td><td></td><td></td><td></td><td></td><td>&nbsp;</td></tr></table>]]></phrase>
			<phrase name="setting_cybtopstats_switch_s2_desc" date="0" username="" version=""><![CDATA[<table style="margin-left:20px" width="55%" border="1" cellspacing="0" cellpadding="0"><tr><td rowspan="2">&nbsp;</td><td></td><td></td><td></td><td></td><td></td><td rowspan="2">&nbsp;</td></tr><tr><td bgcolor="silver"></td><td></td><td></td><td></td><td></td></tr></table>]]></phrase>
			<phrase name="setting_cybtopstats_switch_s2_title" date="0" username="" version=""><![CDATA[إدارة الإحصائيات - الصف الثاني]]></phrase>
			<phrase name="setting_cybtopstats_switch_s3_desc" date="0" username="" version=""><![CDATA[<table style="margin-left:20px" width="55%" border="1" cellspacing="0" cellpadding="0"><tr><td>&nbsp;</td><td></td><td bgcolor="silver"><td></td></td><td></td><td></td><td>&nbsp;</td></tr></table>]]></phrase>
			<phrase name="setting_cybtopstats_switch_s4_desc" date="0" username="" version=""><![CDATA[<table style="margin-left:20px" width="55%" border="1" cellspacing="0" cellpadding="0"><tr><td rowspan="2">&nbsp;</td><td></td><td></td><td></td><td></td><td></td><td rowspan="2">&nbsp;</td></tr><tr><td></td><td bgcolor="silver"></td><td></td><td></td><td></td></tr></table>]]></phrase>
			<phrase name="setting_cybtopstats_switch_s5_desc" date="0" username="" version=""><![CDATA[<table style="margin-left:20px" width="55%" border="1" cellspacing="0" cellpadding="0"><tr><td>&nbsp;</td><td></td><td></td><td bgcolor="silver"><td></td></td><td></td><td>&nbsp;</td></tr></table>]]></phrase>
			<phrase name="setting_cybtopstats_switch_s6_desc" date="0" username="" version=""><![CDATA[<table style="margin-left:20px" width="55%" border="1" cellspacing="0" cellpadding="0"><tr><td rowspan="2">&nbsp;</td><td></td><td></td><td></td><td></td><td></td><td rowspan="2">&nbsp;</td></tr><tr><td></td><td></td><td bgcolor="silver"></td><td></td><td></td></tr></table>]]></phrase>
			<phrase name="setting_cybtopstats_switch_s7_desc" date="0" username="" version=""><![CDATA[<table style="margin-left:20px" width="55%" border="1" cellspacing="0" cellpadding="0"><tr><td>&nbsp;</td><td></td><td></td><td></td><td bgcolor="silver"><td></td></td><td>&nbsp;</td></tr></table>]]></phrase>
			<phrase name="setting_cybtopstats_switch_s8_desc" date="0" username="" version=""><![CDATA[<table style="margin-left:20px" width="55%" border="1" cellspacing="0" cellpadding="0"><tr><td rowspan="2">&nbsp;</td><td></td><td></td><td></td><td></td><td></td><td rowspan="2">&nbsp;</td></tr><tr><td></td><td></td><td></td><td bgcolor="silver"></td><td></td></tr></table>]]></phrase>
			<phrase name="setting_cybtopstats_switch_s9_desc" date="0" username="" version=""><![CDATA[<table style="margin-left:20px" width="55%" border="1" cellspacing="0" cellpadding="0"><tr><td>&nbsp;</td><td></td><td></td><td></td><td></td><td bgcolor="silver"></td><td>&nbsp;</td></tr></table>]]></phrase>
			<phrase name="setting_cybtopstats_tablebg_desc" date="0" username="" version=""><![CDATA[لون خلفية الجدول]]></phrase>
			<phrase name="setting_cybtopstats_tablebg_title" date="0" username="" version=""><![CDATA[المكياج]]></phrase>
			<phrase name="setting_cybtopstats_time_format_desc" date="0" username="" version=""><![CDATA[هيئة الوقت]]></phrase>
			<phrase name="setting_cybtopstats_trim_forumtitles_desc" date="0" username="" version=""><![CDATA[زركشة عناوين الأقسام ( ضع الرقم صفر لإلغاء هذه الخاصية )]]></phrase>
			<phrase name="setting_cybtopstats_trim_threadtitles_desc" date="0" username="" version=""><![CDATA[زركشة عناوين المواضيع ( ضع الرقم صفر لإلغاء هذه الخاصية )]]></phrase>
			<phrase name="setting_cybtopstats_trim_usernames_desc" date="0" username="" version=""><![CDATA[زركشة أسم المستخدم ( ضع الرقم صفر لإلغاء هذه الخاصية )]]></phrase>
			<phrase name="setting_cybtopstats_window_loc_desc" date="0" username="" version=""><![CDATA[الإحصائيات في الصفحة الرئيسية]]></phrase>
			<phrase name="settinggroup_cybtopstats" date="0" username="" version=""><![CDATA[إعدادات هاك إحصائية المنتدي المتقدم]]></phrase>
		</phrasetype>
	</phrases>
	<options>
		<settinggroup name="cybtopstats" displayorder="65535">
			<setting varname="cybtopstats_enable_global" displayorder="5">
				<datatype>free</datatype>
				<optioncode>yesno</optioncode>
				<defaultvalue>1</defaultvalue>
			</setting>
			<setting varname="cybtopstats_layout" displayorder="10">
				<datatype>free</datatype>
				<optioncode>select:piped
1|cyb_layout_onerow
2|cyb_layout_tworows</optioncode>
				<defaultvalue>2</defaultvalue>
			</setting>
			<setting varname="cybtopstats_amount_main" displayorder="15">
				<datatype>number</datatype>
				<defaultvalue>5</defaultvalue>
			</setting>
			<setting varname="cybtopstats_amount_more" displayorder="20">
				<datatype>free</datatype>
				<defaultvalue>5,10,20,30,50,100,200</defaultvalue>
			</setting>
			<setting varname="cybtopstats_window_loc" displayorder="25">
				<datatype>free</datatype>
				<optioncode>select:piped
0|cybstats_mainbox_noauto
1|cybstats_put_bellow_navbar
2|cybstats_put_above_forums
3|cybstats_put_below_forums
4|cybstats_put_below_wol</optioncode>
				<defaultvalue>3</defaultvalue>
			</setting>
			<setting varname="cybtopstats_add_loc" displayorder="30">
				<datatype>free</datatype>
			</setting>
			<setting varname="cybtopstats_switch_lpl" displayorder="35">
				<datatype>free</datatype>
				<optioncode>select:piped
0|cyb_disabled
1|cyb_latest_posts</optioncode>
				<defaultvalue>0</defaultvalue>
			</setting>
			<setting varname="cybtopstats_switch_s1" displayorder="40">
				<datatype>free</datatype>
				<optioncode>select:piped
0|cyb_disabled
1|cyb_latest_news
2|cyb_newest_members
3|cyb_top_posters
4|cyb_top_starters
5|cyb_top_referrers
6|cyb_most_viewed
7|cyb_hottest_threads
8|cyb_top_reputation
9|cyb_thanked_members
10|cyb_top_forums
11|cyb_top_infractions</optioncode>
				<defaultvalue>1</defaultvalue>
			</setting>
			<setting varname="cybtopstats_switch_s3" displayorder="45">
				<datatype>free</datatype>
				<optioncode>select:piped
0|cyb_disabled
1|cyb_latest_news
2|cyb_newest_members
3|cyb_top_posters
4|cyb_top_starters
5|cyb_top_referrers
6|cyb_most_viewed
7|cyb_hottest_threads
8|cyb_top_reputation
9|cyb_thanked_members
10|cyb_top_forums
11|cyb_top_infractions</optioncode>
				<defaultvalue>7</defaultvalue>
			</setting>
			<setting varname="cybtopstats_switch_s5" displayorder="50">
				<datatype>free</datatype>
				<optioncode>select:piped
0|cyb_disabled
1|cyb_latest_news
2|cyb_newest_members
3|cyb_top_posters
4|cyb_top_starters
5|cyb_top_referrers
6|cyb_most_viewed
7|cyb_hottest_threads
8|cyb_top_reputation
9|cyb_thanked_members
10|cyb_top_forums
11|cyb_top_infractions</optioncode>
				<defaultvalue>6</defaultvalue>
			</setting>
			<setting varname="cybtopstats_switch_s7" displayorder="55">
				<datatype>free</datatype>
				<optioncode>select:piped
0|cyb_disabled
1|cyb_latest_news
2|cyb_newest_members
3|cyb_top_posters
4|cyb_top_starters
5|cyb_top_referrers
6|cyb_most_viewed
7|cyb_hottest_threads
8|cyb_top_reputation
9|cyb_thanked_members
10|cyb_top_forums
11|cyb_top_infractions</optioncode>
				<defaultvalue>0</defaultvalue>
			</setting>
			<setting varname="cybtopstats_switch_s9" displayorder="60">
				<datatype>free</datatype>
				<optioncode>select:piped
0|cyb_disabled
1|cyb_latest_news
2|cyb_newest_members
3|cyb_top_posters
4|cyb_top_starters
5|cyb_top_referrers
6|cyb_most_viewed
7|cyb_hottest_threads
8|cyb_top_reputation
9|cyb_thanked_members
10|cyb_top_forums
11|cyb_top_infractions</optioncode>
				<defaultvalue>0</defaultvalue>
			</setting>
			<setting varname="cybtopstats_switch_lpr" displayorder="65">
				<datatype>free</datatype>
				<optioncode>select:piped
0|cyb_disabled
1|cyb_latest_posts</optioncode>
				<defaultvalue>1</defaultvalue>
			</setting>
			<setting varname="cybtopstats_switch_s2" displayorder="70">
				<datatype>free</datatype>
				<optioncode>select:piped
0|cyb_disabled
1|cyb_latest_news
2|cyb_newest_members
3|cyb_top_posters
4|cyb_top_starters
5|cyb_top_referrers
6|cyb_most_viewed
7|cyb_hottest_threads
8|cyb_top_reputation
9|cyb_thanked_members
10|cyb_top_forums
11|cyb_top_infractions</optioncode>
				<defaultvalue>2</defaultvalue>
			</setting>
			<setting varname="cybtopstats_switch_s4" displayorder="75">
				<datatype>free</datatype>
				<optioncode>select:piped
0|cyb_disabled
1|cyb_latest_news
2|cyb_newest_members
3|cyb_top_posters
4|cyb_top_starters
5|cyb_top_referrers
6|cyb_most_viewed
7|cyb_hottest_threads
8|cyb_top_reputation
9|cyb_thanked_members
10|cyb_top_forums
11|cyb_top_infractions</optioncode>
				<defaultvalue>3</defaultvalue>
			</setting>
			<setting varname="cybtopstats_switch_s6" displayorder="80">
				<datatype>free</datatype>
				<optioncode>select:piped
0|cyb_disabled
1|cyb_latest_news
2|cyb_newest_members
3|cyb_top_posters
4|cyb_top_starters
5|cyb_top_referrers
6|cyb_most_viewed
7|cyb_hottest_threads
8|cyb_top_reputation
9|cyb_thanked_members
10|cyb_top_forums
11|cyb_top_infractions</optioncode>
				<defaultvalue>5</defaultvalue>
			</setting>
			<setting varname="cybtopstats_switch_s8" displayorder="85">
				<datatype>free</datatype>
				<optioncode>select:piped
0|cyb_disabled
1|cyb_latest_news
2|cyb_newest_members
3|cyb_top_posters
4|cyb_top_starters
5|cyb_top_referrers
6|cyb_most_viewed
7|cyb_hottest_threads
8|cyb_top_reputation
9|cyb_thanked_members
10|cyb_top_forums
11|cyb_top_infractions</optioncode>
				<defaultvalue>0</defaultvalue>
			</setting>
			<setting varname="cybtopstats_switch_s10" displayorder="90">
				<datatype>free</datatype>
				<optioncode>select:piped
0|cyb_disabled
1|cyb_latest_news
2|cyb_newest_members
3|cyb_top_posters
4|cyb_top_starters
5|cyb_top_referrers
6|cyb_most_viewed
7|cyb_hottest_threads
8|cyb_top_reputation
9|cyb_thanked_members
10|cyb_top_forums
11|cyb_top_infractions</optioncode>
				<defaultvalue>0</defaultvalue>
			</setting>
			<setting varname="cybtopstats_latestnews_newsforumid" displayorder="95">
				<datatype>free</datatype>
			</setting>
			<setting varname="cybtopstats_newmem_details" displayorder="100">
				<datatype>free</datatype>
				<optioncode>select:piped
1|join_date
2|posts
3|join_date(,)posts</optioncode>
				<defaultvalue>1</defaultvalue>
			</setting>
			<setting varname="cybtopstats_lastpost_linking" displayorder="105">
				<datatype>free</datatype>
				<optioncode>select:piped
1|cybstats_tts_atlp
2|cybstats_ttlp_atts
3|cybstats_ttlp_an
4|cybstats_ttlp_atlp</optioncode>
				<defaultvalue>1</defaultvalue>
			</setting>
			<setting varname="cybtopstats_lastpost_dateline" displayorder="110">
				<datatype>free</datatype>
				<optioncode>yesno</optioncode>
				<defaultvalue>1</defaultvalue>
			</setting>
			<setting varname="cybtopstats_lastpost_poster" displayorder="115">
				<datatype>free</datatype>
				<optioncode>yesno</optioncode>
				<defaultvalue>1</defaultvalue>
			</setting>
			<setting varname="cybtopstats_lastpost_rvcounts" displayorder="120">
				<datatype>free</datatype>
				<optioncode>select:piped
0|cyb_disabled
1|replies
2|views
3|replies(,)views</optioncode>
				<defaultvalue>0</defaultvalue>
			</setting>
			<setting varname="cybtopstats_lastpost_forums" displayorder="125">
				<datatype>free</datatype>
				<optioncode>yesno</optioncode>
				<defaultvalue>1</defaultvalue>
			</setting>
			<setting varname="cybtopstats_excl_forums" displayorder="130">
				<datatype>free</datatype>
			</setting>
			<setting varname="cybtopstats_excl_groups" displayorder="135">
				<datatype>free</datatype>
			</setting>
			<setting varname="cybtopstats_cant_viewmore" displayorder="140">
				<datatype>free</datatype>
				<defaultvalue>1,8</defaultvalue>
			</setting>
			<setting varname="cybtopstats_excl_groups_listing" displayorder="145">
				<datatype>free</datatype>
			</setting>
			<setting varname="cybtopstats_tablebg" displayorder="150">
				<datatype>free</datatype>
				<optioncode>select:piped
1|Alt1
2|Alt2</optioncode>
				<defaultvalue>1</defaultvalue>
			</setting>
			<setting varname="cybtopstats_date_format" displayorder="155">
				<datatype>free</datatype>
				<defaultvalue>d-m</defaultvalue>
			</setting>
			<setting varname="cybtopstats_time_format" displayorder="160">
				<datatype>free</datatype>
				<defaultvalue>H:i</defaultvalue>
			</setting>
			<setting varname="cybtopstats_prefix_new" displayorder="165">
				<datatype>free</datatype>
				<defaultvalue>images/statusicon/post_new.gif</defaultvalue>
			</setting>
			<setting varname="cybtopstats_prefix_old" displayorder="170">
				<datatype>free</datatype>
				<defaultvalue>images/statusicon/post_old.gif</defaultvalue>
			</setting>
			<setting varname="cybtopstats_color_new" displayorder="175">
				<datatype>free</datatype>
				<defaultvalue>Black</defaultvalue>
			</setting>
			<setting varname="cybtopstats_color_old" displayorder="180">
				<datatype>free</datatype>
				<defaultvalue>DarkGray</defaultvalue>
			</setting>
			<setting varname="cybtopstats_bold_remove" displayorder="185">
				<datatype>free</datatype>
				<optioncode>yesno</optioncode>
				<defaultvalue>1</defaultvalue>
			</setting>
			<setting varname="cybtopstats_trim_threadtitles" displayorder="190">
				<datatype>number</datatype>
				<defaultvalue>18</defaultvalue>
			</setting>
			<setting varname="cybtopstats_trim_forumtitles" displayorder="195">
				<datatype>number</datatype>
				<defaultvalue>18</defaultvalue>
			</setting>
			<setting varname="cybtopstats_trim_usernames" displayorder="200">
				<datatype>number</datatype>
				<defaultvalue>13</defaultvalue>
			</setting>
			<setting varname="F-CTS-v5.2_Copyright" displayorder="205">
				<datatype>free</datatype>
				<optioncode><![CDATA[The Technical Support For This Hack Please Visit The Official Topic From vBulletin.org Forum To Programmer Hack Cybernetec From <a href='http://www.vbulletin.org/forum/showthread.php?t=122986'>Here</a><br />And Aljabri Enterprises Company Support For This Hack Please Visit The Official Topic From Alnaser To Translator Hack Aljabri From <a href='http://www.ffir.net/vb'>Here</a>]]></optioncode>
				<defaultvalue><![CDATA[The Technical Support For This Hack Please Visit The Official Topic From vBulletin.org Forum To Programmer Hack Cybernetec From <a href='http://www.vbulletin.org/forum/showthread.php?t=122986'>Here</a><br />And Aljabri Enterprises company Support For This Hack Please Visit The Official Topic From AlnaserTo Translator Hack Alnaser From <a href='http://www.ffir.net/vb'>Here</a>]]></defaultvalue>
			</setting>
		</settinggroup>
	</options>
	<helptopics>
	</helptopics>
	<cronentries>
	</cronentries>
	<faqentries>
	</faqentries>
</product>
