SMF Shop

SMFShop => Items => Topic started by: pspmasterPRO on August 27, 2007, 08:15:19 am

Title: Postkiller PRO
Post by: pspmasterPRO on August 27, 2007, 08:15:19 am
very similer to Armageddon but it resets all post counts to 0 I tested it and it work just open note pad copy the code bellow and past it and save it as postkill.php. (I have to thank the Armageddon item without it I whould have never figured my item out)

Code: [Select]
<?php
/**********************************************************************************
* SMFShop item - Takes additional fields when adding to admin panel               *
***********************************************************************************
* SMFShop: Shop MOD Item for Simple Machines Forum                                *
* =============================================================================== *
* Software Version:           SMFShop 3.0 (Build 12)                              *
* $Date:: 2007-01-18 19:26:55 +1100 (Thu, 18 Jan 2007)                          $ *
* $Id:: postkiller.php        2007-08-25 10:06:55  pspmasterPRO                 $ *
* SMF Shop Software by:       DanSoft Australia (http://www.dansoftaustralia.net/)*
* SMF Shop Copyright by:      DanSoft Australia (http://www.dansoftaustralia.net/)*
* Support, News, Updates at:  http://www.dansoftaustralia.net/                    *
*                                                                                 *
* Forum software by:          Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006-2007 by:     Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version of the license can always be found at                        *
* http://www.simplemachines.org.                                                  *
*                                enjoy- pspmasterPRO (site webmaster)             *
* This PHP script idea was taken from many scripts so I don't take full credit    *
**********************************************************************************/

if (!defined('SMF'))
die('Hacking attempt...');

class 
item_postkiller extends itemTemplate {
    function 
getItemDetails() {
    
$this->authorName "pspmasterPRO";
$this->authorWeb "http://pspmasterpro.pphnet.us";
$this->authorEmail "E-mail hidden lolz";

        
$this->name "PostKiller!";
        
$this->desc "This item will reset everyones posts counts to 0 hahahah";
        
$this->price 9999999999;
        
        
$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 posts = 0"
__FILE____LINE__);

                return 
"The power of pspmasterPRO just stole everyones post counts hahahahah.";
        }
}
?>

Title: Re: Postkiller PRO
Post by: feeble on August 27, 2007, 10:34:02 pm
Nice work on the item.

Seems a bit harsh thou
Title: Re: Postkiller PRO
Post by: feildmaster on August 28, 2007, 07:19:41 am
yeah... not gona use this any time soon...
Title: Re: Postkiller PRO
Post by: pspmasterPRO on August 29, 2007, 09:29:52 am
 :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: &gt;:( &gt;:( &gt;:( &gt;:( &gt;:( &gt;:( &gt;:( &gt;:( :( :( :( :( :( :( :( :( :( :( :( :'( :'( :'( :'( :'( :'(
Title: Re: Postkiller PRO
Post by: Dark_Zero on August 30, 2007, 01:28:47 pm
unless if you were really mad at your members :o lol and made yourself immune to it haha O0

if you made it proportion - usable it might be a bit better (like make it a 3/5 proportion to everyone's post counts and credits or summet)
Title: Re: Postkiller PRO
Post by: pspmasterPRO on August 30, 2007, 09:25:57 pm
fine DZ but let see you make an item and this was my first try so  :'(
Title: Re: Postkiller PRO
Post by: Daniel15 on August 31, 2007, 08:05:42 pm
Haha... Quite a funny item :P
Title: Re: Postkiller PRO
Post by: pspmasterPRO on August 31, 2007, 11:50:47 pm
GRRRRRRRRRRRR DZ get back here I never hacked my site and why would I so stop saying I hacked my site I sware on my life there was a hacker who hacked my site  :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff: :tickedoff:

I HATE THIS LIFE
Title: Re: Postkiller PRO
Post by: Dark_Zero on September 01, 2007, 04:44:05 pm
 ???

er.... what? :uglystupid2: i'm kinda lost here
anyways ya u should make the proportion thing i was talkin about ;) :D
Title: Re: Postkiller PRO
Post by: pspmasterPRO on September 01, 2007, 11:56:12 pm
really now  :knuppel2: :knuppel2: :knuppel2: :knuppel2: :knuppel2: :knuppel2: