Commit Graph

76 Commits

Author SHA1 Message Date
Tealk
c63c21212b
group headline colore 2021-03-19 14:41:41 +01:00
Tealk
dbf76d10f9
add spaces between Services Groups 2021-03-19 11:33:28 +01:00
Tealk
816d4cd8c5
fix service status colore 2021-03-19 10:41:08 +01:00
Tealk
1907f582ef
fix button position 2021-03-18 23:30:12 +01:00
Tealk
82c9ecbaad
cleanup, classes lifted to bootstrap 5 2021-03-18 23:20:41 +01:00
Tealk
bf3048baf8
files reformatted
for better readability
2021-03-18 18:26:03 +01:00
Tealk
ec86fe224b
first steps for bootstrap v5.0 2021-03-18 17:53:24 +01:00
Tealk
e8881a28d6
Wrap service with a div 2021-03-18 10:15:38 +01:00
Yigit Kerem Oktay
96f79ee725 Revert "Merge pull request #135 from server-status-project/master"
This reverts commit 8d571547f5, reversing
changes made to e96df7015e.
2020-11-05 16:54:04 +03:00
Yigit Kerem Oktay
46c0b55779 Revert "Merge branch 'dev' into master"
This reverts commit 18b89e8c35, reversing
changes made to 81132e9ccf.
2020-11-05 16:51:43 +03:00
thnilsen
887a197033 Initial code for front-end categorization status view 2020-10-14 19:54:32 +02:00
thnilsen
93d1491aac Add functionality to services in backend.
- Add functionallity to categorize a one or more services under one
  service group. Partial fix for #7 and #90. (Frontend code to be done)
- Add description field to service to be displayed as a help text
  on front page. Partial fix for #51 (Frontend code to be done)
2020-09-27 14:01:54 +02:00
Thomas Nilsen
3c6f2f272c Added getBooleanSetting and updateSetting functions 2020-08-20 23:16:20 +02:00
Thomas Nilsen
c84f985d01 Fix bug with misspelt function update_notification_retries 2020-08-20 23:11:42 +02:00
Yiğit Kerem Oktay
e310657cf3
Fix an issue which was created while trying to fix an issue 2020-08-16 23:23:01 +03:00
Yiğit Kerem Oktay
1b9067da1e
Try to fix an issue 2020-08-16 23:05:27 +03:00
Yiğit Kerem Oktay
0fa6794cdc
Add " symbol 2020-08-16 22:08:13 +03:00
Yiğit Kerem Oktay
d2c0808f52
Use object oriented
Use object oriented mysql class for db functions
2020-08-16 21:44:36 +03:00
Yiğit Kerem Oktay
6854dcb638
Merge pull request #2 from thnilsen/subscription2_dev
Fix bug notifications not being sent.
2020-08-15 23:08:16 +03:00
thnilsen
ea582aeed6 Fix bug notifications not being sent.
The code to handle sending of notification was missing. This change
makes two different options available on how notifications will be
handled which will be controlled by CRON_SERVER_IP config option.

 - If CRON_SERVER_IP is set, the server with the given IP should
   call URL ../admin/?task=cron every x minutes. If the config
   is left empty, the notification will be called once the
   incident has  been saved. (The latter meothod might cause
   server timeout if there are large numbers of subscribers!)

Other minor changes:

 - Removed old commented code

 - Removed call to syslog used for debugging
2020-08-15 21:09:57 +02:00
Yiğit Kerem Oktay
1c8aea09b3
Added db class 2020-08-15 20:21:19 +03:00
thnilsen
4a4a3f7bdd Merged Upstream master 2020-06-16 20:20:51 +02:00
thnilsen
e3d8e3ecf8 Added queue to handle sending of subscribers notifications 2020-06-16 20:11:25 +02:00
Vojtěch Sajdl
570895c7bd
Fix #102 - strip tags when saving incident 2020-06-03 09:13:54 +02:00
thnilsen
02cd19a439 Fixes issue #64 2020-05-23 17:03:08 +02:00
thnilsen
62e6f08e4f Code cleanup as suggested by the codacy service.
- Renamed get_service_details to populate_impacted_services
- Removed unused variables
2018-12-07 22:46:16 +01:00
Thomas Nilsen
c08264f4f7 Minor code cleanup suggested by codacy service 2018-11-25 21:33:18 +01:00
Thomas Nilsen
e98b4da649 Use new notification class 2018-11-25 18:45:54 +01:00
Thomas Nilsen
528cb77952 Reverses partial changes commited in PR #63
- Removes not needed re-translation of statuses. These fails to be
  translated due to index.php calling config.php after performing
  the translation. See #64 for details

