[ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Summary view] [Print] [Text view]
1 <?php 2 /*+******************************************************************************** 3 * The contents of this file are subject to the vtiger CRM Public License Version 1.0 4 * ("License"); You may not use this file except in compliance with the License 5 * The Original Code is: vtiger CRM Open Source 6 * The Initial Developer of the Original Code is vtiger. 7 * Portions created by vtiger are Copyright (C) vtiger. 8 * All Rights Reserved. 9 *********************************************************************************/ 10 11 header('Pragma: public'); 12 header('Expires: 0'); 13 header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); 14 header('Cache-Control: private', false); 15 16 //Opensource fix for tracking email access count 17 chdir('../../../'); 18 19 require_once 'includes/Loader.php'; 20 require_once 'include/utils/utils.php'; 21 22 vimport('includes.http.Request'); 23 vimport('includes.runtime.Globals'); 24 vimport('includes.runtime.BaseModel'); 25 vimport ('includes.runtime.Controller'); 26 27 class Emails_TrackAccess_Action extends Vtiger_Action_Controller { 28 29 public function process(Vtiger_Request $request) { 30 if (vglobal('application_unique_key') !== $request->get('applicationKey')) { 31 exit; 32 } 33 34 $parentId = $request->get('parentId'); 35 $recordId = $request->get('record'); 36 37 if ($parentId && $recordId) { 38 $recordModel = Emails_Record_Model::getInstanceById($recordId); 39 $recordModel->updateTrackDetails($parentId); 40 } 41 } 42 } 43 44 $track = new Emails_TrackAccess_Action(); 45 $track->process(new Vtiger_Request($_REQUEST));
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |