Show
Ignore:
Timestamp:
12/06/06 03:11:17 (14 years ago)
Author:
exi
Message:

Added standings-management.
Changed installer step 3 to only use POST data now.
Character portraits should now look a bit better.
Changed all smarty template requests to use a wrapper function.
Modified standard page for IGB.
Added php compat file to reduce minimal needed version to 4.0.9.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/class.box.php

    r110 r134  
    1 <?php  
     1<?php 
    22require_once("class.graph.php"); 
    33require_once("globals.php"); 
     
    1010                $this->box_array = array(); 
    1111    } 
    12          
     12 
    1313    function setIcon($icon)                                     //its called setIcon... and it sets the Icon. 
    1414    { 
    1515        $this->icon_ = $icon; 
    1616    } 
    17          
    18         function addOption($type,$name,$url="") //add something to the array that we send to smarty later... types can be caption, img, link, points. Only link needs all 3 attribues  
     17 
     18        function addOption($type,$name,$url="") //add something to the array that we send to smarty later... types can be caption, img, link, points. Only link needs all 3 attribues 
    1919        { 
    2020        $this->box_array[]=array('type' => $type, 'name' => $name, 'url' => $url); 
     
    2929        $smarty->assign('title',$this->title_ ); 
    3030        $smarty->assign('items',$this->box_array); 
    31         return $smarty->fetch('box.tpl'); 
     31        return $smarty->fetch(get_tpl('box')); 
    3232    } 
    3333} 
     
    7272        { 
    7373            if (!$rows[$i - 1]['plt_id']) break; 
    74             $pilot = new Pilot($rows[$i - 1]['plt_id']);  
     74            $pilot = new Pilot($rows[$i - 1]['plt_id']); 
    7575                        $bar = new BarGraph($rows[$i - 1]['cnt'], $max, 60); 
    7676                        $top[$i] = array('url'=> "?a=pilot_detail&plt_id=" . $rows[$i - 1]['plt_id'], 'name'=>$pilot->getName(),'bar'=>$bar->generate(),'cnt'=>$rows[$i - 1]['cnt']); 
     
    7878                $smarty->assign('top',$top); 
    7979                $smarty->assign('comment',$this->comment_); 
    80                 return $smarty->fetch('award_box.tpl'); 
     80                return $smarty->fetch(get_tpl('award_box')); 
    8181    } 
    82          
     82 
    8383} 
    8484?>