Compare commits

..

No commits in common. "master" and "v3.3.0" have entirely different histories.

346 changed files with 480 additions and 1028 deletions

3
.gitignore vendored
View File

@ -1,6 +1,3 @@
# IDE folders
.idea
src/mibew/install/package src/mibew/install/package
src/absent_* src/absent_*
src/release* src/release*

View File

@ -11,7 +11,7 @@ This repository contains the core of Mibew Messenger application.
## Server requirements ## Server requirements
1. A webserver or web hosting account running on any major Operating System 1. A webserver or web hosting account running on any major Operating System
2. PHP (7.2.5 and above) with PDO, pdo_mysql, cURL, mbstring and gd extensions 2. PHP (5.4 and above) with PDO, pdo_mysql, cURL, mbstring and gd extensions
3. MySQL 5.0 and above 3. MySQL 5.0 and above
## Build from sources ## Build from sources

View File

@ -1,6 +1,6 @@
{ {
"name": "mibew/mibew", "name": "mibew/mibew",
"version": "3.6.0", "version": "3.3.0",
"description": "Mibew Messenger - open-source live support application", "description": "Mibew Messenger - open-source live support application",
"type": "project", "type": "project",
"homepage": "https://mibew.org", "homepage": "https://mibew.org",
@ -30,22 +30,22 @@
"require": { "require": {
"mibew/handlebars.php": "~0.10.5", "mibew/handlebars.php": "~0.10.5",
"mibew/handlebars.php-helpers": "1.*", "mibew/handlebars.php-helpers": "1.*",
"symfony/http-foundation": "4.4.*", "symfony/http-foundation": "~2.8.52",
"symfony/routing": "4.4.*", "symfony/routing": "2.6.*",
"symfony/config": "4.4.*", "symfony/config": "2.6.*",
"symfony/yaml": "^5.2", "symfony/yaml": "2.6.*",
"symfony/translation": "2.6.*", "symfony/translation": "2.6.*",
"tedivm/stash": "0.12.*", "tedivm/stash": "0.12.*",
"mibew/html5": "1.1.*", "canteen/html5": "1.1.*",
"vierbergenlars/php-semver": "3.0.*", "vierbergenlars/php-semver": "3.0.*",
"swiftmailer/swiftmailer": "~5.4.0", "swiftmailer/swiftmailer": "~5.4.0",
"ua-parser/uap-php": "^3.9", "ua-parser/uap-php": "~3.4.1",
"true/punycode": "~1.1" "true/punycode": "~1.1"
}, },
"require-dev": { "require-dev": {
"squizlabs/php_codesniffer": "3.*" "squizlabs/php_codesniffer": "~2.3.3"
}, },
"config": { "config": {
"vendor-dir": "mibew/vendor" "vendor-dir": "mibew/vendor"
} }
} }

@ -1 +1 @@
Subproject commit 55868d9973f531c3550575481bde4233cc625b91 Subproject commit 1143d69c977335e188d807cc2255432092770e24

View File

@ -1,12 +1,12 @@
Mibew Messenger Mibew Messenger
Copyright 2005-2023 the original author or authors. Copyright 2005-2021 the original author or authors.
REQUIREMENTS REQUIREMENTS
* Apache web server 1.3.34 or above with the ability to use local .htaccess * Apache web server 1.3.34 or above with the ability to use local .htaccess
files (mod_rewrite module is optional, but recommended) files (mod_rewrite module is optional, but recommended)
* MySQL database 5.0 or above * MySQL database 5.0 or above
* PHP 7.2.5 or above with PDO, pdo_mysql, cURL, mbstring and gd extensions * PHP 5.4 or above with PDO, pdo_mysql, cURL, mbstring and gd extensions
INSTALLATION INSTALLATION

View File

@ -1 +1 @@
Mibew/3.6.0 Mibew/3.3.0

View File

@ -102,11 +102,6 @@ chat_user_start:
defaults: defaults:
_controller: Mibew\Controller\Chat\UserChatController::startAction _controller: Mibew\Controller\Chat\UserChatController::startAction
chat_user_cookie_set_permission:
path: /chat/cookies-set-permission
defaults:
_controller: Mibew\Controller\Chat\UserChatController::cookieSetPermissionAction
# Pages that are available for all users # Pages that are available for all users
button: button:
path: /b path: /b
@ -377,7 +372,7 @@ locale_disable:
_access_check: Mibew\AccessControl\Check\PermissionsCheck _access_check: Mibew\AccessControl\Check\PermissionsCheck
_access_permissions: [CAN_ADMINISTRATE] _access_permissions: [CAN_ADMINISTRATE]
requirements: requirements:
locale: "[a-z\\-]{2,5}" locale: "[a-z\-]{2,5}"
locale_edit: locale_edit:
path: /operator/locale/{locale}/edit path: /operator/locale/{locale}/edit
@ -386,7 +381,7 @@ locale_edit:
_access_check: Mibew\AccessControl\Check\PermissionsCheck _access_check: Mibew\AccessControl\Check\PermissionsCheck
_access_permissions: [CAN_ADMINISTRATE] _access_permissions: [CAN_ADMINISTRATE]
requirements: requirements:
locale: "[a-z\\-]{2,5}" locale: "[a-z\-]{2,5}"
methods: [GET] methods: [GET]
locale_edit_save: locale_edit_save:
@ -396,7 +391,7 @@ locale_edit_save:
_access_check: Mibew\AccessControl\Check\PermissionsCheck _access_check: Mibew\AccessControl\Check\PermissionsCheck
_access_permissions: [CAN_ADMINISTRATE] _access_permissions: [CAN_ADMINISTRATE]
requirements: requirements:
locale: "[a-z\\-]{2,5}" locale: "[a-z\-]{2,5}"
methods: [POST] methods: [POST]
locale_enable: locale_enable:
@ -406,7 +401,7 @@ locale_enable:
_access_check: Mibew\AccessControl\Check\PermissionsCheck _access_check: Mibew\AccessControl\Check\PermissionsCheck
_access_permissions: [CAN_ADMINISTRATE] _access_permissions: [CAN_ADMINISTRATE]
requirements: requirements:
locale: "[a-z\\-]{2,5}" locale: "[a-z\-]{2,5}"
locales: locales:
path: /operator/locale path: /operator/locale
@ -721,7 +716,7 @@ translation_edit:
_access_check: Mibew\AccessControl\Check\PermissionsCheck _access_check: Mibew\AccessControl\Check\PermissionsCheck
_access_permissions: [CAN_ADMINISTRATE] _access_permissions: [CAN_ADMINISTRATE]
requirements: requirements:
string_id: "\\d{1,10}" string_id: "\d{1,10}"
methods: [GET] methods: [GET]
translation_edit_save: translation_edit_save:
@ -731,7 +726,7 @@ translation_edit_save:
_access_check: Mibew\AccessControl\Check\PermissionsCheck _access_check: Mibew\AccessControl\Check\PermissionsCheck
_access_permissions: [CAN_ADMINISTRATE] _access_permissions: [CAN_ADMINISTRATE]
requirements: requirements:
string_id: "\\d{1,10}" string_id: "\d{1,10}"
methods: [POST] methods: [POST]
translation_export: translation_export:

View File

@ -2,7 +2,7 @@
/* /*
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -2,7 +2,7 @@
/* /*
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -2,7 +2,7 @@
/* /*
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -2,7 +2,7 @@
/* /*
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,26 +0,0 @@
/*!
* This file is a part of Mibew Messenger.
*
* Copyright 2005-2023 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(Mibew, $) {
$(document).ready(function(){
$('#copy-button-code').click(function(e){
$("#button-code").select();
document.execCommand('copy');
});
});
})(Mibew, jQuery);

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -45,7 +45,7 @@
), ),
/** /**
* Display history window * Dispalay history window
*/ */
showHistory: function() { showHistory: function() {
var user = Mibew.Objects.Models.user; var user = Mibew.Objects.Models.user;

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -48,18 +48,14 @@
* Move to secure chat * Move to secure chat
*/ */
secure: function() { secure: function() {
if (window.location.protocol == 'https:') {
return;
}
var link = this.model.get('link'); var link = this.model.get('link');
if (link) { if (link) {
var style = Mibew.Objects.Models.page.get('style'); var style = Mibew.Objects.Models.page.get('style');
window.location.href = link.replace(/\&amp\;/g, '&') window.location.href = link.replace(/\&amp\;/g, '&')
+ (style ? ((link.indexOf('?') > -1 ? '&' : '?') + (style ? ('&style=' + style) : '');
+ 'style=' + style) : '');
} }
} }
} }
); );
})(Mibew, Handlebars, _); })(Mibew, Handlebars, _);

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -44,17 +44,6 @@
} }
), ),
/**
* Override Backbone.Marionette.ItemView.serializeData to pass some
* extra fields to template.
* @returns {Object} Template data
*/
serializeData: function() {
var data = this.model.toJSON();
data.user = Mibew.Objects.Models.user.toJSON();
return data;
},
/** /**
* Load and display send mail window * Load and display send mail window
*/ */

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,68 +0,0 @@
/*!
* This file is a part of Mibew Messenger.
*
* Copyright 2005-2023 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(Mibew, Handlebars, _) {
/**
* @class Represents Tracked path control view
*/
Mibew.Views.TrackedPathControl = Mibew.Views.Control.extend(
/** @lends Mibew.Views.TrackedPathControl.prototype */
{
/**
* Template function
* @type Function
*/
template: Handlebars.templates['chat/controls/tracked_path'],
/**
* Map ui events to view methods
* The view inherits events from
* {@link Mibew.Views.Control.prototype.events}.
* @type Object
*/
events: _.extend(
{},
Mibew.Views.Control.prototype.events,
{
'click': 'showTrackedPath'
}
),
/**
* Display tracked path window
*/
showTrackedPath: function() {
var user = Mibew.Objects.Models.user;
var link = this.model.get('link');
if (user.get('isAgent') && link) {
var winParams = Mibew.Utils.buildWindowParams(this.model.get('windowParams'));
// TODO: Kill & at the server side
link = link.replace('&', '&', 'g');
var newWindow = window.open(link, 'UserTrackedPath', winParams);
if (newWindow !== null) {
newWindow.focus();
newWindow.opener=window;
}
}
}
}
);
})(Mibew, Handlebars, _);

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -57,7 +57,7 @@
* Not applicable for agents. * Not applicable for agents.
* @type Boolean * @type Boolean
*/ */
defaultName: true dafaultName: true
} }
) )
} }

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,63 +0,0 @@
/*!
* This file is a part of Mibew Messenger.
*
* Copyright 2005-2023 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(Mibew, _){
/**
* @class Tracked path control model
*/
Mibew.Models.TrackedPathControl = Mibew.Models.Control.extend(
/** @lends Mibew.Models.TrackedPathControl.prototype */
{
/**
* A list of default model values.
*
* The model inherits defaults from
* {@link Mibew.Models.Control.prototype.defaults}.
* @type Object
*/
defaults: _.extend(
{},
Mibew.Models.Control.prototype.defaults,
{
/**
* An URL of the tracked path page or false by default.
* @type String|Boolean
*/
link: false,
/**
* Params string for tracked path popup window
* @type String
*/
windowParams: ''
}
),
/**
* Returns model type
* @returns {String} Model type
*/
getModelType: function() {
return 'TrackedPathControl';
}
}
);
})(Mibew, _);

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -101,15 +101,6 @@
windowParams: options.windowsParams.history windowParams: options.windowsParams.history
}); });
ctrlsCollection.add(controls.history); ctrlsCollection.add(controls.history);
if (options.links.tracked) {
controls.tracked_path = new Mibew.Models.TrackedPathControl({
weight: 170,
link: options.links.tracked,
windowParams: options.windowsParams.trackedPath
});
ctrlsCollection.add(controls.tracked_path);
}
} }
// Create toggle sound button // Create toggle sound button

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -57,27 +57,11 @@ var Mibew = Mibew || {};
* omitted a session cookie will be created. * omitted a session cookie will be created.
*/ */
Mibew.Utils.createCookie = function(name, value, expires) { Mibew.Utils.createCookie = function(name, value, expires) {
if (navigator.cookieEnabled) { var domain = /([^\.]+\.[^\.]+)$/.exec(document.location.hostname);
var domain_parts = document.location.hostname.split('.').reverse(); document.cookie = "" + name + "=" + value + "; "
var domain = domain_parts[0]; + "path=/; "
var position = 0; + (domain ? ("domain=" + domain[1] + "; ") : '')
do { + (expires ? ('expires=' + expires.toUTCString() + '; ') : '');
document.cookie = "" + name + "=" + value + "; "
+ "path=/; "
+ (document.location.protocol == 'https:' ? "SameSite=None; secure; " : '')
+ "domain=" + (Mibew.Utils.cookiesDomain || domain) + "; "
+ (expires ? ('expires=' + expires.toUTCString() + '; ') : '');
if (Mibew.Utils.readCookie(name) == value) {
if (!Mibew.Utils.cookiesDomain) {
Mibew.Utils.cookiesDomain = domain;
}
}
else {
position++;
domain = domain_parts[position] + '.' + domain;
}
} while((position < domain_parts.length) && !Mibew.Utils.cookiesDomain);
}
}; };
/** /**
@ -314,12 +298,6 @@ var Mibew = Mibew || {};
// Call parent constructor. // Call parent constructor.
BasePopup.call(this, options); BasePopup.call(this, options);
/**
* Store options in case we need some of them later.
* @type {Object}
*/
this.options = options;
/** /**
* Wrapper for popup iframe DOM Element. * Wrapper for popup iframe DOM Element.
* @type {Node} * @type {Node}
@ -350,12 +328,6 @@ var Mibew = Mibew || {};
*/ */
this.isMinified = false; this.isMinified = false;
/**
* Indicates if cookies are blocked.
* @type {Boolean}
*/
this.cookiesBlocked = false;
// Load default styles. These styles hide the popup while real styles // Load default styles. These styles hide the popup while real styles
// are loading. // are loading.
this.attachDefaultStyles(); this.attachDefaultStyles();
@ -369,18 +341,6 @@ var Mibew = Mibew || {};
// new page is visited. // new page is visited.
this.safeOpen(openedChatUrl); this.safeOpen(openedChatUrl);
} }
// Check if it's possible to set cookies at all
var rnd = Math.random();
Mibew.Utils.createCookie('mibewCheckToken', rnd);
var checkCookiesBlock = Mibew.Utils.loadScript(options.url.split('?')[0] + '/cookies-set-permission' + '?rnd=' + rnd);
checkCookiesBlock.popup = this;
checkCookiesBlock.onload = function() {
this.popup.cookiesBlocked = false;
};
checkCookiesBlock.onerror = function() {
this.popup.cookiesBlocked = true;
};
}; };
// Set correct prototype chain for IFrame popup. // Set correct prototype chain for IFrame popup.
@ -431,14 +391,6 @@ var Mibew = Mibew || {};
return; return;
} }
if (this.cookiesBlocked) {
// Last resort. Replace this iframe-based popup with window-based popup
// and try to open a chat in a separate window.
Mibew.Objects.ChatPopups[this.id] = new Mibew.ChatPopup.Window(this.options);
Mibew.Objects.ChatPopups[this.id].open(url);
return;
}
if (!this.wrapperDiv) { if (!this.wrapperDiv) {
// Create new iframe and its wrapper. // Create new iframe and its wrapper.
// There is a bug in IE <= 7 that make "name" attribute unchangeble // There is a bug in IE <= 7 that make "name" attribute unchangeble
@ -558,10 +510,6 @@ var Mibew = Mibew || {};
* value is omitted, the chat initialization URL will be loaded. * value is omitted, the chat initialization URL will be loaded.
*/ */
Mibew.ChatPopup.Window.prototype.open = function(url) { Mibew.ChatPopup.Window.prototype.open = function(url) {
// Windows is already opened, nothing to do.
if (this.window != null && !this.window.closed) {
return;
}
this.window = window.open( this.window = window.open(
url || this.buildChatUrl(), url || this.buildChatUrl(),
'mibewChat' + this.id, 'mibewChat' + this.id,

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -102,7 +102,7 @@
}; };
/** /**
* Play .wav, or .mp3, or .ogg sound file * Play .wav or .mp3 sound file
* @param {String} file File path (without extension) * @param {String} file File path (without extension)
*/ */
Mibew.Utils.playSound = function (file) { Mibew.Utils.playSound = function (file) {
@ -114,7 +114,6 @@
var audioTag = $("<audio>", {autoplay: true, style: "display: none"}).append( var audioTag = $("<audio>", {autoplay: true, style: "display: none"}).append(
'<source src="' + file + '.wav" type="audio/x-wav" />' + '<source src="' + file + '.wav" type="audio/x-wav" />' +
'<source src="' + file + '.mp3" type="audio/mpeg" codecs="mp3" />' + '<source src="' + file + '.mp3" type="audio/mpeg" codecs="mp3" />' +
'<source src="' + file + '.ogg" type="audio/ogg" codecs="vorbis" />' +
'<embed src="' + file + '.wav" type="audio/x-wav" hidden="true" autostart="true" loop="false" />' '<embed src="' + file + '.wav" type="audio/x-wav" hidden="true" autostart="true" loop="false" />'
); );
$('body').append(audioTag); $('body').append(audioTag);

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -17,14 +17,6 @@
*/ */
(function($) { (function($) {
function updateSendEmail() {
if ($("#user-can-send-email").is(":checked")) {
$(".under-user-can-send-email").show();
} else {
$(".under-user-can-send-email").hide();
}
}
function updateSurvey() { function updateSurvey() {
if ($("#enable-presurvey").is(":checked")) { if ($("#enable-presurvey").is(":checked")) {
$(".under-survey").show(); $(".under-survey").show();
@ -66,9 +58,6 @@
} }
$(function() { $(function() {
$("#user-can-send-email").change(function() {
updateSendEmail();
});
$("#enable-presurvey").change(function() { $("#enable-presurvey").change(function() {
updateSurvey(); updateSurvey();
}); });
@ -84,7 +73,6 @@
$("#enable-privacy-policy").change(function() { $("#enable-privacy-policy").change(function() {
updatePrivacyPolicy(); updatePrivacyPolicy();
}); });
updateSendEmail();
updateSurvey(); updateSurvey();
updateSSL(); updateSSL();
updateGroups(); updateGroups();

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -18,17 +18,12 @@
(function(Mibew, $) { (function(Mibew, $) {
$(document).ready(function() { $(document).ready(function() {
var basePath = window.location.href.replace(/install\.php\/install\/done$/, 'install/done');
$('#check-new-visitor').click(function(){ $('#check-new-visitor').click(function(){
Mibew.Utils.playSound(basePath + '/../../sounds/new_user'); Mibew.Utils.playSound('../sounds/new_user');
}); });
$('#check-new-message').click(function() { $('#check-new-message').click(function() {
Mibew.Utils.playSound(basePath + '/../../sounds/new_message'); Mibew.Utils.playSound('../sounds/new_message');
});
$('#check-invitation').click(function() {
Mibew.Utils.playSound(basePath + '/../../sounds/invite');
}); });
}); });
})(Mibew, jQuery); })(Mibew, jQuery);

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/*! /*!
* This file is a part of Mibew Messenger. * This file is a part of Mibew Messenger.
* *
* Copyright 2005-2023 the original author or authors. * Copyright 2005-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

Some files were not shown because too many files have changed in this diff Show More