vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Which file of vB3 that run in every script? (https://vborg.vbsupport.ru/showthread.php?t=63134)

Frzzy 03-29-2004 03:46 PM

Which file of vB3 that run in every script?
 
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


All times are GMT. The time now is 09:09 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01683 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete