root/dev/common/globals.php @ 76

Revision 76, 0.9 KB (checked in by exi, 16 years ago)

Test for autocounting versionnumber based on svn.

  • Property svn:keywords set to Rev
Line 
1<?php
2// current subversion revision:
3preg_match('/\$Revision$match);
4define('SVN_REV', $match[1]);
5
6// current version: major.minor.sub
7// unpair numbers for minor = development version
8define('KB_VERSION', '1.1.'.SVN_REV);
9
10// set the running-server for id-syncs here
11define('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
16function 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
27function slashfix($fix)
28{
29    return addslashes(stripslashes($fix));
30}
31
32function 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?>
Note: See TracBrowser for help on using the browser.