diff --git a/composer.json b/composer.json
old mode 100644
new mode 100755
index 35e8e53d..52a883a2
--- a/composer.json
+++ b/composer.json
@@ -2,9 +2,16 @@
"name": "phpservermon/phpservermon",
"description": "PHP Server Monitor",
"homepage": "http://www.phpservermonitor.org",
+ "repositories": [
+ {
+ "type": "vcs",
+ "url": "https://github.com/phpservermon/php-pushover"
+ }
+ ],
"require": {
"php": ">=5.3.7",
"phpmailer/phpmailer": "5.2.6",
- "symfony/http-foundation": "2.4.*"
+ "symfony/http-foundation": "2.4.*",
+ "php-pushover/php-pushover": "dev-master"
}
}
diff --git a/composer.lock b/composer.lock
index e34ceb9a..ea19d7aa 100644
--- a/composer.lock
+++ b/composer.lock
@@ -3,8 +3,34 @@
"This file locks the dependencies of your project to a known state",
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file"
],
- "hash": "63c9618391ed04b38b098c0139b50570",
+ "hash": "6a941e5369d421e16d869151569bc5c7",
"packages": [
+ {
+ "name": "php-pushover/php-pushover",
+ "version": "dev-master",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/phpservermon/php-pushover.git",
+ "reference": "d13d08dbf5f1cfa73f4adca7e8d27f79c804dd7b"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/phpservermon/php-pushover/zipball/d13d08dbf5f1cfa73f4adca7e8d27f79c804dd7b",
+ "reference": "d13d08dbf5f1cfa73f4adca7e8d27f79c804dd7b",
+ "shasum": ""
+ },
+ "type": "library",
+ "autoload": {
+ "files": [
+ "Pushover.php"
+ ]
+ },
+ "description": "PHP class for the Pushover.net project",
+ "support": {
+ "source": "https://github.com/phpservermon/php-pushover/tree/master"
+ },
+ "time": "2014-07-30 13:55:53"
+ },
{
"name": "phpmailer/phpmailer",
"version": "v5.2.6",
@@ -60,17 +86,17 @@
},
{
"name": "symfony/http-foundation",
- "version": "v2.4.3",
+ "version": "v2.4.8",
"target-dir": "Symfony/Component/HttpFoundation",
"source": {
"type": "git",
"url": "https://github.com/symfony/HttpFoundation.git",
- "reference": "11ad7352c7bfa12145a0df8e1c4c303c585ce169"
+ "reference": "68abe34601c519359b60363b99c29ecfb6679bc4"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/HttpFoundation/zipball/11ad7352c7bfa12145a0df8e1c4c303c585ce169",
- "reference": "11ad7352c7bfa12145a0df8e1c4c303c585ce169",
+ "url": "https://api.github.com/repos/symfony/HttpFoundation/zipball/68abe34601c519359b60363b99c29ecfb6679bc4",
+ "reference": "68abe34601c519359b60363b99c29ecfb6679bc4",
"shasum": ""
},
"require": {
@@ -111,7 +137,7 @@
],
"description": "Symfony HttpFoundation Component",
"homepage": "http://symfony.com",
- "time": "2014-03-26 11:35:33"
+ "time": "2014-07-15 14:07:10"
}
],
"packages-dev": [
@@ -121,9 +147,9 @@
],
"minimum-stability": "stable",
- "stability-flags": [
-
- ],
+ "stability-flags": {
+ "php-pushover/php-pushover": 20
+ },
"platform": {
"php": ">=5.3.7"
},
diff --git a/src/includes/functions.inc.php b/src/includes/functions.inc.php
index c55150d8..98d11543 100644
--- a/src/includes/functions.inc.php
+++ b/src/includes/functions.inc.php
@@ -414,13 +414,12 @@ function psm_build_mail($from_name = null, $from_email = null) {
}
/**
-
* Prepare a new Pushover util.
*
- * @return \psm\Util\Pushover
+ * @return \Pushover
*/
function psm_build_pushover() {
- $pushover = new \psm\Util\Pushover();
+ $pushover = new \Pushover();
$pushover->setToken(psm_get_conf('pushover_api_token'));
return $pushover;
diff --git a/src/lang/bg_BG.lang.php b/src/lang/bg_BG.lang.php
index 21c4d2f8..a8d7d768 100644
--- a/src/lang/bg_BG.lang.php
+++ b/src/lang/bg_BG.lang.php
@@ -81,6 +81,9 @@ $sm_lang = array(
'level_description' => 'Администраторите имат пълен достъп: могат да управляват сървърите, потребителите и да редактират глобалните настройки. Потребителите могат само да виждат статуса на сървърите и да обнояват информацията за даден сървър, за който им е разрешен достъп.',
'mobile' => 'Мобилен телефон',
'email' => 'Имейл',
+ 'pushover' => 'Pushover',
+ 'pushover_key' => 'Pushover Key',
+ 'pushover_device' => 'Pushover Device',
'delete_title' => 'Изтриване на потребител',
'delete_message' => 'Сигурни ли сте, че искате да изтриете потребител \'%1\'?',
'deleted' => 'Потребителят е изтрит успешно.',
@@ -104,6 +107,7 @@ $sm_lang = array(
'status' => 'Статус',
'email' => 'Имейл',
'sms' => 'SMS',
+ 'pushover' => 'Pushover',
'no_logs' => 'Няма налични логове',
),
'servers' => array(
@@ -127,6 +131,7 @@ $sm_lang = array(
'send_email' => 'Имейл',
'sms' => 'SMS',
'send_sms' => 'SMS',
+ 'pushover' => 'Pushover',
'users' => 'Users',
'delete_title' => 'Изтриване на сървър',
'delete_message' => 'Сигурни ли сте, че искате да изтриете сървър \'%1\'?',
@@ -186,6 +191,8 @@ $sm_lang = array(
'sms_gateway_username' => 'Потребител',
'sms_gateway_password' => 'Парола',
'sms_from' => 'Номер на изпращача',
+ 'pushover_status' => 'Allow sending pushover messages',
+ 'pushover_api_token' => 'Pushover App API Token',
'alert_type' => 'Изберете кога желаете да получавате известия ',
'alert_type_description' => 'Промяна на сатуса: '.
'Ще получавате известие когато има промяна със връзката на даден някой от описаните сървър или сайт. От Онлайн -> Офлайн и от Офлайн -> Онлайн. '.
@@ -194,8 +201,7 @@ $sm_lang = array(
'вашия cron скрипт проверява всеки 15 минути и връзката до сървъра е изгубена в 1 часа през нощта и не работи до 6 часа сутринта '.
'Вие ще получите едно известие в 1 часа за това '.
' Винаги: '.
- 'Ще получавате известие при всяка проверка на Вашия крон скрипт дори когато връзката до даден сървър или сайт е била'.
- 'прекъсната в продължение на часове.',
+ 'Ще получавате известие при всяка проверка на Вашия крон скрипт дори когато връзката до даден сървър или сайт е била прекъсната в продължение на часове.',
'alert_type_status' => 'Промяна на статуса',
'alert_type_offline' => 'Офлайн',
'alert_type_always' => 'Винаги',
@@ -203,13 +209,15 @@ $sm_lang = array(
'log_status_description' => 'Ако е отметнато, системата ще записва всяка промяна.',
'log_email' => 'Да се пази ли лог на изпратените имейли от системата',
'log_sms' => 'Да се пази ли лог на изпратените SMS съобщения от системата',
+ 'log_pushover' => 'Log pushover messages sent by the script',
'updated' => 'Настройките са обновени успешно.',
'nochanges' => 'Не бяха направени промени!',
'tab_email' => 'Имейл',
'tab_sms' => 'SMS',
- 'tab_log' => 'Логове',
+ 'tab_pushover' => 'Pushover',
'settings_email' => 'Имейл настройки',
'settings_sms' => 'SMS настройки',
+ 'settings_pushover' => 'Pushover settings',
'settings_notification' => 'Настройки на известията',
'settings_log' => 'Настройки на логовете',
'auto_refresh' => 'Автоматично опресняване',
@@ -235,9 +243,13 @@ $sm_lang = array(
'off_sms' => 'Сървър \'%LABEL%\' е Офлайн: ip=%IP%, port=%PORT%. Greshka=%ERROR%',
'off_email_subject' => 'Връзката до \'%LABEL%\' е ИЗГУБЕНА',
'off_email_body' => "Неуспешно свързване:
Сървър: %LABEL% IP адрес: %IP% Порт: %PORT% Грешка: %ERROR% Днес: %DATE%",
+ 'off_pushover_title' => 'Връзката до \'%LABEL%\' е ИЗГУБЕНА',
+ 'off_pushover_message' => "Неуспешно свързване:
Сървър: %LABEL% IP адрес: %IP% Порт: %PORT% Грешка: %ERROR% Днес: %DATE%",
'on_sms' => 'Сървър \'%LABEL%\' е Онлайн: ip=%IP%, port=%PORT%',
'on_email_subject' => 'Връзката до \'%LABEL%\' е ВЪЗСТАНОВЕНА',
'on_email_body' => "Връзката до '%LABEL%' беше ВЪЗСТАНОВЕНА:
Сървър: %LABEL% IP адрес: %IP% Порт: %PORT% Днес: %DATE%",
+ 'on_pushover_title' => 'Връзката до \'%LABEL%\' е ВЪЗСТАНОВЕНА',
+ 'on_pushover_message' => "Връзката до '%LABEL%' беше ВЪЗСТАНОВЕНА:
Сървър: %LABEL% IP адрес: %IP% Порт: %PORT% Днес: %DATE%",
),
'login' => array(
'welcome_usermenu' => 'Добре дошъл, %user_name%',
diff --git a/src/lang/da_DK.lang.php b/src/lang/da_DK.lang.php
index 5e84569c..d7a41588 100644
--- a/src/lang/da_DK.lang.php
+++ b/src/lang/da_DK.lang.php
@@ -81,6 +81,9 @@ $sm_lang = array(
'level_description' => 'Administratore har fuld adgang: De kan styre servere, brugere og indstillingere. Brugere kan kun se og køre opdatere for servere som er tildelt til dem.',
'mobile' => 'Mobil',
'email' => 'Email',
+ 'pushover' => 'Pushover',
+ 'pushover_key' => 'Pushover Key',
+ 'pushover_device' => 'Pushover Device',
'delete_title' => 'Slet bruger',
'delete_message' => 'Er du sikker på du vil slette bruger \'%1\'?',
'deleted' => 'Bruger slettet.',
@@ -104,6 +107,7 @@ $sm_lang = array(
'status' => 'Status',
'email' => 'Email',
'sms' => 'SMS',
+ 'pushover' => 'Pushover',
'no_logs' => 'Intet i loggen',
),
'servers' => array(
@@ -127,6 +131,7 @@ $sm_lang = array(
'send_email' => 'Send Email',
'sms' => 'SMS',
'send_sms' => 'Send SMS',
+ 'pushover' => 'Pushover',
'users' => 'Users',
'delete_title' => 'Slet server',
'delete_message' => 'Er du sikker på du vil slette server \'%1\'?',
@@ -186,16 +191,17 @@ $sm_lang = array(
'sms_gateway_username' => 'Gateway brugernavn/apikey',
'sms_gateway_password' => 'Gateway adgangskode',
'sms_from' => 'Afsenders navn.',
+ 'pushover_status' => 'Allow sending pushover messages',
+ 'pushover_api_token' => 'Pushover App API Token',
'alert_type' => 'Vælg hvornår du vil modtage besked. ',
- 'alert_type_description' => 'Status ændring: '.
+ 'alert_type_description' => 'Status ændring: '.
'Du vil modtage en notifcation når en server har en ændring i status. Fra online -> offline eller offline -> online. '.
' Offline: '.
'Du vil modtage en meddelelse, når en server går offline for * kun første gang *. for eksempel, '.
'Hvis dit cronjob køre hvert kvatere og din server går ned kl 01 og kommer først op kl 06 '.
' så vil du kun modtage en mail kl 01. '.
' Altid: '.
- 'Du vil modtage en besked, hver gang scriptet kører og et websted er nede, selvom site har været '.
- 'offline i flere timer.',
+ 'Du vil modtage en besked, hver gang scriptet kører og et websted er nede, selvom site har været offline i flere timer.',
'alert_type_status' => 'Status ændret',
'alert_type_offline' => 'Offline',
'alert_type_always' => 'Altid',
@@ -203,13 +209,15 @@ $sm_lang = array(
'log_status_description' => 'Hvis log status er sat til TRUE, vil monitoren logge hændelsen hver gang status ændre sig.',
'log_email' => 'Log mails sendt af systemet',
'log_sms' => 'Log SMS sendt af systemet',
+ 'log_pushover' => 'Log pushover messages sent by the script',
'updated' => 'Indstillingerne er blevet opdateret.',
'nochanges' => 'The configuration didn\'t change.',
'tab_email' => 'Email',
'tab_sms' => 'SMS',
- 'tab_log' => 'Log',
+ 'tab_pushover' => 'Pushover',
'settings_email' => 'Email indstillinger',
'settings_sms' => 'SMS indstillinger',
+ 'settings_pushover' => 'Pushover settings',
'settings_notification' => 'Meddelelse indstillinger',
'settings_log' => 'Log indstillinger',
'auto_refresh' => 'Genopfriske automatisk',
@@ -235,9 +243,13 @@ $sm_lang = array(
'off_sms' => 'Server \'%LABEL%\' is DOWN: ip=%IP%, port=%PORT%. Fejl=%ERROR%',
'off_email_subject' => 'VIGTIG: Server \'%LABEL%\' is DOWN',
'off_email_body' => "Det lykkedes ikke at oprette forbindelse til følgende server:
Server: %LABEL% IP: %IP% Port: %PORT% Fejl: %ERROR% Date: %DATE%",
+ 'off_pushover_title' => 'Server \'%LABEL%\' is DOWN',
+ 'off_pushover_message' => "Det lykkedes ikke at oprette forbindelse til følgende server:
Server: %LABEL% IP: %IP% Port: %PORT% Datum: %DATE%",
),
'login' => array(
'welcome_usermenu' => 'Welcome, %user_name%',
diff --git a/src/lang/en_US.lang.php b/src/lang/en_US.lang.php
index 5868625f..9b2fb7c2 100644
--- a/src/lang/en_US.lang.php
+++ b/src/lang/en_US.lang.php
@@ -131,7 +131,7 @@ $sm_lang = array(
'send_email' => 'Send Email',
'sms' => 'SMS',
'send_sms' => 'Send SMS',
- 'send_pushover' => 'Send Pushover',
+ 'pushover' => 'Pushover',
'users' => 'Users',
'delete_title' => 'Delete server',
'delete_message' => 'Are you sure you want to delete server \'%1\'?',
@@ -201,8 +201,7 @@ $sm_lang = array(
'your cronjob is every 15 mins and your server goes down at 1 am and stays down till 6 am. '.
'You will get 1 notification at 1 am and thats it. '.
' Always: '.
- 'You will receive a notification every time the script runs and a site is down, even if the site has been '.
- 'offline for hours.',
+ 'You will receive a notification every time the script runs and a site is down, even if the site has been offline for hours.',
'alert_type_status' => 'Status change',
'alert_type_offline' => 'Offline',
'alert_type_always' => 'Always',
@@ -216,7 +215,6 @@ $sm_lang = array(
'tab_email' => 'Email',
'tab_sms' => 'SMS',
'tab_pushover' => 'Pushover',
- 'tab_log' => 'Log',
'settings_email' => 'Email settings',
'settings_sms' => 'Text message settings',
'settings_pushover' => 'Pushover settings',
@@ -245,17 +243,13 @@ $sm_lang = array(
'off_sms' => 'Server \'%LABEL%\' is DOWN: ip=%IP%, port=%PORT%. Error=%ERROR%',
'off_email_subject' => 'IMPORTANT: Server \'%LABEL%\' is DOWN',
'off_email_body' => "Failed to connect to the following server:
Server: %LABEL% IP: %IP% Port: %PORT% Error: %ERROR% Date: %DATE%",
- 'off_pushover_title' => '\'%LABEL%\' Offline',
- 'off_pushover_message' => 'Server \'%LABEL%\' ist Offline IP: %IP% Port: %PORT% Fehler: %ERROR%',
- 'off_pushover_url_title' => 'SERVER MONITOR',
- 'off_pushover_url' => '%MONITORURL%',
+ 'off_pushover_title' => 'Server \'%LABEL%\' is DOWN',
+ 'off_pushover_message' => "Failed to connect to the following server:
Server: %LABEL% IP: %IP% Port: %PORT% Error: %ERROR% Date: %DATE%",
'on_sms' => 'Server \'%LABEL%\' is RUNNING: ip=%IP%, port=%PORT%',
'on_email_subject' => 'IMPORTANT: Server \'%LABEL%\' is RUNNING',
'on_email_body' => "Server '%LABEL%' is running again:
Server: %LABEL% IP: %IP% Port: %PORT% Date: %DATE%',
),
'login' => array(
'welcome_usermenu' => 'Welcome, %user_name%',
diff --git a/src/lang/es_ES.lang.php b/src/lang/es_ES.lang.php
index 0d313a7b..8f559538 100644
--- a/src/lang/es_ES.lang.php
+++ b/src/lang/es_ES.lang.php
@@ -81,6 +81,9 @@ $sm_lang = array(
'level_description' => 'Administrators have full access: they can manage servers, users and edit the global configuration. Users can only view and run the updater for the servers that have been assigned to them.',
'mobile' => 'Mobil',
'email' => 'Email',
+ 'pushover' => 'Pushover',
+ 'pushover_key' => 'Pushover Key',
+ 'pushover_device' => 'Pushover Device',
'delete_title' => 'Delete User',
'delete_message' => 'Are you sure you want to delete user \'%1\'?',
'deleted' => 'User deleted.',
@@ -104,6 +107,7 @@ $sm_lang = array(
'status' => 'Estado',
'email' => 'Email',
'sms' => 'SMS',
+ 'pushover' => 'Pushover',
'no_logs' => 'No logs',
),
'servers' => array(
@@ -127,6 +131,7 @@ $sm_lang = array(
'send_email' => 'Email',
'sms' => 'SMS',
'send_sms' => 'SMS',
+ 'pushover' => 'Pushover',
'users' => 'Users',
'delete_title' => 'Delete Server',
'delete_message' => 'Are you sure you want to delete server \'%1\'?',
@@ -137,6 +142,7 @@ $sm_lang = array(
'latency_max' => 'Tiempo de respuesta (maximum)',
'latency_min' => 'Tiempo de respuesta (minimum)',
'latency_avg' => 'Tiempo de respuesta (average)',
+ 'uptime' => 'Uptime',
'year' => 'Year',
'month' => 'Month',
'week' => 'Week',
@@ -185,6 +191,8 @@ $sm_lang = array(
'sms_gateway_username' => 'Gateway username',
'sms_gateway_password' => 'Gateway password',
'sms_from' => 'Número origen del SMS',
+ 'pushover_status' => 'Allow sending pushover messages',
+ 'pushover_api_token' => 'Pushover App API Token',
'alert_type' => 'Cuando desea recibir notificaciones ? ',
'alert_type_description' => '... Al cambiar el estado: '.
'p.ej. online -> offline o offline -> online. '.
@@ -201,13 +209,15 @@ $sm_lang = array(
'log_status_description' => 'Al setear TRUE (marcar) se protocolan todos los estados.',
'log_email' => 'Enviar Log via email?',
'log_sms' => 'Enviar Log via SMS ?',
+ 'log_pushover' => 'Log pushover messages sent by the script',
'updated' => 'Configuración guardada.',
'nochanges' => 'The configuration didn\'t change.',
'tab_email' => 'Email',
'tab_sms' => 'SMS',
- 'tab_log' => 'Log',
+ 'tab_pushover' => 'Pushover',
'settings_email' => 'Email',
'settings_sms' => 'Mensaje SMS',
+ 'settings_pushover' => 'Pushover settings',
'settings_notification' => 'Notificación',
'settings_log' => 'Log',
'auto_refresh' => 'Refrescar automáticamente página de servidores',
@@ -233,9 +243,13 @@ $sm_lang = array(
'off_sms' => 'Servidor \'%LABEL%\' está fuera de línea: ip=%IP%, port=%PORT%. error=%ERROR%',
'off_email_subject' => 'Importante: Servidor \'%LABEL%\' está fuera de línea',
'off_email_body' => "No posible conectar al servidor:
Servidor: %LABEL% IP: %IP% Port: %PORT% Error: %ERROR% Fecha: %DATE%",
+ 'off_pushover_title' => 'Servidor \'%LABEL%\' está fuera de línea',
+ 'off_pushover_message' => "No posible conectar al servidor:
Servidor: %LABEL% IP: %IP% Port: %PORT% Error: %ERROR% Fecha: %DATE%",
'on_sms' => 'Servidor \'%LABEL%\' ya está de nuevo funcionando en línea: ip=%IP%, port=%PORT%',
'on_email_subject' => 'Importante: Servidor \'%LABEL%\' ya está de nuevo en línea',
'on_email_body' => "Servidor '%LABEL%' ya está funcionando en línea de nuevo:
Servidor: %LABEL% IP: %IP% Port: %PORT% Fecha: %DATE%",
+ 'on_pushover_title' => 'Servidor \'%LABEL%\' ya está de nuevo en línea',
+ 'on_pushover_message' => "Servidor '%LABEL%' ya está funcionando en línea de nuevo:
Servidor: %LABEL% IP: %IP% Port: %PORT% Fecha: %DATE%",
),
'login' => array(
'welcome_usermenu' => 'Welcome, %user_name%',
diff --git a/src/lang/fr_FR.lang.php b/src/lang/fr_FR.lang.php
index 99c33a3e..999fbd20 100644
--- a/src/lang/fr_FR.lang.php
+++ b/src/lang/fr_FR.lang.php
@@ -81,6 +81,9 @@ $sm_lang = array(
'level_description' => 'Les Administrateurs ont un accès total. Ils peuvent gérer les serveurs, les utilisateurs et éditer la configuration globale. Les Utilisateurs ne peuvent que voir et mettre à jour les serveurs qui leur ont été assignés.',
'mobile' => 'Téléphone',
'email' => 'Email',
+ 'pushover' => 'Pushover',
+ 'pushover_key' => 'Pushover Key',
+ 'pushover_device' => 'Pushover Device',
'delete_title' => 'Supprimer un utilisateur',
'delete_message' => 'Êtes-vous sûr de vouloir supprimer l\'utilisateur \'%1\' ?',
'deleted' => 'Utilisateur supprimé.',
@@ -104,6 +107,7 @@ $sm_lang = array(
'status' => 'État',
'email' => 'email',
'sms' => 'SMS',
+ 'pushover' => 'Pushover',
'no_logs' => 'Aucun événement',
),
'servers' => array(
@@ -127,6 +131,7 @@ $sm_lang = array(
'send_email' => 'Envoyer un email',
'sms' => 'SMS',
'send_sms' => 'Envoyer un SMS',
+ 'pushover' => 'Pushover',
'users' => 'Users',
'delete_title' => 'Supprimer un serveur',
'delete_message' => 'Êtes-vous sûr de vouloir supprimer le serveur \'%1\' ?',
@@ -186,6 +191,8 @@ $sm_lang = array(
'sms_gateway_username' => 'Nom utilisateur de la passerelle',
'sms_gateway_password' => 'Mot de passe de la passerelle',
'sms_from' => 'SMS de l\'expéditeur',
+ 'pushover_status' => 'Allow sending pushover messages',
+ 'pushover_api_token' => 'Pushover App API Token',
'alert_type' => 'Choisissez quand vous souhaitez être notifié. ',
'alert_type_description' => 'Changement d\'état : '.
'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. '.
@@ -202,13 +209,15 @@ $sm_lang = array(
'log_status_description' => 'Si l\'option est activée, un événement est enregistré chaque fois qu\'une notification a lieu.',
'log_email' => 'Enregistrer tout les emails envoyés',
'log_sms' => 'Enregistrer tout les SMS envoyés',
+ 'log_pushover' => 'Log pushover messages sent by the script',
'updated' => 'La configuration a été mise à jour.',
'nochanges' => 'La configuration n\'a pas été modifiée.',
'tab_email' => 'Email',
'tab_sms' => 'SMS',
- 'tab_log' => 'Événements',
+ 'tab_pushover' => 'Pushover',
'settings_email' => 'Configuration email',
'settings_sms' => 'Configuration SMS',
+ 'settings_pushover' => 'Pushover settings',
'settings_notification' => 'Configuration des notifications',
'settings_log' => 'Configuration des événements',
'auto_refresh' => 'Auto-rachaîchissement',
@@ -234,9 +243,13 @@ $sm_lang = array(
'off_sms' => 'Le Serveur \'%LABEL%\' est HORS SERVICE: IP=%IP%, Port=%PORT%. Erreur=%ERROR%',
'off_email_subject' => 'IMPORTANT: Le Serveur \'%LABEL%\' est HORS SERVICE',
'off_email_body' => "Impossible de se connecter au serveur suivant:
Serveur: %LABEL% IP: %IP% Port: %PORT% Erreur: %ERROR% Date: %DATE%",
+ 'off_pushover_title' => 'Le Serveur \'%LABEL%\' est HORS SERVICE',
+ 'off_pushover_message' => "Impossible de se connecter au serveur suivant:
Serveur: %LABEL% IP: %IP% Port: %PORT% Erreur: %ERROR% Date: %DATE%",
'on_sms' => 'Le Serveur \'%LABEL%\' est OK: IP=%IP%, Port=%PORT%',
'on_email_subject' => 'IMPORTANT: Le Serveur \'%LABEL%\' est OK',
'on_email_body' => "Le Serveur '%LABEL%' est de nouveau OK:
Serveur: %LABEL% IP: %IP% Port: %PORT% Date: %DATE%",
+ 'on_pushover_title' => 'Le Serveur \'%LABEL%\' est OK',
+ 'on_pushover_message' => "Le Serveur '%LABEL%' est de nouveau OK:
Serveur: %LABEL% IP: %IP% Port: %PORT% Date: %DATE%",
),
'login' => array(
'welcome_usermenu' => 'Bonjour %user_name%',
diff --git a/src/lang/it_IT.lang.php b/src/lang/it_IT.lang.php
index cf5a57b1..cbab0bb9 100644
--- a/src/lang/it_IT.lang.php
+++ b/src/lang/it_IT.lang.php
@@ -81,6 +81,9 @@ $sm_lang = array(
'level_description' => 'Administrators have full access: they can manage servers, users and edit the global configuration. Users can only view and run the updater for the servers that have been assigned to them.',
'mobile' => 'Cellulare',
'email' => 'Email',
+ 'pushover' => 'Pushover',
+ 'pushover_key' => 'Pushover Key',
+ 'pushover_device' => 'Pushover Device',
'delete_title' => 'Delete User',
'delete_message' => 'Are you sure you want to delete user \'%1\'?',
'deleted' => 'User deleted.',
@@ -104,6 +107,7 @@ $sm_lang = array(
'status' => 'Stato',
'email' => 'Email',
'sms' => 'SMS',
+ 'pushover' => 'Pushover',
'no_logs' => 'No logs',
),
'servers' => array(
@@ -127,6 +131,7 @@ $sm_lang = array(
'send_email' => 'Invia Email',
'sms' => 'SMS',
'send_sms' => 'Invia SMS',
+ 'pushover' => 'Pushover',
'users' => 'Users',
'delete_title' => 'Delete Server',
'delete_message' => 'Are you sure you want to delete server \'%1\'?',
@@ -137,6 +142,7 @@ $sm_lang = array(
'latency_max' => 'Tempo di risposta (maximum)',
'latency_min' => 'Tempo di risposta (minimum)',
'latency_avg' => 'Tempo di risposta (average)',
+ 'uptime' => 'Uptime',
'year' => 'Year',
'month' => 'Month',
'week' => 'Week',
@@ -185,6 +191,8 @@ $sm_lang = array(
'sms_gateway_username' => 'Nome Utente Gateway',
'sms_gateway_password' => 'Password Gateway',
'sms_from' => 'Numero di telefono del mittente',
+ 'pushover_status' => 'Allow sending pushover messages',
+ 'pushover_api_token' => 'Pushover App API Token',
'alert_type' => 'Seleziona quando vuoi essere notificato. ',
'alert_type_description' => 'Cambio di Stato: '.
'Riceverai una notifica solo quando un server cambierà stato. Quindi da online -> offline oppure da offline -> online. '.
@@ -201,13 +209,15 @@ $sm_lang = array(
'log_status_description' => 'Se lo Stato Log è impostato su VERO, il monitor registrerà nel log gli eventi appena le notifiche verranno inviate.',
'log_email' => 'Registra email inviate dallo script.',
'log_sms' => 'Registra SMS inviati dallo script.',
+ 'log_pushover' => 'Log pushover messages sent by the script',
'updated' => 'La configurazione è stato aggiornata.',
'nochanges' => 'The configuration didn\'t change.',
'tab_email' => 'Email',
'tab_sms' => 'SMS',
- 'tab_log' => 'Log',
+ 'tab_pushover' => 'Pushover',
'settings_email' => 'Impostazioni Email',
'settings_sms' => 'Impostazioni SMS',
+ 'settings_pushover' => 'Pushover settings',
'settings_notification' => 'Impostazioni Notifiche',
'settings_log' => 'Impostazioni Log',
'auto_refresh' => 'Auto-Aggiorna pagina servers',
@@ -233,9 +243,13 @@ $sm_lang = array(
'off_sms' => 'Server \'%LABEL%\' è DOWN: ip=%IP%, porta=%PORT%. Errore=%ERROR%',
'off_email_subject' => 'IMPORTANTE: Server \'%LABEL%\' è DOWN',
'off_email_body' => "Impossibile connettersi al seguente server:
Server: %LABEL% IP: %IP% Port: %PORT% Date: %DATE%",
),
'login' => array(
'welcome_usermenu' => 'Welcome, %user_name%',
diff --git a/src/lang/nl_NL.lang.php b/src/lang/nl_NL.lang.php
index c9c8c10e..19d12fc8 100644
--- a/src/lang/nl_NL.lang.php
+++ b/src/lang/nl_NL.lang.php
@@ -81,6 +81,9 @@ $sm_lang = array(
'level_description' => 'Beheerders hebben volledige toegang: ze kunnen servers en gebruiker beheren en de globale configuratie aanpassen. Gebruikers kunnen alleen de servers bekijken en op fouten testen die aan hun zijn toegewezen.',
'mobile' => 'Mobiel',
'email' => 'Email',
+ 'pushover' => 'Pushover',
+ 'pushover_key' => 'Pushover Key',
+ 'pushover_device' => 'Pushover Device',
'delete_title' => 'Delete User',
'delete_message' => 'Are you sure you want to delete user \'%1\'?',
'deleted' => 'User deleted.',
@@ -104,6 +107,7 @@ $sm_lang = array(
'status' => 'Status',
'email' => 'Email',
'sms' => 'SMS',
+ 'pushover' => 'Pushover',
'no_logs' => 'No logs',
),
'servers' => array(
@@ -127,6 +131,7 @@ $sm_lang = array(
'send_email' => 'Stuur email',
'sms' => 'SMS',
'send_sms' => 'Stuur SMS',
+ 'pushover' => 'Pushover',
'users' => 'Gebruikers',
'delete_title' => 'Delete Server',
'delete_message' => 'Are you sure you want to delete server \'%1\'?',
@@ -186,6 +191,8 @@ $sm_lang = array(
'sms_gateway_username' => 'Gateway gebruikersnaam',
'sms_gateway_password' => 'Gateway wachtwoord',
'sms_from' => 'Telefoonnummer afzender',
+ 'pushover_status' => 'Sta Pushover berichten toe?',
+ 'pushover_api_token' => 'Pushover App API Token',
'alert_type' => 'Selecteer wanneer je een notificatie wilt. ',
'alert_type_description' => 'Status change: '.
'Je ontvangt alleen bericht wanneer een server van status verandert. Dus van online -> offline of offline -> online. '.
@@ -202,13 +209,15 @@ $sm_lang = array(
'log_status_description' => 'Als de log status aan staat, zal de monitor een log aanmaken elke keer dat hij door de notificatie instellingen komt.',
'log_email' => 'Log emails verstuurd bij het script?',
'log_sms' => 'Log sms berichten verstuurd bij het script?',
+ 'log_pushover' => 'Log pushover messages sent by the script',
'updated' => 'De configuratie is gewijzigd.',
'nochanges' => 'De configuratie is ongewijzigd.',
'tab_email' => 'Email',
'tab_sms' => 'SMS',
- 'tab_log' => 'Log',
+ 'tab_pushover' => 'Pushover',
'settings_email' => 'Email instellingen',
'settings_sms' => 'SMS instellingen',
+ 'settings_pushover' => 'Pushover settings',
'settings_notification' => 'Notificatie instellingen',
'settings_log' => 'Log instellingen',
'auto_refresh' => 'Auto-refresh',
@@ -234,9 +243,13 @@ $sm_lang = array(
'off_sms' => 'Server %LABEL% is DOWN: ip=%IP%, poort=%PORT%. Fout=%ERROR%',
'off_email_subject' => 'BELANGRIJK: Server %LABEL% is DOWN',
'off_email_body' => "De server kon niet worden bereikt:
Server: %LABEL% IP: %IP% Poort: %PORT% Fout: %ERROR% Datum: %DATE%",
+ 'off_pushover_title' => 'Server %LABEL% is DOWN',
+ 'off_pushover_message' => "De server kon niet worden bereikt:
Server: %LABEL% IP: %IP% Poort: %PORT% Fout: %ERROR% Datum: %DATE%",
'on_sms' => 'Server %LABEL% is RUNNING: ip=%IP%, poort=%PORT%',
'on_email_subject' => 'BELANGRIJK: Server %LABEL% is RUNNING',
'on_email_body' => "Server %LABEL% is weer online:
Server: %LABEL% IP: %IP% Poort: %PORT% Datum: %DATE%",
+ 'on_pushover_title' => 'Server %LABEL% is RUNNING',
+ 'on_pushover_message' => "Server %LABEL% is weer online:
Server: %LABEL% IP: %IP% Poort: %PORT% Datum: %DATE%",
),
'login' => array(
'welcome_usermenu' => 'Welkom, %user_name%',
diff --git a/src/lang/pt_BR.lang.php b/src/lang/pt_BR.lang.php
index 8b069dfe..4094401d 100644
--- a/src/lang/pt_BR.lang.php
+++ b/src/lang/pt_BR.lang.php
@@ -81,6 +81,9 @@ $sm_lang = array(
'level_description' => 'Administradores Tem total acesso: podem gerenciar servidores, usuários e configurações globais. Usuários só podem executar atualizações para servidores que lhe foram atribuídos.',
'mobile' => 'Celular',
'email' => 'Email',
+ 'pushover' => 'Pushover',
+ 'pushover_key' => 'Pushover Key',
+ 'pushover_device' => 'Pushover Device',
'delete_title' => 'Delete User',
'delete_message' => 'Are you sure you want to delete user \'%1\'?',
'deleted' => 'User deleted.',
@@ -104,6 +107,7 @@ $sm_lang = array(
'status' => 'Status',
'email' => 'Email',
'sms' => 'SMS',
+ 'pushover' => 'Pushover',
'no_logs' => 'No logs',
),
'servers' => array(
@@ -127,6 +131,7 @@ $sm_lang = array(
'send_email' => 'Enviar Email',
'sms' => 'SMS',
'send_sms' => 'Enviar SMS',
+ 'pushover' => 'Pushover',
'users' => 'Users',
'delete_title' => 'Delete Server',
'delete_message' => 'Are you sure you want to delete server \'%1\'?',
@@ -186,6 +191,8 @@ $sm_lang = array(
'sms_gateway_username' => 'Usuário do Gateway',
'sms_gateway_password' => 'Senha do Gateway',
'sms_from' => 'Número de telefone de envio',
+ 'pushover_status' => 'Allow sending pushover messages',
+ 'pushover_api_token' => 'Pushover App API Token',
'alert_type' => 'Selecione como você gostaria de ser notificado. ',
'alert_type_description' => 'Mudança de Status: '.
'Você receberá uma notificação quando o seridor tive uma mudança de status. De online -> offline ou offline -> online. '.
@@ -194,8 +201,7 @@ $sm_lang = array(
'A cronjob é a cada 15 minutos e seu servidor caiu em 1:00 e permanece offline até 6 am. '.
'Você receberá uma notificação a 1:00 apenas '.
' Sempre: '.
- 'Você receberá uma notificação toda vez que o script é executado e um site esta offline, mesmo se o site tenha ficado '.
- 'offline por horas.',
+ 'Você receberá uma notificação toda vez que o script é executado e um site esta offline, mesmo se o site tenha ficado offline por horas.',
'alert_type_status' => 'Mudança de Status',
'alert_type_offline' => 'Offline',
'alert_type_always' => 'Sempre',
@@ -203,13 +209,15 @@ $sm_lang = array(
'log_status_description' => 'Se o status de registro é definido como TRUE, o monitor irá registrar o evento sempre que as configurações de notificação forem passadas.',
'log_email' => 'Registrar no Log os envios de email feitos pelo script?',
'log_sms' => 'Registrar no Log os envios de mensagens de texto feitos pelo script?',
+ 'log_pushover' => 'Log pushover messages sent by the script',
'updated' => 'A configuração foi atualizada.',
'nochanges' => 'The configuration didn\'t change.',
'tab_email' => 'Email',
'tab_sms' => 'Texto',
- 'tab_log' => 'Logs',
+ 'tab_pushover' => 'Pushover',
'settings_email' => 'Configuração de email',
'settings_sms' => 'Configuração de mensagens de texto',
+ 'settings_pushover' => 'Pushover settings',
'settings_notification' => 'Configuração de notificações',
'settings_log' => 'Configuração de Logs',
'auto_refresh' => 'Atualizar automaticamente',
@@ -235,9 +243,13 @@ $sm_lang = array(
'off_sms' => 'Servidor \'%LABEL%\' está OFFLINE: ip=%IP%, porta=%PORT%. Erro=%ERROR%',
'off_email_subject' => 'IMPORTANTE: Servidor \'%LABEL%\' está OFFLINE',
'off_email_body' => "Falha ao conectar ao servidor:
Servidor: %LABEL% IP: %IP% Porta: %PORT% Erro: %ERROR% Data: %DATE%",
+ 'off_pushover_title' => 'Servidor \'%LABEL%\' está OFFLINE',
+ 'off_pushover_message' => "Falha ao conectar ao servidor:
\ No newline at end of file
diff --git a/src/templates/install/install.tpl.html b/src/templates/install/install.tpl.html
old mode 100755
new mode 100644
diff --git a/src/templates/main.tpl.html b/src/templates/main.tpl.html
old mode 100755
new mode 100644
diff --git a/src/templates/main_sidebar.tpl.html b/src/templates/main_sidebar.tpl.html
old mode 100755
new mode 100644
diff --git a/src/templates/server/log.tpl.html b/src/templates/server/log.tpl.html
old mode 100755
new mode 100644
diff --git a/src/templates/server/server.tpl.html b/src/templates/server/server.tpl.html
index 61e2d5d4..dc898841 100644
--- a/src/templates/server/server.tpl.html
+++ b/src/templates/server/server.tpl.html
@@ -10,9 +10,6 @@