"._ERRORINVEMAIL."
"; if (strrpos($user_email,' ') > 0) $stop = "
"._ERROREMAILSPACES."
"; if ((!$username) || ($username=="") || (ereg("[^a-zA-Z0-9_-]",$username))) $stop = "
"._ERRORINVNICK."

"; if (strlen($username) > 25) $stop = "
"._NICK2LONG."
"; if (eregi("^((root)|(adm)|(linux)|(webmaster)|(admin)|(god)|(administrator)|(administrador)|(nobody)|(anonymous)|(anonimo)|(anónimo)|(operator))$",$username)) $stop = "
"._NAMERESERVED."
"; if (strrpos($username,' ') > 0) $stop = "
"._NICKNOSPACES."
"; if ($db->sql_numrows($db->sql_query("SELECT username FROM ".$user_prefix."_users WHERE username='$username'")) > 0) $stop = "
"._NICKTAKEN."

"; if ($db->sql_numrows($db->sql_query("SELECT username FROM ".$user_prefix."_users_temp WHERE username='$username'")) > 0) $stop = "
"._NICKTAKEN."

"; if ($db->sql_numrows($db->sql_query("SELECT user_email FROM ".$user_prefix."_users WHERE user_email='$user_email'")) > 0) $stop = "
"._EMAILREGISTERED."

"; if ($db->sql_numrows($db->sql_query("SELECT user_email FROM ".$user_prefix."_users_temp WHERE user_email='$user_email'")) > 0) $stop = "
"._EMAILREGISTERED."

"; return($stop); } function makePass() { $cons = "bcdfghjklmnpqrstvwxyz"; $vocs = "aeiou"; for ($x=0; $x < 6; $x++) { mt_srand ((double) microtime() * 1000000); $con[$x] = substr($cons, mt_rand(0, strlen($cons)-1), 1); $voc[$x] = substr($vocs, mt_rand(0, strlen($vocs)-1), 1); } $makepass = $con[0] . $voc[0] .$con[2] . $con[1] . $voc[1] . $con[3] . $voc[3] . $con[4]; return($makepass); } function confirmNewUser($username, $user_email, $user_password, $user_password2, $random_num, $gfx_check) { global $stop, $EditedMessage, $sitename, $module_name, $minpass; include("header.php"); include("config.php"); filter_text($username); $username = $EditedMessage; $user_viewemail = "0"; userCheck($username, $user_email); if (!$stop) { $datekey = date("F j"); $rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey . $_POST[random_num] . $datekey)); $code = substr($rcode, 2, 6); if (extension_loaded("gd") AND $code != $gfx_check AND ($gfx_chk == 3 OR $gfx_chk == 4 OR $gfx_chk == 6 OR $gfx_chk == 7)) { title(""._NEWUSERERROR.""); OpenTable(); echo "
"._SECCODEINCOR."

" .""._GOBACK."
"; CloseTable(); incltopmgin="0" rightmargin= er text?name=$m
"._PASSDIFFERENT."

"._GOBACK.""; CloseTable(); include("footer.php"); die(); } elseif ($user_password == $user_password2 AND strlen($user_password) < $minpass) { title(""._NEWUSERERROR.""); OpenTable(); echo "
"._YOUPASSMUSTBE." $minpass "._CHARLONG."

"._GOBACK."
"; CloseTable(); include("footer.php"); die(); } title("$sitename: "._USERREGLOGIN.""); OpenTable(); echo "
"._USERFINALSTEP."

$username, "._USERCHECKDATA."


" ."" ."" ."
"._UUSERNAME.": $username
"._EMAIL.": $user_email


" ."
"._NOTE." "._YOUWILLRECEIVE.""; echo "" ."" ."" ."" ."" ."" ."

" ."   "._GOBACK."
"; CloseTable(); } else { OpenTable(); echo "
Registration Error!

"; echo "$stop
"._GOBACK."
"; CloseTable(); } include("footer.php"); } function finishNewUser($username, $user_email, $user_password, $random_num, $gfx_check) { global $stop, $EditedMessage, $adminmail, $sitename, $Default_Theme, $user_prefix, $db, $storyhome, $module_name, $nukeurl; include("header.php"); include("config.php"); userCheck($username, $user_email); $user_regdate = date("M d, Y"); if (!isset($stop)) { $datekey = date("F j"); $rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey . $random_num . $datekey)); $code = substr($rcode, 2, 6); if (extension_loaded("gd") AND $code != $gfx_check AND ($gfx_chk == 3 OR $gfx_chk == 4 OR $gfx_chk == 6 OR $gfx_chk == 7)) { Header("Location: modules.php?name=$module_name"); die(); } mt_srand ((double)microtime()*1000000); $maxran = 1000000; $check_num = mt_rand(0, $maxran); $check_num = md5($check_num); $time = time(); $finishlink = "$nukeurl/modules.php?name=$module_name&op=activate&username=$username&check_num=$check_num"; $new_password = md5($user_password); $username = check_html($username, nohtml); $user_email = check_html($user_email, nohtml); $result = $db->sql_query("INSERT INTO ".$user_prefix."_users_temp (user_id, username, user_email, user_password, user_regdate, check_num, time) VALUES (NULL, '$username', '$user_email', '$new_password', '$user_regdate', '$check_num', '$time')"); if(!$result) { echo ""._ERROR."
"; } else { $message = ""._WELCOMETO." $sitename!\n\n"._YOUUSEDEMAIL." ($user_email) "._TOREGISTER." $sitename.\n\n "._TOFINISHUSER."\n\n $finishlink\n\n "._FOLLOWINGMEM."\n\n"._UNICKNAME." $username\n"._UPASSWORD." $user_password"; $subject = ""._ACTIVATIONSUB.""; $from = "$adminmail"; mail($user_email, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion()); title("$sitename: "._USERREGLOGIN.""); OpenTable(); echo "
"._ACCOUNTCREATED."

"; echo ""._YOUAREREGISTERED."" ."

" .""._FINISHUSERCONF."

" .""._THANKSUSER." $sitename!
"; CloseTable(); } } else { echo "$stop"; } include("footer.php"); } function activate($username, $check_num) { global $db, $user_prefix, $module_name, $language; $past = time()-86400; $db->sql_query("DELETE FROM ".$user_prefix."_users_temp WHERE time < $past"); $result = $db->sql_query("SELECT * FROM ".$user_prefix."_users_temp WHERE username='$username' AND check_num='$check_num'"); if ($db->sql_numrows($result) == 1) { $row = $db->sql_fetchrow($result); if ($check_num == $row[check_num]) { $db->sql_query("INSERT INTO ".$user_prefix."_users (user_id, username, user_email, user_password, user_avatar, user_avatar_type, user_regdate, user_lang) VALUES (NULL, '$row[username]', '$row[user_email]', '$row[user_password]', 'gallery/blank.gif', 3, '$row[user_regdate]', '$language')"); $db->sql_query("DELETE FROM ".$user_prefix."_users_temp WHERE username='$username' AND check_num='$check_num'"); include("header.php"); title(""._ACTIVATIONYES.""); OpenTable(); echo "
$row[username]: "._ACTMSG."
"; CloseTable(); include("footer.php"); die(); } else { include("header.php"); title(""._ACTIVATIONERROR.""); OpenTable(); echo "
"._ACTERROR1."
"; CloseTable(); include("footer.php"); die(); } } else { include("header.php"); title(""._ACTIVATIONERROR.""); OpenTable(); echo "
"._ACTERROR2."
"; CloseTable(); include("footer.php"); die(); } } function userinfo($username, $bypass=0, $hid=0, $url=0) { global $user, $cookie, $sitename, $prefix, $user_prefix, $db, $admin, $broadcast_msg, $my_headlines, $module_name; $result = $db->sql_query("SELECT * FROM ".$user_prefix."_users WHERE username='$username'"); $num = $db->sql_numrows($result); $userinfo = $db->sql_fetchrow($result); if(!$bypass) cookiedecode($user); include("header.php"); OpenTable(); echo "
"; if((strtolower($username) == strtolower($cookie[1])) AND ($userinfo[user_password] == $cookie[2])) { echo "$username, "._WELCOMETO." $sitename!

"; echo ""._THISISYOURPAGE."


"; nav(1); echo "

"; } else { echo ""._PERSONALINFO.": $username

"; } if ($userinfo[user_website]) { if (!eregi("http://", $userinfo[user_website])) { $userinfo[user_website] = "http://$userinfo[user_website]"; } } if(($num == 1) && ($userinfo[user_website] || $userinfo[femail] || $userinfo[bio] || $userinfo[user_avatar] || $userinfo[user_icq] || $userinfo[user_aim] || $userinfo[user_yim] || $userinfo[user_msnm] || $userinfo[user_location] || $userinfo[user_occ] || $userinfo[user_interests] || $userinfo[user_sig])) { echo "
"; if (ereg("(http)", $userinfo[user_avatar])) { echo "
\n"; } elseif ($userinfo[user_avatar]) { echo "
\n"; } if ($userinfo[user_website] != "http://" AND $userinfo[user_website] != "") { echo ""._MYHOMEPAGE." $userinfo[user_website]
\n"; } if ($userinfo[femail]) { echo ""._MYEMAIL." $userinfo[femail]
\n"; } if ($userinfo[user_icq]) echo ""._ICQ.": $userinfo[user_icq]
\n"; if ($userinfo[user_aim]) echo ""._AIM.": $userinfo[user_aim]
\n"; if ($userinfo[user_yim]) echo ""._YIM.": $userinfo[user_yim]
\n"; if ($userinfo[user_msnm]) echo ""._MSNM.": $userinfo[user_msnm]
\n"; if ($userinfo[user_from]) echo ""._LOCATION.": $userinfo[user_from]
\n"; if ($userinfo[user_occ]) echo ""._OCCUPATION.": $userinfo[user_occ]
\n"; if ($userinfo[user_interests]) echo ""._INTERESTS.": $userinfo[user_interests]
\n"; $userinfo[user_sig] = nl2br($userinfo[user_sig]); if ($userinfo[user_sig]) echo "
"._SIGNATURE.":
$userinfo[user_sig]
\n"; if ($userinfo[bio]) { echo "
"._EXTRAINFO.":
$userinfo[bio]
\n"; } $row2 = $db->sql_fetchrow($db->sql_query("SELECT uname FROM ".$prefix."_session WHERE uname='$username'")); $username_pm = $username; $username_online = $row2['uname']; if ($username_online == "") { $online = _OFFLINE; } else { $online = _ONLINE; } echo ""._USERSTATUS.": $online
\n"; if (($userinfo[newsletter] == 1) AND ($username == $cookie[1]) AND (.""._SUBSCRIBED."
"; } elseif (($userinfo[newsletter] == 0) AND ($username == $cookie[1]) AND ($userinfo[user_password] == $cookie[2]) OR (is_admin($admin) AND ($userinfo[newsletter] == 0))) { echo ""._NOTSUBSCRIBED."
"; } if (is_user($user) AND $cookie[1] == "$username" OR is_admin($admin)) { $numpoints = $db->sql_fetchrow($db->sql_query("SELECT points FROM ".$user_prefix."_users WHERE username='$cookie[1]'")); $n_points = intval($numpoints['points']); echo ""._YOUHAVEPOINTS." $n_points
"; } if (is_active("Journal") AND $cookie[1] != $username) { $row3 = $db->sql_fetchrow($db->sql_query("SELECT jid FROM ".$prefix."_journal WHERE aid='$username' AND status='yes' ORDER BY pdate,jid DESC LIMIT 0,1")); $jid = intval($row3['jid']); if ($jid != "" AND isset($jid)) { echo "[ "._READMYJOURNAL." ]
"; } } if (is_admin($admin)) { echo "[ "._EDITUSER." ]
"; } if (((is_user($user) AND $cookie[1] != $username) OR is_admin($admin)) AND is_active("Private_Messages")) { echo "
[ "._USENDPRIVATEMSG." $username_pm ]
\n"; } echo "
"; } else { echo "
"._NOINFOFOR." $username
"; } CloseTable(); if ($my_headlines == 1 AND ($username == $cookie[1]) AND ($userinfo[user_password] == $cookie[2])) { echo "
"; OpenTable(); echo "
"._MYHEADLINES."

" .""._SELECTASITE."

" ."
" ."" ."" ."" ."" ."
" .""._ORTYPEURL."

" ."
" ."" ."" ."" ."" ."  " ."
" ."

"; if ($hid != 0 OR ($hid == 0 AND $url != "0" AND $url != "http://") AND $url != "") { if ($hid != 0) { $row5 = $db->sql_fetchrow($db->sql_query("SELECT sitename, headlinesurl FROM ".$prefix."_headlines WHERE hid='$hid'")); $nsitename = $row5['sitename']; $url = $row5['headlinesurl']; $title = stripslashes(check_html($nsitename, "nohtml")); $siteurl = eregi_replace("http://", "", $url); $siteurl = explode("/", $siteurl); } else { if (!ereg("http://", $url)) { $url = "http://$url"; o :
" ."" . _HOMEPAGE . ":  [ " . _VISIT . " ]
" ."" . _HITS . ":
"; $result2 = $db->sql_query("SELECT cid, title, parentid from " . $prefix . "_downloads_categories order by title"); echo "" ."" . _CATEGORY . ": " ."" ." [ " . _DELETE . " ]
"; CloseTable(); echo "
"; /* Modify or Add Editorial */ $lid = intval($lid); $resulted2 = $db->sql_query("SELECT adminid, editorialtimestamp, editorialtext, editorialtitle from " . $prefix . "_downloads_editorials where downloadid='$lid'"); $recordexist = $db->sql_numrows($resulted2); OpenTable(); /* if returns 'bad query' status 0 (add editorial) */ if ($recordexist == 0) { echo "
" . _ADDEDITORIAL . "


" ."
" ."" ."" . _EDITORIALTITLE . ":

" ."" . _EDITORIALTEXT . ":

" .""; } else { /* if returns 'cool' then status 1 (modify editorial) */ while($row3 = $db->sql_fetchrow($resulted2)) { $adminid = intval($row3['adminid']); $editorialtimestamp = $row3['editorialtimestamp']; $editorialtext = stripslashes($row3['editorialtext']); $editorialtitle = stripslashes($row3['editorialtitle']); ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $editorialtimestamp, $editorialtime); $editorialtime = strftime("%F",mktime($editorialtime[4],$editorialtime[5],$editorialtime[6],$editorialtime[2],$editorialtime[3],$editorialtime[1])); $date_array = explode("-", $editorialtime); $timestamp = mktime(0, 0, 0, $date_array["1"], $date_array["2"], $date_array["0"]); $formatted_date = date("F j, Y", $timestamp); echo "
Modify Editorial


" ."" ."" . _AUTHOR . ": $adminid
" ."" . _DATEWRITTEN . ": $formatted_date

" ."" ."" . _EDITORIALTITLE . ":

" ."" . _EDITORIALTEXT . ":

