Changeset 463

Show
Ignore:
Timestamp:
01/13/08 20:20:48 (12 months ago)
Author:
padams
Message:

addded in missing site_id param into first hit url.
modified called to set the site_id from params if it's there.

Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/base/processRequest.php

    r424 r463  
    5050                 
    5151                // Do not log if the first_hit cookie is still present. 
    52         if (!empty($this->params[$this->config['first_hit_param'].'_'.$this->config['site_id']])): 
     52        if (!empty($this->params[$this->config['first_hit_param'].'_'.$this->params['site_id']])): 
    5353                $this->e->debug('Aborting request processing due to finding first hit cookie.'); 
    5454                        return; 
  • trunk/modules/base/templates/js_helper_tags.tpl

    r378 r463  
    44<script type="text/javascript"> 
    55//<![CDATA[ 
    6 document.write('<img src="<?=$this->makeAbsolutelink(array('action' => 'base.processFirstRequest'), '', $this->config['action_url']);?>">'); 
     6document.write('<img src="<?=$this->makeAbsolutelink(array('action' => 'base.processFirstRequest', 'site_id' => $this->config['site_id']), '', $this->config['action_url']);?>">'); 
    77//]]> 
    88</script> 
  • trunk/owa_caller.php

    r462 r463  
    212212                $this->api->setupFramework(); 
    213213                 
     214                // needed in standalone installs where site_id is not set in config file. 
     215                if ($this->params['site_id']): 
     216                        $this->c->set('base', 'site_id', $this->params['site_id']); 
     217                endif; 
     218                 
    214219                return; 
    215220         
     
    251256                                $this->config['site_id'] = $caller_params['site_id']; 
    252257                                $this->c->set('base', 'site_id', $caller_params['site_id']); 
     258                        else: 
     259                                $caller_params['site_id'] = $this->c->get('base', 'site_id'); 
    253260                        endif; 
    254261                 
     
    283290                if ($this->config['log_robots'] != true): 
    284291                        if ($bcap->robotCheck() == true): 
     292                                $this->e->debug("ABORTING: request appears to be from a robot"); 
    285293                                return; 
    286294                        endif;