Show
Ignore:
Timestamp:
09/19/07 15:00:16 (15 years ago)
Author:
ralle030583
Message:

possible fix for problems with top navigation
and not shown entries for campaigns and contract cause
of probs with killboard::hasCampaign() / hasContract()

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/includes/class.killboard.php

    r213 r239  
    11<?php 
    2 require_once('common/includes/class.config.php'); 
    32 
    43class Killboard 
    54{ 
    6     function Killboard($site) 
    7     { 
    8         $this->qry_ = new DBQuery(); 
    9  
    10         $this->site_ = $site; 
    11         $this->config_ = new Config($site); 
    12     } 
    13  
    14     function isSuspended() 
    15     { 
    16         $this->execQuery(); 
    17         return $this->row_['rtl_suspended'] == "1"; 
    18     } 
    19  
    20     function getConfig() 
    21     { 
    22         $this->execQuery(); 
    23         return $this->config_; 
    24     } 
    25  
    265    function hasCampaigns($active = false) 
    276    { 
     
    309                 from kb3_contracts 
    3110                 where ctr_campaign = 1 
    32                    and ctr_site = '".$this->site_."'"; 
     11                   and ctr_site = '".KB_SITE."'"; 
    3312        if ($active) $sql .= " and ( ctr_ended is null or now() <= ctr_ended )"; 
    3413        $qry->execute($sql); 
     
    4221                 from kb3_contracts 
    4322                 where ctr_campaign = 0 
    44                    and ctr_site = '".$this->site_."'"; 
     23                   and ctr_site = '".KB_SITE."'"; 
    4524        if ($active) $sql .= " and ( ctr_ended is null or now() <= ctr_ended )"; 
    4625        $qry->execute($sql); 
    4726        return ($qry->recordCount() > 0); 
    4827    } 
    49  
    50     function execQuery() 
    51     { 
    52     } 
    5328} 
    5429?>