minibb®
Fight the automated spam - protect your miniBB-forums,
getting the Captcha addon! Click here to read more.
Captcha Addon for miniBB
Community Forum
 | Forums | File Bank | Sign Up | Reply | Search | Statistics | Manual |
Master Class miniBB Community Forum / Master Class /

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

 
Anonymous
Guest
#1 | Posted: 27 Oct 2007 15:17
Reply 
i just want to know how this line of code is being used by the forum and what is its importance
Paul
CEO
#2 | Posted: 29 Oct 2007 04:55
Reply 
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.
Anonymous
Guest
#3 | Posted: 29 Oct 2007 09:24
Reply 
that's genius.... makes a lot of sense..

thanks.. miniBB rocks
 
Your reply
Bold Style  Italic Style  Image Link  URL Link 


» 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, be sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.

 
Online now: Guests - 30
Members - 0
Most users ever online: 191 [24 Dec 2007 14:33]
Guests - 191 / Members - 0

Forums are powered by miniBB®