Changeset 212 for dev/mods

Show
Ignore:
Timestamp:
05/08/07 10:20:01 (13 years ago)
Author:
ralle030583
Message:

- replaced $config->getConfig with config::getconfig so we havent a mix in all files<br>
- added valing='top' to award boxes to make the awards nice in board with not many pilots<br>
- removed not needed includes<br>
- added event 'killmail_delete' which is called before real delete of a killmail<br>
- admin can see classified system in the killmaildetails

Location:
dev/mods
Files:
11 modified

Legend:

Unmodified
Added
Removed
  • dev/mods/example_mod/home.php

    r207 r212  
    108108$page->addContext($tkbox->generate()); 
    109109 
    110 $config = $page->killboard_->getConfig(); 
    111 if ($config->getKillPoints()) 
     110if (config::getKillPoints()) 
    112111{ 
    113112    $tklist = new TopScoreList(); 
  • dev/mods/feed_syndication/settings.php

    r193 r212  
    1616@set_time_limit(0); 
    1717require_once( 'feed_fetcher.php' ); 
    18 require_once( 'common/includes/class.page.php' ); 
    1918require_once( 'common/admin/admin_menu.php' ); 
    2019require_once( 'common/includes/class.corp.php' ); 
  • dev/mods/forum_post/cc_detail.php

    r207 r212  
    229229 
    230230$killboard = $page->killboard_; 
    231 $config = $killboard->getConfig(); 
    232 if ($config->getKillPoints()) 
     231if (config::getKillPoints()) 
    233232{ 
    234233    $tklist = new TopContractScoreList(); 
  • dev/mods/forum_post/class.killsummarytable.php

    r207 r212  
    8686    function getkills() 
    8787    { 
    88         global $config; 
    8988        if ($this->mixedinvolved_) 
    9089        { 
     
    109108 
    110109        $sql = 'SELECT count(*) AS knb, scl_id, scl_class,'; 
    111         if ($config->getConfig('ship_values')) 
     110        if (config::getConfig('ship_values')) 
    112111        { 
    113112            $sql .= ' sum(ifnull(ksv.shp_value,scl.scl_value)) AS kisk FROM kb3_kills kll 
     
    143142 
    144143        $sql = 'SELECT count(*) AS lnb, scl_id, scl_class,'; 
    145         if ($config->getConfig('ship_values')) 
     144        if (config::getConfig('ship_values')) 
    146145        { 
    147146            $sql .= ' sum(ifnull(ksv.shp_value,scl.scl_value)) AS lisk FROM kb3_kills kll 
     
    402401 
    403402                // Build our Post 
    404                 $config = new config(KB_SITE); 
    405                 $set_colours = unserialize($config->getConfig('forum_post_colours'));   //load colour settings 
     403                $set_colours = unserialize(config::getConfig('forum_post_colours'));    //load colour settings 
    406404                if(!is_array($set_colours)) { $set_colours = array(); }                                 // if the settings have been reset create an empty array so as not to brake the code later on 
    407                 $set_styles = unserialize($config->getConfig('forum_post_styles'));             //load style settings 
     405                $set_styles = unserialize(config::getConfig('forum_post_styles'));              //load style settings 
    408406                if(!is_array($set_styles)) { $set_styles = array(); }                                   // if the settings have been reset create an empty array so as not to brake the code later on 
    409                 $set_isk = $config->getConfig('forum_post_isk',$_POST['isk']);                  // load isk setting 
     407                $set_isk = config::getConfig('forum_post_isk',$_POST['isk']);                   // load isk setting 
    410408                 
    411409                //print_r($set_styles); 
     
    443441                $style_close = ""; 
    444442                }                
    445                 $order = $config->getConfig('forum_post_order'); 
     443                $order = config::getConfig('forum_post_order'); 
    446444                 
    447445                if($order == "first"){ 
  • dev/mods/forum_post/forum_post.php

    r207 r212  
    1 popup| <?        
     1popup| <?php     
    22require_once('common/includes/class.killlist.php'); 
    33require_once('common/includes/class.killlisttable.php'); 
  • dev/mods/forum_post/settings.php

    r207 r212  
    1 <? 
     1<?php 
    22require_once( "common/admin/admin_menu.php" ); 
    33require_once("common/includes/class.ship.php"); 
     
    2424if(isset($_POST['Reset'])) 
    2525{ 
    26 $config->setConfig('forum_post_colours',""); 
    27 $config->setConfig('forum_post_styles',""); 
     26config::setConfig('forum_post_colours',""); 
     27config::setConfig('forum_post_styles',""); 
    2828$confirm = "<strong>Settings Reset</strong><br/>"; 
    2929} 
     
    5656         
    5757        } 
    58 $config->setConfig('forum_post_colours',serialize($forum_post_colours) ); 
    59 $config->setConfig('forum_post_styles',serialize($forum_post_styles)); 
    60 $config->setConfig('forum_post_isk',$_POST['isk']); 
    61 $config->setConfig('forum_post_order',$_POST['order']); 
     58config::setConfig('forum_post_colours',serialize($forum_post_colours) ); 
     59config::setConfig('forum_post_styles',serialize($forum_post_styles)); 
     60config::setConfig('forum_post_isk',$_POST['isk']); 
     61config::setConfig('forum_post_order',$_POST['order']); 
    6262 
    6363$confirm = "<strong>Settings Saved</strong><br/>"; 
     
    6868$html .= $confirm; 
    6969 
    70 $set_colours = unserialize($config->getConfig('forum_post_colours'));   //load colour settings 
     70$set_colours = unserialize(config::getConfig('forum_post_colours'));    //load colour settings 
    7171if(!is_array($set_colours)) { $set_colours = array(); }                                 // if the settings have been reset create an empty array so as not to brake the code later on 
    72 $set_styles = unserialize($config->getConfig('forum_post_styles'));             //load style settings 
     72$set_styles = unserialize(config::getConfig('forum_post_styles'));              //load style settings 
    7373if(!is_array($set_styles)) { $set_styles = array(); }                                   // if the settings have been reset create an empty array so as not to brake the code later on 
    74 $set_isk = $config->getConfig('forum_post_isk',$_POST['isk']);                  // load isk setting 
     74$set_isk = config::getConfig('forum_post_isk',$_POST['isk']);                   // load isk setting 
    7575 
    7676//print_r($set_styles); 
     
    142142         
    143143        Place ship class at start or end of each line?<br/>'; 
    144         if($config->getConfig('forum_post_order') != "last"){ 
     144        if(config::getConfig('forum_post_order') != "last"){ 
    145145         
    146146        $html .= '<input name="order" type="radio" value="first" checked="checked"/>Start<br/> 
  • dev/mods/ingame_mod/igb.php

    r193 r212  
    44require_once("common/includes/class.killlist.php"); 
    55require_once("common/includes/class.killlisttable.php"); 
    6 require_once("common/includes/globals.php"); 
    76 
    87function mktable($klist, $limit)  
  • dev/mods/ingame_mod/settings.php

    r206 r212  
    1 <? 
     1<?php 
    22require_once( "common/admin/admin_menu.php" ); 
    33 
  • dev/mods/known_members/corp_detail.php

    r206 r212  
    535535$menubox->addOption("link","Top killers", "?a=corp_detail&crp_id=" . $corp->getID() . "&view=pilot_kills"); 
    536536 
    537 $killboard = $page->killboard_; 
    538 $config = $killboard->getConfig(); 
    539 if ($config->getKillPoints()) 
     537if (config::getKillPoints()) 
    540538    $menubox->addOption("link","Top scorers", "?a=corp_detail&crp_id=" . $corp->getID() . "&view=pilot_scores"); 
    541539$menubox->addOption("link","Top solokillers", "?a=corp_detail&crp_id=" . $corp->getID() . "&view=pilot_solo"); 
  • dev/mods/known_members/settings.php

    r193 r212  
    11<?php 
    2 require_once("common/includes/class.page.php"); 
    32require_once("common/admin/admin_menu.php"); 
    43 
  • dev/mods/signature_generator/sig_list.php

    r190 r212  
    11<?php 
    2 require_once('common/includes/class.page.php'); 
    3  
    42$page = new Page('Signature Listing'); 
    53