vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Help with log-in from non-VB page hack (https://vborg.vbsupport.ru/showthread.php?t=32930)

Viper220 12-07-2001 12:53 AM

First off, let me just say I appreciate the help that everyone has given me. If people can bear with me just a tad longer I'd appreciate it.

To update: I have configured the cookies in control panel to go to all of my domain (.slushfactory.com). Unfortunately, this hasn't resolved the problem.

To get back to the basics I am using the original loginfile.php file that RobAC included with his hack. I made two websites, my regular index (indextest.php) that also has a regular header and HTML code in it, and then a 2nd page (test.php) that only contains the INCLUDE file that calls to loginfile.php. I don't get the warning header error on the test.php page, but I still get it on the indextest.php one.

Full URLs:
http://www.slushfactory.com/indextest.php
http://www.slushfactory.com/test.php

Because the test.php works, it's obvious that the problem exists in my indextest.php page. However, I'm not sure where. The include file that calls to loginfile.php is after the header information and is someways down the page. The exact line I use is:
<?php
include("/home/slush/public_html/forum/loginfile.php");
?>

Aside from that, all the rest of the page is written in regular 'ol HTML. Could this be the problem? I assumed all I had to do was throw in the php include statement.

Am I missing something? I'm willing to post whatever code someone needs if they're willing to look at it.

Thanks,
Brian

FWC 12-07-2001 01:01 AM

I just tried both pages and didn't get any errors on either.

Viper220 12-07-2001 01:07 AM

[QUOTE]Originally posted by FWC
I just tried both pages and didn't get any errors on either.

FWC 12-07-2001 02:13 AM

[QUOTE]Originally posted by Viper220


Interesting. Unfortunately the error still exists for most visitors.
-Brian

Goldfinger 12-07-2001 02:24 AM

The problem is .. is that you are including the global.php and the config.php twice and that is causing the headers to go wild.

Viper220 12-07-2001 01:07 PM

[QUOTE]Originally posted by Goldfinger
The problem is .. is that you are including the global.php and the config.php twice and that is causing the headers to go wild.

derfelix 12-07-2001 01:57 PM

isn't there in php 4 a includeonce or requireonce statement.. that would solve the problem...
the heather problem usually comes if you insert a html statement before the include global.php
try to put in on top of the page..

Viper220 12-07-2001 03:23 PM

[QUOTE]Originally posted by derfelix
isn't there in php 4 a includeonce or requireonce statement.. that would solve the problem...
the heather problem usually comes if you insert a html statement before the include global.php
try to put in on top of the page..


All times are GMT. The time now is 08:00 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.01110 seconds
  • Memory Usage 1,728KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete