Commit Graph

333 Commits

Author SHA1 Message Date
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
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 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
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
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
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
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
Tim 4348b7c91a
Corrected indentation 2018-03-27 23:36:12 +02:00
AUBERT Mathieu ad1ca57b44
Fix #550 - Bug when sending FreeMobileSMS 2018-03-27 23:36:11 +02:00
Matthias Wirtz 08eb9a55f7
Fix method declaration error in PHP7.2 (#541) 2018-03-27 23:36:11 +02:00
avahldiek 11a021e7d9
run archive and cleanup per server (#515) 2018-03-27 23:36:11 +02:00
eezec 7302e669fd
Fixes #500 - updatePing (#516)
Moved rtime out of the if/else block, this fixes #500.
2018-03-27 23:36:10 +02:00
Tim 24717675da
Defined latency for pre-installed servers
Got deleted by accident in #502. 
Defined the latency for pre-installed servers on installation.
2018-03-27 23:36:10 +02:00
Tim 6eda990ed0
Added support for Telegram (#554)
Added support for Telegram. Notifications can be received in private chat or in groupchat.

This will close #389 and is a preview of what's coming next (#459) 😉.
2018-03-27 23:36:09 +02:00
Tim b0fee68f6e
Clear log button - closes #383 (#505)
* Added button to clear the logs

Only admins can clear the logs. The content from the log and log_users table will
be deleted.
2018-03-27 23:36:08 +02:00
Tim e910367faa
Corrected Pushover comment
Changed sms to pushover.
2018-03-27 23:36:08 +02:00
Andy Gaskell 71e1203f57
Rename Nexmo.class.php to Nexmo.php
Fix for nexmo sms, sending sms didn't work till I renamed the file.

I'm not sure why Nexmo.class.php and Octopush.class.php have the .class bit in the filename.

This is a follow up to Issue #170 Implement Nexmo SMS
2018-03-27 23:36:07 +02:00
Tim b9a3b203b4
Fixed #350 Email encoding
Removed utf8_decode().

Co-authored-by: shuhai <admin@4wei.cn>
2018-03-27 23:36:06 +02:00
Tim a9f4a5716e
Fix for database populating bug (#502)
Fixed the population of the server table during installation.
2018-03-27 23:36:05 +02:00
Tim 57340aae80
Username validation fix (#512)
* Validation and (.) support

Added validation for the username during installation.
Added dot (.) to the list of allowed symbols for username.
Added ‘dots (.)’ to the error_user_name_invalid error message.
2018-03-27 23:36:05 +02:00
rabauss 462e489762
Update HistoryGraph.php
with several php-settings there might be problems with timestamp output - so it would be better to use number_format for output. otherwise the graph wont show...
2018-03-27 23:36:04 +02:00
Guillaume Moigneu ca57189e56
Fix typo on Installer.php 2018-03-27 23:36:03 +02:00
Nls 8d720496d4
Refactor header checking to be sure that we can't crash this ! 2018-03-27 23:36:02 +02:00
Nls b835de1cf6
Add optionnal header check on StatusUpdater 2018-03-27 23:36:02 +02:00
Nls 6be807cf9a
Add header_name & header_value to the server object 2018-03-27 23:36:01 +02:00
Timz99 95dbfdfe9a
Fixed upgrade check 2018-03-27 23:35:44 +02:00
Pepijn Over 32e018b6bb
preparing for 3.2.0 release 2018-03-27 23:24:25 +02:00
Andy Gaskell cdccb960c5 Rename Octopush.class.php to Octopush.php
I noticed this and the nexmo one were renamed as part of 1123603f64 for [refactoring] PSR-4 support through composer, mass-renaming all *.class.php to *.php to adhere to PSR-4

I was looking at the nexmo one as a follow up to Issue #170 Implement Nexmo SMS

See also...
https://github.com/phpservermon/phpservermon/pull/436
2017-03-30 11:20:51 +01:00
Patrick HUSS 439a63fa4f Parameter order fixed to match constructor signature #427 2017-03-23 15:08:02 +01:00
Jonas Hansen fed9cec88b Changed mysql pdo port empty check, to fix problem with mysql cant connect, when using custom port 2017-02-08 15:59:23 +01:00
Samuel Denis-D'Ortun f66c3453b1 Fix #406 2017-01-19 16:32:07 -05:00
Samuel Denis-D'Ortun fd0e698253 Merge pull request #376 from invartam/develop
Base URL configuration
2017-01-13 03:08:21 -05:00
Samuel Denis-D'Ortun e8857f809b Merge pull request #348 from Aestu/use_proxy-develop-2
Add global proxy support
2017-01-13 02:57:56 -05:00
invartam 5a7e0e0bc4 Merge branch 'develop' into develop 2017-01-07 03:14:33 +01:00
Tom Hatzer 6805903089 Remove trailing comma 2016-12-23 15:42:15 +01:00
Tom Hatzer b1df28d4d9 Add port to installer 2016-12-23 15:41:03 +01:00
Tom Hatzer cd977e2e51 Initialize protected variable db_port with value 3306 2016-12-23 15:30:39 +01:00
Tom Hatzer b2043b1b65 Add protected variable $db_port 2016-12-23 15:28:25 +01:00
Tom Hatzer ff1013ed7c Add custom port to config options in db class 2016-12-23 15:20:02 +01:00
Tom Hatzer 6bee28c78e Add ping to enum for type column in servers database table 2016-12-23 14:29:57 +01:00
Tom Hatzer b6060e7936 Add ping label to getLabels() 2016-12-23 11:44:15 +01:00
Tom Hatzer 5c0e889dd2 Add ping validation checks to ServerValidator 2016-12-23 11:38:47 +01:00
Tom Hatzer 363f67b335 Add copyright notice to updatePing method 2016-12-23 11:30:27 +01:00
Tom Hatzer 4c7d2bd4f3 Add updatePing method to check if ip is pingable 2016-12-23 11:29:28 +01:00
Tom Hatzer 92069a29a3 Add RDP port to save method 2016-12-23 11:12:07 +01:00
Benjy f19dc454ee Add base URL configuration field in installer and in sample configuration file 2016-11-05 19:10:28 +01:00
Daif Alotaibi d712bb7100 Support for SMSgw provider http://smsgw.net 2016-11-02 00:40:05 +03:00
Samuel Denis-D'Ortun 8ae313ebda Merge pull request #369 from nutsteam/ajax_auto_refresh
#367 fixed a csrf bug since 2014
2016-10-24 20:45:29 -04:00
Michael van Schaik 43645bf36f Update Mollie.php with new URL (Fixes #370)
Mollie has changed their SMS api to api.messagebird.com
They have been redirecting calls to www.mollie.com but will stop doing so from oct 24 2016
The API hasn't changed, this configuration is tested & working
2016-10-21 05:47:33 +02:00
尘缘 fe99c1cbec #367 fixed a csrf bug since 2014 2016-10-19 11:05:26 +08:00
Samuel Denis-D'Ortun c4551ab59e Merge pull request #365 from nutsteam/ajax_auto_refresh
use ajax to auto refresh server status page
2016-10-10 23:01:50 -04:00
尘缘 80df5b7735 use ajax to auto refresh server status page 2016-10-10 20:11:59 +08:00
尘缘 a586425c65 format port from http/s url 2016-10-10 17:22:28 +08:00
Egogo Websolutions 5e0b2ac00b Bugfix: Message needs to be encoded before sending to receive correct SMS message 2016-10-09 14:49:09 +02:00
Alfredo Esteban 7b3f792f76 Add global proxy support 2016-09-01 17:40:18 +02:00
Victor Macko 62acb604c6 Removed duplicate file 2016-07-07 00:21:26 +10:00
Victor Macko 3a1e8522a3 Added ClickSend SMS provider 2016-07-07 00:09:57 +10:00
Victor Macko dc132831d4 Merge branch 'develop' of github.com:phpservermon/phpservermon
Conflicts:
	src/includes/functions.inc.php
	src/lang/en_US.lang.php
	src/psm/Module/Config/Controller/ConfigController.class.php
	src/psm/Util/Server/Updater/StatusUpdater.php
	src/templates/config/config.tpl.html
2016-07-06 22:43:10 +10:00
Victor Macko 8e2698f4ce Merge remote-tracking branch 'origin/master'
# Conflicts:
#	src/lang/en_US.lang.php
#	src/psm/Txtmsg/Smsglobal.class.php
#	src/psm/Util/Updater/StatusNotifier.class.php
2016-07-06 22:37:50 +10:00
Valentin Deville d9557b4115
Add FreeMobile SMS 2016-07-04 14:31:42 +02:00
Samuel Denis-D'Ortun dcd552517b Merge branch 'davyrolink-201410_log-users' into develop 2016-05-21 20:34:16 -04:00
Samuel Denis-D'Ortun 953a7ddf57 Mute error when fsockopen fail to connect to host 2016-05-21 20:34:03 -04:00
Samuel Denis-D'Ortun c811876c89 Merge branch '201410_log-users' of https://github.com/davyrolink/phpservermon into davyrolink-201410_log-users
# Conflicts:
#	src/includes/psmconfig.inc.php
#	src/psm/Util/Install/Installer.php
2016-05-21 20:33:31 -04:00
Pavel Dvořák 24d7fee63e Use salt to encrypt the website check password #297 2016-05-21 19:55:35 -04:00
Samuel Denis-D'Ortun 9ded89b6a5 Improve password security by obfuscating it in the form #96 2016-05-21 16:55:12 -04:00
Pavel Dvořák 36b5229fcd Issue #96 Authentication fields for website/services
- Installer.php - Fixed install method
2016-05-21 18:11:57 +02:00
Pavel Dvořák 340660da4b Issue #96 Authentication fields for website/services
- File functions.inc.php - modified and added features psm_curl_get parameters for website_username and website_password
- File functions.inc.php - new features and psm_password_encrypt psm_password_decrypt to encrypt and decrypt passwords
- Adjusted basic language EN and supplemented by new language CZ phrase
- ConfigController.php - adjusted executeIndex method of password encryption key for each installation separately + executeSave method of saving the settings + added labels to methods getLabels
- AbstractServerController.php - adjusted method getServers a login password of the name
- ServerController.php - adjusted executeEdit method for storing information about name and password + executeSave method of storage in a database + method getLabels on labels
- Installer.php - adjusted method install a new configuration values ​​for the encryption key passwords + method installTables a new table structure servers + method upgrade320 the new structure
- StatusUpdater.php - adjusted method update the transmission website_username and website_password + method updateWebsite adjusted parameters passed to the function psm_curl_get
- Modified template: config/config.tpl.html, server/update.tpl.html, view.tpl.html
- Adapted javascript scripts.js
2016-05-21 17:08:01 +02:00