vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Secure VBstats Page? (https://vborg.vbsupport.ru/showthread.php?t=35973)

Renegade 03-10-2002 11:28 PM

Secure VBstats Page?
 
How can I secure the VBstats page from particular groups of users? For example I only want to allow the Moderators and Admins to be able view the VBstats page.

thx in advance,

ReN

FWC 03-11-2002 03:12 AM

Replace:
PHP Code:

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


with
PHP Code:

if ($bbuserinfo['usergroupid']!=or $bbuserinfo['usergroupid']!=or $bbuserinfo['usergroupid']!=7) { 
show_nopermission(); 


If you don't already have that first block, just add the second block under:
PHP Code:

require('./vbslang_en.php'); // Future Language File 


Renegade 03-11-2002 09:35 AM

Thank you for such a quick response! I will hack it now.....

Renegade 03-11-2002 09:48 AM

This is a georgeous thing! It worked like a charm thank you so much!!!!

FWC 03-11-2002 10:07 PM

Quote:

Originally posted by Renegade
This is a georgeous thing! It worked like a charm thank you so much!!!!
You're welcome. :)

Renegade 03-12-2002 10:03 AM

Small problem, it seems as though no one has access now. I tried including the admin group and excluding it, but still get nopermission message.
Code:

if ($bbuserinfo['usergroupid']!=2 or $bbuserinfo['usergroupid']!=3 or $bbuserinfo['usergroupid']!=1 or $bbuserinfo['usergroupid']!=4) {
show_nopermission();

help....

Admin 03-12-2002 10:08 AM

Change all or's in the code to and's.

Renegade 03-12-2002 10:17 AM

:( :cry:
Still the same problem. Essentially all groups should get denied except the Admins group (6).

thx

Admin 03-12-2002 10:23 AM

Use FWC's code and do what I said.

Renegade 03-12-2002 12:15 PM

LOL, sorry for the confusion. That would been my next step in troubleshooting this :dead:

That worked!!!

thx again.


All times are GMT. The time now is 08:18 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.02710 seconds
  • Memory Usage 1,734KB
  • 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_code_printable
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete