[go: up one dir, main page]

Menu

[r4]: / trunk / core / core.class.php  Maximize  Restore  History

Download this file

41 lines (34 with data), 789 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
// +--------------------------------------------+
// | Twiggi web-based groupware. |
// | |
// | For copyright and license information |
// | please read the COPYRIGHT file. |
// +--------------------------------------------+
class core
{
static $instance = false;
private $major_version = 2;
private $minor_version = 0;
private $state_version = "ALPHA";
private function __construct()
{
}
public function get_instance()
{
if (!core::$instance)
{
core::$instance = new core();
}
return core::$instance;
}
public function get_version()
{
return $this->major_version.".".$this->minor_version." (".$this->state_version.")";
}
public function show_page()
{
print "Twiggi web-based groupware core module is up and running. Version ";
}
}
?>