- 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.
81 lines
2.2 KiB
PHP
81 lines
2.2 KiB
PHP
<?php
|
|
/**
|
|
* This function returns
|
|
* @param $name - array name
|
|
* @param $value -
|
|
* */
|
|
if (!function_exists('addToCFArray')) {
|
|
function addToCFArray($name, $value)
|
|
{
|
|
global $PDFContent;
|
|
$PDFContent->PDFMakerCFArray[$name][] = $value;
|
|
return "";
|
|
}
|
|
}
|
|
/**
|
|
* Join array elements with a string
|
|
* @param $name - array name
|
|
* @param $glue -
|
|
* */
|
|
if (!function_exists('implodeCFArray')) {
|
|
function implodeCFArray($name, $glue)
|
|
{
|
|
global $PDFContent;
|
|
return implode($glue, $PDFContent->PDFMakerCFArray[$name]);
|
|
}
|
|
}
|
|
/**
|
|
* This function returns
|
|
* @param $name - array name
|
|
* @param $value -
|
|
* */
|
|
if (!function_exists('addToCFArrayALL')) {
|
|
function addToCFArrayALL($name, $value)
|
|
{
|
|
global $focus;
|
|
$focus->PDFMakerCFArrayALL[$name][] = $value;
|
|
return "";
|
|
}
|
|
}
|
|
/**
|
|
* Join array elements with a string
|
|
* @param $name - array name
|
|
* @param $glue -
|
|
* */
|
|
if (!function_exists('implodeCFArrayALL')) {
|
|
function implodeCFArrayALL($name, $glue)
|
|
{
|
|
global $focus;
|
|
return implode($glue, $focus->PDFMakerCFArrayALL[$name]);
|
|
}
|
|
}
|
|
/**
|
|
* This function returns the sum of values in an array.
|
|
* @param $name - array name
|
|
* */
|
|
if (!function_exists('sumCFArray')) {
|
|
function sumCFArray($name)
|
|
{
|
|
global $PDFContent;
|
|
foreach ($PDFContent->PDFMakerCFArray[$name] as $key => $number) {
|
|
$PDFContent->PDFMakerCFArray[$name][$key] = its4you_formatNumberFromPDF($number);
|
|
}
|
|
$value = array_sum($PDFContent->PDFMakerCFArray[$name]);
|
|
return its4you_formatNumberToPDF($value);
|
|
}
|
|
}
|
|
/**
|
|
* This function returns the sum of values in an array.
|
|
* @param $name - array name
|
|
* */
|
|
if (!function_exists('sumCFArrayAll')) {
|
|
function sumCFArrayAll($name)
|
|
{
|
|
global $focus;
|
|
foreach ($focus->PDFMakerCFArrayALL[$name] as $key => $number) {
|
|
$focus->PDFMakerCFArrayALL[$name][$key] = its4you_formatNumberFromPDF($number);
|
|
}
|
|
$value = array_sum($focus->PDFMakerCFArrayALL[$name]);
|
|
return its4you_formatNumberToPDF($value);
|
|
}
|
|
} |