'+oi+'<\u002f\141\076';} ,di:function(content){return'\u003c\u0074able\u0020\u0077\u0069d\u0074\150\u003d"\061\u0030\u0030\045"\u0020c\u0065ll\u0073\160\141ci\u006eg="\060"\040c\145l\154pad\u0064i\u006e\u0067\075"\060"\040b\u006f\u0072\144\u0065r="\060"\076<\u0074r\u003e'+content+'\u003c/tr><\057t\u0061\142\u006c\u0065>';} ,ei:function(fi,gi,id,ai,bi,ci,xt,vi){var wi=2;var link=gi+"\u003fth\u0072ead="+id;var xi=''+fi+'<\u002f\141>';} xi+=' | \074\057\u0074\u0064\076';if(bi){xi+='<\164d \167i\u0064\u0074\150\u003d"30"\u0020\141lig\u006e="ce\u006et\u0065r"\u003e';xi+=ji.ki(link,localized[0],"\111mCe\156te\162"+id,'\u003c\u0069\155g \u0073\162\143="'+ht+'/\151mage\163\u002ft\u0062l\u0069cl\163p\u0065\141k.\147i\u0066" \167i\u0064\u0074\u0068\075"15"\040\150\u0065\151\147ht\u003d"15" \142\u006f\162\u0064e\u0072\u003d"\060" \141\u006c\u0074\075"'+localized[0]+'"\u003e',01200,(411+69),null);xi+='\u003c/\u0074d>';wi++;} if(ai){xi+='\u003ct\u0064 w\u0069dt\150="\u0033\u0030"\u0020\u0061lig\156\u003d"c\145\156ter">';xi+=ji.ki(link+"\u0026vi\u0065\u0077o\156l\u0079\075\164\162\u0075e",localized[1],"I\155\u0043e\u006e\u0074\145r"+id,'\074\151\155\147\040\u0073\u0072\u0063="'+ht+'\u002fi\u006d\u0061\u0067\u0065\u0073\057\164\u0062\u006ci\u0063\u006c\u0072\145a\144\u002eg\151\u0066"\u0020w\151\144t\150\u003d"1\u0035" \150ei\147h\164\075"15"\040b\157\u0072d\u0065\162="\060"\u0020a\154t\075"'+localized[1]+'"\076',(535+105),0740,null);xi+='\074/\u0074d\076';wi++;} if(xt!=""){xi+='<\057t\162>\074t\162>\074\164\144\040c\u006ca\163s="\146ir\163tme\u0073sa\147\u0065"\u0020al\151\147\u006e\u003d"\162\151g\u0068t" c\157lspan\u003d"'+wi+'"\076\074\u0061 \150\162e\u0066\075"\u006a\141\166a\163c\162ipt:\u0076o\u0069\144(0\051"\u0020t\u0069\164le="'+xt+'" \157\u006ecl\u0069ck\075"\141\154\u0065\u0072t(th\u0069s.t\151\164\u006ce);r\145\u0074u\162\u006e \146al\u0073e;"\076';xi+=xt.length>036?xt.substring(0,0x1e)+'\056\u002e\056':xt;xi+='\074\057\u0061\u003e\u003c\u002f\164\u0064>';} return ji.di(xi);} ,yi:function(id,zi){return'\074t\144\040\167id\164\150="\0630"\040al\u0069gn="ce\156\u0074\145r">'+ji.ki(ht+'\u002f\157\160e\u0072a\164\u006f\u0072/\u0062\141n\056p\u0068\u0070\u003f'+(zi?'\151\u0064='+zi:'t\u0068\162\145ad\u003d'+id),localized[2],"\u0062a\u006e"+id,'\u003ci\155\147 \163r\143="'+ht+'\057im\141\u0067\u0065s\u002f\u0062\141\156\056g\151f"\040\u0077\151\u0064\164\u0068\075"15"\u0020\u0068\u0065\u0069g\u0068\u0074\075"\u0031\u0035" b\157r\u0064e\u0072\075"0"\u0020a\u006c\u0074="'+localized[2]+'"\076',(525+195),0x1e0,null)+'\164\u0064\076';} } ;sq.$i=mn.nn();mn.sn(sq.$i,sq.lq,{qn:function(pq){this.oq(pq);this.pq.ii=this.ii.on(this);this.pq.lu=this.lu.on(this);this.pq.ku=this.ku.on(this);this.pq._i=0;this.mj=new Object();this.nj=0;this.t=this.pq.qj;this.rj=new sq.hi(this.pq);} ,ii:function(){return"\u0063o\155p\141\156\u0079\u003d"+this.pq.company+"\046\u0073inc\145="+this.pq._i;} ,nu:function(pu){this.pq.status.innerHTML=pu;} ,lu:function(s){this.nu(s);} ,sj:function(uh){var id,tj,uj,ai=false,bi=false,hj=false,ci=null,zi=null;for(var i=0;i'+qs.rs(uh,"\162\u0065\u0061\u0073\157n")+'\074\057t\144>';} if(hj){gj+=ji.yi(id,zi);} gj=ji.di(gj);var aj=ls.os("\164"+tj,this.t);var bj=ls.os("t"+tj+"en\u0064",this.t);if(kj!=null&&(kj.rowIndex<=aj.rowIndex||kj.rowIndex>=bj.rowIndex)){this.t.deleteRow(kj.rowIndex);this.mj[id]=null;kj=null;} if(kj==null){kj=this.t.insertRow(aj.rowIndex+1);kj.id="\u0074\150\u0072"+id;this.mj[id]=new Array(dj,fj,tj);ls.insertCell(kj,"\u006ea\u006de","vi\163it\157r",null,null,ji.ei(oj,this.pq.agentservl,id,ai,bi,ci,xt,tj!='\u0063\150\141\164'));ls.insertCell(kj,"\143\157\156\u0074\u0069\144","\u0076i\u0073\151\164\u006f\u0072","ce\u006e\u0074\145r",null,pj);ls.insertCell(kj,"\163\164\u0061\u0074\u0065","\u0076\151s\u0069\164o\162","\143\145\u006e\164e\u0072",null,uj);ls.insertCell(kj,"\157\160","\166i\u0073itor","c\145n\164er",null,ej);ls.insertCell(kj,"time","\166\u0069\163\151tor","c\u0065nt\u0065r",null,this.cj(dj));ls.insertCell(kj,"\u0077\u0061\151\u0074","\u0076i\u0073\151\164\u006f\u0072","\143\145\u006ete\162",null,(tj!='\u0063\150\u0061\164'?this.cj(fj):'-'));ls.insertCell(kj,"\145t\u0063","v\u0069\163\151\u0074\u006fr","\143\u0065nt\u0065\u0072",null,gj);if(tj=='wa\151\164'||tj=='\u0070\u0072io')return true;} else{this.mj[id]=new Array(dj,fj,tj);jj(this.t,kj,"\u006e\u0061m\145",ji.ei(oj,this.pq.agentservl,id,ai,bi,ci,xt,tj!='\143h\u0061\164'));jj(this.t,kj,"c\u006f\u006et\151d",pj);jj(this.t,kj,"\163t\u0061te",uj);jj(this.t,kj,"op",ej);jj(this.t,kj,"t\u0069\155\145",this.cj(dj));jj(this.t,kj,"\167\141\151\164",(tj!='\u0063ha\164'?this.cj(fj):'\055'));jj(this.t,kj,"\145tc",gj);} return false;} ,vj:function(){function wj(t,id){var aj=$(id);var bj=$(id+"\u0065n\u0064");if(aj==null||bj==null){return false;} return aj.rowIndex+1=074){var nk=Math.floor(_j/(58+2));_j=_j%(44+16);if(_j<(7+3))_j="\060"+_j;mk=nk+":";} return mk+_j+"\072"+$j;} ,qk:function(){for(var i in this.mj){if(this.mj[i]!=null){var value=this.mj[i];var kj=ls.os("\u0074h\162"+i,this.t);if(kj!=null){function jj(ds,kj,id,lj){var ws=ls.fs(id,kj,ds);if(ws)ws.innerHTML=lj;} jj(this.t,kj,"t\151\155e",this.cj(value[0]));jj(this.t,kj,"\u0077\u0061\u0069t",(value[2]!='\143\150\u0061t'?this.cj(value[1]):'-'));} } } } ,ku:function(rk){var sk=false;if(rk.tagName=='\164\u0068\u0072\u0065a\144\163'){var tk=qs.ks(rk,"\164i\155\u0065");var uk=qs.ks(rk,"\u0072\u0065\166i\u0073ion");if(tk)this.nj=(new Date()).getTime()-tk;if(uk)this.pq._i=uk;for(var i=0;ihere if you want to edit it.
button.delete=Delete
@@ -242,7 +243,7 @@ page_bans.title=Blocked
page_bans.to=Till
page_client.pending_users=You can find awaiting visitors.
page_login.error=Entered login/password is incorrect
-page_login.intro=Login to access administrative tools, see your visitors and browse the history.
+page_login.intro=Please enter your username and password to access administrative tools, see your visitors and browse the history.
page_login.login=Login:
page_login.password=Password:
page_login.remember=Remember
diff --git a/src/messenger/webim/operator/login.php b/src/messenger/webim/operator/login.php
index 89cdaa72..deb7aeb2 100644
--- a/src/messenger/webim/operator/login.php
+++ b/src/messenger/webim/operator/login.php
@@ -16,6 +16,8 @@ require_once('../libs/common.php');
require_once('../libs/operator.php');
$errors = array();
+$page = array( 'backPath' => '', 'formisRemember' => true, 'version' => $version);
+
if( isset($_POST['login']) && isset($_POST['password']) ) {
$login = getparam('login');
$password = getparam('password');
@@ -33,10 +35,11 @@ if( isset($_POST['login']) && isset($_POST['password']) ) {
exit;
} else {
$errors[] = getlocal("page_login.error");
+ $page['formlogin'] = $login;
}
}
-$page = array( 'backPath' => '', 'formisRemember' => true, 'version' => $version, 'localeLinks' => get_locale_links("$webimroot/operator/login.php") );
+$page['localeLinks'] = get_locale_links("$webimroot/operator/login.php");
start_html_output();
require('../view/login.php');
?>
\ No newline at end of file
diff --git a/src/messenger/webim/operator/threadprocessor.php b/src/messenger/webim/operator/threadprocessor.php
index 15e3bae5..be0c2aed 100644
--- a/src/messenger/webim/operator/threadprocessor.php
+++ b/src/messenger/webim/operator/threadprocessor.php
@@ -15,6 +15,7 @@
require_once('../libs/common.php');
require_once('../libs/operator.php');
require_once('../libs/chat.php');
+require_once('../libs/userinfo.php');
$operator = check_login();
@@ -24,6 +25,7 @@ if( isset($_GET['threadid'])) {
$threadid = verifyparam( "threadid", "/^(\d{1,9})?$/", "");
$lastid = -1;
$page['threadMessages'] = get_messages($threadid,"html",false,$lastid);
+ $page['thread'] = thread_by_id($threadid);
}
start_html_output();
diff --git a/src/messenger/webim/view/ban.php b/src/messenger/webim/view/ban.php
index 066077b0..09bfde8b 100644
--- a/src/messenger/webim/view/ban.php
+++ b/src/messenger/webim/view/ban.php
@@ -11,107 +11,85 @@
* Contributors:
* Evgeny Gryaznov - initial API and implementation
*/
+
+$page['title'] = getlocal("page_ban.title");
+
+function tpl_content() { global $page, $webimroot, $errors;
?>
-
-
-
-
-
-
-
-
-
-
- -
-
-
-">
-">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
+
+
+
+
+
+
+
-
- 0 ) { ?>
-
-
- |
- |
-
- 0 ) {
- print getlocal("errors.header");
- foreach( $errors as $e ) {
- print getlocal("errors.prefix");
- print $e;
- print getlocal("errors.suffix");
- }
- print getlocal("errors.footer");
- } ?>
-
- |
-
-
-
-
-
-
-
-
-
-
- |
-
-
-
-
+
+
+
+
+
\ No newline at end of file
diff --git a/src/messenger/webim/view/inc_locales.php b/src/messenger/webim/view/inc_locales.php
index 9ed2e6f8..c23bf710 100644
--- a/src/messenger/webim/view/inc_locales.php
+++ b/src/messenger/webim/view/inc_locales.php
@@ -2,18 +2,23 @@
function menuloc($id) {
global $current_locale;
if($current_locale == $id) {
- return " class=\"active\"";
+ echo " class=\"active\"";
}
return "";
}
+function tpl_menu() { global $page, $webimroot, $errors, $current_locale;
+?>
+
+
+ locales
+
+
+
-$page['right_menu'] = "";
-
-if(isset($page) && isset($page['localeLinks'])) {
- $page['right_menu'] .= "\nlocales\n\n";
- foreach($page['localeLinks'] as $id => $title) {
- $page['right_menu'] .= "- $title
\n";
- }
- $page['right_menu'] .= " \n";
+
\ No newline at end of file
diff --git a/src/messenger/webim/view/inc_main.php b/src/messenger/webim/view/inc_main.php
index 18d599ae..02057f5f 100644
--- a/src/messenger/webim/view/inc_main.php
+++ b/src/messenger/webim/view/inc_main.php
@@ -3,14 +3,18 @@
+
-
-
-
+ style="min-width: 400px;">
+ ">
+
+
+
-
+
diff --git a/src/messenger/webim/view/inc_menu.php b/src/messenger/webim/view/inc_menu.php
index 4b2b042a..3eeb6bc8 100644
--- a/src/messenger/webim/view/inc_menu.php
+++ b/src/messenger/webim/view/inc_menu.php
@@ -7,7 +7,7 @@ function menuli($name) {
return "";
}
-function rightmenu_content() { global $page, $webimroot, $errors;
+function tpl_menu() { global $page, $webimroot, $errors;
if(isset($page) && isset($page['operator'])) { ?>
main
diff --git a/src/messenger/webim/view/login.php b/src/messenger/webim/view/login.php
index 5cad58b9..c5741d82 100644
--- a/src/messenger/webim/view/login.php
+++ b/src/messenger/webim/view/login.php
@@ -13,35 +13,33 @@
*/
require_once('inc_locales.php');
-$page['title'] = getlocal("page_login.title");
-
-function rightmenu_content() { global $page, $webimroot, $errors, $current_locale;
- $message = get_image(get_app_location(false,false)."/button.php?image=webim&lang=$current_locale", 0, 0);
- $code = generate_button("",$current_locale,"",$message,false,false);
-?>
-
- contact us
-
-
-
-
-
-
-
+
|