Changeset 39

Show
Ignore:
Timestamp:
10/26/06 19:17:14 (14 years ago)
Author:
exi
Message:

created cache/data for several purposes
small changes to comments and kill details to filter for valid killids
added signature generator alpha-version

Location:
dev
Files:
8 added
5 modified

Legend:

Unmodified
Added
Removed
  • dev/common/admin_sync.php

    r38 r39  
    9797        for ($i = 0; $i<$results; $i++) 
    9898        { 
    99             $update->execute("update kb3_pilots set plt_externalid='".$matches[2][$i]."' where plt_name='".addslashes($matches[1][$i])."' limit 1"); 
     99            $update->execute("update kb3_pilots set plt_externalid='".addslashes($matches[2][$i])."' where plt_name='".addslashes($matches[1][$i])."' limit 1"); 
    100100        } 
    101101        $html .= "Synchronization complete, got $results new ids from server running version ".$version[0].'.'.$version[1].'.'.$version[2].'.<br>'; 
  • dev/common/comments.php

    r30 r39  
    1313} 
    1414 
    15 $kll_id = $_GET['kll_id']; 
     15//$kll_id defined now in kill_detail 
     16//$kll_id = intval($_GET['kll_id']); 
    1617$qry = new DBQuery(); 
    1718if (isset($_POST['comment'])) 
  • dev/common/kill_detail.php

    r32 r39  
    1010$page = new Page("Kill details"); 
    1111 
    12 $kill = new Kill($_GET['kll_id']); 
     12if (!$kll_id = intval($_GET['kll_id'])) 
     13{ 
     14    $html = "No kill id spezified."; 
     15    $page->setContent($html); 
     16    $page->generate($html); 
     17    exit; 
     18} 
     19$kill = new Kill($kll_id); 
    1320if (!$kill->exists()) 
    1421{ 
    1522    $html = "That kill doesn't exist."; 
     23    $page->setContent($html); 
    1624    $page->generate($html); 
    1725    exit; 
  • dev/common/pilot_detail.php

    r10 r39  
    153153$menubox->addCaption("Statistics"); 
    154154$menubox->addOption("Ships & weapons", "?a=pilot_detail&plt_id=" . $pilot->getID() . "&view=ships_weapons"); 
     155if (strstr($config->getConfig("mods_active"), 'signature_generator')) 
     156{ 
     157    $menubox->addCaption("Signature"); 
     158    $menubox->addOption("Link", "?a=sig&i=" . $pilot->getID()); 
     159} 
    155160$page->addContext($menubox->generate()); 
    156161 
  • dev/common/sync_server.php

    r38 r39  
    6666        // we dont got that one in our database, update 
    6767        // TODO: we don't care about missing pilots yet 
    68         $update->execute("update kb3_pilots set plt_externalid='".$id."' where plt_name='".addslashes($name)."' limit 1"); 
     68        $update->execute("update kb3_pilots set plt_externalid='".addslashes($id)."' where plt_name='".addslashes($name)."' limit 1"); 
    6969    } 
    7070    else