- 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.
94 lines
3.9 KiB
PHP
94 lines
3.9 KiB
PHP
<?php
|
|
|
|
/*+********************************************************************************
|
|
* The content of this file is subject to the Reports 4 You license.
|
|
* ("License"); You may not use this file except in compliance with the License
|
|
* The Initial Developer of the Original Code is IT-Solutions4You s.r.o.
|
|
* Portions created by IT-Solutions4You s.r.o. are Copyright(C) IT-Solutions4You s.r.o.
|
|
* All Rights Reserved.
|
|
********************************************************************************/
|
|
|
|
require_once('Smarty_setup.php');
|
|
require_once("data/Tracker.php");
|
|
require_once("include/utils/utils.php");
|
|
require_once("include/calculator/Calc.php");
|
|
|
|
global $currentModule,$default_charset;
|
|
global $app_strings;
|
|
global $app_list_strings;
|
|
global $moduleList;
|
|
global $theme;
|
|
$theme_path="themes/".$theme."/";
|
|
$image_path=$theme_path."images/";
|
|
|
|
$userName = getFullNameFromArray('Users', $current_user->column_fields);
|
|
$smarty_obj = new vtigerCRM_Smarty;
|
|
$header_array = getHeaderArray();
|
|
$smarty_obj->assign("HEADERS",$header_array);
|
|
$smarty_obj->assign("THEME",$theme);
|
|
$smarty_obj->assign("IMAGEPATH",$image_path);
|
|
$smarty_obj->assign("USER",$userName);
|
|
|
|
$qc_modules = getQuickCreateModules();
|
|
$smarty_obj->assign("QCMODULE", $qc_modules);
|
|
$smarty_obj->assign("APP", $app_strings);
|
|
|
|
$cnt = ITS4YouReports_Functions_Helper::count($qc_modules);
|
|
$smarty_obj->assign("CNT", $cnt);
|
|
|
|
$smarty_obj->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']);
|
|
$smarty_obj->assign("MODULE_NAME", $currentModule);
|
|
$date = new DateTimeField(null);
|
|
$smarty_obj->assign("DATE", $date->getDisplayDateTimeValue());
|
|
$smarty_obj->assign("CURRENT_USER_MAIL", $current_user->email1);
|
|
$smarty_obj->assign("CURRENT_USER", $current_user->user_name);
|
|
$smarty_obj->assign("CURRENT_USER_ID", $current_user->id);
|
|
$smarty_obj->assign("MODULELISTS",$app_list_strings['moduleList']);
|
|
$smarty_obj->assign("CATEGORY",getParentTab());
|
|
$smarty_obj->assign("CALC",get_calc($image_path));
|
|
$smarty_obj->assign("MENUSTRUCTURE",getMenuStructure($currentModule));
|
|
$smarty_obj->assign("ANNOUNCEMENT",get_announcements());
|
|
$smarty_obj->assign("USE_ASTERISK", get_use_asterisk($current_user->id));
|
|
|
|
if (is_admin($current_user)) $smarty_obj->assign("ADMIN_LINK", "<a href='index.php?module=Settings&action=index'>".$app_strings['LBL_SETTINGS']."</a>");
|
|
|
|
$module_path="modules/".$currentModule."/";
|
|
|
|
require_once('include/Menu.php');
|
|
|
|
//Assign the entered global search string to a variable and display it again
|
|
if($_REQUEST['query_string'] != '')
|
|
$smarty_obj->assign("QUERY_STRING",htmlspecialchars($_REQUEST['query_string'],ENT_QUOTES,$default_charset));//BUGIX " Cross-Site-Scripting "
|
|
else
|
|
$smarty_obj->assign("QUERY_STRING","$app_strings[LBL_SEARCH_STRING]");
|
|
|
|
global $module_menu;
|
|
|
|
require_once('data/Tracker.php');
|
|
$tracFocus=new Tracker();
|
|
$list = $tracFocus->get_recently_viewed($current_user->id);
|
|
$smarty_obj->assign("TRACINFO",$list);
|
|
|
|
// Gather the custom link information to display
|
|
include_once('vtlib/Vtiger/Link.php');
|
|
$hdrcustomlink_params = Array('MODULE'=>$currentModule);
|
|
$COMMONHDRLINKS = Vtiger_Link::getAllByType(Vtiger_Link::IGNORE_MODULE, Array('ONDEMANDLINK', 'HEADERLINK','HEADERSCRIPT', 'HEADERCSS'), $hdrcustomlink_params);
|
|
$smarty_obj->assign('HEADERLINKS', $COMMONHDRLINKS['HEADERLINK']);
|
|
$smarty_obj->assign('ONDEMANDLINKS', $COMMONHDRLINKS['ONDEMANDLINK']);
|
|
$smarty_obj->assign('HEADERSCRIPTS', $COMMONHDRLINKS['HEADERSCRIPT']);
|
|
$smarty_obj->assign('HEADERCSS', $COMMONHDRLINKS['HEADERCSS']);
|
|
// END
|
|
|
|
// Pass on the version information
|
|
global $vtiger_current_version;
|
|
$smarty_obj->assign('VERSION', $vtiger_current_version);
|
|
// END
|
|
|
|
$sql="select * from vtiger_organizationdetails";
|
|
$result = $adb->pquery($sql, array());
|
|
//Handle for allowed organation logo/logoname likes UTF-8 Character
|
|
$organization_logo = decode_html($adb->query_result($result,0,'logoname'));
|
|
$smarty_obj->assign("LOGO",$organization_logo);
|
|
|
|
$smarty_obj->display(vtlib_getModuleTemplate($currentModule, 'Reports4YouHeader.tpl'));
|
|
?>
|