Файл: groups/handler/shop.goods.php
Строк: 13
<?php
if (!empty($_POST['name']))
{
$name = check($_POST['name']);
$name = substr($name, 0, 100);
$about = check($_POST['about']);
$about = substr($about, 0, 500);
if (empty($name))$err = true;
if (empty($about))$err = true;
if(timeSpam(2,groups_shop_goods,group_id)=='true')$err = true;
if ($err != true)
{
DB::$dbs->query("INSERT INTO groups_shop_goods (`name`,`about`,`group_id`,`cat_id`, `time`) VALUES (?,?,?,?,?)", array($name,$about,$id,$cat, time()));
$add = $arr_group['count_shop']+1;
DB::$dbs->query("UPDATE groups SET
`count_shop` = ?
WHERE `id` = ? ", array(
$add,
$id));
echo ok(lang('Успешно','Успішно'));
//go(URL.'/audio/?id='.$user_id.'&r='.rand(0000,9999));
}
}
?>