vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   HTaccess integration hack... a beginning ? (https://vborg.vbsupport.ru/showthread.php?t=15873)

merk 09-11-2001 09:51 AM

A simple method:

PHP Code:

/* get user auth information into an array ie $userpass['username'] = pass */

if($userpass[$PHP_AUTH_USER] == $PHP_AUTH_PW)
{
continue;
}
else
{
//send headers to cause browser to request user and pass from user
header("WWW-authenticate: Basic realm=\"realm name\"");
header("HTTP/1.0 401 Unauthorized");

print(
"notice that the user isnt authorised");



fragbait 09-11-2001 09:14 PM

heh i dont have access to editing apache modules for my server, but merk, i was actually look for a php method, do i just put that into a script, and it works, don i have to have any modules?

merk 09-12-2001 12:22 AM

I see no need for this hack, but no, thats a simple bit

you would need to add more code.

Im really not going to bother because this hack is basically pointless

fragbait 09-12-2001 12:38 AM

oh ok thanks anyway, anybody think they can finish this?

Steve Machol 09-12-2001 12:39 AM

fragbait,

Could you please enter your vB license info into your use profile? See my sig for details. Thanks.

fragbait 09-12-2001 03:30 AM

sorry, im makin this script for the vbb board of someone else, ill try to ask him for his lisence, wait that wouldnt be right, ill try to get him to come post it i guess, k lemme mail him now....


All times are GMT. The time now is 05:47 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.01770 seconds
  • Memory Usage 1,722KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete