SuprBay: The PirateBay Forum

Full Version: The Code of SuprBay
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Excuse my ignorance, SectorVector.

I will consult the source code before I make further inquiries.

Thank you.
MyBB is a very common platform.

I want to know what you did, so I can, you know, hack stuff or something. Because I can do that. MyBB is easy. So please tell me every single thing you did to alter it for your site, please.

I'm not really exaggerating, but am being hyperbolic. And the first to tell me the difference between exaggerated and hyperbolic, earns one easy way to subvert MyBB.
(Jan 15, 2018, 08:33 am)joew771 Wrote: [ -> ]I want to know what you did, so I can, you know, hack stuff or something.


OK, here is a little snippet for you to nibble on.  I wrote this little add-on to troll a certain member who loved to add hearts to every post:

PHP Code:
$turds = array('suprbay/poo.gif''suprbay/steaming-turd-smiley-emoticon.gif');

$post['message'] = preg_replace_callback('|' preg_quote('smilies/heart.gif') . '|',
 
           function() use ($turds){ return $turds[array_rand($turds)]; }, $post['message']); 
(Jan 15, 2018, 11:39 am)Moe Wrote: [ -> ]OK, here is a little snippet for you to nibble on.  I wrote this little add-on to troll a certain member who loved to add hearts to every post:

PHP Code:
$turds = array('suprbay/poo.gif''suprbay/steaming-turd-smiley-emoticon.gif');

$post['message'] = preg_replace_callback('|' preg_quote('smilies/heart.gif') . '|',
 
           function() use ($turds){ return $turds[array_rand($turds)]; }, $post['message']); 

I don't think 'turd' is an actual command.

But I also know that you or anyone else here has nothing to do with the programming of the sprbay site. But I'll find out how to hack it anyway! I swear. Just to make it show that Moe is a very very short person. Like 4 feet tall maybe.

Wait! 'turd' isn't a command. it's a variable. I think. Preg is a command. Is that a real command? LOL.
MyBB was never created by TPB.
If you want to know what to start with, the lastest MyBB is created with languages: PHP 7 and MySQL 5.7.

If you can figure out and create a nice plugin for MyBB please let TPB know. It would be awesome to have unique plugins to set us apart.
Pages: 1 2