<?php
/**********************************************\
| SMFSHOP (Shop MOD for Simple Machines Forum) |
| (c) 2005 DanSoft Australia |
| http://www.dansoftaustralia.com/ |
\**********************************************/
//File: Armageddon.php
// RESETS the bank and all user's money to ZERO
//VERSION: 1.0 (Build 1)
//DATE: Sep 26th, 2006
// $Id: Armageddon.php chadk $
class item_armageddon extends itemTemplate {
function getItemDetails() {
$this->authorName = "Chad";
$this->authorWeb = "http://www.aviary.info/";
$this->authorEmail = "generalchad@gmail.com";
$this->name = "ARMAGEDDON!";
$this->desc = "This will reduce EVERYONES credits on hand AND in the bank to ZERO!!! EVERYONE!!!";
$this->price = 100000;
$this->require_input = false;
$this->can_use_item = true;
}
function onUse() {
global $db_prefix, $ID_MEMBER, $item_info;
$result = db_query("UPDATE {$db_prefix}members
SET moneyBank = 0, money = 0", __FILE__, __LINE__);
return "Its the end of the world as they know it, and you feel fine.";
}
}
?>