Jump to content
MakeWebGames

Recommended Posts

Posted

Re: [mccodes v2] Mail Prank Mod

Umm...

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

should be

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

should also add a bit of code to check if they even have 1000

;)

Posted

Re: [mccodes v2] Mail Prank Mod

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/--------/public_html/mailprank.php:1) in /home/-------/public_html/globals.php on line 3
Posted

Re: [mccodes v2] Mail Prank Mod

Actually i make a slight miscalculation with my code > instead of < my bad so...

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Im sure that will work perfectly

  • 1 year later...
Posted

<?php

include "globals.php";

if($_POST['user'])

{

global $ir,$c,$h,$userid;

$_POST['user'] = abs((int) $_POST['user']);

$_POST['newmail'] = abs((int) $_POST['newmail']);

if($ir['money'] < 1000)

{

echo 'Invalid Command.

You do not have enough money to use this.

> Go Home';

$h->endpage();

exit;

}

else

{

$query = sprintf('UPDATE `users` SET new_mail = new_mail + %u WHERE userid = %u', $_POST['newmail'], $_POST['user']);

$db->query($query);

$query = sprintf('UPDATE `users` SET money = money - 1000 WHERE userid = %u', $ir['userid']);

$db->query($query);

echo 'Prank Done';

}

}

else

{

echo '

<h3>Mailpranking User<h3>

 

This user will have a set number of new mail, this will cost you $1000

 

<form action="'.$_SERVER['PHP_SELF'].'" method="post">

User: '.user_dropdown($c,"user",$_GET['userid']).'

 

number: <input type="text" name="newmail">

 

<input type="submit" value="Prank \'em">

</form>

';

}

$h->endpage();

?>

 

actually it had it twice but there its fixed for yas :)

enjoy it

Posted
Its not my cup of tea. But I will say, it needs some kind of limit added. As some people will abuse this, and send 100 emails. lol

Yeah this defiantly aint being used where I'm around. I don't think anyone would appreciate this

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...