vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   using VBulletin Account for hidden html-Page (https://vborg.vbsupport.ru/showthread.php?t=32902)

Tobias Honscha 12-03-2001 03:16 PM

Hi !

I dont know if there is a hack already or this is a feature of the vbulletin system :

We are running a coin-database system also for guests. The server load is getting higher an higher. Is there a possibility that I limit the access of a PHP or HTML - page only to registered VBulletin users ?

Thanks in advance and greetings from germany,
Tobias Honscha

amykhar 12-03-2001 03:51 PM

Yes. You can include global.php and then check their userid. If they are not logged in, you could redirect them to the standard no permission template.

Amy

Tobias Honscha 12-03-2001 05:18 PM

as I am new to php-programming - can anyone describe how to do so ?

amykhar 12-03-2001 05:27 PM

I believe you want this

Code:

require "global.php";
if ($bbuserinfo[userid] == 0)
  show_nopermission();



Amy

Tobias Honscha 12-03-2001 07:16 PM

Thank you very much - I think this is the code I need.
Although I inserted your PHP-code users can access the file without loggin in . What am I doing wrong ?
This is the script I am currently using :

<?php
error_reporting(7);
require("./global.php");

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

.. and here comes the html - code which has to be hidden for unregistered users.

amykhar 12-03-2001 07:51 PM

I believe the rest of it needs to be in an else clause.

Amy

Tobias Honscha 12-04-2001 04:54 AM

... ok thanks. It was my fault - I disabled the cookies.


All times are GMT. The time now is 05:48 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.01108 seconds
  • Memory Usage 1,723KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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