vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Extending vBulletin's session management (https://vborg.vbsupport.ru/showthread.php?t=40570)

Antun 07-02-2002 08:56 PM

Extending vBulletin's session management
 
Anyone out there know of a way to extend vB's session management? I want to use the vB database for other parts of the site.

Is it just a matter of copying all the various include files (globals.php, functions.php, db_mysql.php etc.) to a new location, then changing the urls in those files, and finally including globals.php on the pages I want to protect?

Thanks,

Antun

Admin 07-03-2002 06:32 AM

You can just include global.php in your PHP script.

Antun 07-03-2002 05:57 PM

Thanks Firefly

I had to create a copy of the global file (& a bunch of others) because of relative url issues.

Take care,

Antun

Antun 07-03-2002 07:20 PM

One more thing:

On the vBulletin pages, how do I make it so that the user has to log in for everything? e.g. to browse the forums?

On my variation one, I redirected the user to the necessary page, but I had to add that into my global.php script.

I don't want to mess around too much with the original files.

Take care,

Antun

Admin 07-04-2002 06:48 AM

Quote:

Originally posted by Antun
I had to create a copy of the global file (& a bunch of others) because of relative url issues.
You don't need to, just do this:
Code:

chdir('/home/users/path/to/your/site');
require('./global.php');

To require registration:
Code:

if ($bbuserinfo['userid'] == 0) {
    show_nopermission();
}


yetdog11 08-04-2002 02:46 PM

We have a slightly different method for doing things, including our own custom antsglobals file in each page. However, if I try requiring global.php, i get a blank page.

Sooooo my question is, what do I have to add to my antsglobals file to add the functionality that global.php brings in order to include these external pages in who's online?

Matthew Yette
matt@antsmarching.org


All times are GMT. The time now is 07:10 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
  • Page Generation 0.01003 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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