Show
Ignore:
Timestamp:
06/14/09 06:51:49 (11 years ago)
Author:
kovell
Message:

- SQL queries optimised for speed and error protection.
- feed syndication optimised
- front page includes optional clock and optional kill/loss display
- mysqli support added
- transaction protection of kills added where supported (mysqli and InnoDB)
- summary tables and contracts show total destroyed value instead of ship value
- html errors reduced
- related kill calculation improved
- query caching errors reduced
- minor bugfixes
- Smarty 2.6.25 added
- apoc fitting mod added and modded
- code optimisations
- code comments added (doxygen format)
- conflicting mods are now identified

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/cron/cron_import.php

    r365 r370  
    11#!/usr/bin/php  
    22<?php 
     3// check your php folder is correct as defined by the first line of this file 
     4 
    35@error_reporting(E_ALL ^ E_NOTICE); 
    46// 
     
    79// 
    810 
    9 @set_time_limit(0); 
     11if(function_exists("set_time_limit")) 
     12        set_time_limit(0); 
     13 
     14// current working directory minus last 5 letters of string ("/cron") 
     15//$KB_HOME = substr(getcwd(), 0, strlen(getcwd())-5); // current working directory minus last 5 letters of string ("/cron") 
     16$KB_HOME = ereg_replace('[/\\]cron$', '', getcwd()); 
     17 
     18chdir($KB_HOME);  
     19 
     20// If the above doesn't work - place your working directory path to killboard root below - comment out the above two lines and uncomment the two below 
    1021 
    1122// Edit the path below with your webspace directory to the killboard root folder - also check your php folder is correct as defined by the first line of this file 
    12  
    13 $KB_HOME = "/home/thunkage/public_html/kb"; 
    14 chdir($KB_HOME);  
    15 //chdir('/../'); // finds Killboard root assuming that the we've started where we're supposed to start (<kb root>/cron) - if this fails comment out and uncomment two lines above and edit path to correct path 
     23//$KB_HOME = "/home/yoursite/public_html/kb"; 
     24//chdir($KB_HOME);  
    1625 
    1726require_once( "kbconfig.php" ); 
    1827require_once( "common/includes/class.config.php" ); 
     28require_once( "common/includes/class.apicache.php" ); 
    1929require_once( "common/includes/class.event.php" ); 
    2030require_once( "common/includes/globals.php" ); 
     
    2333 
    2434$config = new Config(KB_SITE); 
    25 if (((bool)config::get('cfg_memcache')) === true) 
    26 { 
    27         require_once('common/includes/class.db_memcache.php'); 
    28         $mc = new Memcache(); 
    29         $mc->connect(config::get('cfg_memcache_server'), config::get('cfg_memcache_port')); 
    30 } 
     35$ApiCache = new ApiCache(KB_SITE); 
    3136 
    3237define('KB_TITLE', config::get('cfg_kbtitle')); 
     
    6368    $typestring = $config->get("API_Type_" . $i); 
    6469    $keystring = 'userID=' . $config->get('API_UserID_' . $i) . '&apiKey=' . $config->get('API_Key_' . $i) . '&characterID=' . $config->get('API_CharID_' . $i); 
     70        $myEveAPI->cachetext_ = ""; 
     71        $myEveAPI->cacheflag_ = false; 
    6572    $outtemp .= $myEveAPI->Import($keystring, $typestring, $keyindex); 
    66         config::set('API_CachedUntil_' . $keyindex, $myEveAPI->cachetext_); 
     73        //config::set('API_CachedUntil_' . $keyindex, $myEveAPI->cachetext_); 
    6774} 
    6875$out = $outtemp;