<?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) { }
/* +*********************************************************************************************************************************** * The contents of this file are subject to the YetiForce Public License Version 1.1 (the "License"); you may not use this file except * in compliance with the License. * Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. * See the License for the specific language governing rights and limitations under the License. * The Original Code is YetiForce. * The Initial Developer of the Original Code is YetiForce. Portions created by YetiForce are Copyright (C) www.yetiforce.com. * All Rights Reserved. * *********************************************************************************************************************************** */ $currentPath = dirname(__FILE__); $crmPath = $currentPath . '/../'; chdir($crmPath); require_once 'include/database/PearDatabase.php'; require_once 'libraries/restler/restler.php'; require_once 'include/utils/VtlibUtils.php'; AppConfig::iniSet('error_log', $root_directory . 'cache/logs/mobileApps.log'); if (!in_array('mobile', $enabledServices)) { require_once 'include/exceptions/AppException.php'; $apiLog = new APINoPermittedException(); $apiLog->stop(['status' => 0, 'message' => 'Mobile - Service is not active']); } $adb = PearDatabase::getInstance(); $log =& LoggerManager::getLogger('mobileApps'); vglobal('log', $log); $adb = PearDatabase::getInstance(); $log->info('Start mobile service'); spl_autoload_register('spl_autoload'); $r = new Restler(); $r->addAPIClass('Test'); $r->addAPIClass('HistoryCall'); $r->addAPIClass('PushCall');
//Disable Stat Tracking of vtiger CRM instance $disable_stats_tracking = false; // Generating Unique Application Key $application_unique_key = '_VT_APP_UNIQKEY_'; // trim descriptions, titles in listviews to this value $listview_max_textlength = 40; // Maximum time limit for PHP script execution (in seconds) $php_max_execution_time = 0; // Set the default timezone as per your preference $default_timezone = '_TIMEZONE_'; /** If timezone is configured, try to set it */ if (isset($default_timezone) && function_exists('date_default_timezone_set')) { @date_default_timezone_set($default_timezone); } // Change of logs directory with PHP errors AppConfig::iniSet('error_log', $root_directory . 'cache/logs/phpError.log'); // Enable sharing of records? $shared_owners = true; // Maximum length of characters for title $title_max_length = 60; // Maximum length for href tag $href_max_length = 35; // Maximum number of displayed search results $max_number_search_result = 100; //Should menu breadcrumbs be visible? true = show, false = hide $breadcrumbs = true; //Separator for menu breadcrumbs default value = '>' $breadcrumbs_separator = '>'; //Pop-up window type with record list 1 - Normal , 2 - Expanded search $popupType = 1; //Minimum cron frequency [min]
<?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. *************************************************************************************/ AppConfig::iniSet("auto_detect_line_endings", true); class Import_CSVReader_Reader extends Import_FileReader_Reader { public function arrayCombine($key, $value) { $combine = array(); $dup = array(); for ($i = 0; $i < count($key); $i++) { if (array_key_exists($key[$i], $combine)) { if (!$dup[$key[$i]]) { $dup[$key[$i]] = 1; } $key[$i] = $key[$i] . "(" . ++$dup[$key[$i]] . ")"; } $combine[$key[$i]] = $value[$i]; } return $combine; } public function getFirstRowData($hasHeader = true) { global $default_charset;
/* {[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'))); $server->wsdl->addComplexType('common_array1', 'complexType', 'array', '', 'SOAP-ENC:Array', array(), array(array('ref' => 'SOAP-ENC:arrayType', 'wsdl:arrayType' => 'tns:common_array[]')), 'tns:common_array'); $server->wsdl->addComplexType('add_contact_detail_array', 'complexType', 'array', '', array('salutation' => array('name' => 'salutation', 'type' => 'xsd:string'), 'firstname' => array('name' => 'firstname', 'type' => 'xsd:string'), 'phone' => array('name' => 'phone', 'type' => 'xsd:string'), 'lastname' => array('name' => 'lastname', 'type' => 'xsd:string'), 'mobile' => array('name' => 'mobile', 'type' => 'xsd:string'), 'parentid' => array('name' => 'parentid', 'type' => 'xsd:string'), 'leadsource' => array('name' => 'leadsource', 'type' => 'xsd:string')));
/** * If optional parameter is specified it determines the * probability that the gc (garbage collection) routine is started * and session data is cleaned up * * It returns the previous value of this property * * @param bool $gcProbability If specified it will replace the previous value * of this property * * @static * @access public * @return bool The previous value of the property */ public static function setGcProbability($gcProbability = null) { $return = ini_get('session.gc_probability'); if (isset($gcProbability) && is_int($gcProbability) && $gcProbability >= 1 && $gcProbability <= 100) { AppConfig::iniSet('session.gc_probability', $gcProbability); } return $return; }