forked from clearhealth/clearhealth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
65 lines (61 loc) · 1.84 KB
/
index.php
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/*****************************************************************************
* index.php
*
* Author: ClearHealth Inc. (www.clear-health.com) 2009
*
* ClearHealth(TM), HealthCloud(TM), WebVista(TM) and their
* respective logos, icons, and terms are registered trademarks
* of ClearHealth Inc.
*
* Though this software is open source you MAY NOT use our
* trademarks, graphics, logos and icons without explicit permission.
* Derivitive works MUST NOT be primarily identified using our
* trademarks, though statements such as "Based on ClearHealth(TM)
* Technology" or "incoporating ClearHealth(TM) source code"
* are permissible.
*
* This file is licensed under the GPL V3, you can find
* a copy of that license by visiting:
* http://www.fsf.org/licensing/licenses/gpl.html
*
*****************************************************************************/
/*
class Me {
var $_id;
var $_objects;
}
class User {
var $user_id;
var $person_id;
var $username;
}
*/
session_name('clearhealth');
function calcTS() {
list($usec, $sec) = explode(" ", microtime());
$ts = ((float)$usec + (float)$sec);
if (!isset($GLOBALS['gts'])) $GLOBALS['gts'] = $ts;
return $ts-$GLOBALS['gts'];
}
if (!function_exists('lcfirst')) {
function lcfirst($str) {
$str[0] = strtolower($str[0]);
return (string)$str;
}
}
function __($key) {
//$translate = Zend_Registry::get('translate');
//$rtext = $translate->_($key);
//if ($key == $rtext) {
// trigger_error("untranslated: '$key' => '',", E_USER_NOTICE);
//}
//if (strlen($rtext) == 0) {
return $key;
//}
//return $rtext;
}
calcTS();
define ('APPLICATION_ENVIRONMENT','production');
require_once './application/library/WebVista/App.php';
WebVista::getInstance()->run();