2010-12-24, 04:00 AM
I have a javascript authoring front end I have designed for some added myBB mod I am developing, and it accesses a php script I wrote to return some custom values from the database.
at the top of my php file, I have the following code, but I am not sure if they are needed or what they are for. (not sure why I put them there, except I was copying what is at the top the other mybb php files such as showthread.php.
define("IN_MYBB", 1);
define('THIS_SCRIPT', 'structForums.php');
what do these two lines do, and do I need them in the php file that my javascript is addressing through AJAX?
Thanks for any help!
Gordon
at the top of my php file, I have the following code, but I am not sure if they are needed or what they are for. (not sure why I put them there, except I was copying what is at the top the other mybb php files such as showthread.php.
define("IN_MYBB", 1);
define('THIS_SCRIPT', 'structForums.php');
what do these two lines do, and do I need them in the php file that my javascript is addressing through AJAX?
Thanks for any help!
Gordon