root/mods/Sync_Server/globals.php @ 432

Revision 180, 0.8 KB (checked in by exi, 15 years ago)

Copied potential fix for the sync error from devtree.

Line 
1<?php
2// current version: major.minor.sub
3// unpair numbers for minor = development version
4define('KB_VERSION', '1.4.1');
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.