Jump to content
MakeWebGames

[mccodes v2] Mail Prank Mod


-K1-
 Share

Recommended Posts

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

;)

Link to comment
Share on other sites

  • 1 year later...

<?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

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...