- Added comprehensive AI Assistant system (aiassist/ directory): * Vector search and embedding capabilities * Typebot proxy integration * Elastic search functionality * Message classification and chat history * MCP proxy for external integrations - Implemented Court Status API (GetCourtStatus.php): * Real-time court document status checking * Integration with external court systems * Comprehensive error handling and logging - Enhanced S3 integration: * Improved file backup system with metadata * Batch processing capabilities * Enhanced error logging and recovery * Copy operations with URL fixing - Added Telegram contact creation API - Improved error logging across all modules - Enhanced callback system for AI responses - Extensive backup file storage with timestamps - Updated documentation and README files - File storage improvements: * Thousands of backup files with proper metadata * Fix operations for broken file references * Project-specific backup and recovery systems * Comprehensive file integrity checking Total: 26,461+ files added/modified including AWS SDK, vendor dependencies, and extensive backup system.
83 lines
2.6 KiB
PHP
83 lines
2.6 KiB
PHP
<?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.
|
|
*********************************************************************************/
|
|
|
|
header('Pragma: public');
|
|
header('Expires: 0');
|
|
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
|
|
header('Cache-Control: private', false);
|
|
|
|
//Opensource fix for tracking email access count
|
|
chdir(dirname(__FILE__). '/../../../');
|
|
|
|
require_once 'includes/Loader.php';
|
|
require_once 'include/utils/utils.php';
|
|
|
|
vimport('includes.http.Request');
|
|
vimport('includes.runtime.Globals');
|
|
vimport('includes.runtime.BaseModel');
|
|
vimport ('includes.runtime.Controller');
|
|
vimport('includes.runtime.LanguageHandler');
|
|
|
|
class Emails_TrackAccess_Action extends Vtiger_Action_Controller {
|
|
|
|
public function requiresPermission(\Vtiger_Request $request) {
|
|
$permissions = parent::requiresPermission($request);
|
|
$permissions[] = array('module_parameter' => 'module', 'action' => 'DetailView');
|
|
return $permissions;
|
|
}
|
|
|
|
public function checkPermission(Vtiger_Request $request) {
|
|
return parent::checkPermission($request);
|
|
}
|
|
|
|
public function process(Vtiger_Request $request) {
|
|
if (vglobal('application_unique_key') !== $request->get('applicationKey')) {
|
|
exit;
|
|
}
|
|
if((strpos($_SERVER['HTTP_REFERER'], vglobal('site_URL')) !== false)) {
|
|
exit;
|
|
}
|
|
|
|
global $current_user;
|
|
$current_user = Users::getActiveAdminUser();
|
|
|
|
if($request->get('method') == 'click') {
|
|
$this->clickHandler($request);
|
|
}else{
|
|
$parentId = $request->get('parentId');
|
|
$recordId = $request->get('record');
|
|
|
|
if ($parentId && $recordId) {
|
|
$recordModel = Emails_Record_Model::getInstanceById($recordId);
|
|
$recordModel->updateTrackDetails($parentId);
|
|
Vtiger_ShortURL_Helper::sendTrackerImage();
|
|
}
|
|
}
|
|
}
|
|
|
|
public function clickHandler(Vtiger_Request $request) {
|
|
$parentId = $request->get('parentId');
|
|
$recordId = $request->get('record');
|
|
|
|
if ($parentId && $recordId) {
|
|
$recordModel = Emails_Record_Model::getInstanceById($recordId);
|
|
$recordModel->trackClicks($parentId);
|
|
}
|
|
|
|
$redirectUrl = $request->get('redirectUrl');
|
|
if(!empty($redirectUrl)) {
|
|
return Vtiger_Functions::redirectUrl(rawurldecode($redirectUrl));
|
|
}
|
|
}
|
|
}
|
|
|
|
$track = new Emails_TrackAccess_Action();
|
|
$track->process(new Vtiger_Request($_REQUEST));
|