/var/www/myprog.com.ua/site/app
NameSizeModeActions
actions/-0755rm
config/-0755rm
images/-0755rm
objects/-0755rm
sounds/-0755rm
views/-0755rm
webix/-0755rm
api.php26490644editdlrm
app.css101610644editdlrm
application.js162860644editdlrm
http_client.js572980644editdlrm
index.php37250644editdlrm
login.php65170644editdlrm
sendto.php10280644editdlrm
sip-0.7.8.js3761560644editdlrm
socket_io_client.js258230644editdlrm
udp.php6200644editdlrm
websocket.js155030644editdlrm
Edit: /var/www/myprog.com.ua/site/app/index.php (3725B)
403, 'message' => 'authentication error')); exit(0); } function secToTime($val) { $time = new DateTime(); $time->setTime(0, 0, $val); $time = $time->format('H:i:s'); return $time; } function send_chat_message($request) { global $conf; global $operator; $data['error'] = 0; $dateU = time(); $name = '<Диспетчер - ' . $operator['name'] . ">\n"; $message = $request['message']; $result = db_query("INSERT INTO `chat` SET city_id=" . $operator['city_id'] . ",`ch`='0',`poz`='0',`time`='" . $dateU . "',`message`='" . mysql_filtr($name . $message) . "'"); $msg = 'tc|' . date("H-i-s") . "$name" . $message . "|" . date("H-i-s") . "|0|0|" . $message . "|0|" . $name . "|~"; $cmd = 'c:tc|m:' . base64_encode($msg) . '|~'; if (mysql_insert_id() > 0) { toOther(0, $cmd); toWS(json_encode( array( 'cmd' => 'chat_message', 'city_id' => $operator['city_id'], 'data' => array( 'mid' => mysql_insert_id(), 'time' => time(), 'car_id' => 0, 'ch' => 0, 'poz' => 0, 'private' => 0, 'message' => $name . $message ) ) )); $data['response']['id'] = mysql_insert_id(); $data['response']['result'] = true; } else { $data['error'] = 101; $data['request'] = $_REQUEST; $data['error_msg'] = 'sql error'; } return $data; } ?> MyProg:<?php echo $conf['taxi_name'] ?>