Пример #1
0
function close_all_alarms()
{
    //Getting the user. We delete only the alarm of the current user
    $user = Session::get_session_user();
    //Getting the file with all the sql queries for closing the alarms
    $file = Alarm::close_all();
    //Executing the sql for closing the queries in background
    $cmd = 'php /usr/share/ossim/scripts/alarms/bg_alarms.php ? ? > /dev/null 2>&1 &';
    $params = array($user, $file);
    Util::execute_command($cmd, $params);
    $return['error'] = FALSE;
    $return['msg'] = '';
    return $return;
}