Did you know that you may be allowed to hide miniBB credits
and remove miniBB's copyright notice? Click here to read more.
Copyright Removal allowance for miniBB
miniBB ®
 
miniBB Community Forum
 | Forums | File Bank | Sign Up | Reply | Search | Statistics | Manual |
Master Class miniBB Community Forum / Master Class /
Short link for this topic:

what's the use of define('INCLUDED',1)

 
Author Anonymous
Guest
#1 | Posted: 27 Oct 2007 15:17
i just want to know how this line of code is being used by the forum and what is its importance
Author Paul
CEO
#2 | Posted: 29 Oct 2007 04:55
It is a very important line, and it should be included in any kind of module. It means the module it is contained in, can not be executed externally, but only through index.php where this variable is defined. For example if you type

http://www.minibb.com/forums/bb_func_vtopic.php

it will be not possible to execute it.
Author Anonymous
Guest
#3 | Posted: 29 Oct 2007 09:24
that's genius.... makes a lot of sense..

thanks.. miniBB rocks
 
Master Class miniBB Community Forum / Master Class / what's the use of define('INCLUDED',1) Top
Your Reply Click this icon to move up to the quoted message

» Username  » Password 
You are welcome to post anonymously by entering a nickname with no password (if that nickname has not been taken by another member) or by leaving both fields empty. If you have a forums membership 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 Community Forum Powered by Free Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts