root/dev/common/globals.php @ 99

Revision 99, 0.9 KB (checked in by exi, 14 years ago)

Installer should not warn you if he indeed got an corpid.
Added warning to config so people look for unwanted spaces.
Touched globals so it has the new revision number.

  • Property svn:keywords set to Rev
Line 
1<?php
2// current subversion revision
3preg_match('/\$Re'.'vision: (.*?) \$/', '$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.2.0');
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.