Page that gives users money

Forum
Last Post
Threads / Messages

Derpstra

Seamstress!
Member
Joined
Aug 13, 2012
Messages
26
Points
0
Location
Seattle, WA/Charlotte, NC
Mysidian Dollar
3,434
I just posted this in reply to somebody who needed this script and decided to post it here so others can find it. It's the easiest script I could come up with for this task.

PHP:
<?php

include("functions/functions.php");
include("functions/functions_users.php");
include("functions/functions_adopts.php");
include("functions/functions_friends.php");
include("functions/functions_items.php");
include("inc/lang.php");
include("inc/bbcode.php");

//***************//
//  START SCRIPT //
//***************//

$cashname = grabanysetting("cost");
$reward= 1;

if($isloggedin == "yes"){
changecash($reward, $GLOBALS['username'], $GLOBALS['money']);
$article_title = "Hello, {$username}!";
$article_content = "You have gained {$reward} {$cashname}.";
}
else{
$article_title = "You are not logged in!";
$article_content = "You must be logged in to view this page!";
}

//***************//
//  OUTPUT PAGE  //
//***************//

echo showpage($article_title, $article_content, $date);
?>

Just change the "$reward variable from 1 to whatever you want. :]
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,278
Messages
33,125
Members
1,602
Latest member
BerrieMilk
BETA

Latest Threads

Top