mirror of
https://github.com/Mibew/mibew.git
synced 2024-11-16 09:04:11 +03:00
fix confirm encoding, check agent when posting message
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@143 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
parent
65a0ab4af8
commit
7d4344599b
@ -40,6 +40,7 @@ if( !isset($_GET['token']) ) {
|
||||
$page = array(
|
||||
'user' => topage($thread['userName']), 'agent' => topage($thread['agentName']), 'link' => $_SERVER['PHP_SELF']."?thread=$threadid&force=true"
|
||||
);
|
||||
start_html_output();
|
||||
require('../view/confirm.php');
|
||||
exit;
|
||||
}
|
||||
|
@ -59,6 +59,10 @@ if( $act == "refresh" ) {
|
||||
$kind = $isuser ? $kind_user : $kind_agent;
|
||||
$from = $isuser ? $thread['userName'] : $thread['agentName'];
|
||||
|
||||
if(!$isuser && $operator['operatorid'] != $thread['agentId']) {
|
||||
show_error("cannot send");
|
||||
}
|
||||
|
||||
post_message($threadid,$kind,$message,$from, $isuser ? null : $operator['operatorid'] );
|
||||
print_thread_messages($thread, $token, $lastid, $isuser, $outformat);
|
||||
exit;
|
||||
|
Loading…
Reference in New Issue
Block a user