miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
Master Class miniBB Support Forums / Master Class /  
 

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
Lead Developer 
#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

https://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 Support Forums / Master Class /
 what's the use of define('INCLUDED',1)
 Share Topic's Link

This topic is closed. New replies are not allowed.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Get the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