" ." [ " . _DELETE . " ]"; } } CloseTable(); echo "
"; OpenTable(); /* Show Comments */ $result4 = $db->sql_query("SELECT ratingdbid, ratinguser, ratingcomments, ratingtimestamp FROM " . $prefix . "_downloads_votedata WHERE ratinglid='$lid' AND ratingcomments != '' ORDER BY ratingtimestamp DESC"); $totalcomments = $db->sql_numrows($result4); echo ""; echo ""; echo "
"; if ($totalcomments == 0) echo ""; $x=0; $colorswitch="dddddd"; while($row4 = $db->sql_fetchrow($result4)) { $ratingdbid = intval($row4['ratingdbid']); $ratinguser = $row4['ratinguser']; $ratingcomments = stripslashes($row4['ratingcomments']); $ratingtimestamp = $row4['ratingtimestamp']; ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $ratingtimestamp, $ratingtime); $ratingtime = strftime("%F",mktime($ratingtime[4],$ratingtime[5],$ratingtime[6],$ratingtime[2],$ratingtime[3],$ratingtime[1])); $date_array = explode("-", $ratingtime); $timestamp = mktime(0, 0, 0, $date_array["1"], $date_array["2"], $date_array["0"]); $formatted_date = date("F j, Y", $timestamp); echo "
"; $x++; if ($colorswitch=="dddddd") $colorswitch="ffffff"; else $colorswitch="dddddd"; } // Show Registered Users Votes $result5 = $db->sql_query("SELECT ratingdbid, ratinguser, rating, ratinghostname, ratingtimestamp FROM " . $prefix . "_downloads_votedata WHERE ratinglid='$lid' AND ratinguser != 'outside' AND ratinguser != '$anonymous' ORDER BY ratingtimestamp DESC"); $totalvotes = $db->sql_numrows($result5); echo ""; echo "
"; if ($totalvotes == 0) echo ""; $x=0; $colorswitch="dddddd"; while($row5 = $db->sql_fetchrow($result5)) { $ratingdbid = intval($row5['ratingdbid']); $ratinguser = $row5['ratinguser']; $rating = intval($row5['rating']); $ratinghostname = $row5['ratinghostname']; $ratingtimestamp = $row5['ratingtimestamp']; ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $ratingtimestamp, $ratingtime); $ratingtime = strftime("%F",mktime($ratingtime[4],$ratingtime[5],$ratingtime[6],$ratingtime[2],$ratingtime[3],$ratingtime[1])); $date_array = explode("-", $ratingtime); $timestamp = mktime(0, 0, 0, $date_array["1"], $date_array["2"], $date_array["0"]); $formatted_date = date("F j, Y", $timestamp); //Individual user information $result6 = $db->sql_query("SELECT rating FROM " . $prefix . "_downloads_votedata WHERE ratinguser = '$ratinguser'"); $usertotalcomments = $db->sql_numrows($result6); $useravgrating = 0; while($row6 = $db->sql_fetchrow($result6)) $useravgrating = $useravgrating + $rating2; $rating2 = intval($row6['rating']); $useravgrating = $useravgrating / $usertotalcomments; $useravgrating = number_format($useravgrating, 1); echo "
Download Comments (total comments: $totalcomments)

User Comment
Delete
No Comments
$ratinguser$ratingcomments
X


Registered User Votes (total votes: $totalvotes)

User IP Address Rating User AVG Rating Total Ratings Date
Delete
No Registered User Votes
$ratinguser$ratinghostname$rating$useravgrating$usertotalcomments$formatted_date
X
year'"); list($TotalHitsMonth) = $db->sql_fetchrow($resultmonth); $db->sql_freeresult($resultmonth); $result = $db->sql_query("select month,hits from ".$prefix."_stats_month where year='$nowyear'"); echo "
"._MONTLYSTATS." $nowyear

"; echo ""; echo ""; while($row = $db->sql_fetchrow($result)) { $month = intval($row['month']); $hits = intval($row['hits']); echo ""; echo ""; } $db->sql_freeresult($result); echo "
"._UMONTH.""._SPAGESVIEWS."
"; if ($month != $nowmonth) { echo ""; getmonth($month); echo ""; } else { getmonth($month); } echo ""; $WidthIMG = round(100 * $hits/$TotalHitsMonth,0); echo "\"\"\"\""; echo "\"\" ($hits)
"; } function showDailyStats($year,$month,$nowdate){ global $prefix,$bgcolor1,$bgcolor2,$db, $ThemeSel, $module_name; $l_size = getimagesize("themes/$ThemeSel/images/leftbar.gif"); $m_size = getimagesize("themes/$ThemeSel/images/mainbar.gif"); $r_size = getimagesize("themes/$ThemeSel/images/rightbar.gif"); $resulttotal = $db->sql_query("SELECT sum(hits) as TotalHitsDate from ".$prefix."_stats_date where year='$year' and month='$month'"); list($TotalHitsDate) = $db->sql_fetchrow($resulttotal); $db->sql_freeresult($resulttotal); $result = $db->sql_query("select year,month,date,hits from ".$prefix."_stats_date where year='$year' and month='$month' order by date"); $total = $db->sql_numrows($result); echo "
"._DAILYSTATS." "; getmonth($month); echo ", $year

"; echo ""; echo ""; while($row = $db->sql_fetchrow($result)) { $year = intval($row['year']); $month = intval($row['month']); $date = intval($row['date']); $hits = intval($row['hits']); echo "" .""; } $db->sql_freeresult($result); echo "
"._DATE.""._SPAGESVIEWS."
"; if ($date != $nowdate) { echo ""; echo $date; echo ""; } else { echo $date; } echo ""; if ($hits == 0) { $WidthIMG = 0; $d_percent = 0; } else { $WidthIMG = round(100 * $hits/$TotalHitsDate,0); $d_percent = substr(100 * $hits / $TotalHitsDate, 0, 5); } echo "\"\"\"\"" ."\"\" $d_percent% ($hits)
"; } function showHourlyStats($year,$month,$date){ global $prefix,$bgcolor1,$bgcolor2,$db, $ThemeSel; $l_size = getimagesize("themes/$ThemeSel/images/leftbar.gif"); $m_size = getimagesize("themes/$ThemeSel/images/mainbar.gif"); $r_size = getimagesize("themes/$/$ThemeSel/images/rightbar.gif"); $resulttotal = $db->sql_query("SELECT sum(hits) as TotalHitsHour from ".$prefix."_stats_hour where year='$year' and month='$month' and date='$date'"); list($TotalHitsHour) = $db->sql_fetchrow($resulttotal); $db->sql_freeresult($resulttotal); $nowdate = date("d-m-Y"); $nowdate_arr = explode("-",$nowdate); echo "
"._HOURLYSTATS." "; echo getmonth($month)." ".$date.", " .$year."

"; echo ""; echo ""; for ($k = 0;$k<=23;$k++) { $result = $db->sql_query("select hour,hits from ".$prefix."_stats_hour where year='$year' and month='$month' and date='$date' and hour='$k'"); if ($db->sql_numrows($result) == 0){ $hits=0; } else { $row = $db->sql_fetchrow($result); $hour = intval($row['hour']); $hits = intval($row['hits']); } echo ""; $dum = 1; } $count++; if ($count==2) { echo ""; $count = 0; $dum = 0; } } if ($dum == 1) { echo "
"._HOUR.""._SPAGESVIEWS."
"; if ($k < 10) { $a = "0$k"; } else { $a = $k; } echo "$a:00 - $a:59"; $a = ""; echo ""; if ($hits == 0) { $WidthIMG = 0; $d_percent = 0; } else { $WidthIMG = roer_prefix."_users WHERE uername='$username'"); if($db->sql_numrows($result) == 0 include("header.php"); OpenTable(); echo "
"._SORRYNOUSERINFO."sql_fetchrow($result3)) { $cid3 = intval($row3['cid']); $title3 = stripslashes(check_html($row3['title'], "nohtml")); if ($space>0) { echo ", "; } echo "$title3"; $space++; } if ($count<1) { echo "
    
"; } elseif ($dum == 0) { echo "
"; } echo "
"; $orderbyTrans = convertorderbytrans($orderby); echo "
"._SORTLINKSBY.": " .""._TITLE." (A\D) " .""._DATE." (A\D) " .""._RATING." (A\D) " .""._POPULARITY." (A\D)" ."
"._SITESSORTED.": $orderbyTrans


"; $result4 = $db->sql_query("SELECT lid, title, description, date, hits, linkratingsummary, totalvotes, totalcomments from ".$prefix."_links_links where cid='$cid' order by $orderby limit $min,$perpage"); $fullcountresult = $db->sql_query("SELECT lid, title, description, date, hits, linkratingsummary, totalvotes, totalcomments from ".$prefix."_links_links where cid='$cid'"); $totalselectedlinks = $db->sql_numrows($fullcountresult); echo "
"; $x=0; while($row4 = $db->sql_fetchrow($result4)) { $lid = intval($row4['lid']); $title = stripslashes(check_html($row4['title'], "nohtml")); $description = stripslashes($row4['description']); $time = $row4['date']; $hits = intval($row4['hits']); $linkratingsummary = $row4['linkratingsummary']; $totalvotes = intval($row4['totalvotes']); $totalcomments = intval($row4['totalcomments']); $linkratingsummary = number_format($linkratingsummary, $mainvotedecimal); echo "$title"; newlinkgraphic($datetime, $time); popgraphic($hits); /* INSERT code for *editor review* here */ echo "
"; echo ""._DESCRIPTION.": $description
"; setlocale (LC_TIME, $locale); ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $time, $datetime); $datetime = strftime(""._LINKSDATESTRING."", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1])); $datetime = ucfirst($datetime); echo ""._ADDEDON.": $datetime "._HITS.": $hits"; $transfertitle = str_replace (" ", "_", $title); /* voting & comments stats */ if ($totalvotes == 1) { $votestring = _VOTE; } else { $votestring = _VOTES; } if ($linkratingsummary!="0" || $linkratingsummary!="0.0") { echo " "._RATING.": $linkratingsummary ($totalvotes $votestring)"; } echo "
"; if ($radminsuper == 1) { echo ""._EDIT." | "; } echo ""._RATESITE.""; if (is_user($user)) { echo " | "._REPORTBROKEN.""; } if ($totalvotes != 0) { echo " | "._DETAILS.""; } if ($totalcomments != 0) { echo " | "._SCOMMENTS." ($totalcomments)"; } detecteditorial($lid, $transfertitle); echo "

"; $x++; } echo "
"; $orderby = convertorderbyout($orderby); /* Calculates how many pages exist. Which page one should be on, etc... */ $linkpagesint = ($totalselectedlinks / $perpage); $linkpageremainder = ($totalselectedlinks % $perpage); if ($linkpageremainder != 0) { $linkpages = ceil($linkpagesint); if ($totalselectedlinks < $perpage) { $linkpageremainder = 0; } } else { $linkpages = $linkpagesint; } /* Page Numbering */ if ($linkpages!=1 && $linkpages!=0) { echo "

"; echo ""._SELECTPAGE.": "; $prev=$min-$perpage; if ($prev>=0) { echo "  [ "; echo " << "._PREVIOUS." ] "; } $counter = 1; $currentpage = ($max / $perpage); while ($counter<=$linkpages ) { $cpage = $counter; $mintemp = ($perpage * $counter) - $perpage; if ($counter == $currentpage) { echo "$counter "; } else { echo "$counter "; } $counter++; } $next=$min+$perpage; if ($x>=$perpage) { echo "  [ "; echo " "._NEXT." >> ] "; } } echo "
"; CloseTable(); include("footer.php"); } function newlinkgraphic($datetime, $time) { global $module_name; echo " "; setlocale (LC_TIME, $locale); ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $time, $datetime); $datetime = strftime(""._LINKSDATESTRING."", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1])); $datetime = ucfirst($datetime); $startdate = time(); $count = 0; while ($count <= 7) { $daysold = date("d-M-Y", $startdate); if ("$daysold" == "$datetime") { if ($count<=1) { echo "\""._NEWTODAY."\""; } if ($count<=3 && $count>1) { echo "\""._NEWLAST3DAYS."\""; } if ($count<=7 && $count>3) { echo "\""._NEWTHISWEEK."\""; } } $count++; $startdate = (time()-(86400 * $count)); } } function categorynewlinkgraphic($cat) { global $prefix, $db, $module_name; $cat = intval(trim($cat)); $row = $db->sql_fetchrow($db->sql_query("SELECT date from ".$prefix."_links_links where cid='$cat' order by date desc limit 1")); $time = $row['date']; echo " "; setlocale (LC_TIME, $locale); ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $time, $datetime); $datetime = strftime(""._LINKSDATESTRING."", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1])); $datetime = ucfirst($datetime); $startdate = time(); $count = 0; while ($count <= 7) { $daysold = date("d-M-Y", $startdate); if ("$daysold" == "$datetime") { if ($count<=1) { echo "\""._CATNEWTODAY."\""; } if ($count<=3 && $count>1) { echo "\""._CATLAST3DAYS."\""; } if ($count<=7 && $count>3) { echo "\""._CATTHISWEEK."\""; } } $count++; $startdate = (time()-(86400 * $count)); } } function popgraphic($hits) { global $module_name; include("modules/$module_name/l_config.php"); if ($hits>=$popular) { echo " \""._POPULAR."\""; } } function convertorderbyin($orderby) { if ($orderby == "titleA") $orderby = "title ASC"; if ($orderby == "dateA") $orderby = "date ASC"; if ($orderby == "hitsA") $orderby = "hits ASC"; if ($orderby == "ratingA") $orderby = "linkratingsummary ASC"; if ($orderby == "titleD") $orderby = "title DESC"; if ($orderby == "dateD") $orderby = "date DESC"; if ($orderby == "hitsD") $orderby = "hits DESC"; if ($orderby == "ratingD") $orderby = "linkratingsummary DESC"; return $orderby; } function convertorderbytrans($orderby) { if ($orderby == "hits ASC") $orderbyTrans = ""._POPULARITY1.""; if ($orderby == "hits DESC") $orderbyTrans = ""._POPULARITY2.""; if ($orderby == "title ASC") $orderbyTrans = ""._TITLEAZ.""; if ($orderby == "title DESC") $orderbyTrans = ""._TITLEZA.""; if ($orderby == "date ASC") $orderbyTrans = ""._DATE1.""; if ($orderby == "date DESC") $orderbyTrans = ""._DATE2.""; if ($orderby == "linkratingsummary ASC") $orderbyTrans = ""._RATING1.""; if ($orderby == "linkratingsummary DESC") $orderbyTrans = ""._RATING2.""; return $orderbyTrans; } function convertorderbyout($orderby) { if ($orderby == "title ASC") $orderby = "titleA"; if ($orderby == "date ASC") $orderby = "dateA"; if ($orderby == "hits ASC") $orderby = "hitsA"; if ($orderby == "linkratingsummary ASC") $orderby = "ratingA"; if ($orderby == "title DESC") $orderby = "titleD"; if ($orderby == "date DESC") $orderby = "dateD"; if ($orderby == "hits DESC") $orderby = "hitsD"; if ($orderby == "linkratingsummary DESC") $orderby = "ratingD"; return $orderby; } function visit($lid) { global $prefix, $db; $lid = intval($lid); $db->sql_query("update ".$prefix."_links_links set hits=hits+1 where lid='$lid'"); update_points(14); $row = $db->sql_fetchrow($db->sql_query("SELECT url from ".$prefix."_links_links where lid='$lid'")); $url = stripslashes($row['url']); Header("Location: $url"); } function search($query, $min, $orderby, $show) { global $prefix, $db, $admin, $bgcolor2, $module_name; include("modules/$module_name/l_config.php"); include("header.php"); if (!isset($min)) $min=0; if (!isset($max)) $max=$min+$linksresults; if(isset($orderby)) { $orderby = convertorderbyin($orderby); } else { $orderby = "title ASC"; } if ($show!="") { $linksresults = $show; } else { $show=$linksresults; } $query = check_html($query, nohtml); $query = addslashes($query); $result = $db->sql_query("SELECT lid, cid, sid, title, url, description, date, hits, linkratingsummary, totalvotes, totalcomments from ".$prefix."_links_links where title LIKE '%$query%' OR description LIKE '%$query%' ORDER BY $orderby LIMIT $min,$linksresults"); $fullcountresult = $db->sql_query("SELECT lid, title, description, date, hits, linkratingsummary, totalvotes, totalcomments from ".$prefix."_links_links where title LIKE '%$query%' OR description LIKE '%$query%'"); $totalselectedlinks = $db->sql_numrows($fullcountresult); $nrows = $db->sql_numrows($result); $x=0; $the_query = stripslashes($query); $the_query = str_replace("\'", "'", $the_query); menu(1); echo "
"; OpenTable(); if ($query != "") { if ($nrows>0) { echo ""._SEARCHRESULTS4.": $the_query

" ."
"._USUBCATEGORIES."
"; $result2 = $db->sql_query("SELECT cid, title from ".$prefix."_links_categories where title LIKE '%$query%' ORDER BY title DESC"); while ($row2 = $db->sql_fetchrow($result2)) { $cid = intval($row2['cid']); $stitle = stripslashes(check_html($row2['title'], "nohtml")); $res = $db->sql_query("SELECT * from ".$prefix."_links_links where cid='$cid'"); $numrows = $db->sql_numrows($res); $row3 = $db->sql_fetchrow($db->sql_query("SELECT cid,title,parentid from ".$prefix."_links_categories where cid='$cid'")); $cid3 = intval($row3['cid']); $title3 = stripslashes(check_html($row3['title'], "nohtml")); $parentid3 = intval($row3['parentid']); if ($parentid3>0) $title3 = getparent($parentid3,$title3); $title3 = ereg_replace($query, "$query", $title3); echo "· $title3 ($numrows)
"; } echo "
"._LINKS."
"; $orderbyTrans = convertorderbytrans($orderby); echo "
"._SORTLINKSBY.": " .""._TITLE." (A\D)" .""._DATE." (A\D)" .""._RATING." (A\D)" .""._POPULARITY." (A\D)" ."
"._SITESSORTED.": $orderbyTrans

"; while($row = $db->sql_fetchrow($result)) { $lid = intval($row['lid']); $cid = intval($row['cid']); $sid = intval($row['sid']); $title = stripslashes(check_html($row['title'], "nohtml")); $url = stripslashes($row['url']); $description = stripslashes($row['description']); $time = $row['date']; $hits = intval($row['hits']); $linkratingsummary = $row['linkratingsummary']; $totalvotes = intval($row['totalvotes']); $totalcomments = $row['totalcomments']; $linkratingsummary = number_format($linkratingsummary, $mainvotedecimal); $transfertitle = str_replace (" ", "_", $title); $title = ereg_replace($query, "$query", $title); echo "$title"; newlinkgraphic($datetime, $time); popgraphic($hits); echo "
"; $description = ereg_replace($query, "$query", $description); echo ""._DESCRIPTION.": $description
"; setlocale (LC_TIME, $locale); ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $time, $datetime); $datetime = strftime(""._LINKSDATESTRING."", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1])); $datetime = ucfirst($datetime); echo ""._ADDEDON.": $datetime "._HITS.": $hits"; /* voting & comments stats */ if ($totalvotes == 1) { $votestring = _VOTE; } else { $votestring = _VOTES; } if ($linkratingsummary!="0" || $linkratingsummary!="0.0") { echo " "._RATING.": $linkratingsummary ($totalvotes $votestring)"; } echo "
"._RATESITE.""; if ($totalvotes != 0) { echo " | "._DETAILS.""; } if ($totalcomments != 0) { echo " | "._SCOMMENTS." ($totalcomments)"; } detecteditorial($lid, $transfertitle); echo "
"; $row4 = $db->sql_fetchrow($db->sql_query("SELECT cid,title,parentid from ".$prefix."_links_categories where cid='$cid'")); $cid3 = intval($row4['cid']); $title3 = stripslashes(check_html($row4['title'], "nohtml")); $parentid3 = intval($row4['parentid']); if ($parentid3>0) $title3 = getparent($parentid3,$title3); echo ""._CATEGORY.": $title3

"; $x++; } echo "
"; $orderby = convertorderbyout($orderby); } else { echo "

"._NOMATCHES."

"._GOBACK."
"; } /* Calculates how many pages exist. Which page one should be on, etc... */ $linkpagesint = ($totalselectedlinks / $linksresults); $linkpageremainder = ($totalselectedlinks % $linksresults); if ($linkpageremainder != 0) { $linkpages = ceil($linkpagesint); if ($totalselectedlinks < $linksresults) { $linkpageremainder = 0; } } else { $linkpages = $linkpagesint; } /* Page Numbering */ if ($linkpages!=1 && $linkpages!=0) { echo "

" .""._SELECTPAGE.": "; $prev=$min-$linksresults; if ($prev>=0) { echo "  [ " ." << "._PREVIOUS." ] "; } $counter = 1; $currentpage = ($max / $linksresults); while ($counter<=$linkpages ) { $cpage = $counter; $mintemp = ($perpage * $counter) - $linksresults; if ($counter == $currentpage) { echo "$counter "; } else { echo "$counter "; } $counter++; } $next=$min+$linksresults; if ($x>=$perpage) { echo "  [ " ." "._NEXT." >> ]"; } } echo "

" .""._TRY2SEARCH." \"$the_query\" "._INOTHERSENGINES."
" ."Alta Vista - " ."HotBot - " ."Infoseek - " ."Deja News - " ."Lycos - " ."Yahoo" ."
" ."LinuxStart - " ."1stLinuxSearch - " ."Google - " ."LinuxLinks - " ."Freshmeat - " ."JustLinux" ."
"; } else { echo "
"._NOMATCHES."


"; } CloseTable(); include("footer.php"); } function viewlinkeditorial($lid, $ttitle) { global $prefix, $db, $admin, $module_name; include("header.php"); include("modules/$module_name/l_config.php"); menu(1); $lid = intval(trim($lid)); $result = $db->sql_query("SELECT adminid, editorialtimestamp, editorialtext, editorialtitle FROM ".$prefix."_links_editorials WHERE linkid = '$lid'"); $recordexist = $db->sql_numrows($result); $transfertitle = ereg_replace ("_", " ", $ttitle); $displaytitle = $transfertitle; echo "
"; OpenTable(); echo "
"._LINKPROFILE.": $displaytitle
"; linkinfomenu($lid, $ttitle); if ($recordexist != 0) { while($row = $db->sql_fetchrow($result)) { $adminid = intval($row['adminid']); $editorialtimestamp = $row['editorialtimestamp']; $editorialtext = stripslashes($row['editorialtext']); $editorialtitle = stripslashes(check_html($row['editorialtitle'], "nohtml")); ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $editorialtimestamp, $editorialtime); $editorialtime = strftime("%F",mktime($editorialtime[4],$editorialtime[5],$editorialtime[6],$editorialtime[2],$editorialtime[3],$editorialtime[1])); $date_array = explode("-", $editorialtime); $timestamp = mktime(0, 0, 0, $date_array["1"], $date_array["2"], $date_array["0"]); $formatted_date = date("F j, Y", $timestamp); echo "

"; OpenTable2(); echo "
'$editorialtitle'
" ."
"._EDITORIALBY." $adminid - $formatted_date


" ."$editorialtext"; CloseTable2(); } } else { echo "

"._NOEDITORIAL."
"; } echo "

"; linkfooter($lid,$ttitle); echo "
"; CloseTable(); include("footer.php"); } function detecteditorial($lid, $ttitle) { global $prefix, $db, $module_name; $lid = intval($lid); $resulted2 = $db->sql_query("SELECT adminid from ".$prefix."_links_editorials where linkid='$lid'"); $recordexist = $db->sql_numrows($resulted2); if ($recordexist != 0) { echo " | "._EDITORIAL.""; } } function viewlinkcomments($lid, $ttitle) { global $prefix, $db, $admin, $bgcolor2, $module_name, $admin_file; include("header.php"); include("modules/$module_name/l_config.php"); menu(1); $lid = intval(trim($lid)); echo "
"; $result = $db->sql_query("SELECT ratinguser, rating, ratingcomments, ratingtimestamp FROM ".$prefix."_links_votedata WHERE ratinglid = '$lid' AND ratingcomments != '' ORDER BY ratingtimestamp DESC"); $totalcomments = $db->sql_numrows($result); $transfertitle = ereg_replace ("_", " ", $ttitle); $displaytitle = $transfertitle; OpenTable(); echo "
"._LINKPROFILE.": $displaytitle

"; linkinfomenu($lid, $ttitle); echo "


"._TOTALOF." $totalcomments "._COMMENTS."

" .""; $x=0; while($row = $db->sql_fetchrow($result)) { $ratinguser = $row['ratinguser']; $rating = intval($row['rating']); $ratingcomments = $row['ratingcomments']; $ratingtimestamp = $row['ratingtimestamp']; ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $ratingtimestamp, $ratingtime); $ratingtime = strftime("%F",mktime($ratingtime[4],$ratingtime[5],$ratingtime[6],$ratingtime[2],$ratingtime[3],$ratingtime[1])); $date_array = explode("-", $ratingtime); $timestamp = mktime(0, 0, 0, $date_array["1"], $date_array["2"], $date_array["0"]); $formatted_date = date("F j, Y", $timestamp); /* Individual user information */ $result2 = $db->sql_query("SELECT rating FROM ".$prefix."_links_votedata WHERE ratinguser = '$ratinguser'"); $usertotalcomments = $db->sql_numrows($result2); $useravgrating = 0; while($row2 = $db->sql_fetchrow($result2)) $rating2 = intval($row2['rating']); $useravgrating = $useravgrating + $rating2; $useravgrating = $useravgrating / $usertotalcomments; $useravgrating = number_format($useravgrating, 1); echo "" ."" ."" ."" ."" ."" ."" ."" ."" .""; $x++; } echo "
" ." "._USER.": $ratinguser" ."" .""._RATING.": $rating" ."" ."$formatted_date" ."
" .""._USERAVGRATING.": $useravgrating" ."" .""._NUMRATINGS.": $usertotalcomments" ."
" .""; if (is_admin($admin)) { echo "\""._EDITTHISLINK."\""; } echo " $ratingcomments" ."




