if(!isset($_SESSION['aurzon_admin'])) exit("Unauthorized");
$feedFile = $_SERVER['DOCUMENT_ROOT']."/blog/feed.json";
$category = trim($_POST['category'] ?? "General");
$content = trim($_POST['content'] ?? "");
if(strpos($lc,"ai")!==false) $keywords[]="Artificial Intelligence";
if(strpos($lc,"chatgpt")!==false) $keywords[]="ChatGPT";
if(strpos($lc,"google")!==false) $keywords[]="Google";
$json=json_decode(file_get_contents($feedFile),true);
file_put_contents($feedFile,json_encode($data,JSON_PRETTY_PRINT));