πŸ“‚ File Browser

AgentAIv3
πŸŒ™ Dark Mode
🎯 Quick Launch:

πŸ“ Directories

πŸ“ tmp/ πŸ”“ Open
πŸ“ vendor/ πŸ”“ Open

πŸ“„ Files

πŸ“„ README.md
β–Ά Open πŸ“„ View Source
πŸ“ README.txt
β–Ά Open πŸ“„ View Source
πŸ“ README_content.txt
β–Ά Open πŸ“„ View Source
🐘 chat_handler.php
β–Ά Open πŸ“„ View Source
🐘 check_auth.php
β–Ά Open πŸ“„ View Source
🐘 cleanup.php
β–Ά Open πŸ“„ View Source
πŸ“„ composer.json
β–Ά Open πŸ“„ View Source
🐘 database.php
β–Ά Open πŸ“„ View Source
🐘 debug_email.php
β–Ά Open πŸ“„ View Source
🐘 debug_email_parts.php
β–Ά Open πŸ“„ View Source
🐘 debug_emails.php
β–Ά Open πŸ“„ View Source
🐘 delete_chat.php
β–Ά Open πŸ“„ View Source
🐘 fetch_emails.php
β–Ά Open πŸ“„ View Source
🐘 find_models.php
β–Ά Open πŸ“„ View Source
🐘 gemini_direct.php
β–Ά Open πŸ“„ View Source
🐘 get_chats.php
β–Ά Open πŸ“„ View Source
🐘 get_email.php
β–Ά Open πŸ“„ View Source
🐘 index.php
β–Ά Open πŸ“„ View Source
🐘 index_simple.php
β–Ά Open πŸ“„ View Source
🐘 index_test.php
β–Ά Open πŸ“„ View Source
🐘 logout.php
β–Ά Open πŸ“„ View Source
🐘 mark_read.php
β–Ά Open πŸ“„ View Source
🐘 new_chat.php
β–Ά Open πŸ“„ View Source
🐘 oauth2callback.php
β–Ά Open πŸ“„ View Source
🐘 refresh_token.php
β–Ά Open πŸ“„ View Source
🐘 rename_chat.php
β–Ά Open πŸ“„ View Source
🐘 session_config.php
β–Ά Open πŸ“„ View Source
🎨 style.css
β–Ά Open πŸ“„ View Source
🐘 switch_chat.php
β–Ά Open πŸ“„ View Source
🐘 sync_emails.php
β–Ά Open πŸ“„ View Source
🐘 test_ajax.php
β–Ά Open πŸ“„ View Source
🐘 test_api.php
β–Ά Open πŸ“„ View Source
🐘 test_cmd.php
β–Ά Open πŸ“„ View Source
🐘 test_curl.php
β–Ά Open πŸ“„ View Source
🐘 test_db.php
β–Ά Open πŸ“„ View Source
🐘 test_db_ops.php
β–Ά Open πŸ“„ View Source
🐘 test_endpoint.php
β–Ά Open πŸ“„ View Source
🐘 test_ollama.php
β–Ά Open πŸ“„ View Source
🐘 test_ollama_direct.php
β–Ά Open πŸ“„ View Source
🐘 test_openrouter.php
β–Ά Open πŸ“„ View Source
🐘 test_shell.php
β–Ά Open πŸ“„ View Source

πŸ“„ Source: rename_chat.php

<?php
session_name('INBOXZERO');
session_start();

header('Content-Type: application/json');

$input = json_decode(file_get_contents('php://input'), true);
$chatId = $input['chat_id'] ?? '';
$newTitle = trim($input['title'] ?? '');

if ($chatId && !empty($newTitle) && isset($_SESSION['chat_histories'][$chatId])) {
    // Pentru session-based, stocăm titlul separat
    if (!isset($_SESSION['chat_titles'])) {
        $_SESSION['chat_titles'] = [];
    }
    $_SESSION['chat_titles'][$chatId] = $newTitle;
    echo json_encode(['success' => true]);
} else {
    echo json_encode(['error' => 'Invalid request']);
}
?>
← Back