MyBB Community Forums

Full Version: MyBB PHP test
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
* Tom K. wonders what is wrong...
* Tom K. checked it by hand twice, then with a syntax checker...
define("IN_MYBB", 1);

Toungue
<?php
//Explains to Tom what is wrong with his in MyBB with PHP

include_once "./trout.php"
require_once "./global.php"
define("IN_MYBB", 1)

//variables

$still_wrong = function whywrong()
$wrongo = "It's so obvious"
$look_at_mine = function in_beginning($wrongo, $still_wrong)

//List of functions

function whywrong ()
{
    if (PHP Incorrect)
    {
         echo "Look around, Tom"
    }
}

function in_beginning($wrongo, $still_wrong)
{
    echo $wrongo
    echo "look at function name! <br />"
    echo ":P"
}
?>

I think you'll figure it out. If I understand, it's supposed to look like a plugin. Look, and you'll see your (really obvious) mistake.
(2012-01-21, 09:47 PM)Nathan Malcolm Wrote: [ -> ]
define("IN_MYBB", 1);

Toungue

GAH! The most important bit. /facepalm
HAI
CAN HAS STDIO?
I HAS A VAR
IM IN YR LOOP
   UP VAR!!1
   VISIBLE "LOLCODE > PHP"
   IZ VAR BIGGER THAN 10? KTHX
IM OUTTA YR LOOP
KTHXBYE
Pages: 1 2