GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/www/
Upload File :
Current File : /home/serb/www/funny_love.php

<? session_start();

 include("lib/globals.php");

 include("lib/common.php");

 include("lib/functions.php");

 ?>


<?

$ip=$_SERVER['REMOTE_ADDR'];  
$date=date('Y-m-d');

if($_POST['id'])
{
$id=$_POST['id'];

$ip_sql="select ip_add from funny_ip where img_id_fk='$id' and ip_add='$ip' and votedate='$date'";
$row_ip=execute_query($ip_sql);
$count=mysql_num_rows($row_ip);
$rowdate=mysql_fetch_array($row_ip);

if($count==0)
{
$usefull_rv="SELECT * From parlor_review WHERE id='$id'";
$res_rv=execute_query($usefull_rv);
$row_rv=mysql_fetch_array($res_rv);
$funnyreview=$row_rv['funny_review']+1;
$sql = "update parlor_review set funny_review=$funnyreview where id='$id'";
mysql_query( $sql);
$sql_in = "insert into funny_ip (ip_add,img_id_fk,votedate) values ('$ip','$id','$date')";
execute_query( $sql_in);

/*$result=mysql_query("select love from images where img_id='$id'");
$row=mysql_fetch_array($result);
$love=$row['love'];*/
?>
<span class="on_img" style="color:#F5A713;" align="left">Funny 1</span>


<?
}
else
{ ?>
<span class="on_img" align="left">Funny</span>
<? }?>



<? }

?>

./BlackJoker Mini Shell 1.0