core/api/modules/crm_comments/ajax.php

21 lines
540 B
PHP
Executable File

<?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:
}
?>