- 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.
115 lines
3.7 KiB
PHP
115 lines
3.7 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/logging.php');
|
|
require_once('include/utils/utils.php');
|
|
// ITS4YOU-CR SlOl 20.12.2010 R4U singlerow
|
|
require_once('modules/ITS4YouReports/ITS4YouReports.php');
|
|
|
|
global $app_strings;
|
|
global $app_list_strings;
|
|
global $mod_strings;
|
|
// ITS4YOU-CR SlOl 20.12.2010 R4U singlerow
|
|
$current_module_strings = return_module_language($current_language, 'ITS4YouReports');
|
|
global $list_max_entries_per_page;
|
|
global $urlPrefix;
|
|
global $log;
|
|
global $currentModule;
|
|
global $image_path;
|
|
global $theme;
|
|
global $focus_list;
|
|
$recordid = vtlib_purify($_REQUEST['record']);
|
|
|
|
$BLOCK0 = $BLOCK1 = $BLOCK2 = "";
|
|
|
|
$SumOptions = array();
|
|
$secondarymodule = '';
|
|
$secondarymodules =Array();
|
|
|
|
$ITS4YouReports = ITS4YouReports::getStoredITS4YouReport();
|
|
|
|
$primarymodule = $ITS4YouReports->primarymodule;
|
|
$reportid = $ITS4YouReports->record;
|
|
$modulename_prefix="";
|
|
if(isset($_REQUEST["selectedmodule"]) && $_REQUEST["selectedmodule"]!=""){
|
|
$modulename = vtlib_purify($_REQUEST["selectedmodule"]);
|
|
$ITS4YouReports->getSecModuleColumnsList($modulename);
|
|
$module_array["id"] = $modulename;
|
|
$modulename_arr = explode("x", $modulename);
|
|
$modulename_id = $modulename_arr[0];
|
|
if($modulename_arr[1]!=""){
|
|
$modulename_prefix = $modulename_arr[1];
|
|
}
|
|
}else{
|
|
$module_array["module"]=$ITS4YouReports->primarymodule;
|
|
$module_array["id"]=$ITS4YouReports->primarymoduleid;
|
|
|
|
$modulename = $module_array["module"];
|
|
$modulename_lbl = getTranslatedString($modulename,$modulename);
|
|
$availModules[$module_array["id"]] = $modulename_lbl;
|
|
|
|
$modulename_id=$module_array["id"];
|
|
}
|
|
|
|
$relmod_arr = explode("x", $modulename);
|
|
if (is_numeric($relmod_arr[0])) {
|
|
$stabid = $relmod_arr[0];
|
|
$smodule = vtlib_getModuleNameById($stabid);
|
|
}
|
|
$SPSumOptions[$module_array["id"]][$modulename_id] = array();
|
|
$SPSumOptions[$module_array["id"]][$modulename_id] = sgetSummariesOptions($modulename);
|
|
|
|
$step5_result="";
|
|
|
|
if(!isset($_REQUEST["selectedmodule"])){
|
|
$secondarymodule_arr = $ITS4YouReports->getReportRelatedModules($module_array["id"]);
|
|
|
|
$ITS4YouReports->getSecModuleColumnsList($secondarymodule);
|
|
$available_modules[]=array("id"=>$ITS4YouReports->primarymoduleid,"name"=>$modulename_lbl,"checked"=>"checked");
|
|
foreach ($secondarymodule_arr as $key=>$value) {
|
|
$available_modules[] = array("id"=>$value["id"],"name"=>$value["name"],"checked"=>"");
|
|
}
|
|
$AV_M = Zend_JSON::encode($available_modules);
|
|
$step5_result .= $AV_M."(!A#V_M@M_M#A!)";
|
|
}
|
|
/*$SumOptions2 = getSecondaryColumns($SumOptions2,$secondarymodule,$ITS4YouReports);
|
|
foreach ($SumOptions2 as $key=>$value) {
|
|
$SPSumOptions[$key]=$value;
|
|
}*/
|
|
|
|
$BLOCK1 = "";
|
|
|
|
foreach ($SPSumOptions AS $module_key => $SumOptions)
|
|
{
|
|
$BLOCK2 = "";
|
|
$r_modulename = vtlib_getModuleNameById($module_key);
|
|
$r_modulename_lbl = getTranslatedString($r_modulename,$r_modulename);
|
|
|
|
foreach ($SumOptions as $SumOptions_key=>$SumOptions_value) {
|
|
foreach ($SumOptions_value AS $optgroup => $optionsdata)
|
|
{
|
|
if ($BLOCK2 != "")
|
|
$BLOCK2 .= "(|@!@|)";
|
|
$BLOCK2 .= $optgroup;
|
|
$BLOCK2 .= "(|@|)";
|
|
|
|
$BLOCK2 .= Zend_JSON::encode($optionsdata);
|
|
}
|
|
|
|
$BLOCK1 .= $module_key."(!#_ID@ID_#!)".$r_modulename_lbl."(!#_ID@ID_#!)".$BLOCK2;
|
|
}
|
|
}
|
|
|
|
$step5_result .= $BLOCK1;
|
|
|
|
echo $step5_result;
|
|
?>
|