Changeset 207

Show
Ignore:
Timestamp:
04/23/07 13:06:35 (15 years ago)
Author:
ralle030583
Message:

- added system search
- added 12 new ship Signatures (thx to Arthur Ffrub)
- removed again some not needed includes

Location:
dev
Files:
24 modified

Legend:

Unmodified
Added
Removed
  • dev/common/about.php

    r206 r207  
    11<?php 
    22require_once('common/includes/class.ship.php'); 
    3 require_once('common/includes/globals.php'); 
    43 
    54$page = new Page('About'); 
  • dev/common/admin/admin.php

    r190 r207  
    11<?php 
    2 require_once('common/includes/class.killboard.php'); 
    3 require_once('common/includes/class.page.php'); 
    4  
    52// admin menu now loads all admin pages with options 
    63require_once('common/admin/admin_menu.php'); 
  • dev/common/admin/admin_audit.php

    r190 r207  
    11<?php 
    2 require_once('common/includes/class.page.php'); 
    32require_once('common/admin/admin_menu.php'); 
    43 
  • dev/common/admin/admin_cc.php

    r190 r207  
    11<?php 
    2 require_once('common/includes/class.page.php'); 
    32require_once('common/includes/class.contract.php'); 
    43require_once('common/admin/admin_menu.php'); 
  • dev/common/admin/admin_comments_delete.php

    r190 r207  
    11<?php 
    2 require_once('common/includes/class.page.php'); 
    32require_once('common/includes/class.kill.php'); 
    43 
  • dev/common/admin/admin_kill_delete.php

    r190 r207  
    11<?php 
    2 require_once('common/includes/db.php'); 
    3 require_once('common/includes/class.page.php'); 
    42require_once('common/includes/class.kill.php'); 
    53 
  • dev/common/admin/admin_kill_export_search.php

    r190 r207  
    77*/ 
    88 
    9 require_once('class.page.php'); 
    10 require_once('db.php'); 
    11 require_once('globals.php'); 
    129require_once('admin_menu.php'); 
    1310 
  • dev/common/admin/admin_mapoptions.php

    r190 r207  
    11<?php 
    2 require_once('common/includes/class.page.php'); 
    32require_once('common/includes/class.contract.php'); 
    43require_once('common/includes/class.http.php'); 
  • dev/common/admin/admin_mods.php

    r190 r207  
    11<?php 
    22require_once('common/includes/class.killboard.php'); 
    3 require_once('common/includes/class.page.php'); 
    43require_once('common/admin/admin_menu.php'); 
    54 
  • dev/common/admin/admin_move_pilot.php

    r190 r207  
    11<?php 
    2 require_once('common/includes/class.page.php'); 
    32require_once('common/includes/class.kill.php'); 
    43require_once('common/includes/class.pilot.php'); 
  • dev/common/admin/admin_postperm.php

    r190 r207  
    11<?php 
    2 require_once('common/includes/class.page.php'); 
    32require_once('common/includes/class.contract.php'); 
    43require_once('common/includes/class.http.php'); 
  • dev/common/admin/admin_roles.php

    r191 r207  
    11<?php 
    2 require_once('common/includes/class.page.php'); 
    3  
    42$page = new Page(); 
    53$page->setAdmin(); 
  • dev/common/admin/admin_shp_val.php

    r190 r207  
    11<?php 
    2 require_once('common/includes/class.page.php'); 
    32require_once('common/includes/class.contract.php'); 
    43require_once('common/includes/class.http.php'); 
  • dev/common/admin/admin_standings.php

    r190 r207  
    11<?php 
    2 require_once('common/includes/class.page.php'); 
    32require_once('common/includes/class.corp.php'); 
    43require_once('common/includes/class.alliance.php'); 
  • dev/common/admin/admin_sync.php

    r192 r207  
    11<?php 
    2 require_once('common/includes/class.page.php'); 
    32require_once('common/includes/class.contract.php'); 
    43require_once('common/includes/class.http.php'); 
     
    3938    while ($data = $qry->getRow()) 
    4039    { 
    41         $content_file .= '§'.$data['itm_name'].'|'.$data['itm_externalid'].'|'.$data['itm_value'].'-'; 
     40        $content_file .= 'ï¿œ'.$data['itm_name'].'|'.$data['itm_externalid'].'|'.$data['itm_value'].'-'; 
    4241    } 
    4342    */ 
     
    9695        if (isset($_REQUEST['itm_update'])) 
    9796        { 
    98             preg_match_all('^§(.*?)\|(.*?)\|(.*?)-^', $data, $matches); 
     97            preg_match_all('^ï¿œ(.*?)\|(.*?)\|(.*?)-^', $data, $matches); 
    9998            unset($data); 
    10099            $results = count($matches[1]); 
  • dev/common/admin/option_db.php

    r195 r207  
    4545        } 
    4646 
    47         return round($size/1000, 2).' kB <input type="checkbox" name="option[sql_clearcache]">Clear cache ?'; 
     47        return round($size/1024, 2).' KB <input type="checkbox" name="option[sql_clearcache]">Clear cache ?'; 
    4848    } 
    4949 
  • dev/common/search.php

    r206 r207  
    66$html .= "<td>Type:</td><td>Text: (3 letters minimum)</td>"; 
    77$html .= "</tr><tr>"; 
    8 $html .= "<td><select id=searchtype name=searchtype><option value=pilot>Pilot</option><option value=corp>Corporation</option><option value=alliance>Alliance</option></select></td>"; 
     8$html .= "<td><select id=searchtype name=searchtype><option value=pilot>Pilot</option><option value=corp>Corporation</option><option value=alliance>Alliance</option><option value=system>System</option></select></td>"; 
    99$html .= "<td><input id=searchphrase name=searchphrase type=text size=30/></td>"; 
    1010$html .= "<td><input type=submit name=submit value=Search></td>"; 
     
    3838                 order by ali.all_name"; 
    3939            $header = "<td>Alliance</td><td></td>"; 
     40            break; 
     41        case "system": 
     42            $sql = "select sys.sys_id, sys.sys_name 
     43                  from kb3_systems sys 
     44                 where lower( sys.sys_name ) like lower( '%".slashfix($_REQUEST['searchphrase'])."%' ) 
     45                 order by sys.sys_name"; 
     46            $header = "<td>System</td><td></td>"; 
    4047            break; 
    4148    } 
     
    7683                $html .= "<td><a href=\"$link\">".$row['all_name']."</a></td><td></td>"; 
    7784                break; 
     85            case "system": 
     86                $link = "?a=system_detail&sys_id=".$row['sys_id']; 
     87                $html .= "<td><a href=\"$link\">".$row['sys_name']."</a></td><td></td>"; 
     88                break; 
    7889        } 
    7990        $html .= "</tr>"; 
  • dev/mods/example_mod/home.php

    r193 r207  
    11<?php 
    2 require_once("common/includes/class.page.php"); 
    32require_once("common/includes/class.killsummarytable.php"); 
    43require_once("common/includes/class.box.php"); 
  • dev/mods/example_mod/settings.php

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

    r204 r207  
    11<?php 
    2 require_once('common/includes/class.page.php'); 
    32require_once('common/includes/class.killlist.php'); 
    43require_once('common/includes/class.killlisttable.php'); 
  • dev/mods/forum_post/class.killsummarytable.php

    r204 r207  
    11<?php 
    2 require_once("db.php"); 
    3 require_once("common/includes/class.page.php"); 
    42require_once("common/includes/class.ship.php"); 
    53 
  • dev/mods/forum_post/forum_post.php

    r204 r207  
    66require_once('common/includes/class.toplist.php'); 
    77 
    8 require_once('common/includes/class.page.php'); 
    98require_once('common/includes/class.corp.php'); 
    109require_once('common/includes/class.alliance.php'); 
  • dev/mods/forum_post/kill_related.php

    r204 r207  
    11<?php 
    2 require_once('common/includes/class.page.php'); 
    32require_once('common/includes/class.corp.php'); 
    43require_once('common/includes/class.alliance.php'); 
  • dev/mods/forum_post/settings.php

    r204 r207  
    11<? 
    2 require_once( "common/includes/class.page.php" ); 
    32require_once( "common/admin/admin_menu.php" ); 
    43require_once("common/includes/class.ship.php");