15 years on The Web
miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
The Other miniBB Support Forums / The Other /   


Author leeherron
#1 | Posted: 12 Jan 2003 08:35 
I see this line at the top of bb_func_vforum.php:

if (!defined('INCLUDED776')) die ('Fatal error.');

Anyone know why it's there?

Author Team
#2 | Posted: 13 Jan 2003 10:58 
If you are a good programmer, you can imagine yourself, why it is here... ;) If you are not, then simply leave it as it is.

In general, it's a security issue to protect standalone PHP scripts which are included in index.php, from the external execution. INCLUDED776 is defined in index.php, and it can't be passed through the standard GET or POST routine. So it means, if it's not defined, the script stops.

Author leeherron
#3 | Posted: 23 Jan 2003 09:34 | Edited by: leeherron 
Just never had seen it done that way before ..

Author Team
#4 | Posted: 23 Jan 2003 10:32 
Us too ;)
It's our board, it's original and it's not like others... So, here it is :)

The Other miniBB Support Forums / The Other / INCLUDED776 Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.

Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Get the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB