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:
Evgeny Gryaznov 2008-10-02 13:25:26 +00:00
parent 65a0ab4af8
commit 7d4344599b
2 changed files with 5 additions and 0 deletions

View File

@ -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;
}

View File

@ -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;