Commit Graph

49 Commits

Author SHA1 Message Date
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
Akshay Jain 76d0c276c0
Update User.php (#1135)
https://www.huntr.dev/bounties/3-phpservermon/phpservermon/
2021-07-28 20:04:12 +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
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
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
TimZ99 a9f0f64c78
Public server page 2019-12-13 14:13:04 +01:00
TimZ99 2c51ad12f7
Implementing the PSR12 standard
Using PHPCS and PHPSBF.
2019-12-11 21:27:04 +01: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 f21f3db19e
Typo fix, removed unused code & updated documentation 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 e2c424e167
Spacing, indentation and braces
Co-Authored-By: Scrutinizer Auto-Fixer <auto-fixes@scrutinizer-ci.com>
2018-07-12 17:31:00 +02:00
Pepijn Over 32e018b6bb
preparing for 3.2.0 release 2018-03-27 23:24:25 +02: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
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
Samuel Denis-D'Ortun cbfd60871e Allow empty db password 2016-05-18 22:48:09 -04:00
Pepijn Over b2ed873b1b on login, make sure to clear existing session vars and start from fresh (moving from migrate() to invalidate()) 2016-01-31 00:17:28 +01:00
Pepijn Over 1123603f64 [refactoring] PSR-4 support through composer, mass-renaming all *.class.php to *.php to adhere to PSR-4 2015-02-27 15:18:37 +01:00
Pepijn Over f63a39d92c [refatoring] adding symfony service container and upgrading symfony packages to 2.6 2015-02-27 14:34:28 +01:00
Pepijn Over 51ff0f2044 updating copyright year in headers and email 2015-02-27 11:43:09 +01:00
Pepijn Over 71d432c973 issue #119: adding log retention period 2014-08-06 13:08:31 +02:00
jerome 5c99a4bbd3 Rewriting Archiver. Database access optimization + thread safe. 2014-08-06 13:08:31 +02:00
jerome 131ec1c7b4 Fixing dates in charts regression. 2014-08-06 13:08:31 +02:00
Pepijn Over 945a09cfc3 issue #117: Replacing Template service with Twig and implementing Twig in all modules/utils 2014-08-05 15:19:17 +02:00
Pepijn Over 87dea7f6d0 renaming getPreferences method to loadPreferences to indicate you are
not "get"ing anything
2014-05-04 13:42:31 +02:00
Pepijn Over c58a91fc3b finishing #86 by jerome (adding sql to install, changing primary key,
..)
2014-05-04 13:42:31 +02:00
jerome 19ae7db77a Saving status layout mode 2014-05-04 13:42:31 +02:00
Pepijn Over 3a2493e81c now using symfony HttpFoundation session object for managing user
session
2014-05-04 13:15:38 +02:00
Pepijn Over e868e130b0 adding required "?" prefix to if statements in templates 2014-04-22 20:59:47 +02:00
jerome 69e3b85516 Adding if statement in templates 2014-04-19 00:01:14 +02:00
Pepijn Over bd623e1ebd adding sanity checks to bootstrap to detect upgrade/missing config/etc; 2014-04-05 15:18:36 +02:00
Pepijn Over 43071eed88 bumping version to 3.0.0 for upcoming release, removing closing
brackets;
fixing go_back on info page and changing label of server selector;
changing tpl service to include files only once then store them
2014-04-05 09:51:55 +02:00
Pepijn Over 8cca8a6b29 Restyling sidebar: adding buttons and dropdowns;
removing sidebar from user edit/add page;
fixing typo in template service
2014-04-05 00:27:50 +02:00
Pepijn Over b1f6879ce0 adding server view mode; moving history to view page; changing archive
from 1 month to 1 week; adding history graphs (in addition to uptime)
2014-03-30 03:48:48 +02:00
Pepijn Over 9e788e0971 Adding sidebar functionality using sidebar util;adding icons to profile menu;fixing shortcode for install page 2014-03-28 18:38:25 +01:00
Pepijn Over c7a3ba66c1 fixing fatal error after deleting server;
login screen: changing h2 to h3 and large buttons to medium;
tooltip: show on hover instead of focus;
changing styling of flashmessage (removing status text, adding icon, changing width);
changing shortcodes from info to success for some actions;
changing all php file permissions to 0644;
2014-03-28 16:52:04 +01:00
jerome 28e7c4ba90 Change to prevent javascript single line object definition to be removed by template.Display(). 2014-03-21 20:23:47 +01:00
Pepijn Over e880aab22a dont attempt to log user in on install 2014-03-18 23:28:42 +01:00
Pepijn Over c47c33c0eb restricting server list for regular users, moving user-server relations
to own table
2014-03-16 02:04:49 +01:00
Pepijn Over b45e3699d4 issue #11: adding profile page 2014-03-15 21:47:55 +01:00
Pepijn Over 26f8fedffe issue #11: adding login module, adding user authentication to user
module

issue #11: adding user authentication to installer
2014-03-14 18:53:03 +01:00
Pepijn Over 00b15237e6 Updating Database service class to PDO mysql instead of mysql_* functions 2014-02-11 16:15:12 +01:00
Pepijn Over 0f7f6f011d Changing project url to http://www.phpservermonitor.org/ 2014-02-10 23:48:43 +01:00
Pepijn Over c415371e5d removing option from template parser to directly load template files
into a file. its not being used and causes a file_exists() on all vars
2014-02-09 12:19:44 +01:00
Pepijn Over 6075bc80ab Changing Database service to accept custom db info in construct, no
longer solely relying on config constants
2014-02-08 18:35:49 +01:00
Pepijn Over 59ec03f974 Adding "Service" namespace under psm and moving database + template handlers 2014-01-21 22:50:36 +01:00