- 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.
85 lines
1.9 KiB
PHP
85 lines
1.9 KiB
PHP
<?php
|
|
require_once dirname(dirname(dirname(__FILE__))).'/lib/limonade.php';
|
|
|
|
function before()
|
|
{
|
|
layout('html_default_layout');
|
|
}
|
|
|
|
dispatch('/', 'index');
|
|
function index()
|
|
{
|
|
flash('notice', 'ON DISPLAY 2');
|
|
return html('<p>Hellooo!</p>');
|
|
}
|
|
|
|
dispatch('/two', 'index_two');
|
|
function index_two()
|
|
{
|
|
flash('notice', 'ON DISPLAY 3');
|
|
return html('<p>Hellooo!</p>');
|
|
}
|
|
dispatch('/three', 'index_three');
|
|
function index_three()
|
|
{
|
|
flash('error', 'ON DISPLAY 4');
|
|
return html('<p>Hellooo!</p>');
|
|
}
|
|
dispatch('/four', 'index_four');
|
|
function index_four()
|
|
{
|
|
return html('<p>NO FLASH MESSAGE ON NEXT PAGE</p>');
|
|
}
|
|
dispatch('/five', 'index_five');
|
|
function index_five()
|
|
{
|
|
flash('error', 'ON DISPLAY 6');
|
|
redirect_to('six');
|
|
}
|
|
dispatch('/six', 'index_six');
|
|
function index_six()
|
|
{
|
|
return html('<p>REDIRECTED FROM INDEX FIVE...</p><p>There will be no flash message on next page.</p>');
|
|
}
|
|
|
|
|
|
|
|
run();
|
|
|
|
# _INLINE templates___________________________________________________________
|
|
|
|
function html_default_layout($vars){ extract($vars);?>
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<title>Flash features test</title>
|
|
</head>
|
|
<body>
|
|
<article>
|
|
<?php echo $content;?>
|
|
|
|
<?php if(!empty($flash)): ?>
|
|
<section>
|
|
<h2>Current flash messages ( flash_now() / $flash )</h2>
|
|
<pre><code>
|
|
<?php echo var_dump(flash_now()); ?>
|
|
</code></pre>
|
|
</section>
|
|
<?php endif; ?>
|
|
</article>
|
|
<hr>
|
|
<nav>
|
|
<p><strong>Menu:</strong>
|
|
<a href="<?php echo url_for('/')?>">One</a> |
|
|
<a href="<?php echo url_for('two')?>">Two</a> |
|
|
<a href="<?php echo url_for('three')?>">Three</a> |
|
|
<a href="<?php echo url_for('four')?>">Four</a> |
|
|
<a href="<?php echo url_for('five')?>">Five</a> |
|
|
<a href="<?php echo url_for('six')?>">Six</a>
|
|
</p>
|
|
</nav>
|
|
</body>
|
|
</html>
|
|
<?php };
|