root/dev/common/globals.php @ 44

Revision 44, 0.8 KB (checked in by exi, 14 years ago)

Changed Synchronization to use http-request class
Changed portrait generation to use http class and fixed some issues there aswell
Ordered Killist on alliance losses / explicit cast to int from URI
Added date support to comments (autoupgrading, just save your settings once again)
Added a combined view to campaigns so you can filter kills and losses for each shipclass on one page
Cast corpid to int from URI
Changed DB, define DB_HALTONERROR in your config to stop page generation on error.
Set minor version to svn revision
Adding base alliance logos as stated on  http://www.eve-dev.net/forums/viewtopic.php?t=35 Thanks to DarkXeRoX for those.

Line 
1<?php
2// current version: major.minor.sub
3// unpair numbers for minor = development version
4define('KB_VERSION', '1.1.44');
5
6// set the running-server for id-syncs here
7define('KB_SYNCURL', 'http://www.eve-dev.net/killboard_testing/?a=sync_server');
8
9// add new corporations here once you've added the logo to img/corps/
10$corp_npc = array("Guristas", 'Serpentis Corporation');
11
12function shorten($shorten, $by = 22)
13{
14    if (strlen($shorten) > $by)
15    {
16        $s = substr($shorten, 0, $by) . "...";
17    }
18    else $s = $shorten;
19
20    return $s;
21}
22
23function slashfix($fix)
24{
25    return addslashes(stripslashes($fix));
26}
27
28function roundsec($sec)
29{
30    if ($sec <= 0)
31        $s = 0.0;
32    else
33        $s = $sec;
34
35    return number_format(round($s, 1), 1);
36}
37?>
Note: See TracBrowser for help on using the browser.