From 466cc31f45cfb3dab0de5b5094d02150754d5b79 Mon Sep 17 00:00:00 2001
From: Dmitriy Simushev <simushevds@ossg.ru>
Date: Tue, 12 Mar 2013 21:03:50 +0000
Subject: [PATCH] Update headers

---
 src/messenger/webim/install/dbinfo.php        |  2 +-
 src/messenger/webim/install/dbperform.php     |  2 +-
 src/messenger/webim/libs/canned.php           | 24 ++++++--------
 src/messenger/webim/libs/chat.php             |  2 +-
 src/messenger/webim/libs/common.php           |  2 +-
 src/messenger/webim/libs/config.php           |  2 +-
 src/messenger/webim/libs/groups.php           |  2 +-
 src/messenger/webim/libs/invitation.php       | 26 +++++++--------
 src/messenger/webim/libs/notify.php           |  2 +-
 src/messenger/webim/libs/operator.php         |  2 +-
 .../webim/libs/operator_settings.php          |  2 +-
 src/messenger/webim/libs/request.php          | 26 +++++++--------
 src/messenger/webim/libs/settings.php         |  2 +-
 src/messenger/webim/libs/statistics.php       | 32 ++++++++-----------
 src/messenger/webim/libs/styles.php           | 32 ++++++++-----------
 src/messenger/webim/libs/track.php            | 26 +++++++--------
 src/messenger/webim/operator/avatar.php       |  2 +-
 src/messenger/webim/operator/ban.php          |  2 +-
 src/messenger/webim/operator/blocked.php      |  2 +-
 src/messenger/webim/operator/canned.php       |  2 +-
 src/messenger/webim/operator/cannededit.php   |  2 +-
 src/messenger/webim/operator/features.php     |  2 +-
 src/messenger/webim/operator/group.php        |  2 +-
 src/messenger/webim/operator/groupmembers.php |  2 +-
 src/messenger/webim/operator/groups.php       |  2 +-
 src/messenger/webim/operator/history.php      |  2 +-
 .../webim/operator/invitationstate.php        | 26 +++++++--------
 .../webim/operator/invitationthemes.php       | 30 ++++++++---------
 src/messenger/webim/operator/invite.php       | 26 +++++++--------
 src/messenger/webim/operator/operator.php     |  2 +-
 src/messenger/webim/operator/operators.php    |  2 +-
 src/messenger/webim/operator/opgroups.php     |  2 +-
 src/messenger/webim/operator/performance.php  |  2 +-
 src/messenger/webim/operator/permissions.php  |  2 +-
 src/messenger/webim/operator/resetpwd.php     |  2 +-
 src/messenger/webim/operator/restore.php      |  2 +-
 src/messenger/webim/operator/settings.php     |  2 +-
 src/messenger/webim/operator/statistics.php   |  2 +-
 .../webim/operator/threadprocessor.php        |  2 +-
 src/messenger/webim/operator/tracked.php      | 24 ++++++--------
 src/messenger/webim/operator/translate.php    |  2 +-
 src/messenger/webim/operator/update.php       |  2 +-
 src/messenger/webim/operator/userhistory.php  |  2 +-
 src/messenger/webim/request.php               | 25 ++++++---------
 src/messenger/webim/view/agent.php            |  2 +-
 src/messenger/webim/view/agents.php           |  2 +-
 src/messenger/webim/view/avatar.php           |  2 +-
 src/messenger/webim/view/canned.php           |  2 +-
 src/messenger/webim/view/cannededit.php       |  2 +-
 src/messenger/webim/view/features.php         |  2 +-
 .../webim/view/invitation_themes.php          | 30 ++++++++---------
 src/messenger/webim/view/invite.php           | 24 ++++++--------
 src/messenger/webim/view/performance.php      |  2 +-
 src/messenger/webim/view/permissions.php      |  2 +-
 src/messenger/webim/view/settings.php         |  2 +-
 src/messenger/webim/view/tracked.php          | 24 ++++++--------
 src/messenger/webim/view/translate.php        |  2 +-
 57 files changed, 202 insertions(+), 259 deletions(-)

diff --git a/src/messenger/webim/install/dbinfo.php b/src/messenger/webim/install/dbinfo.php
index 00a456f4..ee4ac0b6 100644
--- a/src/messenger/webim/install/dbinfo.php
+++ b/src/messenger/webim/install/dbinfo.php
@@ -291,4 +291,4 @@ function get_indexes($tablename, $link)
 	}
 }
 
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/install/dbperform.php b/src/messenger/webim/install/dbperform.php
index 26b1addc..598bcd8e 100644
--- a/src/messenger/webim/install/dbperform.php
+++ b/src/messenger/webim/install/dbperform.php
@@ -232,4 +232,4 @@ if ($act == "silentcreateall") {
 mysql_close($link);
 header("Location: $webimroot/install/index.php");
 exit;
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/libs/canned.php b/src/messenger/webim/libs/canned.php
index 9fe57037..309adc06 100644
--- a/src/messenger/webim/libs/canned.php
+++ b/src/messenger/webim/libs/canned.php
@@ -1,22 +1,18 @@
 <?php
 /*
- * This file is part of Mibew Messenger project.
+ * Copyright 2005-2013 the original author or authors.
  *
- * Copyright (c) 2005-2011 Mibew Messenger Community
- * All rights reserved. The contents of this file are subject to the terms of
- * the Eclipse Public License v1.0 which accompanies this distribution, and
- * is available at http://www.eclipse.org/legal/epl-v10.html
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
  *
- * Alternatively, the contents of this file may be used under the terms of
- * the GNU General Public License Version 2 or later (the "GPL"), in which case
- * the provisions of the GPL are applicable instead of those above. If you wish
- * to allow use of your version of this file only under the terms of the GPL, and
- * not to allow others to use your version of this file under the terms of the
- * EPL, indicate your decision by deleting the provisions above and replace them
- * with the notice and other provisions required by the GPL.
+ *     http://www.apache.org/licenses/LICENSE-2.0
  *
- * Contributors:
- *    Evgeny Gryaznov - initial API and implementation
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
  */
 
 function load_canned_messages($locale, $groupid)
diff --git a/src/messenger/webim/libs/chat.php b/src/messenger/webim/libs/chat.php
index c2d3b351..64fde723 100644
--- a/src/messenger/webim/libs/chat.php
+++ b/src/messenger/webim/libs/chat.php
@@ -829,4 +829,4 @@ function get_remote_host()
 	return isset($_SERVER['REMOTE_HOST']) ? $_SERVER['REMOTE_HOST'] : $extAddr;
 }
 
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/libs/common.php b/src/messenger/webim/libs/common.php
index fecf2a77..e9482607 100644
--- a/src/messenger/webim/libs/common.php
+++ b/src/messenger/webim/libs/common.php
@@ -805,4 +805,4 @@ function setcsrftoken()
 	}
 }
 
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/libs/config.php b/src/messenger/webim/libs/config.php
index c8d326d4..ccbb670f 100644
--- a/src/messenger/webim/libs/config.php
+++ b/src/messenger/webim/libs/config.php
@@ -51,4 +51,4 @@ $mail_encoding = "utf-8";
 $home_locale = "en"; /* native name will be used in this locale */
 $default_locale = "en"; /* if user does not provide known lang */
 
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/libs/groups.php b/src/messenger/webim/libs/groups.php
index d8445f5c..1762b440 100644
--- a/src/messenger/webim/libs/groups.php
+++ b/src/messenger/webim/libs/groups.php
@@ -94,4 +94,4 @@ function get_top_level_group($group)
 	return is_null($group['parent'])?$group:group_by_id($group['parent']);
 }
 
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/libs/invitation.php b/src/messenger/webim/libs/invitation.php
index d5a1fd9e..1c7b1ece 100644
--- a/src/messenger/webim/libs/invitation.php
+++ b/src/messenger/webim/libs/invitation.php
@@ -1,22 +1,18 @@
 <?php
 /*
- * This file is part of Mibew Messenger project.
+ * Copyright 2005-2013 the original author or authors.
  *
- * Copyright (c) 2005-2011 Mibew Messenger Community
- * All rights reserved. The contents of this file are subject to the terms of
- * the Eclipse Public License v1.0 which accompanies this distribution, and
- * is available at http://www.eclipse.org/legal/epl-v10.html
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
  *
- * Alternatively, the contents of this file may be used under the terms of
- * the GNU General Public License Version 2 or later (the "GPL"), in which case
- * the provisions of the GPL are applicable instead of those above. If you wish
- * to allow use of your version of this file only under the terms of the GPL, and
- * not to allow others to use your version of this file under the terms of the
- * EPL, indicate your decision by deleting the provisions above and replace them
- * with the notice and other provisions required by the GPL.
+ *     http://www.apache.org/licenses/LICENSE-2.0
  *
- * Contributors:
- *    Fedor Fetisov - tracking and inviting implementation
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
  */
 
 function invitation_state($visitorid, $link)
@@ -74,4 +70,4 @@ function invitation_accept($visitorid, $threadid, $link)
 	}
 }
 
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/libs/notify.php b/src/messenger/webim/libs/notify.php
index c65489b6..48e400d3 100644
--- a/src/messenger/webim/libs/notify.php
+++ b/src/messenger/webim/libs/notify.php
@@ -31,4 +31,4 @@ function webim_mail($toaddr, $reply_to, $subject, $body, $link)
 	@mail($toaddr, $real_subject, wordwrap(myiconv($webim_encoding, $mail_encoding, $body), 70), $headers);
 }
 
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/libs/operator.php b/src/messenger/webim/libs/operator.php
index 2294db21..262ff428 100755
--- a/src/messenger/webim/libs/operator.php
+++ b/src/messenger/webim/libs/operator.php
@@ -577,4 +577,4 @@ function get_operator_groupids($operatorid)
 	return $result;
 }
 
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/libs/operator_settings.php b/src/messenger/webim/libs/operator_settings.php
index d2682999..60fcf2f6 100644
--- a/src/messenger/webim/libs/operator_settings.php
+++ b/src/messenger/webim/libs/operator_settings.php
@@ -32,4 +32,4 @@ function setup_operator_settings_tabs($opId, $active)
 	}
 }
 
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/libs/request.php b/src/messenger/webim/libs/request.php
index b4af2495..af8d582b 100644
--- a/src/messenger/webim/libs/request.php
+++ b/src/messenger/webim/libs/request.php
@@ -1,22 +1,18 @@
 <?php
 /*
- * This file is part of Mibew Messenger project.
+ * Copyright 2005-2013 the original author or authors.
  *
- * Copyright (c) 2005-2011 Mibew Messenger Community
- * All rights reserved. The contents of this file are subject to the terms of
- * the Eclipse Public License v1.0 which accompanies this distribution, and
- * is available at http://www.eclipse.org/legal/epl-v10.html
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
  *
- * Alternatively, the contents of this file may be used under the terms of
- * the GNU General Public License Version 2 or later (the "GPL"), in which case
- * the provisions of the GPL are applicable instead of those above. If you wish
- * to allow use of your version of this file only under the terms of the GPL, and
- * not to allow others to use your version of this file under the terms of the
- * EPL, indicate your decision by deleting the provisions above and replace them
- * with the notice and other provisions required by the GPL.
+ *     http://www.apache.org/licenses/LICENSE-2.0
  *
- * Contributors:
- *    Dmitriy Simushev - Cross-domain javascript requests implementation
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
  */
 
 function build_js_response($response)
@@ -28,4 +24,4 @@ function build_js_response($response)
 	return "mibewOnResponse(" . json_encode($result) . ");";
 }
 
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/libs/settings.php b/src/messenger/webim/libs/settings.php
index c4d52c35..79df493b 100644
--- a/src/messenger/webim/libs/settings.php
+++ b/src/messenger/webim/libs/settings.php
@@ -44,4 +44,4 @@ function setup_settings_tabs($active)
 	}
 }
 
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/libs/statistics.php b/src/messenger/webim/libs/statistics.php
index 566c0176..ae72be98 100644
--- a/src/messenger/webim/libs/statistics.php
+++ b/src/messenger/webim/libs/statistics.php
@@ -1,22 +1,18 @@
 <?php
 /*
- * This file is part of Mibew Messenger project.
- * 
- * Copyright (c) 2005-2011 Mibew Messenger Community
- * All rights reserved. The contents of this file are subject to the terms of
- * the Eclipse Public License v1.0 which accompanies this distribution, and
- * is available at http://www.eclipse.org/legal/epl-v10.html
- * 
- * Alternatively, the contents of this file may be used under the terms of
- * the GNU General Public License Version 2 or later (the "GPL"), in which case
- * the provisions of the GPL are applicable instead of those above. If you wish
- * to allow use of your version of this file only under the terms of the GPL, and
- * not to allow others to use your version of this file under the terms of the
- * EPL, indicate your decision by deleting the provisions above and replace them
- * with the notice and other provisions required by the GPL.
- * 
- * Contributors:
- *    Evgeny Gryaznov - initial API and implementation
+ * Copyright 2005-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
  */
 
 function get_statistics_query($type)
@@ -43,4 +39,4 @@ function setup_statistics_tabs($active)
 	}
 }
 
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/libs/styles.php b/src/messenger/webim/libs/styles.php
index d6dd5174..66f68f66 100644
--- a/src/messenger/webim/libs/styles.php
+++ b/src/messenger/webim/libs/styles.php
@@ -1,22 +1,18 @@
 <?php
 /*
- * This file is part of Mibew Messenger project.
- * 
- * Copyright (c) 2005-2011 Mibew Messenger Community
- * All rights reserved. The contents of this file are subject to the terms of
- * the Eclipse Public License v1.0 which accompanies this distribution, and
- * is available at http://www.eclipse.org/legal/epl-v10.html
- * 
- * Alternatively, the contents of this file may be used under the terms of
- * the GNU General Public License Version 2 or later (the "GPL"), in which case
- * the provisions of the GPL are applicable instead of those above. If you wish
- * to allow use of your version of this file only under the terms of the GPL, and
- * not to allow others to use your version of this file under the terms of the
- * EPL, indicate your decision by deleting the provisions above and replace them
- * with the notice and other provisions required by the GPL.
- * 
- * Contributors:
- *    Evgeny Gryaznov - initial API and implementation
+ * Copyright 2005-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
  */
 
 function get_style_list($stylesfolder)
