root/dev/common/globals.php @ 46

Revision 46, 0.8 KB (checked in by andrewgunn, 14 years ago)

Added the Sync_Server mod, which is a stand-alone server to handle the pilot synchronization. I've also updated globals.php to reflect the new address.

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://sync.eve-dev.net/?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.