Revision 77, 0.9 KB
(checked in by exi, 16 years ago)
|
Parse Error generated by $Revision$ test fix attempt
|
-
Property svn:keywords set to
Rev
|
Line | |
---|
1 | <?php |
---|
2 | // current subversion revision: |
---|
3 | preg_match('/\$Re'.'vision: (.*?) \$', '$Revision$', $match); |
---|
4 | define('SVN_REV', $match[1]); |
---|
5 | |
---|
6 | // current version: major.minor.sub |
---|
7 | // unpair numbers for minor = development version |
---|
8 | define('KB_VERSION', '1.1.'.SVN_REV); |
---|
9 | |
---|
10 | // set the running-server for id-syncs here |
---|
11 | define('KB_SYNCURL', 'http://sync.eve-dev.net/?a=sync_server'); |
---|
12 | |
---|
13 | // add new corporations here once you've added the logo to img/corps/ |
---|
14 | $corp_npc = array("Guristas", 'Serpentis Corporation'); |
---|
15 | |
---|
16 | function shorten($shorten, $by = 22) |
---|
17 | { |
---|
18 | if (strlen($shorten) > $by) |
---|
19 | { |
---|
20 | $s = substr($shorten, 0, $by) . "..."; |
---|
21 | } |
---|
22 | else $s = $shorten; |
---|
23 | |
---|
24 | return $s; |
---|
25 | } |
---|
26 | |
---|
27 | function slashfix($fix) |
---|
28 | { |
---|
29 | return addslashes(stripslashes($fix)); |
---|
30 | } |
---|
31 | |
---|
32 | function roundsec($sec) |
---|
33 | { |
---|
34 | if ($sec <= 0) |
---|
35 | $s = 0.0; |
---|
36 | else |
---|
37 | $s = $sec; |
---|
38 | |
---|
39 | return number_format(round($s, 1), 1); |
---|
40 | } |
---|
41 | ?> |
---|