Commit Graph

392 Commits

Author SHA1 Message Date
Viharm 61afb81554
Cleanup 2023-08-14 05:43:24 +00:00
Viharm 537b17ac01
Merge branch 'phpservermon:develop' into fix/DBUserDetailRetention-LDAP 2023-08-14 06:34:37 +01:00
Tim Zandbergen 5f65f92678
Merge pull request #1255 from RaphaelBergmann/develop
Updated SMSGlobal API URL
2023-08-13 21:59:07 +02:00
Marc Farré 850f0eac8d
Update Octopush.php (#1259)
Update Octopush.php. Now accepting 200 as a valid response code.
2023-08-13 21:55:17 +02:00
Viharm 59966c6cd2
Signed commit 2023-08-13 18:52:19 +00:00
Viharm c81a4a426c
Merge branch 'phpservermon:develop' into fix/DBUserDetailRetention-LDAP 2023-08-10 15:01:35 +01:00
Raphael.Bergmann 7245f65873
Updated SMSGlobal API URL 2023-05-31 15:45:17 +02:00
Samuel Denis-D'Ortun 04a4d959fd
Merge pull request #1119 from RedKage/patch-1
Support for mysql unix socket
2022-04-14 08:27:05 -04:00
viharm 9643ef3f6f
Added additional parameter passed to LDAP auth module for checking existing user data in DB 2022-03-14 17:11:51 +00:00
Marc Farré 8dcf5c2666
Update Octopush.php (#1147)
* Update Octopush.php

Now works with the new API V1 : https://octopush.com/en/sms-gateway-api-documentation/

* Update Octopush.php

* Updated send check

Co-authored-by: Tim Zandbergen <TimZ99@users.noreply.github.com>
2021-12-11 01:36:08 +01:00
Akshay Jain 76d0c276c0
Update User.php (#1135)
https://www.huntr.dev/bounties/3-phpservermon/phpservermon/
2021-07-28 20:04:12 +02:00
scheibling e28192278c
Update FreeMobileSMS.php - Fix encoding bug (#1132)
Fix the URL encoding by changing urlencode to rawurlencode, since the former uses + instead of %20 to encode an URL and is meant for form submissions. Rawurlencode is meant for creating URLs, and should fix bug #1120
2021-06-23 22:47:27 +02:00
Tim Zandbergen 3daa804d5f
SECURITY: Replaced mt_rand with random_bytes
https://huntr.dev/bounties/2-phpservermon/phpservermon/
CWE-1241: Use of Predictable Algorithm in Random Number Generator
2021-06-23 22:06:34 +02:00
Tim Zandbergen bb10a5f3c6
SECURITY: Replaced mt_rand with random_bytes
https://huntr.dev/bounties/1-phpservermon/phpservermon/
CWE-1241: Use of Predictable Algorithm in Random Number Generator
2021-06-23 22:05:58 +02:00
scheibling 32fcb8b0e8
Added Tele2 API (#1130)
* Added Tele2 API

* Fixed mistake, added to readme, added number formatting

Co-authored-by: larsec <larsec@novea.nu>
Co-authored-by: Lars Scheibling <lars.scheibling@hoglandet.se>
Co-authored-by: Tim Zandbergen <TimZ99@users.noreply.github.com>
2021-06-21 22:49:40 +02:00
Unknown 2eb190e07e
Adding LabsMobile SMS Gateway (#961)
* Adding LabsMobile SMS Gateway

* Adding LabsMobile SMS Gateway Reference

* Update LabsMobile.php

Co-authored-by: Tim <TimZ99@users.noreply.github.com>
2021-05-31 04:12:18 +02:00
Michael 88708240c7
Add error message for missing/invalid header (#1017)
* add error message for missing/invalid header

* Code cleanup

- simplify the check
  - do not invert the result of `preg_match()`
  - do not set the `$result` in loop, it is already set after the loop
- fix the order of code, first set `$this->error` then `$result`
2021-05-31 04:02:20 +02:00
TacticalFreak 617adeea6f
Support for mysql unix socket
This will add support for connecting with a unix socket path to the mysql database.
Users will need to set their `PSM_DB_HOST` the unix socket path starting with an ":" symbol, like so
`:/home/xxxxxx/var/run/mysql.sock`

I stole this way idea of using the database host to store the unix socket path from Nextcloud. They do the same.

Related: https://github.com/phpservermon/phpservermon/issues/1118
2021-05-02 14:08:23 +02:00
TimZ99 de7c62cbce
Fixed typo in array - related to jabber
Fixes #1049.
2021-04-15 02:52:27 +02:00
Michael 600f63097e
Add more variables for webhook json (#1016)
* Add more variables for webhook json

To allow status specific icons and a special Text defined in the json, not only provide #message as variable, but also #server_ip, #server_label, #server_last_offline_duration and #status.

* Add #server_error as additional variable for webhooks
2021-04-15 02:00:06 +02:00
wienfuchs e5b76ca49e
add feature "add url" to email and telegram (#1085)
Resolved #967.

* add feature "add url" to email and telegram

* Added missing brackets

* Changed $body to correct var $message

And changed PHP_EOL to <br>.

* Changed text a little

* Add dutch translation

Co-authored-by: TimZ99 <TimZ99@users.noreply.github.com>
2021-04-15 01:50:44 +02:00
TimZ99 13b893e1d0
changed whitespace 2021-04-15 01:06:53 +02:00
Viharm 17cb13364b
Feature ldapauth (#507)
* Composer dependency added

* Updated code for language and config controller

* Added LDAP auth code

* Added blank discord value for new user during install
2020-12-16 00:21:45 +01:00
hjcday 79ccd15a76
Fix Plivo SMS encoding (#981)
Co-authored-by: hjcday <hugh.day@lsv.com.au>
2020-12-16 00:16:05 +01:00
Joseph Helela 54a5e2801c
Adding Infobip SMS Gateway (#1012) 2020-12-16 00:01:10 +01:00
Lukas 10f111c830
PromoSMS Gateway (#1064) 2020-12-15 23:52:16 +01:00
TimZ99 f1df99c5ae
Moved update script to 3.6.0 2020-08-26 15:59:46 +02:00
TimZ99 99bcc90c03
Auto gen password for __PUBLIC__ and hide fields 2020-08-26 15:58:58 +02:00
Tim 36e33b3215
Removed old check
Removal of last admin has been fixed with 3568a570.
2020-08-26 15:17:23 +02:00
TimZ99 e599c18f0b
Merge remote-tracking branch 'origin/develop' into feature/public_page
# Conflicts:
#	README.rst
#	config.php.sample
#	src/includes/psmconfig.inc.php
#	src/lang/en_US.lang.php
#	src/psm/Module/User/Controller/UserController.php
#	src/psm/Util/Install/Installer.php
2020-08-24 22:27:51 +02:00
TimZ99 27d9bd6a70
Only __public__ can be anonymous 2020-08-18 17:53:18 +02:00
TimZ99 b94d66bfc0
Added user on upgrade 2020-08-18 17:50:22 +02:00
Marc Farré ba0fa251e9
Update Octopush.php (#975)
With the low cost default value, SMS are sometimes received many hours after. For a monitoring software, this has no sense, we need to be sure to receive the alert by SMS instantly to repair the problem as quick as possible. Otherwise, SMS is useless, email is free and good enough. Moreover, the price difference between low cost and premium is small.
2020-08-14 17:56:13 +02:00
Daniel Krusky d0f5d18fc4
Added support for Discord using Webhooks (#971)
* Added support for Discord using Webhooks

* Bumped version

* Fixed broken upgrade

* Moved discord below Jabber

* Fixed broken comment

* Added missing translation

* Updated version

* Typo

* Moved Discord under Jabber

* Fixed icons

* Moved Webhook and discord after Jabber

Co-authored-by: Tim <TimZ99@users.noreply.github.com>
2020-08-12 21:33:44 +02:00
Dylan Ysmal 74b97db66f
Add Ysmal.fr SMS gateway (#906) 2020-08-12 21:26:28 +02:00
milux 9fe598d774
Increased graph data processing speed (#944) 2020-08-12 21:23:47 +02:00
wienfuchs c090a398d1
change rtime to numerical to avoid DB update conflicts (#963) 2020-08-12 21:11:50 +02:00
Malte Grosse 14f6e491cf
webhook support (#951)
* added webhook support

* Added missing upgrade lines

* Removed todo

* Removed linebreak

* Moved webhook below Jabber

* Fixed description not showing

* Moved webhook below jabber

* Indentation and table name fix

* Bumped version

* Fixed “header already sent” error

Co-authored-by: TimZ99 <TimZ99@users.noreply.github.com>
2020-08-12 19:27:13 +02:00
Alexandre ZANELLI 60955f799e
Adding OVH SMS Gateway. (#953)
Co-authored-by: Alexandre ZANELLI <azanelli@uuds.com>
2020-08-12 15:33:48 +02:00
Marc Farré 97d61a972c
Update Octopush.php (#968)
Replace `urlencode` by `rawurlencode` and `XXXX` by `XXXXX` otherwise you get error 121 (see https://www.octopush-dm.com/en/errors)
2020-08-12 15:31:09 +02:00
dhanrajbsheth f5db23b1e5
Installer checks for needed PHP functions (#939)
Closes #903.
2020-05-25 21:36:57 +02:00
wienfuchs 7deac0815a
changing Windows ping routine back to socket usage, leaving Linux changes made (#938)
* use openssl_x509_parse to parse certinfo (avoid literal case conflict)

* use OS specific ping (CLI/socket)

* Moved Windows and non-Windows check to a private class


Co-authored-by: TimZ99 <TimZ99@users.noreply.github.com>
2020-05-25 18:10:10 +02:00
Tim f02d55635e
Changed ping6 to ping -6 for windows (#936)
Resolving #935.
2020-05-25 14:39:30 +02:00
wienfuchs 07abc7d294
use OS specific ping count parameter (#932)
* use OS specific ping count parameter

* Reorganized and complied with PSR-12

Co-authored-by: TimZ99 <TimZ99@users.noreply.github.com>
2020-05-24 23:40:19 +02:00
wienfuchs 96d0c3fa57
use openssl_x509_parse to parse certinfo (avoid literal case conflict) (#931) 2020-05-24 23:31:19 +02:00
Tim ea33ba07ca
Updated ping check (#919)
Check if transmitted and received packets is equal.
2020-05-18 22:05:19 +02:00
Tim a19127721c
Display time in ms instead of seconds (#918) 2020-05-18 19:58:33 +02:00
Mateusz Małek 7f1ea8452a
Fixed issue with choosing user permissions while adding server (#923) 2020-05-18 19:57:37 +02:00
Mateusz Małek de653fce9b
Set custom user agent (#924) 2020-05-18 19:55:05 +02:00
Mateusz Małek 2fd9702485
Add ability to set custom site title (#922) 2020-05-18 19:45:44 +02:00