View file wapirate/wml/lovehate.php

File size: 3.21Kb
<?php

include("head.php");



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

$wnick = getnick_uid($who);

  echo "<card id=\"main\" title=\"$wnick's Anonymous Mail\">";

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



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

if($action=="index")

{

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

    $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 "<br/><br/></p>";

  echo "<p>";

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

  echo "</p>";

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

  echo "<a href=\"lovehate.php?action=hate&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;who=$who\">Send!</a>";

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

  echo "</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 "<a href=\"index.php?action=main\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a>";

  echo "</p>";

 echo "</card>";

}

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

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 "Anonymous Message Sent to $wnick.<br/>";

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

        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 "<a href=\"index.php?action=main\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a>";

  echo "</p>";

 echo "</card>";

}

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

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 "Anonymous Message Sent to $wnick.<br/>";

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

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



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

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

    echo "<a href=\"index.php?action=main\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a>";

  echo "</p>";

 echo "</card>";

}

 ?>

</wml>