root/dev/common/globals.php @ 134

Revision 134, 1.1 KB (checked in by exi, 14 years ago)

Added standings-management.
Changed installer step 3 to only use POST data now.
Character portraits should now look a bit better.
Changed all smarty template requests to use a wrapper function.
Modified standard page for IGB.
Added php compat file to reduce minimal needed version to 4.0.9.

  • 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
42function get_tpl($name)
43{
44    if (IS_IGB)
45    {
46        if (file_exists('./templates/igb_'.$name.'.tpl'))
47        {
48            return 'igb_'.$name.'.tpl';
49        }
50    }
51    return $name.'.tpl';
52}
53?>
Note: See TracBrowser for help on using the browser.