@@ -33,4 +29,4 @@ function get_style_list($stylesfolder)
 	return $stylelist;
 }
 
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/libs/track.php b/src/messenger/webim/libs/track.php
index fb3ca394..d7392af1 100644
--- a/src/messenger/webim/libs/track.php
+++ b/src/messenger/webim/libs/track.php
@@ -1,22 +1,18 @@
 <?php
 /*
- * This file is part of Mibew Messenger project.
+ * Copyright 2005-2013 the original author or authors.
  *
- * Copyright (c) 2005-2011 Mibew Messenger Community
- * All rights reserved. The contents of this file are subject to the terms of
- * the Eclipse Public License v1.0 which accompanies this distribution, and
- * is available at http://www.eclipse.org/legal/epl-v10.html
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
  *
- * Alternatively, the contents of this file may be used under the terms of
- * the GNU General Public License Version 2 or later (the "GPL"), in which case
- * the provisions of the GPL are applicable instead of those above. If you wish
- * to allow use of your version of this file only under the terms of the GPL, and
- * not to allow others to use your version of this file under the terms of the
- * EPL, indicate your decision by deleting the provisions above and replace them
- * with the notice and other provisions required by the GPL.
+ *     http://www.apache.org/licenses/LICENSE-2.0
  *
- * Contributors:
- *    Fedor Fetisov - tracking and inviting implementation
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
  */
 
 require_once(dirname(__FILE__).'/chat.php');
