core/api/modules/crm_comments/ajax.php

21 lines
540 B
PHP
Raw Permalink Normal View History

2022-12-11 13:55:49 +05:00
<?php
switch(@$_POST['act']) {
/* ----------------------------------------------------------------------
13.06.2022
Добавление коментария к задаче
---------------------------------------------------------------------- */
case 'add_comment':
unset( $_POST['act'] );
$_POST['t'] = time();
$_POST['user_id'] = $_SESSION['user_id'];
$_POST['txt'] = nl2br( $_POST['txt'] );
$db -> add ( 'crm_comments', $_POST );
break;
default:
}
?>