Commit Graph

7 Commits

Author SHA1 Message Date
Tony Murray
1c7c3cae0e Update functions.inc.php 2019-06-22 07:15:37 -05:00
Martijn Schmidt
04faa52ac7 Change to dbFetchRow(), return string directly. 2019-06-22 12:38:07 +02:00
Martijn Schmidt
0c94cfa282 Enable unit translation, fix typos. 2019-06-05 23:17:08 +02:00
Martijn Schmidt
2fe12a4192 Move label creation to get_sensor_label_color()
Also removed a duplicate sensor class to unit function.
2019-05-30 17:39:49 +02:00
Martijn Schmidt
57573854ee Move state translation to get_state_label()
Several html pages used similar database calls and sometimes very
different methodology to determine the state label and state text
before calling get_state_label(), so moved that part of the task
into the function itself instead of replicating the same code
multiple times on different pages.
2019-05-30 16:06:42 +02:00
SourceDoctor
96f7f142ba add mdadm support (#10159)
* add mdadm support

* Update mdadm.inc.php
2019-05-12 23:42:03 -05:00
Tony Murray
36431dd296 Security fix: unauthorized access (#10091)
* Security fix: unauthorized access
Affects nginx users:
Moved php files outside of public html directory (Apache was protected by .htaccess)

Affects all users:
Some files did not check for authentication and could disclose some info.
Better checks before including files from user input

* git mv html/includes/ includes/html
git mv html/pages/ includes/html/
2019-04-11 23:26:42 -05:00