root/dev/mods/value_fetch/cron.php @ 361

Revision 338, 1.1 KB (checked in by beans, 12 years ago)

+ MOD: Value fetcher
+ MOD: API_Mod (and class.eveapi.php in common/includes)
+ admin_troubleshooting and images

Line 
1#!/usr/bin/php
2<?php
3/********************************************
4* Cron script for value fetcher by Beansman
5* Made for the www.eve-dev.net killboard.
6* Available at http://svn.nsbit.dk/itemfetch
7*
8* Read though the script and change variables
9* as needed.
10*
11* Made from liqs feed cron script ;)
12*
13********************************************/
14
15@set_time_limit(0);
16
17// Has to be run from the KB main directory for nested includes to work
18$KB_HOME = "/var/www/killboard/";
19chdir($KB_HOME); 
20
21require_once('kbconfig.php');
22require_once('common/includes/class.db.php');
23require_once('mods/value_fetch/fetcher.php');
24
25$fetch = new Fetcher();
26
27// Uncomment the type of fetch you want! And remove the die!
28die("You have been a BAD boy, configure before use\n");
29// PHP5
30//$count = $fetch->fetch_values_php5(false);
31// PHP5 and faction items (Default)
32$count = $fetch->fetch_values_php5(true);
33// PHP4
34//$count = $fetch->fetch_values_php4(false);
35// PHP4 and faction items
36//$count = $fetch->fetch_values_php4(true);
37// Ship values (Default)
38$fetch->updateShips();
39
40// Echo result
41//echo $count."\n";
42
43?>
Note: See TracBrowser for help on using the browser.