Commit Graph

666 Commits

Author SHA1 Message Date
Ing. Petr Suchy 5934e9a25c
*fix - checkSsl should check PHP_VERSION and not PHP_RELEASE_VERSION 2020-02-07 08:03:12 +01:00
Ing. Petr Suchy 8fa1bf6c0d
*edit - check ssl just when other error is not already in 2020-02-07 07:59:50 +01:00
Ing. Petr Suchy e32977ffff
*fix - check and update latest version 2020-02-07 07:43:16 +01:00
Tim 45d1c03e5a
Feature/ssl cert expiration check (#831)
Added ssl expiration to warning state.
2020-02-04 16:44:48 +01:00
Petr Suchy 442f9d115e
Added Separate check when server is down (#844)
Future request - separate checks when down.
Closes #755.
2020-02-04 16:41:34 +01:00
Nayef Alebrahim 3568a5700b
Fixed removing and demoting last admin (#841)
Fixes #824.


Co-authored-by: Tim <TimZ99@users.noreply.github.com>
2020-02-04 16:16:30 +01:00
Petr Suchy 71c4114747
Fixed psm_password_decrypt
BUG: HTTP2 Authentification
Fixes #706.
2020-02-04 15:44:11 +01:00
TimZ99 676e80d42f
Improved servers table layout
Fixes #779.

Co-Authored-By: James <jigr1969@users.noreply.github.com>
2020-01-15 23:15:30 +01:00
TimZ99 0550ff7dcf
Added ping error 2020-01-15 10:33:47 +01:00
TimZ99 6ba4b59239
Changed ping from socket to exec function
As there are a lot of problems with permissions and ping, the function now uses exec(). Resolved #405, #576, #614, #748.

Co-Authored-By: Sean Perryman <se@nperryman.com>
Co-Authored-By: Luke C <crawford.luke@outlook.com>
2020-01-14 20:12:40 +01:00
Tim d7536d209e
Add Traditional Chinese Language File. (#618)
Translate all contents according to v3.3.1 version
2019-12-19 20:29:14 +01:00
Tim 50b5a6937b
Update zh_TW.lang.php 2019-12-19 20:26:26 +01:00
Tim 620ab023f9
Update zh_TW.lang.php 2019-12-19 20:19:41 +01:00
TimZ99 a9f0f64c78
Public server page 2019-12-13 14:13:04 +01:00
TimZ99 95d30f9619
Fixing indentation 2019-12-12 21:34:55 +01:00
Tim 07243f4cb5
Merge branch 'develop' into patch-1 2019-12-12 18:32:29 +01:00
TimZ99 97f8a6d637
Refactor
Removed unreachable code

Removed useless method overriding
2019-12-12 17:52:36 +01:00
Jeremy GHYS b7426291f8
Fix Server Downtime is displayed incorrectly
Server Downtime is displayed in correctly when receiveing e-mails about it.
2019-12-12 17:26:42 +01:00
TimZ99 084dd59b84
Removed not translated parts 2019-12-12 16:52:23 +01:00
Tim cb806361ed
Ukrainian translation (#821) 2019-12-11 21:51:55 +01:00
Tim dd6d9973fe
Implementing the PSR12 standard
Just updated it to the latest commit.
2019-12-11 21:48:29 +01:00
TimZ99 0a5a8c02f5
Implementing the PSR12 standard
Using PHPCS and PHPSBF.

For language files also used PSMLE.
2019-12-11 21:27:14 +01:00
TimZ99 2c51ad12f7
Implementing the PSR12 standard
Using PHPCS and PHPSBF.
2019-12-11 21:27:04 +01:00
Oleksa e415d0fa41
Translated admin_cant_be_deleted 2019-12-11 12:59:44 +02:00
Tim 235f848d16
A few cosmetic updates and added new translation 2019-12-10 20:27:48 +01:00
TimZ99 0c91d27a70
Fixed Error QUERY_STRING on sign in
Added default value for QUERY_STRING.
2019-12-10 19:51:20 +01:00
TimZ99 7f5e698752
Fixed #811 DB wrong field type on fresh install.
Added the first part with #770. Forgot to  add it to the fresh install function.

Also removed the default value for TEXT as TEXT can't have a default value.

Co-Authored-By: Matěj Kmínek <matej.kminek@attendees.eu>
2019-12-10 19:43:42 +01:00
TimZ99 d7ea421d5c
Fixed #822 website auth setting not showing
Wrong variable was used.
2019-12-10 18:59:40 +01:00
TimZ99 420211f61f
Fixed #816 url validation 2019-12-10 18:09:56 +01:00
Oleksa 32ab865ae0
Ukrainian translation 2019-12-09 12:57:22 +02:00
TimZ99 24ee6d02c4
Fixed false trigger_error() after redirect.
Resolves #814.
2019-12-03 00:34:01 +01:00
ICTman1076 93ceb42a10 Hopefully fix #704 (#791)
* Fix #704 - use regex instead of PHP's own function

* Updated .ltd length to 12

For domains like .company .services .business.
2019-11-29 23:44:26 +01:00
Travis Botello 7e3cbc94a9 Replaced mcrypt with openssl (#678) (#805)
* Replaced mcrypt with openssl (#678)

* Removed TODO
2019-11-29 23:32:09 +01:00
TimZ99 627a93cc7c
Added cachebuster
Resolves #802.
2019-10-22 20:39:33 +02:00
sx404 0969f4043e Increased password length (#796)
Fixes #786.
Increased password length drastically.
2019-10-10 14:35:53 +02:00
TimZ99 d40df0c024
Fixed typo
Fixes #797.
2019-10-10 14:33:05 +02:00
TimZ99 030b2b3c2f
Prevented removal of last admin
Fixes #687.
2019-10-10 00:03:56 +02:00
TimZ99 0198d76a75
Added default timeout
Fixes #794.
2019-10-09 22:03:53 +02:00
TimZ99 cf2566d1d3
Fixed undefined index issue
Fixes #792.
2019-10-09 20:59:32 +02:00
TimZ99 25e8cece3c
Bringing back the warning state.
Fixes #790.
2019-10-09 20:39:15 +02:00
TimZ99 43c60867b3
Improving accessibility
Comming closer to WCAG 2.0 AAA.
2019-10-09 20:33:59 +02:00
TimZ99 56587826a3
Bumped version to 3.4.5 2019-09-30 17:59:24 +02:00
TimZ99 a8eaedc817
Fixed undefined index
Fixes #787.
2019-09-30 17:50:20 +02:00
TimZ99 86b75c3068
Removed unsused css 2019-09-26 19:49:26 +02:00
TimZ99 7316355658
Changed to ‘local - English’ 2019-09-26 18:48:29 +02:00
TimZ99 dc45eee0d3
Fixed update message 2019-09-26 18:36:17 +02:00
Rémy Lebrun 6fd71e1d55 Correction FR translation (#668) 2019-09-26 18:21:23 +02:00
Emmanuel RABOTTEAU 884a563e6a Update fr_FR.lang.php (#776)
- Added and translated missing string in 'system' array
- Updated translation of 'level' in 'users' array
- Added and translated missing string in 'users' array about Telegram
- Added and translated missing string in 'log' array about Telegram
- Added and translated missing string in 'servers' array
- Added and translated missing string in 'config' array
- Added and translated missing string in 'notifications' array
2019-09-26 18:00:59 +02:00
TimZ99 f84061ee14
Get latest version from Github.
The latest version number will now come from Github instead of phpservermonitor.org.
2019-09-26 14:07:16 +02:00
TimZ99 b0df0e77bf
Bumped version to 3.4.4 2019-09-26 13:15:34 +02:00
TimZ99 932c695f4d
Fixed selected view in graph
Fixes #782.
2019-09-26 13:02:01 +02:00
TimZ99 6aca2e1077
Fixed auto refresh with wrong layout
Fixes #783.
CSRF used old inputfield.
Update pagelayout after update.
2019-09-26 12:52:14 +02:00
TimZ99 9f3e140b29
Changed file path to new path
Moved to src/templates/default/static. Should have been in b0ea45a.
2019-09-26 12:47:55 +02:00
TimZ99 8035608fe3
Bumped version to 3.4.3 2019-09-26 00:52:42 +02:00
TimZ99 b399327c4b
Fixed week/month/year graph
Fixes #774.
2019-09-25 23:40:06 +02:00
TimZ99 4ebe934b2e
Added timeout to services
Fixes #775.
2019-09-25 23:35:37 +02:00
TimZ99 8342a979aa
Changed help message to uniform name
From auto_refresh_servers and auto_refresh_help to auto_refresh_description.
2019-09-25 23:09:42 +02:00
TimZ99 5d668b7882
Fixed auto-refresh
Fixes #772.
2019-09-25 23:08:05 +02:00
Jonne Haß d62df0b34e Fix pushover_status checkbox population from current config (#777) 2019-09-25 21:35:52 +02:00
TimZ99 1b0d86b361
Corrected query
Fixes #781.
2019-09-24 18:23:57 +02:00
damian b0ea45ae76
Added ability to easily use a custom theme. (#624)
Resolves #338.

Co-Authored-By: Tim <timz99@users.noreply.github.com>
2019-09-19 17:04:19 +02:00
TimZ99 a8d36b08bb
Updated version 2019-09-17 19:20:42 +02:00
caos30 98959d3a77
Added catalan ca_ES language translation file (#733)
Closes #731

* Added catalan ca_ES language translation file

* Updated the catalan translation ca_ES.lang.php 

Updated the catalan translation ca_ES.lang.php taking as reference difference with last version of english translation file.

* Quit sms_gateway labels not used on catalan

Removed about 10 translation labels with prefix sms_gateway_ on catalan translation file (ca_ES.lang.php) not used any more. I think that it really is the definitive good version ;-)

* Changed url

* Update ca_ES.lang.php

* Added Catalan to translations
2019-09-17 19:20:41 +02:00
TimZ99 6c1763e811
Updated table style
Fixes #742  and closes #743.
2019-09-17 19:20:41 +02:00
Arkhee dd3bc35009
"Last online" stuck on "never" when checking some websites (#770)
Fixes #765

* // PATCH Arkhee : fix/last-online-stuck-on-never-if-webpage-too-large
  // The update un "servers" table does not work
  // Symptom : "Last online" stays stuck on "never"
  // Reason: last_output contains the full webpage, too long for the query
  // _This may depend on mysql configuration on the server_, explaining why some have the problem or not
  // Field is 255 Chars, and request does not work anyway is loaded web page is too large in last_output
  // So force truncate to 250 or less before query

* Spelling

* Update varchar to text

* Update tot 3.4.1

* Update tot 3.4.1

* Update README.rst

* Updated to 5000 characters
2019-09-17 19:20:41 +02:00
Federico Vera 9db07f2c09
Issue #734, Truncate server outputs (#741)
* Truncate outputs

* Add modals to show the complete output

* Add 'See complete...' buttons

* Improve "See Complete..." button

* Use nl2br filter

* Use button instead of <a> looks much better

* Removed font-family: Mono

and changed 'see complete' to 'show more'.
2019-09-17 19:20:40 +02:00
TimZ99 accd55630a
Fixed typo 2019-09-17 19:20:40 +02:00
Federico Vera 394f4a8b44
Spanish translations v3.4 (#740) 2019-09-17 19:20:37 +02:00
Emmanuel RABOTTEAU fe9ff4b30d Update fr_FR.lang.php (#752)
Translated some missing string.
2019-07-17 18:36:14 +02:00
TimZ99 66996f0c73
Removed forgotten debug code 2019-05-22 00:32:54 +02:00
TimZ99 5d81d560e6
Improved table readability
Fixes #736.
2019-05-21 21:02:19 +02:00
TimZ99 86c0a5864b
Added server_id as id - Fixes #738 2019-05-21 17:13:59 +02:00
Acrylic Style 6728fd14f4 Updated Japanese Translations (#662) 2019-05-19 20:11:33 +02:00
Shammi Shailaj 8f43fd99e6 Adding verbosity for cURL (#697)
Added code to increase cURL verbosity in cases where PSM_DEBUG is defined and set to a value of boolean TRUE only if the request is coming via CLI.
2019-05-19 20:02:53 +02:00
Michael 6761776a8f
Allow HTTP/2 status responses (#695)
Fixed #672 and resolved #669.
2019-05-19 03:14:26 +02:00
IT. Orlando Hernandez (Masterk3y) e2d904688a Update es_ES.lang.php (#703) 2019-05-19 02:19:17 +02:00
TimZ99 32c17f372b
Added uptime and avg latency 2019-05-19 02:01:27 +02:00
TimZ99 b3de673c6a
Removed old todo's 2019-05-19 02:01:27 +02:00
TimZ99 5b0fba63aa
Add button when there are no servers 2019-05-19 02:01:27 +02:00
TimZ99 c343f1f2d1
Added csrf 2019-05-19 01:57:53 +02:00
TimZ99 df573e5bdc
Changed csrf input to standard 2019-05-19 01:57:53 +02:00
TimZ99 6ca361519c
Added missing field to email config 2019-05-19 01:57:53 +02:00
TimZ99 64a9bc1ac7
Added dismissible alerts 2019-05-19 01:57:51 +02:00
TimZ99 f70dacb023
Added sw.js and manifest 2019-05-19 01:57:51 +02:00
TimZ99 59be9f2b6d
Added beter support for use without Javascript 2019-05-19 01:57:51 +02:00
TimZ99 9915a112e5
Improved accessibility 2019-05-19 01:57:51 +02:00
TimZ99 fea3289417
Added missing offline duration 2019-05-19 01:57:04 +02:00
TimZ99 5e5281dcc4
Added curl_exec
Fixes #665.
2019-05-19 01:56:12 +02:00
TimZ99 9cdafc9554
Updated useragent to Github URL 2019-02-08 16:29:47 +01:00
TimZ99 cf2f6b0788
Changed database column to TEXT
- Changed message column in the log table to TEXT. Combined notification can be greater then 255 characters.
2019-02-08 16:28:47 +01:00
TimZ99 c44760c0f7
Removed server column from notification log. 2019-02-08 16:16:57 +01:00
TimZ99 6c14709d7c
Updated default template
Fixes #685.
- Updated to Bootstrap V4.
- Changed jqPlot to Chart.js.
- Updated jQuery to the V3.
- Changed Bootstrap Multiselect to Bootstrap-select.
2019-02-08 15:51:56 +01:00
TimZ99 2c6ef08b39
Added noopener and updated download link to Github releases
- Added noopener to all links in the translation files with a target set to _blank.
- Updated the download link to Github releases.
- Removed some double spaces.
2019-02-03 20:30:17 +01:00
Tim 1249e98a0f
Downgraded symfony/filesystem to ~3.4 (#656)
Fixes #655.
Downgraded symfony/filesystem to v3.4 (PHP 5.5.9 compatible).
Added 7.0.8 as minimal PHP version for PHP7.
2018-09-17 17:32:51 +02:00
Tim 6a8982ccce
Changed query from not null to null (#653)
Fixes #647
2018-09-12 12:36:32 +02:00
Tim c645444db9
Added post field as addition to #631 (#642) 2018-09-08 14:03:39 +02:00
Tim b59afd9d33
Removed url encoding from Nexmo message (#644) 2018-09-08 13:54:09 +02:00
TimZ99 1d0f6a6986
Fixed regex in hostname validator 2018-09-07 00:38:52 +02:00
TimZ99 ed61b3854f
Fixed regex to prevent false negatives
Would fail if:
- location wat written without capital letter.
- the server redirected to www.
- there was no / at the end of the url.
2018-09-05 23:44:20 +02:00
Tim cf6f30adfc
Added combined notifications (#639)
If multiple servers go up or down together, you don't get spammed with notifications if you have this option enabled. It will send one combined notification.
2018-09-05 23:08:17 +02:00
Tim d33c891be2
Added redirect check (#626) 2018-09-05 22:58:50 +02:00
Tim b26f85d975
Added option to view latest (failing) server response and error (#627)
Shows:
- latest error.
- latest positive response.
- latest failure response.
2018-09-05 22:52:23 +02:00
Tim 72b262c706
Added the option to specify the request method (#631) 2018-09-05 22:42:08 +02:00
Tim 7aa7ec363b
Mark specific HTTP status codes as online (#628)
Add option to specify which HTTP status codes are considered as "online".
Closing #175.
2018-09-05 22:34:19 +02:00
Tim 132a730d71
Removed last offline duration parentheses if empty (#641) 2018-09-05 21:50:05 +02:00
Tim 170cecf8fe
Changed server order (#635) 2018-09-04 01:19:25 +02:00
Tim 6e528aaf15
Changed ' to " in sql query (#634) 2018-09-03 15:47:53 +02:00
Tim fa97fb6653
Fixed rdp:// bug and fixed port not updating #418 (#629)
- Although the port isn't used while testing a website, changing it prevents confusion.
- Fix bug that made it impossible to check rdp:// as it would add http:// in front of it.
2018-08-30 00:08:22 +02:00
Tim ef28908c5f
Indentation 2018-08-28 21:22:20 +02:00
Jason Cheng 86ecc09c3b
put translator name 2018-08-14 09:18:53 +08:00
Jason Cheng c401a255d6
Translate all contents according to v3.3.1 version 2018-08-13 23:56:38 +08:00
Daniel Billing 0e64ff54d1 Added Norwegian language (#605)
* Added the Norwegian language
* Updated SMS spelling in the English language
2018-08-13 12:39:25 +02:00
Jason Cheng b235bf7639
Add Traditional Chinese Language File. 2018-08-13 15:20:47 +08:00
TimZ99 267002ba20
Bump version 3.3.1 2018-08-10 02:09:42 +02:00
Tom Hatzer 1f2dde3963 Removed default mysql port settings from files and left empty values (#403) 2018-08-09 19:16:20 +02:00
TimZ99 5e61d89b7f
Defined $encrypted_password 2018-08-03 01:35:26 +02:00
TimZ99 51ef755e43
Removed last_offline_duration = "" 2018-08-03 00:47:26 +02:00
TimZ99 6534749fbd
Added %LAST_OFFLINE_DURATION% 2018-08-03 00:46:52 +02:00
TimZ99 e4bade32f9
Updated PHPMailer namespace
- Updated PHPMailer namespace
- Changed $phpmailer->SMTPDebug to an integer value.
- Added cast type to $phpmailer->Port.
2018-08-03 00:46:24 +02:00
TimZ99 d2dda8ac70
Removed duplicate 2018-07-25 16:20:35 +02:00
Alexell d41c7b2c3f Updated Russian translation for current develop branch (#613) 2018-07-25 01:00:16 +02:00
TimZ99 f21f3db19e
Typo fix, removed unused code & updated documentation 2018-07-12 17:31:00 +02:00
TimZ99 476c59eb47
Updated required PHP version to 5.5.9
Added update message for PHP versions lower then PHP 7.
2018-07-12 17:31:00 +02:00
TimZ99 1c984b30ff
Updated documentation, added some small changes 2018-07-12 17:31:00 +02:00
TimZ99 eac8ebc261
Fixed sms error check 2018-07-12 17:31:00 +02:00
TimZ99 e2c424e167
Spacing, indentation and braces
Co-Authored-By: Scrutinizer Auto-Fixer <auto-fixes@scrutinizer-ci.com>
2018-07-12 17:31:00 +02:00
TimZ99 a05d36d5f6
Corrected typos & removed unused code
Removed unused data from query.
Fixed a few typos.
2018-07-12 17:31:00 +02:00
TimZ99 3023c83226
Changed die() to trigger_error()
E_USER_ERROR will always be displayed.
Changed die() to trigger_error(error, E_USER_ERROR).
2018-07-12 17:31:00 +02:00
TimZ99 a96e1e5a2e
Removed eval(), redone get & load language functions 2018-07-12 17:31:00 +02:00
TimZ99 b0ea7eb272
Added forgotten translation 2018-06-30 17:29:12 +02:00
TimZ99 92e8312ff1
Removed unused code
Code not reachable.
2018-06-30 13:14:42 +02:00
TimZ99 fc84c06813
Undefined var & 404 -> 403
PSM_CRON_ALLOW was undefined. Added defined check.
Changed 404 to 403 message.
Added support for php5.
2018-06-29 19:46:58 +02:00
Tim b98a4af412
Typo fix
Changed : to ;.
2018-06-29 14:20:47 +02:00
TimZ99 62254a534b
SMS: ClickSend and SMSgw updated, fixed small things in the others
Update to #593

Co-Authored-By: Ward Pieters <wardpieters@users.noreply.github.com>
2018-05-30 23:01:13 +02:00
Ward Pieters 57f4c369e9 SMS: 4 gateways added and others rewritten (#593)
* Closes #588

* Not relevant anymore: closes #223

* Create Plivo.php

* Create SolutionsInfini.php, closes #460 

* Create Callr.php, closes #586

* Create GatewayAPI.php

* Update README.rst

* Update credits.rst

* Update functions.inc.php

* Update Octopush.php

* Update Smsit.php

* Update Mosms.php

* Update Smsglobal.php

* Update Smsit.php

* Update FreeVoipDeal.php

* Update FreeMobileSMS.php

* Update Inetworx.php
2018-05-29 14:13:48 +02:00
Tim c3751e7e57
Changed username to password 2018-05-28 14:42:47 +02:00
Danial 2b73d207db Enlarge select pattern_online width (#589) 2018-05-25 13:23:35 +02:00
TimZ99 3c55a353be
Allow ping by hostname
Closing #477 and #480.

Co-Authored-By: Matthew <djmixman@users.noreply.github.com>
Co-Authored-By: Mircea Chirea <chirea.mircea@gmail.com>
2018-05-24 14:49:18 +02:00
Danial 82d01b07f7 Add support for "site online when pattern not found" (#579)
Choose to mark a website offline of online is the pattern is (not) found.
2018-05-24 12:49:26 +02:00
TimZ99 a496874d9c
Rewritten part of the gateway code
This is a first commit in order to close #588.

- Removed the names from the translation files.
- The dropdown menu will now filled with the names of the gateways in
the Txtmsg folder.
- Changed Mollie to the proper company name: Messagebird.
- Everybody that was using Mollie will on upgrade automatically change
to Messagebird (replace old name in DB with new name).
- Updated: Clickatell, Twilio, Spryng, Textmarketer and Messagebird
(Mollie).
2018-05-24 06:49:58 +02:00
Axel Wehner d64f27f705
Add CM Telecom bulk SMS gateway (Closing #545) 2018-04-30 15:25:47 +02:00
Matthew Pattman 0580e75642
Added last offline and the duration of the last outage
Co-authored-by: TimZ99 <TimZ99@users.noreply.github.com>
2018-04-27 21:14:46 +02:00
Tim 3a005f2201
Fixing #580 removed results block
There are no additional messages at this point.
2018-04-27 18:10:14 +02:00
Timz99 79742fe6bd
Fixed wrong ping error
- Fixed error: Failed to parse address &quot;8.8.8.8&quot;
- Added correct error message.

NOTE:
This will not fix other problems with ping, non-root user are having
(on unix)!
2018-04-25 14:15:44 +02:00
Matthias Wirtz 1bd14995fb
Update several dependencies (frontend & backend) (#571)
Closes #568.
Updates Composer packages No longer supporting outdated PHP Versions, Update Dome Frontend assets, fix php notices and warnings popping Up when run in debug Mode...
2018-04-09 19:34:06 +02:00
Tim 9d30b9854c
Added support for Twilio (#569)
Closing #112
2018-04-02 02:38:49 +02:00
Tim a80452d916
Added Telegram and Pushover to documentation 2018-04-01 14:08:57 +02:00
TimZ99 526c2523cb
Added noopener to external link
Security update. More info can be found on https://developers.google.com/web/tools/lighthouse/audits/noopener.
2018-03-27 23:36:13 +02:00
TimZ99 64b4d60ffc
Added activation process for Telegram notifications 2018-03-27 23:36:13 +02:00
TimZ99 7059ac6607
Defined latency for new added servers 2018-03-27 23:36:12 +02:00