Page MenuHomePhorge

D5448.1775281088.diff
No OneTemporary

Authored By
Unknown
Size
6 KB
Referenced Files
None
Subscribers
None

D5448.1775281088.diff

diff --git a/plugins/kolab_activesync/kolab_activesync_ui.php b/plugins/kolab_activesync/kolab_activesync_ui.php
--- a/plugins/kolab_activesync/kolab_activesync_ui.php
+++ b/plugins/kolab_activesync/kolab_activesync_ui.php
@@ -31,7 +31,8 @@
private $plugin;
private $skin_path;
- public const SETUP_URL = 'https://kb.kolabenterprise.com/documentation/setting-up-an-activesync-client';
+ public const SETUP_URL = 'https://kb.kolab.org/documentation/setting-up-an-activesync-client';
+ public const RESET_URL = 'https://kb.kolab.org/documentation/reset-an-activesync-client';
public function __construct($plugin)
@@ -54,6 +55,9 @@
foreach ($devices as $id => $device) {
$name = $device['friendlyname'] ? $device['friendlyname'] : $id;
+ if ($device['broken']) {
+ $name = "$name !";
+ }
$table->add_row(['id' => 'rcmrow' . $id]);
$table->add(null, html::span('devicealias', rcube::Q($name))
. ' ' . html::span('devicetype secondary', rcube::Q($device['devicetype'])));
@@ -80,6 +84,9 @@
if ($key == 'friendlyname') {
continue;
}
+ if ($key == 'broken') {
+ continue;
+ }
$value = $this->device[$key] ?? null;
@@ -102,6 +109,13 @@
$attrib['id'] = 'foldersubscriptions';
}
+ if ($this->device['broken']) {
+ $url = $this->rc->config->get('activesync_reset_url', self::RESET_URL);
+ $vars = ['url' => $url];
+ $msg = $this->plugin->gettext(['name' => 'brokendevice', 'vars' => $vars]);
+ return $msg;
+ }
+
// group folders by type (show only known types)
$use_fieldsets = rcube_utils::get_boolean($attrib['use-fieldsets'] ?? '');
$imei = $this->device['deviceid'];
diff --git a/plugins/kolab_activesync/localization/de.inc b/plugins/kolab_activesync/localization/de.inc
--- a/plugins/kolab_activesync/localization/de.inc
+++ b/plugins/kolab_activesync/localization/de.inc
@@ -17,6 +17,7 @@
$labels['configuration'] = 'Konfiguration';
$labels['deletedevice'] = 'Gerät löschen';
$labels['nodevices'] = 'Es sind aktuell keine Geräte registriert.<br/><br/>Um ein Gerät zu registrieren, bitte zuerst nach der Anleitung von <a href="$url" target="_blank">dieser Seite</a> mit dem Server verbinden. Anschließend sollte das Gerät für die Konfiguration hier zur Verfügung stehen.';
+$labels['brokendevice'] = 'Dieses Gerät ist in einem defekten Zustand. Bitte setzen Sie das Gerät gemäss der Anleitung von <a href="$url" target="_blank">dieser Seite</a> zurück. Anschließend sollte das Gerät für die Konfiguration hier zur Verfügung stehen.';
$labels['savingdata'] = 'Daten werden gespeichert...';
$labels['savingerror'] = 'Fehler beim Speichern der Konfiguration';
$labels['notsupported'] = 'Ihr Server unterstützt keine Activesync-Konfiguration';
diff --git a/plugins/kolab_activesync/localization/de_CH.inc b/plugins/kolab_activesync/localization/de_CH.inc
--- a/plugins/kolab_activesync/localization/de_CH.inc
+++ b/plugins/kolab_activesync/localization/de_CH.inc
@@ -17,6 +17,7 @@
$labels['configuration'] = 'Konfiguration';
$labels['deletedevice'] = 'Gerät löschen';
$labels['nodevices'] = 'Es sind aktuell keine Geräte registriert.<br/><br/>Um ein Gerät zu registrieren, bitte zuerst nach der Anleitung von <a href="$url" target="_blank">dieser Seite</a> mit dem Server verbinden. Anschließend sollte das Gerät für die Konfiguration hier zur Verfügung stehen.';
+$labels['brokendevice'] = 'Dieses Gerät ist in einem defekten Zustand. Bitte setzen Sie das Gerät gemäss der Anleitung von <a href="$url" target="_blank">dieser Seite</a> zurück. Anschließend sollte das Gerät für die Konfiguration hier zur Verfügung stehen.';
$labels['savingdata'] = 'Daten werden gespeichert...';
$labels['savingerror'] = 'Fehler beim Speichern';
$labels['notsupported'] = 'Ihr Server unterstützt keine Activesync-Konfiguration';
diff --git a/plugins/kolab_activesync/localization/de_DE.inc b/plugins/kolab_activesync/localization/de_DE.inc
--- a/plugins/kolab_activesync/localization/de_DE.inc
+++ b/plugins/kolab_activesync/localization/de_DE.inc
@@ -17,6 +17,7 @@
$labels['configuration'] = 'Konfiguration';
$labels['deletedevice'] = 'Gerät löschen';
$labels['nodevices'] = 'Es sind aktuell keine Geräte registriert.<br/><br/>Um ein Gerät zu registrieren, bitte zuerst nach der Anleitung von <a href="$url" target="_blank">dieser Seite</a> mit dem Server verbinden. Anschließend sollte das Gerät für die Konfiguration hier zur Verfügung stehen.';
+$labels['brokendevice'] = 'Dieses Gerät ist in einem defekten Zustand. Bitte setzen Sie das Gerät gemäss der Anleitung von <a href="$url" target="_blank">dieser Seite</a> zurück. Anschließend sollte das Gerät für die Konfiguration hier zur Verfügung stehen.';
$labels['savingdata'] = 'Daten werden gespeichert...';
$labels['savingerror'] = 'Fehler beim Speichern der Konfiguration';
$labels['notsupported'] = 'Ihr Server unterstützt keine Activesync-Konfiguration';
diff --git a/plugins/kolab_activesync/localization/en_US.inc b/plugins/kolab_activesync/localization/en_US.inc
--- a/plugins/kolab_activesync/localization/en_US.inc
+++ b/plugins/kolab_activesync/localization/en_US.inc
@@ -17,6 +17,7 @@
$labels['configuration'] = 'Configuration';
$labels['deletedevice'] = 'Delete device';
$labels['nodevices'] = 'There are currently no devices registered.<br/><br/>In order to register a device, please connect it to the server first, using instructions from <a href="$url" target="_blank">this page</a>. Afterwards the device should become available for configuration here.';
+$labels['brokendevice'] = 'This device is currently in a broken state. Please reset it using instructions from <a href="$url" target="_blank">this page</a>. Afterwards the device should become available for configuration here again.';
$labels['savingdata'] = 'Saving data...';
$labels['savingerror'] = 'Failed to save configuration';
$labels['notsupported'] = 'Your server does not support metadata/annotations';
diff --git a/plugins/libkolab/lib/kolab_subscriptions.php b/plugins/libkolab/lib/kolab_subscriptions.php
--- a/plugins/libkolab/lib/kolab_subscriptions.php
+++ b/plugins/libkolab/lib/kolab_subscriptions.php
@@ -23,7 +23,7 @@
class kolab_subscriptions
{
- public const DEVICE_FIELDS = ['devicetype', 'acsversion', 'useragent', 'friendlyname', 'os', 'oslanguage', 'phonenumber'];
+ public const DEVICE_FIELDS = ['devicetype', 'acsversion', 'useragent', 'friendlyname', 'os', 'oslanguage', 'phonenumber', 'broken'];
/** @var ?kolab_storage_dav DAV storage handler */
private $dav = null;

File Metadata

Mime Type
text/plain
Expires
Sat, Apr 4, 5:38 AM (6 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18828257
Default Alt Text
D5448.1775281088.diff (6 KB)

Event Timeline