<?php
require_once __DIR__ . '/../includes/config.php';
if (file_exists(__DIR__ . '/../includes/auth.php')) require_once __DIR__ . '/../includes/auth.php';
require_once __DIR__ . '/functions.php';

$id = (int)($_GET['id'] ?? 0);
$status = (int)($_GET['status'] ?? -1);
$res = infl_set_status($id, $status);
infl_redirect('list.php?msg='.urlencode($res['message']));
