core/api/modules/org/ajax.php

22 lines
743 B
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
if ( $_SESSION['dostup']!='a' ) header( 'Location: /login/' );// && $dostup!='m'
switch( @$_POST['act'] ) {
//Сохранение статуса задачи
case 'saveTaskStatus':
\DB::set('UPDATE `tasks` SET `status`="' . $_POST['status'] . '" WHERE `id` = "' . $_POST['id'] . '"');
break;
case 'save':/*Сохранение заметки*/
\DB::set( "UPDATE `zametka` SET `txt`=? WHERE `user_id` = ?", array( $_POST['txt'], $_SESSION['user_id'] ) );
break;
case 'loados':/*загружаем обратную связь со статусом не прочитано*/
unset( $a );
$a['status'] = 0;
$massiv = $db -> get_massiv( 'otzyv', $a, 'id' );
$num = $db -> num;
break;
}
?>