vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   vB Security Layer (https://vborg.vbsupport.ru/showthread.php?t=211865)

leeherron 04-21-2009 09:08 PM

vB Security Layer
 
Has anyone here isolated the vb security layer so you could use it in a seperate stand alone project?

Want to create a new db driven app that uses the vb permissions to define limits or access.

Was hoping not to have to sort it all out from scratch .. Suggestions?

Dismounted 04-22-2009 07:06 AM

What "security" layer? You mean security tokens and POST referrer whitelists?

leeherron 04-29-2009 08:57 PM

Quote:

Originally Posted by Dismounted (Post 1796554)
What "security" layer? You mean security tokens and POST referrer whitelists?

I think, maybe, my question is what includes are needed to use if you want to use the security functions already included within Vb.

j883376 04-29-2009 10:43 PM

Quote:

Originally Posted by leeherron (Post 1801392)
I think, maybe, my question is what includes are needed to use if you want to use the security functions already included within Vb.

What security functions? Login? Usergroups?

leeherron 04-30-2009 11:31 PM

Quote:

Originally Posted by j883376 (Post 1801460)
What security functions? Login? Usergroups?

Both, have a stand alone review script I'd like to use and want to convert it to using the vb userbase instead of its own.

Ryan Ashbrook 05-01-2009 12:02 AM

Most of the security methods in vBulletin are intertwined within the core object. This includes Logging In, Input Sanitization, CSRF Protection, etc. etc.

If you want to use these then you have to include your forums global.php within your site files to get to the $vbulletin object, then simply browse and use accordingly.

Dismounted 05-01-2009 05:34 AM

Note that global.php must be included in global scope.

Ryan Ashbrook 05-01-2009 02:03 PM

PHP Code:

<?php
$cwd 
getcwd ( );
chdir '/home/username/public_html/forums/' );
require_once ( 
'./global.php' );
chdir $cwd ) ;
?>

This is what I use to access the $vbulletin object, simply change the path to your forums as appropriate.


All times are GMT. The time now is 07:45 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.01142 seconds
  • Memory Usage 1,726KB
  • 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)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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