Show
Ignore:
Timestamp:
10/19/08 15:49:55 (12 years ago)
Author:
beans
Message:

Fixed the cron scripts

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/cron/cron_import.php

    r343 r349  
    1010 
    1111// 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 $KB_HOME = "location/of/your/kb/main/dir"; 
     12echo "Edit the \$KB_HOME and remove this line and the next\n"; 
     13die(); 
     14$KB_HOME = "/your/killboard/path"; 
    1315//chdir($KB_HOME);  
    14 chdir('/../../'); // finds Killboard root assuming that the we've started where we're supposed to start (<kb root>/mods/api_mod) - if this fails comment out and uncomment two lines above and edit path to correct path 
     16//chdir('/../../'); // finds Killboard root assuming that the we've started where we're supposed to start (<kb root>/mods/api_mod) - if this fails comment out and uncomment two lines above and edit path to correct path 
    1517 
    1618$path = ini_get("include_path"); 
     
    2224require_once( "common/includes/class.eveapi.php" ); 
    2325require_once( "common/includes/db.php" ); 
    24 require_once( "common/includes/class.db_memcache.php" ); 
    25  
    26 $mc = new Memcache(); 
    27 $mc->connect("127.0.0.1", 11211); 
    2826 
    2927$config = new Config(KB_SITE); 
     28if (((bool)config::get('cfg_memcache')) === true) 
     29{ 
     30        require_once('common/includes/class.db_memcache.php'); 
     31        $mc = new Memcache(); 
     32        $mc->connect(config::get('cfg_memcache_server'), config::get('cfg_memcache_port')); 
     33} 
     34 
    3035define('KB_TITLE', config::get('cfg_kbtitle')); 
    3136