![]() |
Is there if not conditional for entire admincp folder? or for all files in admincp
i know if not conditional for a script :
Code:
if (THIS_SCRIPT != 'scriptname') { but what is if not conditional for all files in admincp folder? i want to wrap some code so not used by files in admincp |
I believe there is a constant VB_AREA that may be defined for all admin CP files...I don't have access to the code right now, so can't give you any more information at the moment.
|
in admincp/global.php there is this line define('VB_AREA', 'AdminCP');
so the conditional writed like this? : Code:
if (VB_AREA != 'AdminCP') { |
Yes, AFAIK, that should work. :)
|
Quote:
hmm wonder where is still wrong is it the conditional included all files in admincp? |
All times are GMT. The time now is 06:11 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|