/*+********************************************************************************** * 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. ************************************************************************************/ header('Content-Type: text/html;charset=utf-8'); chdir(dirname(__FILE__) . '/../../'); /** * URL Verfication - Required to overcome Apache mis-configuration and leading to shared setup mode. */ require_once 'include/main/WebUI.php'; if (!in_array('mobileModule', $enabledServices)) { $apiLog = new APINoPermittedException(); $apiLog->stop(['status' => 0, 'message' => 'MobileModule - Service is not active']); } include_once dirname(__FILE__) . '/api/Request.php'; include_once dirname(__FILE__) . '/api/Response.php'; include_once dirname(__FILE__) . '/api/Session.php'; include_once dirname(__FILE__) . '/api/ws/Controller.php'; include_once dirname(__FILE__) . '/Mobile.php'; include_once dirname(__FILE__) . '/ui/Viewer.php'; include_once dirname(__FILE__) . '/ui/models/Module.php'; // Required for auto de-serializatio of session data class Mobile_Index_Controller { static $opControllers = array('logout' => array('file' => '/ui/Logout.php', 'class' => 'Mobile_UI_Logout'), 'login' => array('file' => '/ui/Login.php', 'class' => 'Mobile_UI_Login'), 'loginAndFetchModules' => array('file' => '/ui/LoginAndFetchModules.php', 'class' => 'Mobile_UI_LoginAndFetchModules'), 'listModuleRecords' => array('file' => '/ui/ListModuleRecords.php', 'class' => 'Mobile_UI_ListModuleRecords'), 'fetchRecordWithGrouping' => array('file' => '/ui/FetchRecordWithGrouping.php', 'class' => 'Mobile_UI_FetchRecordWithGrouping'), 'searchConfig' => array('file' => '/ui/SearchConfig.php', 'class' => 'Mobile_UI_SearchConfig')); static function process(Mobile_API_Request $request) {
<?php /* {[The file is published on the basis of YetiForce Public License * that can be found in the following directory: licenses/License.html]} */ require_once 'include/ConfigUtils.php'; if (!in_array('yetiportal', $enabledServices)) { require_once 'include/exceptions/AppException.php'; $apiLog = new APINoPermittedException(); $apiLog->stop(['status' => 0, 'message' => 'YetiPortal - Service is not active']); } require_once 'vtlib/Vtiger/Module.php'; require_once 'include/main/WebUI.php'; require_once 'libraries/nusoap/nusoap.php'; require_once 'modules/HelpDesk/HelpDesk.php'; require_once 'modules/Emails/mail.php'; require_once 'modules/Users/Users.php'; require_once 'modules/Settings/CustomerPortal/helpers/CustomerPortalPassword.php'; AppConfig::iniSet('error_log', $root_directory . 'cache/logs/yetiportal.log'); /** Configure language for server response translation */ $current_language = vglobal('current_language'); if (!isset($current_language)) { $current_language = vglobal('default_language'); } $log =& LoggerManager::getLogger('portal'); $userid = getPortalUserid(); $user = new Users(); $current_user = $user->retrieveCurrentUserInfoFromFile($userid); $NAMESPACE = 'http://www.yetiforce.com'; $server = new soap_server(); $server->configureWSDL('customerportal'); $server->wsdl->addComplexType('common_array', 'complexType', 'array', '', array('fieldname' => array('name' => 'fieldname', 'type' => 'xsd:string')));
<?php /* {[The file is published on the basis of YetiForce Public License that can be found in the following directory: licenses/License.html]} */ chdir(__DIR__ . '/../'); require_once 'include/main/WebUI.php'; require_once 'api/webservice/Core/BaseAction.php'; require_once 'api/webservice/Core/APISession.php'; require_once 'api/webservice/API.php'; if (!in_array('webservice', $enabledServices)) { $apiLog = new APINoPermittedException(); $apiLog->stop(['status' => 0, 'Encrypted' => 0, 'error' => ['message' => 'Webservice - Service is not active']]); } AppConfig::iniSet('error_log', $root_directory . 'cache/logs/webservice.log'); try { $api = new API(); $api->preProcess(); $api->process(); $api->postProcess(); } catch (APIException $e) { }
<?php /* {[The file is published on the basis of YetiForce Public License that can be found in the following directory: licenses/License.html]} */ chdir(__DIR__ . '/../'); require_once 'include/ConfigUtils.php'; if (!in_array('dav', $enabledServices)) { require_once 'include/exceptions/AppException.php'; $apiLog = new APINoPermittedException(); $apiLog->stop('Dav - Service is not active'); } AppConfig::iniSet('error_log', $root_directory . 'cache/logs/dav.log'); $baseUri = $_SERVER['SCRIPT_NAME']; /* Database */ $pdo = new PDO('mysql:host=' . $dbconfig['db_server'] . ';dbname=' . $dbconfig['db_name'] . ';charset=utf8', $dbconfig['db_username'], $dbconfig['db_password']); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); /* //Mapping PHP errors to exceptions function exception_error_handler($errno, $errstr, $errfile, $errline ) { throw new ErrorException($errstr, 0, $errno, $errfile, $errline); } set_error_handler("exception_error_handler"); */ // Autoloader require_once 'libraries/SabreDAV/autoload.php'; // Backends $authBackend = new Yeti\DAV_Auth_Backend_PDO($pdo); $principalBackend = new Yeti\DAVACL_PrincipalBackend_PDO($pdo); $nodes = [new Sabre\DAVACL\PrincipalCollection($principalBackend)]; if ($enableCalDAV) { $caldavBackend = new Yeti\CalDAV_Backend_PDO($pdo); $nodes[] = new Sabre\CalDAV\Principal\Collection($principalBackend);