vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   parse error in include (https://vborg.vbsupport.ru/showthread.php?t=34952)

Lionel 02-10-2002 08:11 PM

Why would the second code cause a parse error into the first one?

include("vbs_counter.php");

ob_start();
require("/var/www/aboutus/textads/textad.php");
$textads = ob_get_contents();
ob_end_clean();

Admin 02-11-2002 08:48 AM

What is in each file?

Lionel 02-11-2002 09:17 AM

1 Attachment(s)
the first one is the vbstats hack and the second one is a non vbulletin related file, completely independent, that I use to display ads.

The way that I had it setup, vbstats convinces the advertisers and sells the ads, and the second non vb related file displays the purchase. That is the best polite, unobstructive way to display an ad that I found.
As per attached.

Lionel 02-11-2002 10:04 AM

starts with this. Maybe the header location is doing it?

if (eregi("textad.php",$PHP_SELF)) {
Header("Location: /");
die();
} else
{
main();
}

Lionel 02-11-2002 10:12 AM

I fixed it by harcoding the full path to admin/config.php in global.php instead of ./admin/config.php

That is peculiar how another file is throwing off vbulletin and taking over.


All times are GMT. The time now is 09:13 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.01012 seconds
  • Memory Usage 1,708KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (5)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