- 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
1.7 KiB
PHP
83 lines
1.7 KiB
PHP
<?php
|
|
|
|
require_once dirname(dirname(dirname(__FILE__))).'/lib/limonade.php';
|
|
|
|
dispatch('/render0', 'test_render0');
|
|
function test_render0()
|
|
{
|
|
return render("Lorem ipsum dolor sit amet.");
|
|
}
|
|
|
|
dispatch('/render1', 'test_render1');
|
|
function test_render1()
|
|
{
|
|
return render("Lorem %s dolor sit amet.", null, array('ipsum'));
|
|
}
|
|
|
|
dispatch('/layout', 'layout_example');
|
|
function layout_example()
|
|
{
|
|
layout('html_default_layout');
|
|
return render('hello!');
|
|
}
|
|
|
|
dispatch('/layout2', 'layout_example2');
|
|
function layout_example2()
|
|
{
|
|
layout('html_default_layout');
|
|
return render('html_default_view');
|
|
}
|
|
|
|
dispatch('/content_for', 'content_for_example');
|
|
function content_for_example()
|
|
{
|
|
return render('html_default_view', 'html_default_layout');
|
|
}
|
|
|
|
dispatch('/partial', 'partial_example');
|
|
function partial_example()
|
|
{
|
|
layout('html_default_layout');
|
|
return partial('no layout there %s', array('buddy'));
|
|
}
|
|
|
|
dispatch('/text', 'text_file');
|
|
function text_file()
|
|
{
|
|
return render_file(dirname(dirname(__FILE__)).'/data/empty_text_file.txt');
|
|
}
|
|
|
|
dispatch('/jpeg', 'jpeg_file');
|
|
function jpeg_file()
|
|
{
|
|
return render_file(dirname(dirname(__FILE__)).'/data/deer.jpg');
|
|
}
|
|
|
|
dispatch('/autorender', 'empty_controller');
|
|
function empty_controller()
|
|
{
|
|
|
|
}
|
|
|
|
function autorender($route){
|
|
return "AUTORENDERED OUTPUT for ".$route['callback'];
|
|
}
|
|
|
|
run();
|
|
|
|
|
|
# _INLINE templates___________________________________________________________
|
|
|
|
function html_default_layout($vars){ extract($vars);?>
|
|
<html><body>
|
|
<?php echo $content; ?>
|
|
<?php if(isset($side)) echo $side; ?>
|
|
</body></html><?php };
|
|
|
|
function html_default_view($vars){ extract($vars);?>
|
|
<p>my content</p>
|
|
<?php content_for('side');?>
|
|
<p><?php echo 'my'; ?> sidebar</p>
|
|
<?php end_content_for();?>
|
|
<?php };
|