- Amend SQL query to use named fields to prevent potential failure
  in future upgrades if table should change.
2018-11-25 18:26:30 +01:00
Thomas Nilsen
b5c5a2c8cf Moved, renamed and modified Telegram related files.
- Made functions from ./telegram.php into a class and moved to
  classes/telegram.php

- Renamed check.php to telegram_check.php to make it easier to
  understand what the file belongs to.

- SESSIONS used to control if user is logged on or not

- Telegram users will be identified as typeID = 2 in the
  subscribers table.
2018-11-25 17:25:44 +01:00
Thomas Nilsen
82e3dcb11e Add new classes
This implements the following new classes

- mailer.php Class to handle smtp/mail related tasks. This implements
  support for PHPMailer()

- notification.php Class to handle notification to subscribers.

- subscriber.php Class to handle the self-managment of subscribers.

- subscriptions.php Class to handle subscription to services for
  subscribers.
2018-11-25 17:18:09 +01:00
Thomas Nilsen
3fec45442e Added warning/success alert render function 2018-11-24 21:13:57 +01:00
jhuesser
b005e77664 use unused value 2018-11-23 22:10:49 +01:00
jhuesser
d0d0572b82 removed unused lastname 2018-11-23 22:10:49 +01:00
jhuesser
efe4c3d42f mange subscriptions 2018-11-23 22:10:49 +01:00
jhuesser
8c305d8a93 bug fixes and debuging stuff removed 2018-11-23 22:10:49 +01:00
jhuesser
d02ebc25ab send new incident to subscriber 2018-11-23 22:10:49 +01:00
Vojtěch Sajdl
554edc403a
Merge pull request #70 from thnilsen/add_services_to_panel
Add services to panel
2018-11-21 13:42:30 +01:00
Thomas Nilsen
d0824170ac Fix admin url (#68)
* Add prerequisite checks to install script. - Pryx/server-status#31

* Add option to use existing URL for privacy policy. Pryx/server-status#41

- Also moved the gitbug icon to the left of the footer as it looked like it was part of the imprint/policy link.
- Fixed Imprint & Privacy policy text so that it will be translated.

* Admin page is redirected to wrong URL on save. Fix Pryx/server-status#67
2018-11-21 11:42:04 +01:00
Thomas Nilsen
42815bacd6 Remove duplicate column name in SQL query 2018-11-21 11:24:39 +01:00
Thomas Nilsen
e41b45e067 Replaced "Posted by" with "Impacted services". Addresses suggestion in Pryx/server-status#69
* Extended Incident class with service_id and services_names.
2018-11-21 10:50:21 +01:00
Thomas Nilsen
c75f83c2ef Add impacted services to each incident view 2018-11-19 09:19:23 +01:00
thnilsen
d41cf42ab7 Adding norwegian language (#63)
* Added Norwegian language translation (nb_NO/Norsk Bokmål)

* Fixes display of translated overall status to selected language. Only english was shown prior, no matter the selected language.

* Fixes missed translation of norwegian (nb_NO)
2018-11-05 23:57:54 +01:00
Vojtěch Sajdl
93565fc014
Fix #54 - fixed time checking 2018-08-23 20:40:27 +02:00
Jan Jon
9e472db6f9 Fix#10 (#28)
Fix#10 - Add name, surname and username editing
2018-07-22 21:03:07 +02:00
Vojtěch Sajdl
77337a1078
Fix #43 - fixed sql 2018-07-10 14:34:22 +02:00
Vojtěch Sajdl
c115899350
Fix for serbian not displaying locale name 2018-05-09 13:54:42 +02:00
Vojtěch Sajdl
b2e6954ac9
Fix #33 - finishing touches 2018-04-20 17:39:34 +02:00
Vojtěch Sajdl
55f669b5d8
Naming change, more dead code & vars removed 2018-04-20 16:49:49 +02:00
Vojtěch Sajdl
f121211a14
Re #33 - remove bunch of dead code & fix some bugs 2018-04-20 16:40:12 +02:00