vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   ibProArcade Archive (https://vborg.vbsupport.ru/forumdisplay.php?f=174)
-   -   Using more than one domain name... (https://vborg.vbsupport.ru/showthread.php?t=140569)

fly 02-26-2007 11:28 PM

Using more than one domain name...
 
I have more than one domain name that points at my forum. To prevent my users from having to log into more than one domain, I usually edit the arcade.php to use relative paths. For example, in the latest version, I edited out this:

PHP Code:

/*
if ($vbversion != "3.0")
{
    // make some legacy-variables compatible to vBulletin 3.5.x
    $vboptions[forumhome]    = $vbulletin->options[forumhome];
    $vboptions[bburl]    = $vbulletin->options[bburl];

    ($hook = vBulletinHook::fetch_hook('ibproarcade_global_start')) ? eval($hook) : false;
}
*/ 

That's great, everything works fine now. I'm wondering about this other part that uses BBURL though.

PHP Code:

// ################## Page-Refresher while playing #######################
if ($_GET['do'] == "holdsession")
{
    global 
$vbulletin$session;

    
$phrasegroups = array();
    
$specialtemplates = array();
    
$actiontemplates = array();
    
$globaltemplates = array();
    require_once(
'./global.php');

    
$link=$vboptions['bburl']; $sess=$session['sessionurl'];
    if (
$link=="") { $link=$vbulletin->options['bburl']; $sess=$vbulletin->session->vars['sessionurl']; }

    echo 
"<meta http-equiv=refresh content=\"120; URL=".$link."/arcade.php?".$sess."&amp;do=holdsession\">";
    exit;


Can I just edit out the $link part? Will the refresh still work?

fly 02-28-2007 02:21 PM

help?

MrZeropage 03-02-2007 12:27 PM

well, the $link tells the iframe what to reload - not sure if this works, please test it ...


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