Since the next version is going to be unencrypted i didnt think it would hurt to decrypt this file for these guys?
Code:
<?php
function insert_video_rating($_obfuscate_NHIjmrYÿ)
{
global $config;
$_obfuscate_0W8ÿ = $_obfuscate_NHIjmrYÿ['id'];
$_obfuscate_zOVUj6Eÿ = 5;
$_obfuscate_3y0Y = "SELECT `ratedby`, `rate`, `voter_id`, `be_rated` FROM `video` WHERE `VID`=" . $_obfuscate_0W8ÿ;
if (!($_obfuscate_xs33Yt_k = mysql_query($_obfuscate_3y0Y)))
{
mysql_die($_obfuscate_3y0Y);
}
$_obfuscate_ss5FfHDZaUmtQÿÿ = mysql_fetch_assoc($_obfuscate_xs33Yt_k);
if ($_obfuscate_ss5FfHDZaUmtQÿÿ['ratedby'] < 1)
{
$_obfuscate_gftfagwÿ = 0;
}
else
{
$_obfuscate_gftfagwÿ = $_obfuscate_ss5FfHDZaUmtQÿÿ['ratedby'];
}
$_obfuscate_pQ83s68r5AVQEfdANA8ÿ = $_obfuscate_ss5FfHDZaUmtQÿÿ['rate'];
$_obfuscate_Jb9amb0ÿ = $_obfuscate_gftfagwÿ == 1 ? "vote" : "votes";
if ($config['video_rating'] == "Once")
{
$_obfuscate_AR_jlPHcwpRR = $_obfuscate_ss5FfHDZaUmtQÿÿ['voter_id'];
$_obfuscate_r6MQU9AgCgWeBwÿÿ = explode("|", $_obfuscate_AR_jlPHcwpRR);
if (in_array($_SESSION['UID'], $_obfuscate_r6MQU9AgCgWeBwÿÿ))
{
$_obfuscate_U1oSA_iihCMÿ = 1;
}
else
{
$_obfuscate_U1oSA_iihCMÿ = 0;
}
}
else
{
$_obfuscate_U1oSA_iihCMÿ = 0;
}
$_obfuscate_NIqh6rW0waOhRvBcKC9ypwÿÿ = 20;
$_obfuscate_qX3yLFuOwXkKmqdC = number_format($_obfuscate_pQ83s68r5AVQEfdANA8ÿ / $_obfuscate_gftfagwÿ, 2) * $_obfuscate_NIqh6rW0waOhRvBcKC9ypwÿÿ;
$_obfuscate_dyEaZGmuWgÿÿ = @number_format($_obfuscate_pQ83s68r5AVQEfdANA8ÿ / $_obfuscate_gftfagwÿ, 1);
$_obfuscate_kUjCYsSL7gÿÿ = @number_format($_obfuscate_pQ83s68r5AVQEfdANA8ÿ / $_obfuscate_gftfagwÿ, 2);
$_obfuscate_mzwSmYÿ = "<div>";
$_obfuscate_mzwSmYÿ .= "<div>";
$_obfuscate_mzwSmYÿ .= " <ul id=\"unit_ul" . $_obfuscate_0W8ÿ . "\" class=\"unit-rating\" style=\"width:" . $_obfuscate_NIqh6rW0waOhRvBcKC9ypwÿÿ * $_obfuscate_zOVUj6Eÿ . "px;\">";
$_obfuscate_mzwSmYÿ .= "<li class=\"current-rating\" style=\"width:" . $_obfuscate_qX3yLFuOwXkKmqdC . "px;\">Currently " . $_obfuscate_kUjCYsSL7gÿÿ . "/" . $_obfuscate_zOVUj6Eÿ . "";
$_obfuscate_Ckv19OWb = 1;
for (; $_obfuscate_Ckv19OWb <= $_obfuscate_zOVUj6Eÿ; ++$_obfuscate_Ckv19OWb)
{
if (!($_obfuscate_U1oSA_iihCMÿ == 0) && !($_obfuscate_ss5FfHDZaUmtQÿÿ['be_rated'] == "yes"))
{
$_obfuscate_mzwSmYÿ .= "[*]<a href=\"javascript:video_rate(" . $_obfuscate_0W8ÿ . ",{$_obfuscate_Ckv19OWb});\" title=\"{$_obfuscate_Ckv19OWb} out of {$_obfuscate_zOVUj6Eÿ}\" class=\"r" . $_obfuscate_Ckv19OWb . "-unit rater\" rel=\"nofollow\">" . $_obfuscate_Ckv19OWb . "</a>";
}
}
$_obfuscate_Ckv19OWb = 0;
$_obfuscate_mzwSmYÿ .= "[/list]<p";
if ($_obfuscate_U1oSA_iihCMÿ == 1)
{
$_obfuscate_mzwSmYÿ .= " class=\"voted\"";
}
$_obfuscate_mzwSmYÿ .= ">Rating: " . $_obfuscate_dyEaZGmuWgÿÿ . "/" . $_obfuscate_zOVUj6Eÿ . " (" . $_obfuscate_gftfagwÿ . " " . $_obfuscate_Jb9amb0ÿ . " cast)";
$_obfuscate_mzwSmYÿ .= "</p></div></div>";
return $_obfuscate_mzwSmYÿ;
}
?>
NOTE IM NOT SURE IF IT WAS DECRYPTED CORRECTLY
Bookmarks