Location: PHPKode > scripts > Animus Comments > ratecom.php
<?php
/*******************************************************************************
*  Title: Animus Comments
*  Version: 1.0 
*  Author: Jon Cohen
*  Website: http://www.animusprogramming.com
********************************************************************************
*  COPYRIGHT NOTICE
*  Copyright 2010 Jon Cohen. All Rights Reserved.
*
*  This script may be used and modified free of charge by anyone
*  provided all copyright notices and links back to animusprogramming.com 
*  remain intact.   By using this code you agree to indemnify 
*  Jon Cohen from any liability that might arise from it's use.
*
*  Selling the code for this program, in part or full, without prior
*  written consent is expressly forbidden.
*
*  Removing any of the links back to my site is sleazy, and you should feel
*  bad about doing that (I did write this program and give it to you for free, 
*  and all.)  Besides, you can always buy the professional version at 
*  http://www.animusprogramming.com/pro/ which has more functionality
*  and does not link back to my site.  Leaving the links in or paying for the 
*  script helps pay my bills, ensuring that I won't starve to death -- which 
*  means more free scripts down the road.
*******************************************************************************/

$RCE8AD33DBACD9CBCF29CF1247A8D0CBD = "anicdata";    if ($_GET[vote] == "true") {   print "<table style=\"width: 70px; height: 18px;\"><tr><td style=\"width: 18px;\"><a href=\"$_SERVER[SCRIPT_NAME]?vote=down&t=$_GET[t]&i=$_GET[i]\"><img border=\"0\" src=\"votedown.png\" height=\"13px\" width=\"13px\" alt=\"down arrow\" title=\"Vote this post down\" /></a></td>\n";   print "<td style=\"width: 44px; text-align: center; font-size: 10px;\">Vote</td>";   print "<td style=\"width: 18px;\"><a href=\"$_SERVER[SCRIPT_NAME]?vote=up&t=$_GET[t]&i=$_GET[i]\"><img border=\"0\" src=\"voteup.png\" height=\"13px\" width=\"13px\" alt=\"up arrow\" title=\"Vote this post up\" /></a></td></tr></table>\n";   die;  }  if ($_GET[vote] == "down" || $_GET[vote] == "up") {   $R6D3780314F821C3F3D1D311B4E4084DF = true;   $R49BCF9A347E457B138597821FF273620 = file("$RCE8AD33DBACD9CBCF29CF1247A8D0CBD/cmnt$_GET[t].txt");   for($RA16D2280393CE6A2A5428A4A8D09E354 = 0; $RA16D2280393CE6A2A5428A4A8D09E354 < count($R49BCF9A347E457B138597821FF273620); $RA16D2280393CE6A2A5428A4A8D09E354++) {    list($R9B395079675C6A66FF23EA9C6C4A668E,$REBF2CBC420EBA1C0735E00ADC8973512,$R92762F001EF2017D6F16563BEE7B8EE1,$RF95AD150BF1A4D027D23F2E291B2FC02,$RFF1BAA3769658F5A92E0B3662B91EBB9,$R5B08D4F823242B6E50E99FC8C099CDB9,$R841E04C742482B9AFF609C7DF1591A25,$R2CD5802D9A93F818AFFFA289D0BA6F48,$RE158828DE973B8B53B92B0E477D968BD,$R540F3CC8BAF3274050A757F47C481272) = explode("|DataBreaksHERE|", rtrim($R49BCF9A347E457B138597821FF273620[$RA16D2280393CE6A2A5428A4A8D09E354]));      if ($R540F3CC8BAF3274050A757F47C481272 == $_GET[i]) {     if ($_GET[vote] == "down") { $R2CD5802D9A93F818AFFFA289D0BA6F48++; }     if ($_GET[vote] == "up") { $R841E04C742482B9AFF609C7DF1591A25++; }     $RC4A4247F2D32B0801CE0AB245E52C13F = explode("|",$RE158828DE973B8B53B92B0E477D968BD);     if ($RC4A4247F2D32B0801CE0AB245E52C13F[0] == $_SERVER[REMOTE_ADDR] || $RC4A4247F2D32B0801CE0AB245E52C13F[1] == $_SERVER[REMOTE_ADDR] || $RC4A4247F2D32B0801CE0AB245E52C13F[2] == $_SERVER[REMOTE_ADDR]) { $R6D3780314F821C3F3D1D311B4E4084DF = false; }     $RE158828DE973B8B53B92B0E477D968BD = "$_SERVER[REMOTE_ADDR]|$RC4A4247F2D32B0801CE0AB245E52C13F[0]|$RC4A4247F2D32B0801CE0AB245E52C13F[1]";     $R49BCF9A347E457B138597821FF273620[$RA16D2280393CE6A2A5428A4A8D09E354] = "$R9B395079675C6A66FF23EA9C6C4A668E|DataBreaksHERE|$REBF2CBC420EBA1C0735E00ADC8973512|DataBreaksHERE|$R92762F001EF2017D6F16563BEE7B8EE1|DataBreaksHERE|$RF95AD150BF1A4D027D23F2E291B2FC02|DataBreaksHERE|$RFF1BAA3769658F5A92E0B3662B91EBB9|DataBreaksHERE|$R5B08D4F823242B6E50E99FC8C099CDB9|DataBreaksHERE|$R841E04C742482B9AFF609C7DF1591A25|DataBreaksHERE|$R2CD5802D9A93F818AFFFA289D0BA6F48|DataBreaksHERE|$RE158828DE973B8B53B92B0E477D968BD|DataBreaksHERE|$R540F3CC8BAF3274050A757F47C481272\r\n";    }   }   if ($R6D3780314F821C3F3D1D311B4E4084DF) {     $RF500F4A848E2EB2F8AAC3A6734D7EC38 = fopen("$RCE8AD33DBACD9CBCF29CF1247A8D0CBD/cmnt$_GET[t].txt", 'w') or FD14E809342EEEA1E3A916CF9A9CCB6E1("Couldn't open file","I was unable to open the data file for writing.");    foreach($R49BCF9A347E457B138597821FF273620 as $R0F99A625B03559D7EBD3CB17D9D9AB9F) { fwrite($RF500F4A848E2EB2F8AAC3A6734D7EC38,$R0F99A625B03559D7EBD3CB17D9D9AB9F); }    fclose($RF500F4A848E2EB2F8AAC3A6734D7EC38);   }  }    print "<div style=\"width: 70px; text-align: center; font-size: 10px;\">Thanks!</div>\n";    die;  ?>
Return current item: Animus Comments