View Full Version : Which file of vB3 that run in every script?
Frzzy
03-29-2004, 03:46 PM
Hello,
I'm coding a lil mod that have some code which have to be run before any script of vB3. Which file I have to insert the include line?
config.php? global.php? init.php?
Copy directly from my question @ vBulletin.com.
Thanks...
Xenon
03-29-2004, 04:11 PM
why not phpinclude_start template?
Frzzy
03-29-2004, 04:34 PM
No, this mod have to be run as soon as possible when vBulletin start. The code is ready, waiting to be insert somewhere :D
Well, I mean as soon as possible, it can be include anywhere, but it won't do its work.
I decided to put it at the start of init.php file, if you know any file that running sooner that it, please tell me, I'll update the mod.
I'm releasing it, take a look at the mods section.
Xenon
03-29-2004, 04:47 PM
well, just look at the call of init.php
init.php is called from global.php so global.php is of course running sooner than init.php.
But as the call for init.php is the first thing global.php does, init.php is working as well, without a difference :)
Frzzy
03-29-2004, 05:27 PM
Thanks, I released the hack here, take a look and see if you can make it better :)
https://vborg.vbsupport.ru/showthread.php?t=63137
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.