<?php

require_once '../../../../init.php';
require_once "../../../../includes/ticketfunctions.php";

$activeTemplate = $whmcs->getClientAreaTemplate();
$kbarticles = getKBAutoSuggestions($text);
if (count($kbarticles)) {
    echo json_encode($kbarticles);
}
exit;