vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Security using VB on non-vb page - Desperate help needed (https://vborg.vbsupport.ru/showthread.php?t=46704)

Rushy 12-15-2002 10:46 PM

Security using VB on non-vb page - Desperate help needed
 
I have been hunting around for a way to secure non-vb pages using the VB user tables etc. This way only members can view certain pages. I have tried every hack that has been posted here that says it can do the job but I am yet to find one that works 100%.

I am in desperate need of this and would appreciate some help in getting this up and running. Also, the pages I am trying to protect are on another subdomain on the same server.

Please help :D

okrogius 12-16-2002 01:04 AM

You can either include the gloabl.php and give an access denied if $bbuserinfo['userid'] is at 0. You can also just connect ot teh vb db and do your own login.

Rushy 12-16-2002 01:56 AM

I sort of understand the idea behind what needs to be done but after muddling through with code I really didnt get anywhere, my php is really not that great.

I need a user to be able to login on the non-vb front page and the session/cookie to be stored then when they goto a page which is protected it recognises them or asks you to login. If it recognises them it simply opens the page.

If they need to login I want get prompte wit the login box then to be sent to the page they were trying to get into when it asked them to login , if that makes ense.

I know this is probably relatively simple for someonw who knows tha they are doing with VB but it's causing me all sort of problems and unfortuantely I need to get this up and running quick :(


All times are GMT. The time now is 08:19 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.01031 seconds
  • Memory Usage 1,707KB
  • 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
  • (3)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