@@ -124,4 +120,4 @@ function track_retrieve_details($visitor)
     return unserialize($visitor['details']);
 }
 
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/operator/avatar.php b/src/messenger/webim/operator/avatar.php
index 3996c92e..d8fd9ab3 100644
--- a/src/messenger/webim/operator/avatar.php
+++ b/src/messenger/webim/operator/avatar.php
@@ -99,4 +99,4 @@ prepare_menu($operator);
 setup_operator_settings_tabs($opId, 1);
 start_html_output();
 require('../view/avatar.php');
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/operator/ban.php b/src/messenger/webim/operator/ban.php
index db8b5fec..0f1df186 100644
--- a/src/messenger/webim/operator/ban.php
+++ b/src/messenger/webim/operator/ban.php
@@ -118,4 +118,4 @@ prepare_menu($operator, false);
 start_html_output();
 require('../view/ban.php');
 exit;
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/operator/blocked.php b/src/messenger/webim/operator/blocked.php
index e97079a6..8bf373ea 100644
--- a/src/messenger/webim/operator/blocked.php
+++ b/src/messenger/webim/operator/blocked.php
@@ -53,4 +53,4 @@ start_html_output();
 
 require('../view/blocked_visitors.php');
 exit;
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/operator/canned.php b/src/messenger/webim/operator/canned.php
index 71c05902..13d003f7 100644
--- a/src/messenger/webim/operator/canned.php
+++ b/src/messenger/webim/operator/canned.php
@@ -97,4 +97,4 @@ $page['formgroup'] = $groupid;
 prepare_menu($operator);
 start_html_output();
 require('../view/canned.php');
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/operator/cannededit.php b/src/messenger/webim/operator/cannededit.php
index 2dfc81c0..9196f1b4 100644
--- a/src/messenger/webim/operator/cannededit.php
+++ b/src/messenger/webim/operator/cannededit.php
@@ -79,4 +79,4 @@ prepare_menu($operator, false);
 start_html_output();
 require('../view/cannededit.php');
 exit;
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/operator/features.php b/src/messenger/webim/operator/features.php
index 6a94c693..3121cecf 100644
--- a/src/messenger/webim/operator/features.php
+++ b/src/messenger/webim/operator/features.php
@@ -67,4 +67,4 @@ prepare_menu($operator);
 setup_settings_tabs(1);
 start_html_output();
 require('../view/features.php');
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/operator/group.php b/src/messenger/webim/operator/group.php
index 652adce2..797968c1 100644
--- a/src/messenger/webim/operator/group.php
+++ b/src/messenger/webim/operator/group.php
@@ -232,4 +232,4 @@ prepare_menu($operator);
 setup_group_settings_tabs($groupid, 0);
 start_html_output();
 require('../view/group.php');
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/operator/groupmembers.php b/src/messenger/webim/operator/groupmembers.php
index 12bc2a18..f0e0182d 100644
--- a/src/messenger/webim/operator/groupmembers.php
+++ b/src/messenger/webim/operator/groupmembers.php
@@ -89,4 +89,4 @@ prepare_menu($operator);
 setup_group_settings_tabs($groupid, 1);
 start_html_output();
 require('../view/groupmembers.php');
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/operator/groups.php b/src/messenger/webim/operator/groups.php
index acbc71b9..bf60f2d4 100644
--- a/src/messenger/webim/operator/groups.php
+++ b/src/messenger/webim/operator/groups.php
@@ -78,4 +78,4 @@ $page['availableDirections'] = array(
 prepare_menu($operator);
 start_html_output();
 require('../view/groups.php');
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/operator/history.php b/src/messenger/webim/operator/history.php
index 73b3896b..f2529297 100644
--- a/src/messenger/webim/operator/history.php
+++ b/src/messenger/webim/operator/history.php
@@ -85,4 +85,4 @@ $page['forminsystemmessages'] = $searchInSystemMessages;
 prepare_menu($operator);
 start_html_output();
 require('../view/thread_search.php');
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/operator/invitationstate.php b/src/messenger/webim/operator/invitationstate.php
index d9bfde45..7f76e5c6 100644
--- a/src/messenger/webim/operator/invitationstate.php
+++ b/src/messenger/webim/operator/invitationstate.php
@@ -1,22 +1,18 @@
 <?php
 /*
- * This file is part of Mibew Messenger project.
+ * Copyright 2005-2013 the original author or authors.
  *
- * Copyright (c) 2005-2011 Mibew Messenger Community
- * All rights reserved. The contents of this file are subject to the terms of
- * the Eclipse Public License v1.0 which accompanies this distribution, and
- * is available at http://www.eclipse.org/legal/epl-v10.html
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
  *
- * Alternatively, the contents of this file may be used under the terms of
- * the GNU General Public License Version 2 or later (the "GPL"), in which case
- * the provisions of the GPL are applicable instead of those above. If you wish
- * to allow use of your version of this file only under the terms of the GPL, and
- * not to allow others to use your version of this file under the terms of the
- * EPL, indicate your decision by deleting the provisions above and replace them
- * with the notice and other provisions required by the GPL.
+ *     http://www.apache.org/licenses/LICENSE-2.0
  *
- * Contributors:
- *    Fedor Fetisov - tracking and inviting implementation
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
  */
 
 require_once('../libs/common.php');
@@ -42,4 +38,4 @@ echo '<threadid>' . ($invitation['threadid'] ? $invitation['threadid'] : '0') .
 echo '</invitation>';
 exit;
 
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/operator/invitationthemes.php b/src/messenger/webim/operator/invitationthemes.php
index a8783f38..bd2f9c75 100644
--- a/src/messenger/webim/operator/invitationthemes.php
+++ b/src/messenger/webim/operator/invitationthemes.php
@@ -1,22 +1,18 @@
 <?php
 /*
- * This file is part of Mibew Messenger project.
- * 
- * Copyright (c) 2005-2011 Mibew Messenger Community
- * All rights reserved. The contents of this file are subject to the terms of
- * the Eclipse Public License v1.0 which accompanies this distribution, and
- * is available at http://www.eclipse.org/legal/epl-v10.html
- * 
- * Alternatively, the contents of this file may be used under the terms of
- * the GNU General Public License Version 2 or later (the "GPL"), in which case
- * the provisions of the GPL are applicable instead of those above. If you wish
- * to allow use of your version of this file only under the terms of the GPL, and
- * not to allow others to use your version of this file under the terms of the
- * EPL, indicate your decision by deleting the provisions above and replace them
- * with the notice and other provisions required by the GPL.
- * 
- * Contributors:
- *    Evgeny Gryaznov - initial API and implementation
+ * Copyright 2005-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
  */
 
 require_once('../libs/common.php');
diff --git a/src/messenger/webim/operator/invite.php b/src/messenger/webim/operator/invite.php
index 5c118607..ee4b88b8 100644
--- a/src/messenger/webim/operator/invite.php
+++ b/src/messenger/webim/operator/invite.php
@@ -1,22 +1,18 @@
 <?php
 /*
- * This file is part of Mibew Messenger project.
+ * Copyright 2005-2013 the original author or authors.
  *
- * Copyright (c) 2005-2011 Mibew Messenger Community
- * All rights reserved. The contents of this file are subject to the terms of
- * the Eclipse Public License v1.0 which accompanies this distribution, and
- * is available at http://www.eclipse.org/legal/epl-v10.html
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
  *
- * Alternatively, the contents of this file may be used under the terms of
- * the GNU General Public License Version 2 or later (the "GPL"), in which case
- * the provisions of the GPL are applicable instead of those above. If you wish
- * to allow use of your version of this file only under the terms of the GPL, and
- * not to allow others to use your version of this file under the terms of the
- * EPL, indicate your decision by deleting the provisions above and replace them
- * with the notice and other provisions required by the GPL.
+ *     http://www.apache.org/licenses/LICENSE-2.0
  *
- * Contributors:
- *    Fedor Fetisov - tracking and inviting implementation
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
  */
 
 require_once('../libs/common.php');
@@ -41,4 +37,4 @@ $page['frequency'] = $settings['updatefrequency_operator'];
 
 start_html_output();
 require('../view/invite.php');
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/operator/operator.php b/src/messenger/webim/operator/operator.php
index 801bc06b..c17cb260 100644
--- a/src/messenger/webim/operator/operator.php
+++ b/src/messenger/webim/operator/operator.php
@@ -136,4 +136,4 @@ prepare_menu($operator);
 setup_operator_settings_tabs($opId, 0);
 start_html_output();
 require('../view/agent.php');
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/operator/operators.php b/src/messenger/webim/operator/operators.php
index 4e51dd47..b28267c0 100644
--- a/src/messenger/webim/operator/operators.php
+++ b/src/messenger/webim/operator/operators.php
@@ -114,4 +114,4 @@ setlocale(LC_TIME, getstring("time.locale"));
 prepare_menu($operator);
 start_html_output();
 require('../view/agents.php');
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/operator/opgroups.php b/src/messenger/webim/operator/opgroups.php
index 5b8d43d1..efe9414b 100644
--- a/src/messenger/webim/operator/opgroups.php
+++ b/src/messenger/webim/operator/opgroups.php
@@ -83,4 +83,4 @@ prepare_menu($operator);
 setup_operator_settings_tabs($opId, 2);
 start_html_output();
 require('../view/operator_groups.php');
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/operator/performance.php b/src/messenger/webim/operator/performance.php
index 2891518e..8557a460 100644
--- a/src/messenger/webim/operator/performance.php
+++ b/src/messenger/webim/operator/performance.php
@@ -127,4 +127,4 @@ prepare_menu($operator);
 setup_settings_tabs(2);
 start_html_output();
 require('../view/performance.php');
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/operator/permissions.php b/src/messenger/webim/operator/permissions.php
index 5c297051..ee57c9d2 100644
--- a/src/messenger/webim/operator/permissions.php
+++ b/src/messenger/webim/operator/permissions.php
@@ -86,4 +86,4 @@ prepare_menu($operator);
 setup_operator_settings_tabs($opId, 3);
 start_html_output();
 require('../view/permissions.php');
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/operator/resetpwd.php b/src/messenger/webim/operator/resetpwd.php
index f68f5eaa..fe1c5d55 100644
--- a/src/messenger/webim/operator/resetpwd.php
+++ b/src/messenger/webim/operator/resetpwd.php
@@ -65,4 +65,4 @@ $page['token'] = $token;
 $page['isdone'] = false;
 start_html_output();
 require('../view/resetpwd.php');
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/operator/restore.php b/src/messenger/webim/operator/restore.php
index 3c6ab769..b96f197c 100644
--- a/src/messenger/webim/operator/restore.php
+++ b/src/messenger/webim/operator/restore.php
@@ -60,4 +60,4 @@ $page['localeLinks'] = get_locale_links("$webimroot/operator/restore.php");
 $page['isdone'] = false;
 start_html_output();
 require('../view/restore.php');
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/operator/settings.php b/src/messenger/webim/operator/settings.php
index 34b5805b..f644c14a 100644
--- a/src/messenger/webim/operator/settings.php
+++ b/src/messenger/webim/operator/settings.php
@@ -113,4 +113,4 @@ prepare_menu($operator);
 setup_settings_tabs(0);
 start_html_output();
 require('../view/settings.php');
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/operator/statistics.php b/src/messenger/webim/operator/statistics.php
index 4fbd37eb..356b24e8 100644
--- a/src/messenger/webim/operator/statistics.php
+++ b/src/messenger/webim/operator/statistics.php
@@ -100,4 +100,4 @@ prepare_menu($operator);
 setup_statistics_tabs($activetab);
 start_html_output();
 require('../view/statistics.php');
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/operator/threadprocessor.php b/src/messenger/webim/operator/threadprocessor.php
index 9cfb89ad..820c7a76 100644
--- a/src/messenger/webim/operator/threadprocessor.php
+++ b/src/messenger/webim/operator/threadprocessor.php
@@ -51,4 +51,4 @@ if (isset($_GET['threadid'])) {
 prepare_menu($operator, false);
 start_html_output();
 require('../view/thread_log.php');
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/operator/tracked.php b/src/messenger/webim/operator/tracked.php
index 9d5f3e64..716d2c14 100644
--- a/src/messenger/webim/operator/tracked.php
+++ b/src/messenger/webim/operator/tracked.php
@@ -1,22 +1,18 @@
 <?php
 /*
- * This file is part of Mibew Messenger project.
+ * Copyright 2005-2013 the original author or authors.
  *
- * Copyright (c) 2005-2011 Mibew Messenger Community
- * All rights reserved. The contents of this file are subject to the terms of
- * the Eclipse Public License v1.0 which accompanies this distribution, and
- * is available at http://www.eclipse.org/legal/epl-v10.html
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
  *
- * Alternatively, the contents of this file may be used under the terms of
- * the GNU General Public License Version 2 or later (the "GPL"), in which case
- * the provisions of the GPL are applicable instead of those above. If you wish
- * to allow use of your version of this file only under the terms of the GPL, and
- * not to allow others to use your version of this file under the terms of the
- * EPL, indicate your decision by deleting the provisions above and replace them
- * with the notice and other provisions required by the GPL.
+ *     http://www.apache.org/licenses/LICENSE-2.0
  *
- * Contributors:
- *    Fedor Fetisov - tracking and inviting implementation
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
  */
 
 require_once('../libs/chat.php');
diff --git a/src/messenger/webim/operator/translate.php b/src/messenger/webim/operator/translate.php
index 09cd8618..cf1a5d30 100644
--- a/src/messenger/webim/operator/translate.php
+++ b/src/messenger/webim/operator/translate.php
@@ -228,4 +228,4 @@ $page['formshow'] = $show;
 prepare_menu($operator);
 start_html_output();
 require('../view/translatelist.php');
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/operator/update.php b/src/messenger/webim/operator/update.php
index 8a83d34b..8f777669 100644
--- a/src/messenger/webim/operator/update.php
+++ b/src/messenger/webim/operator/update.php
@@ -286,4 +286,4 @@ echo '</update>';
 notify_operator_alive($operator['operatorid'], $status);
 exit;
 
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/operator/userhistory.php b/src/messenger/webim/operator/userhistory.php
index 6e6149a8..0f85b749 100644
--- a/src/messenger/webim/operator/userhistory.php
+++ b/src/messenger/webim/operator/userhistory.php
@@ -58,4 +58,4 @@ prepare_menu($operator);
 setup_pagination($found, 6);
 start_html_output();
 require('../view/userhistory.php');
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/request.php b/src/messenger/webim/request.php
index cfdd6950..ecf2b4b1 100644
--- a/src/messenger/webim/request.php
+++ b/src/messenger/webim/request.php
@@ -1,23 +1,18 @@
 <?php
 /*
- * This file is part of Mibew Messenger project.
+ * Copyright 2005-2013 the original author or authors.
  *
- * Copyright (c) 2005-2011 Mibew Messenger Community
- * All rights reserved. The contents of this file are subject to the terms of
- * the Eclipse Public License v1.0 which accompanies this distribution, and
- * is available at http://www.eclipse.org/legal/epl-v10.html
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
  *
- * Alternatively, the contents of this file may be used under the terms of
- * the GNU General Public License Version 2 or later (the "GPL"), in which case
- * the provisions of the GPL are applicable instead of those above. If you wish
- * to allow use of your version of this file only under the terms of the GPL, and
- * not to allow others to use your version of this file under the terms of the
- * EPL, indicate your decision by deleting the provisions above and replace them
- * with the notice and other provisions required by the GPL.
+ *     http://www.apache.org/licenses/LICENSE-2.0
  *
- * Contributors:
- *    Fedor Fetisov - tracking and inviting implementation
- *    Dmitriy Simushev - Cross-domain javascript requests implementation
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
  */
 
 require_once('libs/common.php');
diff --git a/src/messenger/webim/view/agent.php b/src/messenger/webim/view/agent.php
index 17f7d2c5..3a279e36 100644
--- a/src/messenger/webim/view/agent.php
+++ b/src/messenger/webim/view/agent.php
@@ -127,4 +127,4 @@ require_once('inc_errors.php');
 } /* content */
 
 require_once('inc_main.php');
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/view/agents.php b/src/messenger/webim/view/agents.php
index db17f7e4..da070507 100644
--- a/src/messenger/webim/view/agents.php
+++ b/src/messenger/webim/view/agents.php
@@ -136,4 +136,4 @@ $('a.removelink').click(function(){
 } /* content */
 
 require_once('inc_main.php');
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/view/avatar.php b/src/messenger/webim/view/avatar.php
index 2a3841ad..cafe10b9 100644
--- a/src/messenger/webim/view/avatar.php
+++ b/src/messenger/webim/view/avatar.php
@@ -94,4 +94,4 @@ require_once('inc_errors.php');
 } /* content */
 
 require_once('inc_main.php');
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/view/canned.php b/src/messenger/webim/view/canned.php
index ec14d6b2..d6d30a9c 100644
--- a/src/messenger/webim/view/canned.php
+++ b/src/messenger/webim/view/canned.php
@@ -120,4 +120,4 @@ if( $page['pagination.items'] ) {
 } /* content */
 
 require_once('inc_main.php');
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/view/cannededit.php b/src/messenger/webim/view/cannededit.php
index 2e941460..9e572ea0 100644
--- a/src/messenger/webim/view/cannededit.php
+++ b/src/messenger/webim/view/cannededit.php
@@ -77,4 +77,4 @@ require_once('inc_errors.php');
 } /* content */
 
 require_once('inc_main.php');
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/view/features.php b/src/messenger/webim/view/features.php
index 54966241..2b7ba080 100644
--- a/src/messenger/webim/view/features.php
+++ b/src/messenger/webim/view/features.php
@@ -238,4 +238,4 @@ require_once('inc_errors.php');
 } /* content */
 
 require_once('inc_main.php');
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/view/invitation_themes.php b/src/messenger/webim/view/invitation_themes.php
index 4097d36a..4dd65e35 100644
--- a/src/messenger/webim/view/invitation_themes.php
+++ b/src/messenger/webim/view/invitation_themes.php
@@ -1,22 +1,18 @@
 <?php
 /*
- * This file is part of Mibew Messenger project.
- * 
- * Copyright (c) 2005-2011 Mibew Messenger Community
- * All rights reserved. The contents of this file are subject to the terms of
- * the Eclipse Public License v1.0 which accompanies this distribution, and
- * is available at http://www.eclipse.org/legal/epl-v10.html
- * 
- * Alternatively, the contents of this file may be used under the terms of
- * the GNU General Public License Version 2 or later (the "GPL"), in which case
- * the provisions of the GPL are applicable instead of those above. If you wish
- * to allow use of your version of this file only under the terms of the GPL, and
- * not to allow others to use your version of this file under the terms of the
- * EPL, indicate your decision by deleting the provisions above and replace them
- * with the notice and other provisions required by the GPL.
- * 
- * Contributors:
- *    Evgeny Gryaznov - initial API and implementation
+ * Copyright 2005-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
  */
 
 require_once("inc_menu.php");
diff --git a/src/messenger/webim/view/invite.php b/src/messenger/webim/view/invite.php
index 34dac425..e1c9ed0c 100644
--- a/src/messenger/webim/view/invite.php
+++ b/src/messenger/webim/view/invite.php
@@ -1,22 +1,18 @@
 <?php
 /*
- * This file is part of Mibew Messenger project.
+ * Copyright 2005-2013 the original author or authors.
  *
- * Copyright (c) 2005-2011 Mibew Messenger Community
- * All rights reserved. The contents of this file are subject to the terms of
- * the Eclipse Public License v1.0 which accompanies this distribution, and
- * is available at http://www.eclipse.org/legal/epl-v10.html
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
  *
- * Alternatively, the contents of this file may be used under the terms of
- * the GNU General Public License Version 2 or later (the "GPL"), in which case
- * the provisions of the GPL are applicable instead of those above. If you wish
- * to allow use of your version of this file only under the terms of the GPL, and
- * not to allow others to use your version of this file under the terms of the
- * EPL, indicate your decision by deleting the provisions above and replace them
- * with the notice and other provisions required by the GPL.
+ *     http://www.apache.org/licenses/LICENSE-2.0
  *
- * Contributors:
- *    Fedor Fetisov - tracking and inviting implementation
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
  */
 
 $page['title'] = getlocal("invitation.title");
diff --git a/src/messenger/webim/view/performance.php b/src/messenger/webim/view/performance.php
index 447f600d..b4de5d2d 100644
--- a/src/messenger/webim/view/performance.php
+++ b/src/messenger/webim/view/performance.php
@@ -152,4 +152,4 @@ require_once('inc_errors.php');
 } /* content */
 
 require_once('inc_main.php');
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/view/permissions.php b/src/messenger/webim/view/permissions.php
index 23f9f8f3..954bf845 100644
--- a/src/messenger/webim/view/permissions.php
+++ b/src/messenger/webim/view/permissions.php
@@ -64,4 +64,4 @@ require_once('inc_errors.php');
 } /* content */
 
 require_once('inc_main.php');
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/view/settings.php b/src/messenger/webim/view/settings.php
index 2d1a1eb2..fbefd0a9 100644
--- a/src/messenger/webim/view/settings.php
+++ b/src/messenger/webim/view/settings.php
@@ -160,4 +160,4 @@ require_once('inc_errors.php');
 } /* content */
 
 require_once('inc_main.php');
-?>
+?>
\ No newline at end of file
diff --git a/src/messenger/webim/view/tracked.php b/src/messenger/webim/view/tracked.php
index f68b66ec..d9ceb7f6 100644
--- a/src/messenger/webim/view/tracked.php
+++ b/src/messenger/webim/view/tracked.php
@@ -1,22 +1,18 @@
 <?php
 /*
- * This file is part of Mibew Messenger project.
+ * Copyright 2005-2013 the original author or authors.
  *
- * Copyright (c) 2005-2011 Mibew Messenger Community
- * All rights reserved. The contents of this file are subject to the terms of
- * the Eclipse Public License v1.0 which accompanies this distribution, and
- * is available at http://www.eclipse.org/legal/epl-v10.html
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
  *
- * Alternatively, the contents of this file may be used under the terms of
- * the GNU General Public License Version 2 or later (the "GPL"), in which case
- * the provisions of the GPL are applicable instead of those above. If you wish
- * to allow use of your version of this file only under the terms of the GPL, and
- * not to allow others to use your version of this file under the terms of the
- * EPL, indicate your decision by deleting the provisions above and replace them
- * with the notice and other provisions required by the GPL.
+ *     http://www.apache.org/licenses/LICENSE-2.0
  *
- * Contributors:
- *    Fedor Fetisov - tracking and inviting implementation
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
  */
 
 $page['title'] = getlocal("tracked.path");
diff --git a/src/messenger/webim/view/translate.php b/src/messenger/webim/view/translate.php
index eb66b36e..c12cc113 100644
--- a/src/messenger/webim/view/translate.php
+++ b/src/messenger/webim/view/translate.php
@@ -74,4 +74,4 @@ require_once('inc_errors.php');
 } /* content */
 
 require_once('inc_main.php');
-?>
+?>
\ No newline at end of file