<?php
if (!empty($_POST['name']))
{
$name = check($_POST['name']);
$name = substr($name, 0, 100);
if (empty($name))$err = true;
if(timeSpam(5,groups_shop_category,group_id)=='true')$err = true;
if ($err != true)
{
DB::$dbs->query("INSERT INTO groups_shop_category (`group_id`, `name`, `time`) VALUES (?,?,?)", array($id, $name, time()));
echo ok(lang('Успешно','Успішно'));
}
}
?>