<?php

define("IN_SITE", true);
require_once(__DIR__."/../../libs/db.php");
require_once(__DIR__."/../../libs/helper.php");
$CMSNT = new DB();

if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    // Validate service ID
    $service_id = validate_int($_POST['id'], 1);
    if ($service_id !== false && $row = $CMSNT->get_row_safe("SELECT * FROM `services` WHERE `id` = ?", [$service_id])) {
        die($row['content']);
    }
}