"; linkfooter($lid,$ttitle); echo "
"; CloseTable(); include("footer.php"); } function viewlinkdetails($lid, $ttitle) { global $prefix, $db, $admin, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $module_name; include("header.php"); include("modules/$module_name/l_config.php"); menu(1); $lid = intval($lid); $voteresult = $db->sql_query("SELECT rating, ratinguser, ratingcomments FROM ".$prefix."_links_votedata WHERE ratinglid = '$lid'"); $totalvotesDB = $db->sql_numrows($voteresult); $anonvotes = 0; $anonvoteval = 0; $outsidevotes = 0; $outsidevoteeval = 0; $regvoteval = 0; $topanon = 0; $bottomanon = 11; $topreg = 0; $bottomreg = 11; $topoutside = 0; $bottomoutside = 11; $avv = array(0,0,0,0,0,0,0,0,0,0,0); $rvv = array(0,0,0,0,0,0,0,0,0,0,0); $ovv = array(0,0,0,0,0,0,0,0,0,0,0); $truecomments = $totalvotesDB; while($row = $db->sql_fetchrow($voteresult)) { $ratingDB = intval($row['rating']); $ratinguserDB = $row['ratinguser']; $ratingcommentsDB = $row['ratingcomments']; if ($ratingcommentsDB=="") $truecomments--; if ($ratinguserDB==$anonymous) { $anonvotes++; $anonvoteval += $ratingDB; } if ($useoutsidevoting == 1) { if ($ratinguserDB=='outside') { $outsidevotes++; $outsidevoteval += $ratingDB; } } else { $outsidevotes = 0; } if ($ratinguserDB!=$anonymous && $ratinguserDB!="outside") { $regvoteval += $ratingDB; } if ($ratinguserDB!=$anonymous && $ratinguserDB!="outside") { if ($ratingDB > $topreg) $topreg = $ratingDB; if ($ratingDB < $bottomreg) $bottomreg = $ratingDB; for ($rcounter=1; $rcounter<11; $rcounter++) if ($ratingDB==$rcounter) $rvv[$rcounter]++; } if ($ratinguserDB==$anonymous) { if ($ratingDB > $topanon) $topanon = $ratingDB; if ($ratingDB < $bottomanon) $bottomanon = $ratingDB; for ($rcounter=1; $rcounter<11; $rcounter++) if ($ratingDB==$rcounter) $avv[$rcounter]++; } if ($ratinguserDB=="outside") { if ($ratingDB > $topoutside) $topoutside = $ratingDB; if ($ratingDB < $bottomoutside) $bottomoutside = $ratingDB; for ($rcounter=1; $rcounter<11; $rcounter++) if ($ratingDB==$rcounter) $ovv[$rcounter]++; } } $regvotes = $totalvotesDB - $anonvotes - $outsidevotes; if ($totalvotesDB == 0) { $finalrating = 0; } else if ($anonvotes == 0 && $regvotes == 0) { /* Figure Outside Only Vote */ $finalrating = $outsidevoteval / $outsidevotes; $finalrating = number_format($finalrating, $detailvotedecimal); $avgOU = $outsidevoteval / $totalvotesDB; $avgOU = number_format($avgOU, $detailvotedecimal); } else if ($outsidevotes == 0 && $regvotes == 0) { /* Figure Anon Only Vote */ $finalrating = $anonvoteval / $anonvotes; $finalrating = number_format($finalrating, $detailvotedecimal); $avgAU = $anonvoteval / $totalvotesDB; $avgAU = number_format($avgAU, $detailvotedecimal); } else if ($outsidevotes == 0 && $anonvotes == 0) { /* Figure Reg Only Vote */ $finalrating = $regvoteval / $regvotes; $finalrating = number_format($finalrating, $detailvotedecimal); $avgRU = $regvoteval / $totalvotesDB; $avgRU = number_format($avgRU, $detailvotedecimal); } else if ($regvotes == 0 && $useoutsidevoting == 1 && $outsidevotes != 0 && $anonvotes != 0 ) { /* Figure Reg and Anon Mix */ $avgAU = $anonvoteval / $anonvotes; $avgOU = $outsidevoteval / $outsidevotes; if ($anonweight > $outsideweight ) { /* Anon is 'standard weight' */ $newimpact = $anonweight / $outsideweight; $impactAU = $anonvotes; $impactOU = $outsidevotes / $newimpact; $finalrating = ((($avgOU * $impactOU) + ($avgAU * $impactAU)) / ($impactAU + $impactOU)); $finalrating = number_format($finalrating, $detailvotedecimal); } else { /* Outside is 'standard weight' */ $newimpact = $outsideweight / $anonweight; $impactOU = $outsidevotes; $impactAU = $anonvotes / $newimpact; $finalrating = ((($avgOU * $impactOU) + ($avgAU * $impactAU)) / ($impactAU + $impactOU)); $finalrating = number_format($finalrating, $detailvotedecimal); } } else { /* REG User vs. Anonymous vs. Outside User Weight Calutions */ $impact = $anonweight; $outsideimpact = $outsideweight; if ($regvotes == 0) { $avgRU = 0; } else { $avgRU = $regvoteval / $regvotes; } if ($anonvotes == 0) { $avgAU = 0; } else { $avgAU = $anonvoteval / $anonvotes; } if ($outsidevotes == 0 ) { $avgOU = 0; } else { $avgOU = $outsidevoteval / $outsidevotes; } $impactRU = $regvotes; $impactAU = $anonvotes / $impact; $impactOU = $outsidevotes / $outsideimpact; $finalrating = (($avgRU * $impactRU) + ($avgAU * $impactAU) + ($avgOU * $impactOU)) / ($impactRU + $impactAU + $impactOU); $finalrating = number_format($finalrating, $detailvotedecimal); } if ($avgOU == 0 || $avgOU == "") { $avgOU = ""; } else { $avgOU = number_format($avgOU, $detailvotedecimal); } if ($avgRU == 0 || $avgRU == "") { $avgRU = ""; } else { $avgRU = number_format($avgRU, $detailvotedecimal); } if ($avgAU == 0 || $avgAU == "") { $avgAU = ""; } else { $avgAU = number_format($avgAU, $detailvotedecimal); } if ($topanon == 0) $topanon = ""; if ($bottomanon == 11) $bottomanon = ""; if ($topreg == 0) $topreg = ""; if ($bottomreg == 11) $bottomreg = ""; if ($topoutside == 0) $topoutside = ""; if ($bottomoutside == 11) $bottomoutside = ""; $totalchartheight = 70; $chartunits = $totalchartheight / 10; $avvper = array(0,0,0,0,0,0,0,0,0,0,0); $rvvper = array(0,0,0,0,0,0,0,0,0,0,0); $ovvper = array(0,0,0,0,0,0,0,0,0,0,0); $avvpercent = array(0,0,0,0,0,0,0,0,0,0,0); $rvvpercent = array(0,0,0,0,0,0,0,0,0,0,0); $ovvpercent = array(0,0,0,0,0,0,0,0,0,0,0); $avvchartheight = array(0,0,0,0,0,0,0,0,0,0,0); $rvvchartheight = array(0,0,0,0,0,0,0,0,0,0,0); $ovvchartheight = array(0,0,0,0,0,0,0,0,0,0,0); $avvmultiplier = 0; $rvvmultiplier = 0; $ovvmultiplier = 0; for ($rcounter=1; $rcounter<11; $rcounter++) { if ($anonvotes != 0) $avvper[$rcounter] = $avv[$rcounter] / $anonvotes; if ($regvotes != 0) $rvvper[$rcounter] = $rvv[$rcounter] / $regvotes; if ($outsidevotes != 0) $ovvper[$rcounter] = $ovv[$rcounter] / $outsidevotes; $avvpercent[$rcounter] = number_format($avvper[$rcounter] * 100, 1); $rvvpercent[$rcounter] = number_format($rvvper[$rcounter] * 100, 1); $ovvpercent[$rcounter] = number_format($ovvper[$rcounter] * 100, 1); if ($avv[$rcounter] > $avvmultiplier) $avvmultiplier = $avv[$rcounter]; if ($rvv[$rcounter] > $rvvmultiplier) $rvvmultiplier = $rvv[$rcounter]; if ($ovv[$rcounter] > $ovvmultiplier) $ovvmultiplier = $ovv[$rcounter]; } if ($avvmultiplier != 0) $avvmultiplier = 10 / $avvmultiplier; if ($rvvmultiplier != 0) $rvvmultiplier = 10 / $rvvmultiplier; if ($ovvmultiplier != 0) $ovvmultiplier = 10 / $ovvmultiplier; for ($rcounter=1; $rcounter<11; $rcounter++) { $avvchartheight[$rcounter] = ($avv[$rcounter] * $avvmultiplier) * $chartunits; $rvvchartheight[$rcounter] = ($rvv[$rcounter] * $rvvmultiplier) * $chartunits; $ovvchartheight[$rcounter] = ($ovv[$rcounter] * $ovvmultiplier) * $chartunits; if ($avvchartheight[$rcounter]==0) $avvchartheight[$rcounter]=1; if ($rvvchartheight[$rcounter]==0) $rvvchartheight[$rcounter]=1; if ($ovvchartheight[$rcounter]==0) $ovvchartheight[$rcounter]=1; } $transfertitle = ereg_replace ("_", " ", $ttitle); $displaytitle = $transfertitle; echo "
"; OpenTable(); echo "
"._LINKPROFILE.": $displaytitle

