-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathapi.php
57 lines (49 loc) · 1.31 KB
/
api.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
<?php
/****************************************************************************************
* LiveZilla api.php
*
* Copyright 2011 LiveZilla GmbH
* All rights reserved.
* LiveZilla is a registered trademark.
*
* Improper changes to this file may cause critical errors.
***************************************************************************************/
define("IN_LIVEZILLA",true);
if(!defined("LIVEZILLA_PATH"))
exit("Error: 'LIVEZILLA_PATH' is not defined. Please define the constant 'LIVEZILLA_PATH'.");
class LiveZillaAPI
{
function LiveZillaAPI()
{
global $CONFIG;
require(LIVEZILLA_PATH . "_definitions/definitions.inc.php");
require(LIVEZILLA_PATH . "_lib/objects.global.users.inc.php");
require(LIVEZILLA_PATH . "_lib/functions.global.inc.php");
require(LIVEZILLA_PATH . "_definitions/definitions.dynamic.inc.php");
if(!setDataProvider())
exit("Error: Database connection failed.");
@register_shutdown_function('unloadDataProvider');
}
function IsOperatorAvailable()
{
return (operatorsAvailable() > 0);
}
function IsDeactivated()
{
return !getAvailability();
}
/** DEPRECATED **/
function GetOperatorList()
{
return getOperatorList();
}
function GetOperators()
{
return getOperators();
}
function Base64UrlEncode($_value)
{
return base64UrlEncode($_value);
}
}
?>