View file wapirate/xhtml/lovehate.php

File size: 2.89Kb
<?php



include("head.php");



$wnick = getnick_uid($who);

 addonline(getuid_sid($sid),"Online List","");

   echo "<div><br/>$wnick's Anonymous Mail!<br/></div>";

    echo "<p align=\"center\">";

////////////////////////////////////////MAIN PAGE

if($action=="index")

{

  $nopl = mysql_fetch_array(mysql_query("SELECT gold FROM ibwf_users WHERE id='".$uid."'"));

  echo "Anonymous Mail Costs: <b>10 Gold</b><br/>You currently have: <b>$nopl[0] Gold</b><br/><br/></p>";

  echo "<p align=\"left\">";

  echo "Send Anonymous Hate Mail to $wnick<br/>";

  echo "</p>";

  echo "<p align=\"left\">";

  echo "<a href=\"lovehate.php?action=hate&amp;sid=$sid&amp;who=$who\">Send!</a>";

  echo "<img src=\"/smilies/ndevil.gif\" alt=\"*\"/>";

  echo "</p>";

  echo "<br/><br/>";

  echo "<p align=\"left\">";

  echo "Send Anonymous Love Mail to $wnick<br/>";

  echo "</p>";

  echo "<p align=\"left\">";

  echo "<a href=\"lovehate.php?action=love&amp;sid=$sid&amp;who=$who\">Send!</a>";

  echo "<img src=\"/smilies/angel.gif\" alt=\"*\"/>";

  echo "</p>";    

  echo "<p align=\"center\">";

  echo "<a href=\"index.php?action=viewuser&amp;who=$who\">$wnick</a><br/>";

  echo getfoot($sid,$folder);

exit(); 

}

//////////////////////////////////////////////////////

else if($action=="hate")

{   

mysql_query("UPDATE ibwf_users SET gold=gold-10 WHERE id='".$uid."'");

		$message = "Somebody Anonymous Thinks You Have Smelly Feet! :stink :vomit[br/][small][i]p.s: this is an automated pm[/i][/small]";

	autopm2($message, $who);

	echo "Your really Mean! <br/>";

        echo "<img src=\"/smilies/ndevil.gif\" alt=\"*\"/>";

        echo "Anonymous Message Sent to $wnick.<br/>";

        echo "<br/></p>";



    echo "<p align=\"center\">";

 $nopl = mysql_fetch_array(mysql_query("SELECT gold FROM ibwf_users WHERE id='".$uid."'"));

  echo "10 Gold has been deducted.<br/>You Now have: <b>$nopl[0] Gold</b><br/><br/>";

  echo "<a href=\"index.php?action=viewuser&amp;who=$who\">$wnick</a><br/>";

echo getfoot($sid,$folder);

exit(); 

}

///////////////////////////////////////////////////

else if($action=="love")

{

mysql_query("UPDATE ibwf_users SET gold=gold-10 WHERE id='".$uid."'");

    		$message = "Somebody Anonymous Thinks You Are Gorgeous :hug :love[br/][small][i]p.s: this is an automated pm[/i][/small]";

	autopm3($message, $who);

	echo "Your really Nice! <br/>";

        echo "<img src=\"/smilies/angel.gif\" alt=\"*\"/>"; 

        echo "Anonymous Message Sent to $wnick.<br/>";

        echo "<br/></p>";

    echo "<p align=\"center\">";

 $nopl = mysql_fetch_array(mysql_query("SELECT gold FROM ibwf_users WHERE id='".$uid."'"));

  echo "10 Gold has been deducted.<br/>You Now have: <b>$nopl[0] Gold</b><br/><br/>";

  echo "<a href=\"index.php?action=viewuser&amp;who=$who\">$wnick</a><br/>";

echo getfoot($sid,$folder);

exit(); 

}



?>