vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Simple php question (https://vborg.vbsupport.ru/showthread.php?t=44640)

Kohhal 10-15-2002 11:38 AM

Simple php question
 
The following php code is part of online.php :

PHP Code:

  case 'index.php':
    
$userinfo[activity] = 'index';
    break; 

This code is used to pickup the forum index in the /forum directory but I also have an index.php in my root ie. in public_html. How do I get it to differentiate between the two files as right now when someone is on my homepage it still shows them as being on the forum index?

I hope I've explained this ok, basically, what sort of path do I need to enter, absolute/relative or something like ../ ???

TIA,

G :rambo:

Kohhal 11-21-2002 10:18 AM

*bump* noone knows? :(

Dark_Wizard 11-21-2002 12:07 PM

Change:

'index.php':

to:

'../index.php':

Kohhal 11-21-2002 12:26 PM

That's what I have right now and no joy???? Still shows me as being on the main index?

NTLDR 11-21-2002 01:42 PM

Quote:

Originally posted by Dark_Wizard
Change:

'index.php':

to:

'../index.php':

That won't work as online.php only takes into account of the filename (abc.php) and not any path associated with it.

Kohhal 11-21-2002 02:56 PM

Quote:

Originally posted by NTLDR


That won't work as online.php only takes into account of the filename (abc.php) and not any path associated with it.

So it's not possible then?

Dark_Wizard 11-21-2002 03:03 PM

Quote:

Originally posted by NTLDR


That won't work as online.php only takes into account of the filename (abc.php) and not any path associated with it.

Oops...your right...

TheMasterG >> try this hack from Firefly..

NTLDR 11-21-2002 03:06 PM

No as far as I am aware, without probably alot of hacking.


All times are GMT. The time now is 04:02 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.02026 seconds
  • Memory Usage 1,725KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete