rubyfox-server 2.16.0.4 → 2.16.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -2017,6 +2017,9 @@ class ConfigInterfaceBuilder
2017
2017
 
2018
2018
  // Remove form inside static tab panes (predefined tab panes in html)
2019
2019
  $(`#${this._mainContainerId} > #tabPanels > div.tab-pane > form`).remove();
2020
+
2021
+ // Remove "active" class from static tab panes (otherwise this class messes with the tab navigator functioning)
2022
+ $(`#${this._mainContainerId} > #tabPanels > div.tab-pane`).removeClass('active');
2020
2023
  }
2021
2024
 
2022
2025
  disableInterface(disable)
@@ -2615,4 +2618,4 @@ class ConfigurationParameter
2615
2618
  /***/ })
2616
2619
 
2617
2620
  }]);
2618
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXRzL2pzL2NvcmUvbW9kdWxlcy9tb2R1bGUtMTJ+bW9kdWxlLTEzfm1vZHVsZS05LmJ1bmRsZS5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL2FwcGxpY2F0aW9uLy4vc3JjL2NvbXBvbmVudHMvdWlidWlsZGVyL2NvbmZpZy1jaGVjay1ib3guanMiLCJ3ZWJwYWNrOi8vYXBwbGljYXRpb24vLi9zcmMvY29tcG9uZW50cy91aWJ1aWxkZXIvY29uZmlnLWRyb3AtZG93bi1saXN0LmpzIiwid2VicGFjazovL2FwcGxpY2F0aW9uLy4vc3JjL2NvbXBvbmVudHMvdWlidWlsZGVyL2NvbmZpZy1kdWFsLWxpc3QuanMiLCJ3ZWJwYWNrOi8vYXBwbGljYXRpb24vLi9zcmMvY29tcG9uZW50cy91aWJ1aWxkZXIvY29uZmlnLWZvcm0taXRlbS5qcyIsIndlYnBhY2s6Ly9hcHBsaWNhdGlvbi8uL3NyYy9jb21wb25lbnRzL3VpYnVpbGRlci9jb25maWctZ3JpZC5qcyIsIndlYnBhY2s6Ly9hcHBsaWNhdGlvbi8uL3NyYy9jb21wb25lbnRzL3VpYnVpbGRlci9jb25maWctbG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7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7QSIsInNvdXJjZVJvb3QiOiIifQ==
@@ -1223,6 +1223,7 @@ class ZoneMonitor extends _base_module__WEBPACK_IMPORTED_MODULE_0__["BaseModule"
1223
1223
  this.REQ_SET_USER_SETTINGS = 'setUserSettings';
1224
1224
  this.REQ_RELOAD_ZONE_EXT = 'reloadZoneExt';
1225
1225
  this.REQ_RELOAD_WORDS = 'reloadWords';
1226
+ this.REQ_DISCONNECT_USER = 'disconnUser';
1226
1227
  this.REQ_KICK_USER = 'kickUser';
1227
1228
  this.REQ_BAN_USER = 'banUser';
1228
1229
  this.REQ_GET_ROOM_CONFIG = 'getRoomConfig';
@@ -1508,6 +1509,7 @@ class ZoneMonitor extends _base_module__WEBPACK_IMPORTED_MODULE_0__["BaseModule"
1508
1509
  }).data('kendoNumericTextBox');
1509
1510
 
1510
1511
  // Add button click listeners
1512
+ $('#znm-disconnectBt').on('click', $.proxy(this._onDisconnectBtClick, this));
1511
1513
  $('#znm-kickBt').on('click', $.proxy(this._onKickBtClick, this));
1512
1514
  $('#znm-banBt').on('click', $.proxy(this._onBanBtClick, this));
1513
1515
 
@@ -1789,6 +1791,7 @@ class ZoneMonitor extends _base_module__WEBPACK_IMPORTED_MODULE_0__["BaseModule"
1789
1791
  $(window).off('resize');
1790
1792
  $('#znm-reloadWordsBt').off('click');
1791
1793
  $('#znm-reloadZoneExtBt').off('click');
1794
+ $('#znm-disconnectBt').off('click');
1792
1795
  $('#znm-kickBt').off('click');
1793
1796
  $('#znm-banBt').off('click');
1794
1797
 
@@ -1955,7 +1958,8 @@ class ZoneMonitor extends _base_module__WEBPACK_IMPORTED_MODULE_0__["BaseModule"
1955
1958
  // NPC
1956
1959
  const isNpc = data.getSFSObject('monitored').getBool('npc');
1957
1960
 
1958
- // Disable kick and ban buttons
1961
+ // Disable disconnect, kick and ban buttons
1962
+ $('#znm-disconnectBt').attr('disabled', isNpc);
1959
1963
  $('#znm-kickBt').attr('disabled', isNpc);
1960
1964
  $('#znm-banBt').attr('disabled', isNpc);
1961
1965
 
@@ -2622,6 +2626,19 @@ class ZoneMonitor extends _base_module__WEBPACK_IMPORTED_MODULE_0__["BaseModule"
2622
2626
  }
2623
2627
  }
2624
2628
 
2629
+ _onDisconnectBtClick()
2630
+ {
2631
+ if (this._monitoredType == this.MONITORED_TYPE_USER)
2632
+ {
2633
+ // Send request to extension
2634
+ let params = new SFS2X.SFSObject();
2635
+ params.putUtfString('zone', this._monitoredZone);
2636
+ params.putUtfString('user', this._monitoredName);
2637
+
2638
+ this.sendExtensionRequest(this.REQ_DISCONNECT_USER, params);
2639
+ }
2640
+ }
2641
+
2625
2642
  _onKickBtClick()
2626
2643
  {
2627
2644
  if (this._monitoredType == this.MONITORED_TYPE_USER)
@@ -3312,4 +3329,4 @@ class UserPropertiesData
3312
3329
  /***/ })
3313
3330
 
3314
3331
  }]);
3315
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXRzL2pzL2NvcmUvbW9kdWxlcy9tb2R1bGUtMTMuYnVuZGxlLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vYXBwbGljYXRpb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5cdFx0XHR9LFxuXHQgICAgICAgIGxlZ2VuZDoge1xuXHQgICAgICAgICAgICB2aXNpYmxlOiBmYWxzZVxuXHQgICAgICAgIH0sXG5cdCAgICAgICAgc2VyaWVzRGVmYXVsdHM6IHtcblx0ICAgICAgICAgICAgdHlwZTogJ2FyZWEnLFxuXHQgICAgICAgICAgICBsYWJlbHM6IHtcblx0ICAgICAgICAgICAgICAgIHZpc2libGU6IGZhbHNlLFxuXHQgICAgICAgICAgICAgICAgZm9ybWF0OiAnezB9Jyxcblx0ICAgICAgICAgICAgICAgIGJhY2tncm91bmQ6ICd0cmFuc3BhcmVudCdcblx0ICAgICAgICAgICAgfSxcblx0ICAgICAgICB9LFxuXHQgICAgICAgIHNlcmllczogW3tcblx0XHRcdFx0bmFtZTogJ1VzZXJzJyxcblx0ICAgICAgICAgICAgZmllbGQ6ICd1c2VycycsXG5cdCAgICAgICAgICAgIGNhdGVnb3J5RmllbGQ6ICd0aW1lJyxcblx0XHRcdFx0Y29sb3I6ICcjZmQ3ZDI0Jyxcblx0XHRcdFx0bGluZToge1xuXHRcdFx0XHRcdHdpZHRoOiAyXG5cdFx0XHRcdH1cblx0ICAgICAgICB9XSxcblx0ICAgICAgICB2YWx1ZUF4aXM6IHtcblx0ICAgICAgICAgICAgbGFiZWxzOiB7XG5cdCAgICAgICAgICAgICAgICBmb3JtYXQ6ICd7MH0nLFxuXHQgICAgICAgICAgICB9LFxuXHQgICAgICAgICAgICBsaW5lOiB7XG5cdCAgICAgICAgICAgICAgICB2aXNpYmxlOiBmYWxzZVxuXHQgICAgICAgICAgICB9LFxuXHRcdFx0XHRtaW46IDAsXG5cdCAgICAgICAgfSxcblx0ICAgICAgICBjYXRlZ29yeUF4aXM6IHtcblx0XHRcdFx0bWFqb3JHcmlkTGluZXM6IHtcblx0ICAgICAgICAgICAgICAgIHZpc2libGU6IHRydWUsXG5cdFx0XHRcdFx0c3RlcDogNjBcblx0ICAgICAgICAgICAgfSxcblx0XHRcdFx0bWF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0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7OztBIiwic291cmNlUm9vdCI6IiJ9
@@ -385,9 +385,6 @@ class ExtensionManager extends _base_module__WEBPACK_IMPORTED_MODULE_0__["BaseMo
385
385
  // Create file data source manager
386
386
  this._fileManager = new _managers_file_datasource_manager__WEBPACK_IMPORTED_MODULE_1__["FileDataSourceManager"](libFolder, [libFolder], this._fileSeparator);
387
387
 
388
- // Retrieve HTTP port to be used for files uploading
389
- const uploadHttpPort = data.getInt('httpPort');
390
-
391
388
  // Retrieve module id sent by the server (required because multiple modules use file uploading service)
392
389
  const uploadModuleId = data.getUtfString('modId');
393
390
 
@@ -395,8 +392,9 @@ class ExtensionManager extends _base_module__WEBPACK_IMPORTED_MODULE_0__["BaseMo
395
392
  this._uploadTargetConfig = {
396
393
  sessionToken: this.smartFox.sessionToken,
397
394
  host: this.smartFox.config.host,
398
- httpPort: uploadHttpPort,
395
+ port: this.smartFox.config.port,
399
396
  moduleId: uploadModuleId,
397
+ protocol: this.smartFox.config.useSSL ? 'https' : 'http'
400
398
  };
401
399
 
402
400
  // Request Extension files data to server instance
@@ -479,7 +477,7 @@ class ExtensionManager extends _base_module__WEBPACK_IMPORTED_MODULE_0__["BaseMo
479
477
  if (requester == this.smartFox.mySelf.name)
480
478
  {
481
479
  // Expand parent
482
- this._filesList.expand($(`#exm-fileList .file-controls[data-item-id="${parentPath}"]`).closest('tr'));
480
+ this._filesList.expand($(`#exm-fileList .file-controls[data-item-id="${$.escapeSelector(parentPath)}"]`).closest('tr'));
483
481
 
484
482
  if (!isUpload)
485
483
  {
@@ -487,7 +485,7 @@ class ExtensionManager extends _base_module__WEBPACK_IMPORTED_MODULE_0__["BaseMo
487
485
  this._addFolderModal.modal('hide');
488
486
 
489
487
  // Select upload file
490
- this._filesList.select($(`#exm-fileList .file-controls[data-item-id="${filePath}"]`).closest('tr'));
488
+ this._filesList.select($(`#exm-fileList .file-controls[data-item-id="${$.escapeSelector(filePath)}"]`).closest('tr'));
491
489
  }
492
490
 
493
491
  // Update selection
@@ -537,7 +535,7 @@ class ExtensionManager extends _base_module__WEBPACK_IMPORTED_MODULE_0__["BaseMo
537
535
 
538
536
  // Collapse parent if the last of its children was deleted
539
537
  if (parentItem && !parentItem.hasChildren)
540
- this._filesList.collapse($(`#exm-fileList .file-controls[data-item-id="${parentItem.id}"]`).closest('tr'));
538
+ this._filesList.collapse($(`#exm-fileList .file-controls[data-item-id="${$.escapeSelector(parentItem.id)}"]`).closest('tr'));
541
539
  }
542
540
 
543
541
  if (requester == this.smartFox.mySelf.name)
@@ -584,7 +582,7 @@ class ExtensionManager extends _base_module__WEBPACK_IMPORTED_MODULE_0__["BaseMo
584
582
  {
585
583
  // Hide control buttons on currently selected item
586
584
  if (this._selectedItem)
587
- $(`#exm-fileList .file-controls[data-item-id="${this._selectedItem.id}"]`).hide();
585
+ $(`#exm-fileList .file-controls[data-item-id="${$.escapeSelector(this._selectedItem.id)}"]`).hide();
588
586
 
589
587
  // Get selected item
590
588
  let selectedRows = this._filesList.select();
@@ -595,7 +593,7 @@ class ExtensionManager extends _base_module__WEBPACK_IMPORTED_MODULE_0__["BaseMo
595
593
  this._selectedItem = this._filesList.dataItem(selectedRows[0]);
596
594
 
597
595
  // Show control buttons on new selected item
598
- $(`#exm-fileList .file-controls[data-item-id="${this._selectedItem.id}"]`).show();
596
+ $(`#exm-fileList .file-controls[data-item-id="${$.escapeSelector(this._selectedItem.id)}"]`).show();
599
597
  }
600
598
  else
601
599
  this._selectedItem = null;
@@ -659,8 +657,8 @@ class ExtensionManager extends _base_module__WEBPACK_IMPORTED_MODULE_0__["BaseMo
659
657
  $('#exm-clearFilesBt').attr('disabled', true);
660
658
 
661
659
  // Set destination url
662
- const url = 'http://' + this._uploadTargetConfig.host + ':' + this._uploadTargetConfig.httpPort + '/BlueBox/SFS2XFileUpload?sessHashId=' + this._uploadTargetConfig.sessionToken;
663
-
660
+ const url = this._uploadTargetConfig.protocol + '://' + this._uploadTargetConfig.host + ':' + this._uploadTargetConfig.port + '/BlueBox/SFS2XFileUpload?sessHashId=' + this._uploadTargetConfig.sessionToken;
661
+
664
662
  e.sender.options.async.saveUrl = url;
665
663
 
666
664
  // Set payload
@@ -798,4 +796,4 @@ class ExtensionManager extends _base_module__WEBPACK_IMPORTED_MODULE_0__["BaseMo
798
796
  /***/ })
799
797
 
800
798
  }]);
801
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXRzL2pzL2NvcmUvbW9kdWxlcy9tb2R1bGUtNi5idW5kbGUuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9hcHBsaWNhdGlvbi8uL3NyYy9tYW5hZ2Vycy9maWxlLWRhdGFzb3VyY2UtbWFuYWdlci5qcyIsIndlYnBhY2s6Ly9hcHBsaWNhdGlvbi8uL3NyYy9tb2R1bGVzL2V4dGVuc2lvbi1tYW5hZ2VyLmpzIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjbGFzcyBGaWxlRGF0YVNvdXJjZU1hbmFnZXJcbntcblx0Y29uc3RydWN0b3IobGliRm9sZGVyLCBwcm90ZWN0ZWRGb2xkZXJzLCBmaWxlU2VwYXJhdG9yKVxuXHR7XG5cdFx0dGhpcy5fcHJvdGVjdGVkRm9sZGVycyA9IHByb3RlY3RlZEZvbGRlcnM7IC8vIEZvbGRlcnMgd2hpY2ggY2FuJ3QgYmUgZGVsZXRlZCAoYnV0IHRoZWlyIGNvbnRlbnQgY2FuKVxuXHRcdHRoaXMuX2xpYkZvbGRlciA9IGxpYkZvbGRlcjtcblx0XHR0aGlzLl9maWxlU2VwYXJhdG9yID0gZm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BQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7OztBIiwic291cmNlUm9vdCI6IiJ9
@@ -355,7 +355,7 @@ class SslCertificateManager extends HTMLElement
355
355
  params.append('__module', this._uploadTargetConfig.moduleId);
356
356
 
357
357
  // Set destination url
358
- const url = 'http://' + this._uploadTargetConfig.host + ':' + this._uploadTargetConfig.httpPort + '/BlueBox/SFS2XFileUpload?sessHashId=' + this._uploadTargetConfig.sessionToken;
358
+ const url = this._uploadTargetConfig.protocol + '://' + this._uploadTargetConfig.host + ':' + this._uploadTargetConfig.port + '/BlueBox/SFS2XFileUpload?sessHashId=' + this._uploadTargetConfig.sessionToken;
359
359
 
360
360
  // Start upload
361
361
  fetch(url, {
@@ -590,9 +590,6 @@ class ServerConfigurator extends _base_module__WEBPACK_IMPORTED_MODULE_0__["Base
590
590
  // Initialization data received
591
591
  if (command == this.RESP_INIT)
592
592
  {
593
- // Retrieve HTTP port to be used for SSL certificate file uploading
594
- const uploadHttpPort = data.getInt('httpPort');
595
-
596
593
  // Retrieve module id sent by the server (required because multiple modules use file uploading service)
597
594
  const uploadModuleId = data.getUtfString('modId');
598
595
 
@@ -600,8 +597,9 @@ class ServerConfigurator extends _base_module__WEBPACK_IMPORTED_MODULE_0__["Base
600
597
  this._sslCertManager.uploadTargetConfig = {
601
598
  sessionToken: this.smartFox.sessionToken,
602
599
  host: this.smartFox.config.host,
603
- httpPort: uploadHttpPort,
600
+ port: this.smartFox.config.port,
604
601
  moduleId: uploadModuleId,
602
+ protocol: this.smartFox.config.useSSL ? 'https' : 'http'
605
603
  };
606
604
 
607
605
  // Server sends a flag indicating if file uploads are locked
@@ -844,4 +842,4 @@ class ServerConfigurator extends _base_module__WEBPACK_IMPORTED_MODULE_0__["Base
844
842
  /***/ })
845
843
 
846
844
  }]);
847
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXRzL2pzL2NvcmUvbW9kdWxlcy9tb2R1bGUtOS5idW5kbGUuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9hcHBsaWNhdGlvbi8uL3NyYy9jb21wb25lbnRzL21vZHVsZS1zcGVjaWZpYy9zc2wtY2VydGlmaWNhdGUtbWFuYWdlci5qcyIsIndlYnBhY2s6Ly9hcHBsaWNhdGlvbi8uL3NyYy9tb2R1bGVzL3NlcnZlci1jb25maWd1cmF0b3IuanMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtieXRlc1RvU2l6ZX0gZnJvbSAnLi4vLi4vdXRpbHMvdXRpbGl0aWVzJztcbmltcG9ydCBhZXNqcyBmcm9tICdhZXMtanMnO1xuXG5leHBvcnQgY2xhc3MgU3NsQ2VydGlmaWNhdGVNYW5hZ2VyIGV4dGVuZHMgSFRNTEVsZW1lbnRcbntcblx0Y29uc3RydWN0b3IoKVxuXHR7XG5cdCAgICBzdXBlcigpO1xuXG5cdFx0dGhpcy5fbW9kYWxIdG1sID0gYFxuXHRcdFx0PGRpdiBjbGFzcz1cIm1vZGFsXCIgaWQ9XCJ1cGxvYWRNb2RhbFwiIHRhYmluZGV4PVwiLTFcIiByb2xlPVwiZGlhbG9nXCIgYXJpYS1sYWJlbGxlZGJ5PVwidXBsb2FkTW9kYWxUaXRsZVwiIGFyaWEtaGlkZGVuPVwidHJ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BQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7Ozs7QSIsInNvdXJjZVJvb3QiOiIifQ==
@@ -0,0 +1,5 @@
1
+ <template-module class="module" id="template-module">
2
+ <div>
3
+ This is a template module
4
+ </div>
5
+ </template-module>
@@ -42,7 +42,17 @@
42
42
  <div id="znc-main" class="px-3 pt-3">
43
43
  <div id="znc-tabNavigator">
44
44
  <ul class="nav nav-tabs" id="tabs" role="tablist"></ul>
45
- <div class="tab-content" id="tabPanels"></div>
45
+ <div class="tab-content" id="tabPanels">
46
+ <div class="tab-pane" id="tabpane-wordsFilter" role="tabpanel" aria-labelledby="tab-wordsFilter">
47
+ <!-- A form is created here automatically, containing the words filter settings -->
48
+ <hr/>
49
+ <div class="custom-tab-content">
50
+ <!-- Custom tab content used in Zone configuration only (when displaying Room configuration this tab pane never shows up) -->
51
+ <label class="config-form-separator-label mb-3 font-weight-bold">Words Files Editor</label>
52
+ <words-files-manager id="znc-wordsFilesManager" class="form-group row"></words-files-manager>
53
+ </div>
54
+ </div>
55
+ </div>
46
56
  </div>
47
57
 
48
58
  <div id="znc-buttons" class="sticky-bottom-controls py-3 bg-color-default">
@@ -238,6 +238,14 @@
238
238
  <div class="text-muted">Service provided by <a href="https://www.geoplugin.com" target="_blank">geoPlugin</a>; includes GeoLite data created by <a href="https://www.maxmind.com" target="_blank">MaxMind</a>.</div>
239
239
  </div>
240
240
  <hr/>
241
+ <div class="custom-tab-content">
242
+ <label class="config-form-separator-label mb-3 font-weight-bold">Disconnect User</label>
243
+ <div>Force immediate user disconnection.</div>
244
+ <div class="row no-gutters my-2">
245
+ <button id="znm-disconnectBt" type="button" class="k-button k-primary my-1"><i class="fas fa-plug mr-1"></i>Disconnect</button>
246
+ </div>
247
+ </div>
248
+ <hr/>
241
249
  <div class="custom-tab-content">
242
250
  <label class="config-form-separator-label mb-3 font-weight-bold">Kick User</label>
243
251
  <div>Force user disconnection by kicking him/her; a message can be sent to the user to describe the reason of the action.</div>
@@ -0,0 +1,147 @@
1
+ <zone>
2
+ <name>BasicExamples</name>
3
+ <isCustomLogin>false</isCustomLogin>
4
+ <isForceLogout>false</isForceLogout>
5
+ <applyWordsFilterToUserName>true</applyWordsFilterToUserName>
6
+ <applyWordsFilterToRoomName>true</applyWordsFilterToRoomName>
7
+ <applyWordsFilterToPrivateMessages>true</applyWordsFilterToPrivateMessages>
8
+ <isFilterBuddyMessages>true</isFilterBuddyMessages>
9
+ <isEncrypted>false</isEncrypted>
10
+ <maxUsers>1000</maxUsers>
11
+ <maxUserVariablesAllowed>10</maxUserVariablesAllowed>
12
+ <maxRoomVariablesAllowed>10</maxRoomVariablesAllowed>
13
+ <minRoomNameChars>1</minRoomNameChars>
14
+ <maxRoomNameChars>20</maxRoomNameChars>
15
+ <maxRooms>500</maxRooms>
16
+ <maxRoomsCreatedPerUser>10</maxRoomsCreatedPerUser>
17
+ <userCountChangeUpdateInterval>1000</userCountChangeUpdateInterval>
18
+ <userReconnectionSeconds>0</userReconnectionSeconds>
19
+ <overrideMaxUserIdleTime>300</overrideMaxUserIdleTime>
20
+ <maxFailedLogins>2</maxFailedLogins>
21
+ <allowGuestUsers>true</allowGuestUsers>
22
+ <guestUserNamePrefix>Guest#</guestUserNamePrefix>
23
+ <publicRoomGroups>default,games,chats</publicRoomGroups>
24
+ <defaultRoomGroups>default,games,chats</defaultRoomGroups>
25
+ <defaultPlayerIdGeneratorClass></defaultPlayerIdGeneratorClass>
26
+ <allowInvitationsOnlyForBuddies>true</allowInvitationsOnlyForBuddies>
27
+ <maxUsersPerJoinInvitationRequest>5</maxUsersPerJoinInvitationRequest>
28
+ <geoLocationEnabled>true</geoLocationEnabled>
29
+ <wordsFilter active="false">
30
+ <useWarnings>false</useWarnings>
31
+ <warningsBeforeKick>3</warningsBeforeKick>
32
+ <kicksBeforeBan>2</kicksBeforeBan>
33
+ <banDuration>1440</banDuration>
34
+ <maxBadWordsPerMessage>0</maxBadWordsPerMessage>
35
+ <kicksBeforeBanMinutes>3</kicksBeforeBanMinutes>
36
+ <secondsBeforeBanOrKick>5</secondsBeforeBanOrKick>
37
+ <warningMessage>Stop swearing or you will be banned</warningMessage>
38
+ <kickMessage>Swearing not allowed: you are being kicked</kickMessage>
39
+ <banMessage>Too much swearing: you are banned</banMessage>
40
+ <wordsFile>config/wordsFile.txt</wordsFile>
41
+ <filterMode>BLACKLIST</filterMode>
42
+ <banMode>NAME</banMode>
43
+ <hideBadWordWithCharacter>*</hideBadWordWithCharacter>
44
+ </wordsFilter>
45
+ <floodFilter active="false">
46
+ <banDurationMinutes>1440</banDurationMinutes>
47
+ <maxFloodingAttempts>5</maxFloodingAttempts>
48
+ <secondsBeforeBan>5</secondsBeforeBan>
49
+ <banMode>NAME</banMode>
50
+ <logFloodingAttempts>true</logFloodingAttempts>
51
+ <banMessage>Too much flooding, you are banned</banMessage>
52
+ </floodFilter>
53
+ <rooms>
54
+ <room>
55
+ <name>The Lobby</name>
56
+ <groupId>default</groupId>
57
+ <password></password>
58
+ <maxUsers>150</maxUsers>
59
+ <maxSpectators>0</maxSpectators>
60
+ <isDynamic>false</isDynamic>
61
+ <isGame>false</isGame>
62
+ <isHidden>false</isHidden>
63
+ <autoRemoveMode>DEFAULT</autoRemoveMode>
64
+ <permissions>
65
+ <flags>PUBLIC_MESSAGES</flags>
66
+ <maxRoomVariablesAllowed>10</maxRoomVariablesAllowed>
67
+ </permissions>
68
+ <events>USER_ENTER_EVENT,USER_EXIT_EVENT,USER_COUNT_CHANGE_EVENT,USER_VARIABLES_UPDATE_EVENT</events>
69
+ <badWordsFilter isActive="false"/>
70
+ <roomVariables/>
71
+ <extension>
72
+ <name></name>
73
+ <type>JAVA</type>
74
+ <file></file>
75
+ <propertiesFile></propertiesFile>
76
+ <reloadMode>AUTO</reloadMode>
77
+ </extension>
78
+ </room>
79
+ </rooms>
80
+ <disabledSystemEvents/>
81
+ <privilegeManager active="false">
82
+ <profiles>
83
+ <profile id="0">
84
+ <name>Guest</name>
85
+ <deniedRequests/>
86
+ <permissionFlags>
87
+ <string>ExtensionCalls</string>
88
+ </permissionFlags>
89
+ </profile>
90
+ <profile id="1">
91
+ <name>Standard</name>
92
+ <deniedRequests/>
93
+ <permissionFlags>
94
+ <string>ExtensionCalls</string>
95
+ </permissionFlags>
96
+ </profile>
97
+ <profile id="2">
98
+ <name>Moderator</name>
99
+ <deniedRequests/>
100
+ <permissionFlags>
101
+ <string>ExtensionCalls</string>
102
+ <string>SuperUser</string>
103
+ </permissionFlags>
104
+ </profile>
105
+ <profile id="3">
106
+ <name>Administrator</name>
107
+ <deniedRequests/>
108
+ <permissionFlags>
109
+ <string>ExtensionCalls</string>
110
+ <string>SuperUser</string>
111
+ </permissionFlags>
112
+ </profile>
113
+ </profiles>
114
+ </privilegeManager>
115
+ <extension>
116
+ <name></name>
117
+ <type>JAVA</type>
118
+ <file></file>
119
+ <propertiesFile></propertiesFile>
120
+ <reloadMode>AUTO</reloadMode>
121
+ </extension>
122
+ <buddyList active="true">
123
+ <allowOfflineBuddyVariables>true</allowOfflineBuddyVariables>
124
+ <maxItemsPerList>100</maxItemsPerList>
125
+ <maxBuddyVariables>15</maxBuddyVariables>
126
+ <offlineBuddyVariablesCacheSize>500</offlineBuddyVariablesCacheSize>
127
+ <customStorageClass></customStorageClass>
128
+ <useTempBuddies>true</useTempBuddies>
129
+ <buddyStates>
130
+ <string>Available</string>
131
+ <string>Away</string>
132
+ <string>Occupied</string>
133
+ </buddyStates>
134
+ <badWordsFilter isActive="true"/>
135
+ </buddyList>
136
+ <databaseManager active="false">
137
+ <driverName></driverName>
138
+ <connectionString></connectionString>
139
+ <userName></userName>
140
+ <password></password>
141
+ <testSql></testSql>
142
+ <maxActiveConnections>10</maxActiveConnections>
143
+ <maxIdleConnections>10</maxIdleConnections>
144
+ <exhaustedPoolAction>FAIL</exhaustedPoolAction>
145
+ <blockTime>3000</blockTime>
146
+ </databaseManager>
147
+ </zone>
@@ -1,5 +1,5 @@
1
1
  module Rubyfox
2
2
  module Server
3
- VERSION = "2.16.0.4"
3
+ VERSION = "2.16.3.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyfox-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.16.0.4
4
+ version: 2.16.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Leitzen
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-12-07 00:00:00.000000000 Z
12
+ date: 2020-12-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
@@ -1121,6 +1121,7 @@ files:
1121
1121
  - lib/rubyfox/server/data/www/ROOT/admin/modules/log-viewer.html
1122
1122
  - lib/rubyfox/server/data/www/ROOT/admin/modules/server-configurator.html
1123
1123
  - lib/rubyfox/server/data/www/ROOT/admin/modules/servlet-manager.html
1124
+ - lib/rubyfox/server/data/www/ROOT/admin/modules/template.html
1124
1125
  - lib/rubyfox/server/data/www/ROOT/admin/modules/zone-configurator.html
1125
1126
  - lib/rubyfox/server/data/www/ROOT/admin/modules/zone-monitor.html
1126
1127
  - lib/rubyfox/server/data/www/ROOT/crossdomain.xml
@@ -1154,6 +1155,7 @@ files:
1154
1155
  - lib/rubyfox/server/data/www/manager/status.xsd
1155
1156
  - lib/rubyfox/server/data/www/manager/xform.xsl
1156
1157
  - lib/rubyfox/server/data/zones/.keep
1158
+ - lib/rubyfox/server/data/zones/BasicExamples.zone.xml
1157
1159
  - lib/rubyfox/server/environment.rb
1158
1160
  - lib/rubyfox/server/third-party-licenses/Antlr-license.txt
1159
1161
  - lib/rubyfox/server/third-party-licenses/StringTemplate-license.txt