adding pushover clone button for new app
parent
ea585d2ac3
commit
17b5d175ff
|
@ -106,4 +106,9 @@ define('PSM_CURL_TIMEOUT', 10);
|
|||
/**
|
||||
* Name of the default theme.
|
||||
*/
|
||||
define('PSM_THEME', 'default');
|
||||
define('PSM_THEME', 'default');
|
||||
|
||||
/**
|
||||
* Clone URL for the Pushover.net service.
|
||||
*/
|
||||
define('PSM_PUSHOVER_CLONE_URL', 'https://pushover.net/apps/clone/php_server_monitor');
|
|
@ -198,8 +198,9 @@ $sm_lang = array(
|
|||
'sms_from' => 'Номер на изпращача',
|
||||
'pushover_status' => 'Allow sending Pushover messages',
|
||||
'pushover_description' => 'Pushover is a service that makes it easy to get real-time notifications. See <a href="https://pushover.net/">their website</a> for more info.',
|
||||
'pushover_clone_app' => 'Click here to create your Pushover app',
|
||||
'pushover_api_token' => 'Pushover App API Token',
|
||||
'pushover_api_token_description' => 'Before you can use Pushover, you need to register an App at their website and enter the App API Token here.',
|
||||
'pushover_api_token_description' => 'Before you can use Pushover, you need to <a href="%1$s" target="_blank">register an App</a> at their website and enter the App API Token here.',
|
||||
'alert_type' => 'Изберете кога желаете да получавате известия',
|
||||
'alert_type_description' => '<b>Промяна на сатуса:</b><br>'.
|
||||
'Ще получавате известие когато има промяна със връзката на даден някой от описаните сървър или сайт. От Онлайн -> Офлайн и от Офлайн -> Онлайн.<br/>'.
|
||||
|
|
|
@ -198,8 +198,9 @@ $sm_lang = array(
|
|||
'sms_from' => 'Afsenders navn.',
|
||||
'pushover_status' => 'Allow sending Pushover messages',
|
||||
'pushover_description' => 'Pushover is a service that makes it easy to get real-time notifications. See <a href="https://pushover.net/">their website</a> for more info.',
|
||||
'pushover_clone_app' => 'Click here to create your Pushover app',
|
||||
'pushover_api_token' => 'Pushover App API Token',
|
||||
'pushover_api_token_description' => 'Before you can use Pushover, you need to register an App at their website and enter the App API Token here.',
|
||||
'pushover_api_token_description' => 'Before you can use Pushover, you need to <a href="%1$s" target="_blank">register an App</a> at their website and enter the App API Token here.',
|
||||
'alert_type' => 'Vælg hvornår du vil modtage besked',
|
||||
'alert_type_description' => '<b>Status ændring:</b> '.
|
||||
'Du vil modtage en notifcation når en server har en ændring i status. Fra online -> offline eller offline -> online.<br/>'.
|
||||
|
|
|
@ -198,8 +198,9 @@ $sm_lang = array(
|
|||
'sms_from' => 'SMS Sendernummer',
|
||||
'pushover_status' => 'Allow sending Pushover messages',
|
||||
'pushover_description' => 'Pushover is a service that makes it easy to get real-time notifications. See <a href="https://pushover.net/">their website</a> for more info.',
|
||||
'pushover_clone_app' => 'Click here to create your Pushover app',
|
||||
'pushover_api_token' => 'Pushover App API Token',
|
||||
'pushover_api_token_description' => 'Before you can use Pushover, you need to register an App at their website and enter the App API Token here.',
|
||||
'pushover_api_token_description' => 'Before you can use Pushover, you need to <a href="%1$s" target="_blank">register an App</a> at their website and enter the App API Token here.',
|
||||
'alert_type' => 'Wann möchten Sie benachrichtig werden?',
|
||||
'alert_type_description' => '<b>Status geändert:</b> '.
|
||||
'... wenn sich der Status ändert<br/>'.
|
||||
|
|
|
@ -198,8 +198,9 @@ $sm_lang = array(
|
|||
'sms_from' => 'Sender\'s phone number',
|
||||
'pushover_status' => 'Allow sending Pushover messages',
|
||||
'pushover_description' => 'Pushover is a service that makes it easy to get real-time notifications. See <a href="https://pushover.net/">their website</a> for more info.',
|
||||
'pushover_clone_app' => 'Click here to create your Pushover app',
|
||||
'pushover_api_token' => 'Pushover App API Token',
|
||||
'pushover_api_token_description' => 'Before you can use Pushover, you need to register an App at their website and enter the App API Token here.',
|
||||
'pushover_api_token_description' => 'Before you can use Pushover, you need to <a href="%1$s" target="_blank">register an App</a> at their website and enter the App API Token here.',
|
||||
'alert_type' => 'Select when you\'d like to be notified.',
|
||||
'alert_type_description' => '<b>Status change:</b> '.
|
||||
'You will receive a notifcation when a server has a change in status. So from online -> offline or offline -> online.<br/>'.
|
||||
|
|
|
@ -198,8 +198,9 @@ $sm_lang = array(
|
|||
'sms_from' => 'Número origen del SMS',
|
||||
'pushover_status' => 'Allow sending Pushover messages',
|
||||
'pushover_description' => 'Pushover is a service that makes it easy to get real-time notifications. See <a href="https://pushover.net/">their website</a> for more info.',
|
||||
'pushover_clone_app' => 'Click here to create your Pushover app',
|
||||
'pushover_api_token' => 'Pushover App API Token',
|
||||
'pushover_api_token_description' => 'Before you can use Pushover, you need to register an App at their website and enter the App API Token here.',
|
||||
'pushover_api_token_description' => 'Before you can use Pushover, you need to <a href="%1$s" target="_blank">register an App</a> at their website and enter the App API Token here.',
|
||||
'alert_type' => 'Cuando desea recibir notificaciones ?',
|
||||
'alert_type_description' => '<b>... Al cambiar el estado:</b> '.
|
||||
'p.ej. online -> offline o offline -> online.<br/>'.
|
||||
|
|
|
@ -198,8 +198,9 @@ $sm_lang = array(
|
|||
'sms_from' => 'SMS de l\'expéditeur',
|
||||
'pushover_status' => 'Allow sending Pushover messages',
|
||||
'pushover_description' => 'Pushover is a service that makes it easy to get real-time notifications. See <a href="https://pushover.net/">their website</a> for more info.',
|
||||
'pushover_clone_app' => 'Click here to create your Pushover app',
|
||||
'pushover_api_token' => 'Pushover App API Token',
|
||||
'pushover_api_token_description' => 'Before you can use Pushover, you need to register an App at their website and enter the App API Token here.',
|
||||
'pushover_api_token_description' => 'Before you can use Pushover, you need to <a href="%1$s" target="_blank">register an App</a> at their website and enter the App API Token here.',
|
||||
'alert_type' => 'Choisissez quand vous souhaitez être notifié',
|
||||
'alert_type_description' => '<b>Changement d\'état : </b>'.
|
||||
'Vous recevez une notification chaque fois que le serveur change d\'état. C\'est-à-dire passe de l\'état OK à HORS SERVICE ou de HORS SERVICE à OK.<br/>'.
|
||||
|
|
|
@ -198,8 +198,9 @@ $sm_lang = array(
|
|||
'sms_from' => 'Numero di telefono del mittente',
|
||||
'pushover_status' => 'Allow sending Pushover messages',
|
||||
'pushover_description' => 'Pushover is a service that makes it easy to get real-time notifications. See <a href="https://pushover.net/">their website</a> for more info.',
|
||||
'pushover_clone_app' => 'Click here to create your Pushover app',
|
||||
'pushover_api_token' => 'Pushover App API Token',
|
||||
'pushover_api_token_description' => 'Before you can use Pushover, you need to register an App at their website and enter the App API Token here.',
|
||||
'pushover_api_token_description' => 'Before you can use Pushover, you need to <a href="%1$s" target="_blank">register an App</a> at their website and enter the App API Token here.',
|
||||
'alert_type' => 'Seleziona quando vuoi essere notificato',
|
||||
'alert_type_description' => '<b>Cambio di Stato:</b> '.
|
||||
'Riceverai una notifica solo quando un server cambierà stato. Quindi da online -> offline oppure da offline -> online.<br/>'.
|
||||
|
|
|
@ -198,8 +198,9 @@ $sm_lang = array(
|
|||
'sms_from' => 'Sender\'s phone number',
|
||||
'pushover_status' => 'Allow sending Pushover messages',
|
||||
'pushover_description' => 'Pushover is a service that makes it easy to get real-time notifications. See <a href="https://pushover.net/">their website</a> for more info.',
|
||||
'pushover_clone_app' => 'Click here to create your Pushover app',
|
||||
'pushover_api_token' => 'Pushover App API Token',
|
||||
'pushover_api_token_description' => 'Before you can use Pushover, you need to register an App at their website and enter the App API Token here.',
|
||||
'pushover_api_token_description' => 'Before you can use Pushover, you need to <a href="%1$s" target="_blank">register an App</a> at their website and enter the App API Token here.',
|
||||
'alert_type' => '알림을 원하면 다음과 같이 변경하십시오.',
|
||||
'alert_type_description' => '<b>상태 변경: </b><br/>'.
|
||||
'서버 상태가 변경이되면 알림을 받습니다. online -> offline -> online.<br/>'.
|
||||
|
|
|
@ -198,8 +198,9 @@ $sm_lang = array(
|
|||
'sms_from' => 'Telefoonnummer afzender',
|
||||
'pushover_status' => 'Sta Pushover berichten toe?',
|
||||
'pushover_description' => 'Pushover is een dienst die het gemakkelijk maakt om real-time notificaties te ontvangen. Zie <a href="https://pushover.net/">hun website</a> voor meer informatie.',
|
||||
'pushover_clone_app' => 'Klik hier om je Pushover app te maken',
|
||||
'pushover_api_token' => 'Pushover App API Token',
|
||||
'pushover_api_token_description' => 'Voordat je Pushover kunt gebruiken moet je een App registreren via hun website, en daarvan de App API Token hier invullen.',
|
||||
'pushover_api_token_description' => 'Voordat je Pushover kunt gebruiken moet je een <a href="%1$s" target="_blank">App registreren</a> via hun website, en daarvan de App API Token hier invullen.',
|
||||
'alert_type' => 'Selecteer wanneer je een notificatie wilt',
|
||||
'alert_type_description' => '<b>Status change:</b> '.
|
||||
'Je ontvangt alleen bericht wanneer een server van status verandert. Dus van online -> offline of offline -> online.<br/>'.
|
||||
|
|
|
@ -198,8 +198,9 @@ $sm_lang = array(
|
|||
'sms_from' => 'Número de telefone de envio',
|
||||
'pushover_status' => 'Allow sending Pushover messages',
|
||||
'pushover_description' => 'Pushover is a service that makes it easy to get real-time notifications. See <a href="https://pushover.net/">their website</a> for more info.',
|
||||
'pushover_clone_app' => 'Click here to create your Pushover app',
|
||||
'pushover_api_token' => 'Pushover App API Token',
|
||||
'pushover_api_token_description' => 'Before you can use Pushover, you need to register an App at their website and enter the App API Token here.',
|
||||
'pushover_api_token_description' => 'Before you can use Pushover, you need to <a href="%1$s" target="_blank">register an App</a> at their website and enter the App API Token here.',
|
||||
'alert_type' => 'Selecione como você gostaria de ser notificado.',
|
||||
'alert_type_description' => '<b>Mudança de Status:</b> '.
|
||||
'Você receberá uma notificação quando o seridor tive uma mudança de status. De online -> offline ou offline -> online.<br/>'.
|
||||
|
|
|
@ -198,8 +198,9 @@ $sm_lang = array(
|
|||
'sms_from' => 'Номер отправителя',
|
||||
'pushover_status' => 'Разрешить отправку Pushover сообщений',
|
||||
'pushover_description' => 'Pushover - это сервис, который позволяет легко получать уведомления в режиме реального времени. Больше информации на <a href="https://pushover.net/">их веб-сайте</a>.',
|
||||
'pushover_clone_app' => 'Click here to create your Pushover app',
|
||||
'pushover_api_token' => 'Pushover App API Token',
|
||||
'pushover_api_token_description' => 'Прежде чем вы сможете начать пользоваться Pushover, вам необходимо зарегестрировать "App" на их веб-сайте и ввести "App API Token" сюда.',
|
||||
'pushover_api_token_description' => 'Прежде чем вы сможете начать пользоваться Pushover, вам необходимо зарегестрировать <a href="%1$s" target="_blank">"App"</a> на их веб-сайте и ввести "App API Token" сюда.',
|
||||
'alert_type' => 'Выбeрите, какие вы хотите получать уведомления',
|
||||
'alert_type_description' => '<b>Изменение статуса :</b> '.
|
||||
'Вы получите уведомление об изменение статуса. Для онлайн -> оффлайн или офлайн -> онлайн.<br/>'.
|
||||
|
|
|
@ -198,8 +198,9 @@ $sm_lang = array(
|
|||
'sms_from' => '发信人电话号',
|
||||
'pushover_status' => 'Allow sending Pushover messages',
|
||||
'pushover_description' => 'Pushover is a service that makes it easy to get real-time notifications. See <a href="https://pushover.net/">their website</a> for more info.',
|
||||
'pushover_clone_app' => 'Click here to create your Pushover app',
|
||||
'pushover_api_token' => 'Pushover App API Token',
|
||||
'pushover_api_token_description' => 'Before you can use Pushover, you need to register an App at their website and enter the App API Token here.',
|
||||
'pushover_api_token_description' => 'Before you can use Pushover, you need to <a href="%1$s" target="_blank">register an App</a> at their website and enter the App API Token here.',
|
||||
'alert_type' => '如果想要收到提醒请选中此项.',
|
||||
'alert_type_description' => '<b>状态变化:</b> '.
|
||||
'服务器 online -> offline 或 offline -> online 的状态变化将会收到提醒.<br/>'.
|
||||
|
|
|
@ -308,8 +308,13 @@ class ConfigController extends AbstractController {
|
|||
'label_sms_from' => psm_get_lang('config', 'sms_from'),
|
||||
'label_pushover_description' => psm_get_lang('config', 'pushover_description'),
|
||||
'label_pushover_status' => psm_get_lang('config', 'pushover_status'),
|
||||
'label_pushover_clone_app' => psm_get_lang('config', 'pushover_clone_app'),
|
||||
'pushover_clone_url' => PSM_PUSHOVER_CLONE_URL,
|
||||
'label_pushover_api_token' => psm_get_lang('config', 'pushover_api_token'),
|
||||
'label_pushover_api_token_description' => psm_get_lang('config', 'pushover_api_token_description'),
|
||||
'label_pushover_api_token_description' => sprintf(
|
||||
psm_get_lang('config', 'pushover_api_token_description'),
|
||||
PSM_PUSHOVER_CLONE_URL
|
||||
),
|
||||
'label_alert_type' => psm_get_lang('config', 'alert_type'),
|
||||
'label_alert_type_description' => psm_get_lang('config', 'alert_type_description'),
|
||||
'label_alert_type_status' => psm_get_lang('config', 'alert_type_status'),
|
||||
|
|
|
@ -193,6 +193,7 @@
|
|||
<div class="control-group">
|
||||
<label class="control-label" for="pushover_api_token">{{ label_pushover_api_token }}</label>
|
||||
<div class="controls">
|
||||
<p><button class="btn btn-primary" onclick="window.open('{{ pushover_clone_url }}');return false;">{{ label_pushover_clone_app }}</button></p>
|
||||
<input type="text" id="pushover_api_token" name="pushover_api_token" value="{{ pushover_api_token }}" maxlength="255" />
|
||||
<p class="help-block">{{ label_pushover_api_token_description|raw }}</p>
|
||||
</div>
|
||||
|
|
|
@ -119,14 +119,4 @@ function psm_flash_message(message) {
|
|||
flashmessage.slideDown();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This function toggles all grouped checkboxes by name
|
||||
*/
|
||||
function psm_onClickCheckboxIDCToggleAll(name, value) {
|
||||
var $visible = $('input[name="'+name+'"]:visible');
|
||||
|
||||
var value = (typeof value === 'undefined') ? !$visible.first().is(':checked') : value;
|
||||
$visible.prop('checked', value);
|
||||
}
|
Loading…
Reference in New Issue