Deploy: 2026-05-24 02:04:24

This commit is contained in:
Hamza-Ayed
2026-05-24 02:04:24 +03:00
parent 922c2c0b06
commit 291e0f270d
2 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<?php
if (($_GET['token'] ?? '') !== 'nabeh_test_audio_1298') {
http_response_code(403);
die('Unauthorized access');
}
require_once dirname(__DIR__) . '/app/bootstrap.php';
use App\Core\Database;
header('Content-Type: text/plain; charset=utf-8');
echo "=== Chatbot Rules in DB ===\n";
try {
$rules = Database::select("SELECT id, company_id, trigger_type, is_active, keyword, CHAR_LENGTH(ai_prompt) as prompt_len, CHAR_LENGTH(gemini_api_key) as key_len FROM chatbot_rules");
print_r($rules);
echo "\n=== Sessions in DB ===\n";
$sessions = Database::select("SELECT id, company_id, name, session_key, status, phone FROM whatsapp_sessions");
print_r($sessions);
} catch (\Exception $e) {
echo "Error: " . $e->getMessage() . "\n";
}