forked from YetiForceCompany/YetiForceCRM
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi.php
More file actions
29 lines (27 loc) · 1.02 KB
/
Copy pathapi.php
File metadata and controls
29 lines (27 loc) · 1.02 KB
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
<?php
/* +*******************************************************************************
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
* ("License"); You may not use this file except in compliance with the License
* The Original Code is: vtiger CRM Open Source
* The Initial Developer of the Original Code is vtiger.
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
* Contributor(s): YetiForce.com
* ****************************************************************************** */
require_once 'config/api.php';
$service = strip_tags($_REQUEST['service']);
if (isset($service)) {
if (!in_array($service, $enabledServices)) {
echo "$service - Service is not active";
return;
}
if ($service == "firefox") {
include('api/firefoxtoolbar.php');
} elseif ($service == "wordplugin") {
include('api/wordplugin.php');
} elseif ($service == "thunderbird") {
include('api/thunderbirdplugin.php');
} else {
echo "No Service Configured for $service";
}
}