"; linkinfomenu($lid, $ttitle); echo "

"._LINKRATINGDET."
" .""._TOTALVOTES." $totalvotesDB
" .""._OVERALLRATING.": $finalrating


" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" .""; if ($useoutsidevoting == 1) { echo "" ."" ."" ."
" .""._REGISTEREDUSERS."" ."
" .""._NUMBEROFRATINGS.": $regvotes" .""; if ($regvotes==0) { echo "
"._NOREGUSERSVOTES."
"; } else { echo "" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."
"._BREAKDOWNBYVAL."
\"$rvv[1]\"$rvv[2] $avvmultiplier) $avvmultiplier = $avv[$rcounter]; if ($rvv[$rcounter] > $rvvmultiplier) $rvvmultiplier = $rvv[$rcounter]; if ($ovv[$rcounter] > $ovvmultiplier) $ovvmultiplier = $ovv[$rcounter]; } if ($avvmultiplier != 0) $avvmultiplier = 10 / $avvmultiplier; if ($rvvmultiplier != 0) $rvvmultiplier = 10 / $rvvmultiplier; if ($ovvmultiplier != 0) $ovvmultiplier = 10 / $ovvmultiplier; for ($rcounter=1; $rcounter<11OTES.")\" src=\"images/blackpixel.gif\" width=\"15\" height=\"$rvvchartheight[6]\">\"$rvv[7]\"$rvv[8]\"$rvv[9]\"$rvv[10]
" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."
12345678910
" ."
"; } echo "
"._LINKRATING.": $avgRU
"._HIGHRATING.": $topreg
"._LOWRATING.": $bottomreg
"._NUMOFCOMMENTS.": $truecomments


