MyBB Community Forums

Full Version: including global.php problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i used :

define("IN_MYBB", 1);

include_once("forum/global.php");
if ($mybb->user['uid'] == 0)
{
    echo "Guest";
}
else
{
    echo "User";
} 
error

http://www.fifago.com/go/
A PHP Error was encountered

Severity: Notice

Message: Undefined index: send_mail_queue_start

Filename: inc/class_plugins.php

Line Number: 83
PHP 'Notice' errors aren't important and aren't usually displayed, have you modified something to display them??
Use this:

<?php
define('IN_MYBB', 1);
require "./global.php"; 
if ($mybb->user['uid'] == 0)
{
    echo "Guest";
}
else
{
    echo "User";
} 
?>
(2011-01-30, 02:49 PM)MattRogowski Wrote: [ -> ]PHP 'Notice' errors aren't important and aren't usually displayed, have you modified something to display them??


no :\ .. i am using codeigniter