"._WEIGHNOTE." $anonweight "._TO." 1.
"._UNREGISTEREDUSERS."
"._NUMBEROFRATINGS.": $anonvotes"; if ($anonvotes==0) { echo "
"._NOUNREGUSERSVOTES."
"; } else { echo "" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."
"._BREAKDOWNBYVAL."
\"$avv[1]\"$avv[2]\"$avv[3]\"$avv[4]\"$avv[5]\"$avv[6]\"$avv[7]\"$avv[8]\"$avv[9]\"$avv[10]
" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."
12345678910
" ."
"; } echo "
"._LINKRATING.": $avgAU
"._HIGHRATING.": $topanon
"._LOWRATING.": $bottomanon
 


"._WEIGHOUTNOTE." $outsideweight "._TO." 1.
"._OUTSIDEVOTERS."
"._NUMBEROFRATINGS.": $outsidevotes"; if ($outsidevotes==0) { echo "
"._NOOUTSIDEVOTES."
"; } else { echo "" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."coccozella ganeshasexy referee costumerotameter manufacturerfingering the vagina correctlyapple carmel martini recipesuruhanjaya pilihan raya malaysiasize 8 delicaguggenheim modern area rugsnovelty liquor flasksmanorahnightwish wanderlustenchanted fariessoapstone cookwarefripp island water way south carolina real estatenightforce nxscarter carburetor kitsexy deskmatespedal pumping revvingleapord geckodoppie penetrazionifrottage sexstun guns airsoft guns tasersskelatoriguanadonalyson hannigonderringer 4 barrelcorrelle dishesrephresh vaginal gelbarbed wire decalsfuel hemorageokapisencore heater tankless waterilana lesatricked out honda civicmamiko tayamahotdogs mckees rocks pafinishing a bat insulationspectacled porpoisehorseshoe flattopapple m7318ncis thememalette pedagogiquenike total magiamicrokinibeachncoalinklegitamate work from homelawn furniture webbingapplebys restaurantrenouvellement hypothequewinking smiley facemichihiro kurodanikon mc-35freebird mp3fisher 500clatin translaterreannamae.comtania katancarved tikismotorola model 120cfurrieexample of a pictograph chartcaryota gigasleuzemiadisturbed stricken mp3marina home for sale jekyll islandresnick twinscut stone retaining walls valencia paibc breast cancerian kinslerchevelle bass tabslexy santosgreek naturalist beachesimpacted caninesmichael bentinetrophy 2359overdeveloped titsspick span gallerywellmate tankechinaforcecns vasculitis foundationanthony toccooakley half wire xl sunglassesi say hella sweatshirtdynamark riding lawn mowerintracoastal homesite jekyll island ga401k rollover annuitysouth carolina secedes from the unionchromagen lensesjames bartley bureau of alien human affairsbw/wm interracial relationshipspsycho le cemu mp3teen cheval mirrorxuan locdirectv hr10 250 hd tivonepalese handicrafthouston chimney flashingairsoft guns tasers stun gunstarquinius priscusblank firing glockarctic lemmingjamey singletonlakefront property in alvordlakefront properties in alvordacrylic squeegeetewell vionebrookdale lenoxminiscusminiskirt mixed wrestlingunico the unicornbig melons.comblanco county appraisalmartin luther kingjrrunner zatopekstripperella xxxjollibee foods corporation mission and visionajijic jalisco mexicoxicon resistorlafayette cataract surgerylina sybiangovernor stufflebeamalleghany sparta nc land saleprc radiatorsbounty hunter discovery 3300 metal detectorpygmalion lesson planmoringa plantpoetic repercussioncrystal get lugia pokemongorey murder photosshimmy shimmy quarterturnbananas in pajamas songastroworld closinghydrodynastes gigasultralite brakesastro mapping relocation astrologymoosehide moccasinsdoa kasumi nudelisa apratifrank panabakermoonjumpscarborough migraine headachescarborough migrainekyra knightlyukranian catholic churchzafu zabutonnokia swotzain bhikha mp3mathew mcgrorynoma christmas lightsferno salesmakerkutless sheet musiczamia pumilapretear fanficssherlock holmes in the 22nd century fan fictionlita gets strippedwik sprayerbroken toilet flangedaydream believer mp3dihybrid cross punnett squaredigitech vocalist vrdiahrreapierre lorillard500 linebaughsabine ehrenfeld nudekosamui or info or yellow pages or thailandtullus hostiliushentaiquestzenith transoceanic 7000jeff balisnaples florida personal concierge servicesbaymount inngeorge thurogoodmcculloch eager beaverdeer jerkeymyceneanssharon moalemtiffany dillowsony pcga bp2nx laptop batteryart photos marcelino herranzmenard building supply cocellular passive repeaterinfantismbaldwin brass candlesticksthousand foot krutch mp3jenny finch nudethreadlike fungilogical falliciessimpsons large marge implantsancient aksumjla home beddingsteak and chesseinsane clown posse slim anusodette yustmaninnovis data solutionanaverde planned communityashlee simpson lip synctexasbeautiesmolly pitcher + biographybreaking substitution cipherspinich dipear wax removal peroxideoceanfront homesite st simons island gaboreal cordillerazuber et ciemohabbatein mp3rietschle vacuumvillandry castlefook mi costumeginny weasley nakedmegan caublemegaman x6 mp3dogshit.comkillingmesoftlyocns small business partnerchinese legalismkingscliff tafedroukiskirstie alley playboypetticoat disiplinedog flea and tick control zodiacsalomon 1080 gunklipsch rf35def leppard miss you in a heartbeatdrizunkthoroughbred racing syndicationmcculloch chipper shreddertiffin motorhome specscandida skin fungus picturenaoko moritabob seger mainstreetmy2way t900andy milinakisamericas army multihackdeep water homesite sea island georgiacandy code pokemon rare rubyadult yuna cosplaysneakboxsaban saulic mp3hodentritt285/70/17 tireshogtied and tapedcrazy train ozzy ozbournecaniglias venice innchore worksheets for teensshapeshift anthillbiography of florence griffith joynerphina oruchefrancesca kitten natividaddeduplication softwarenascar standupssherlock holmes otrfrank harberoslen twins nudeindependent distributor indianapolis herbalifeyuumibellevue facial plastic surgeryfree aim password stealerkemal malovcic mp3stephanie mcmahon revealedanimaniacs hentaiheadon headachewilliam orbit adagio for stringskeira knightley esquiretasco optima 2000anna nalick paper baganne arundel patioswilmer valderamamuscadine jelly recipetit maulinglakefront properties in terral tximpotencia ereccion calviciebehaviorism direct education in instructionsuperalexx fozyayoung rascals discographyinvention of the frisbeeseiko sna411anthons la mesanatural dog soft treatsmariana sea trenchimbel falmudbugshockeypual reverequeasy bake ovenautopsy layne staleyfree subsidy code v300honeycomb calcitekaraoke freemp-3aiden knife blood nightmarenilo train tableyomiko readmangreek god cronuslouise redknapp gallery220v tanning bedtsunami sasamia scrap of paper playwrightbrunswick deep water homesitesruger 10/22 folding stockchasenrainbowsdudy noble fieldlongford legendbobbi billard webcamgreek god cronusfurminator brushconstutionslipknot prostheticsjackie o nookiewilliams sanomawarrioressgay makeoutruger 10/22 folding stockalternative parasite zapperlawn sprinkler troubleshootingkomatsu d31kayak loaderkalvins szechuan restaurantjubjubzdravko colic mp3sybil danning gallerywormy maplekasey chambers not pretty enoughradius gp300first jamaican bobsled teamdtmf tone generatoractress peepleskamau daaoodadam sandler thanksgiving songparakeet life expectancyranchero villagestihl fs45cyanine diaz scorelandshanette clousespittle bughiko sushiholly willoughby nakeddnp fat lossrockwell hcf 56k data fax pci modemlow carb catsupparsloefox forage harvestercourteny coxrobin and starfire hentaiacreage for sale texas schertzsavastat hwwhen was the abacus inventedspunbond polypropylenebeverly hills tooth whitening bleachingduplex acorn lugnutdreamtheatrechavin civilizationpill indentificationmaltz museumbristol f2bprader willy syndromekings dominion discount ticketsde
"._BREAKDOWNBYVAL."
\"$ovv[1]\"$ovv[2]\"$ovv[3]\"$ovv[4]\"$ovv[5]\"$ovv[6]\"$ovv[7]