Compare commits

...

286 Commits

Author SHA1 Message Date
Vojtěch Sajdl b2baa5051b
Merge pull request #169 from kim3-sudo/master
Updated sorting, version number in README ( Fixes #168 )
2022-12-20 16:57:07 +01:00
Sejin Kim 9951c22d07
Update minimum version to PHP5.5
This version is not compatible with PHP 5.4 due to a constants handling issue. See [GH issue #168](https://github.com/server-status-project/server-status/issues/168)
2022-12-20 10:30:25 -05:00
Sejin Kim 2d65d0f9df
Add sort for services for group then service 2022-12-20 10:26:39 -05:00
Vojtěch Sajdl c9bcbc241b
Merge pull request #148 from Steffen-MLR/master
Fix for status api by correcting sql queries
2021-10-03 01:31:50 +02:00
Vojtěch Sajdl 184f803d6e
Create SECURITY.md 2021-09-07 14:53:34 +02:00
Steffen Mueller 002bb13e10 Fix for status api by correcting sql queries 2021-04-22 09:16:30 +02:00
Yigit Kerem Oktay 9d3d14f67c
Update README.md 2021-04-19 20:11:07 +03:00
Steffen Mueller 58b375161d Big fix for status api with parameter ID 2021-03-15 08:57:14 +01:00
Yigit Kerem Oktay f33bf996c6
Merge pull request #136 from server-status-project/dev
Release Developer branch to stable
2021-02-01 13:59:29 +03:00
Yigit Kerem Oktay 3e706233a4 Only make changes to files when not in development mode 2020-12-15 15:25:00 +03:00
Yigit Kerem Oktay 1408d0ad91 Bug fix for not allowing access to admin because of a file not found error 'head.txt' 2020-12-15 15:08:17 +03:00
Yiğit Kerem Oktay 8007097d2f
Fix a graphical glitch 2020-11-24 16:07:23 +03:00
Yiğit Kerem Oktay 85dfce55c8
Remove old version server checks 2020-11-12 22:06:55 +03:00
Yiğit Kerem Oktay 75bdde26b3
Update main.css 2020-11-12 11:20:35 +03:00
Yiğit Kerem Oktay 3939fca1f7
Update main.css 2020-11-12 11:16:16 +03: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
Yiğit Kerem Oktay 8d571547f5
Merge pull request #135 from server-status-project/master
Merge new updates
2020-11-05 16:52:24 +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
Yiğit Kerem Oktay 18b89e8c35
Merge branch 'dev' into master 2020-11-05 16:50:05 +03:00
Yiğit Kerem Oktay e96df7015e
Merge pull request #131 from thnilsen/dev
Initial code for front-end categorization status view
2020-10-14 23:06:53 +03:00
Thomas Nilsen 505d802c2e
Merge pull request #4 from yigitkeremoktay/patch-1
Fix a UI bug
2020-10-14 21:40:14 +02:00
Yiğit Kerem Oktay 3edfd9dbe2
Fix a UI bug 2020-10-14 22:30:12 +03:00
thnilsen 887a197033 Initial code for front-end categorization status view 2020-10-14 19:54:32 +02:00
Vojtěch Sajdl 81132e9ccf
Merge pull request #129 from kim3-sudo/patch-1
Fix PHP syntax error
2020-10-05 23:55:36 +02:00
Sejin Kim af62f9f49d
Fix PHP syntax error
Added a semicolon that allows fresh installations on *NIX to work properly with PHP 7.2+
2020-10-05 17:34:27 -04:00
Yiğit Kerem Oktay e2b331a039
Fixback 2020-10-02 08:58:07 +03:00
Yiğit Kerem Oktay 671004579c
Update incident.php 2020-10-01 16:35:32 +03: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
Yiğit Kerem Oktay 38fcabdbb4
Update stale.yml 2020-09-12 16:41:36 +03:00
Vojtěch Sajdl f7ad9ac6b1
Create stale.yml 2020-09-09 13:20:05 +02:00
Vojtěch Sajdl 9963e1f834
Merge pull request #126 from Nothing4You/fix-head.php
fix head.php: comment wasn't part of of a php block
2020-09-01 09:39:18 +02:00
Richard Schwab ff06a320b0 fix head.php: comment wasn't part of of a php block 2020-09-01 08:28:31 +02:00
Yiğit Kerem Oktay 3c540496d4
Update template.php 2020-08-30 22:03:42 +03:00
Yiğit Kerem Oktay e09d02cf2e
Update and rename head.txt to head.php 2020-08-30 22:03:09 +03:00
Vojtěch Sajdl 14015d4666
Update README.md 2020-08-30 09:19:46 +02:00
Yiğit Kerem Oktay 48b9cbbc82
Update README.md 2020-08-27 16:43:41 +03:00
Yiğit Kerem Oktay b3a1bfeb0e Update issue templates 2020-08-24 23:04:14 +03:00
Yiğit Kerem Oktay 1573b062b5
Update README.md 2020-08-24 22:46:31 +03:00
Yiğit Kerem Oktay 86a36e3832
Update versionfile for beta 8 2020-08-24 22:43:09 +03:00
Yiğit Kerem Oktay 5618b57e2b
Merge pull request #123 from yigitkeremoktay/master
Version 2  - Migrate Settings to DB -- Add Telegram and Email Subscription Support
2020-08-24 22:38:08 +03:00
Yiğit Kerem Oktay 95f4fc5a41
Add support for additional code after head tag 2020-08-24 16:24:05 +03:00
Yiğit Kerem Oktay 8b2c664f36
Add support for custom code 2020-08-24 16:20:04 +03:00
Yiğit Kerem Oktay 5d99ed7ccb
Merge pull request #3 from thnilsen1/move_config_options
Removed Telegram and email notification setup from install routine.
2020-08-21 12:22:37 +03:00
Thomas Nilsen a2e0cab819 Update to read relevant options from DB 2020-08-20 23:42:29 +02:00
Thomas Nilsen 78bb717b0d Updated install with new db options 2020-08-20 23:40:20 +02:00
Thomas Nilsen 46dbbd35d5 Moved notification settings to db.
The following define() are now loaded via the db class:

- SUBSCRIBE_TELEGRAM
- SUBSCRIBE_EMAIL
- TG_BOT_API_TOKEN
- TG_BOT_USERNAME
- GOOGLE_RECAPTCHA
- GOOGLE_RECAPTCHA_SITEKEY
- GOOGLE_RECAPTCHA_SECRET
- PHP_MAILER
- PHP_MAILER_PATH
- PHP_MAILER_SMTP
- PHP_MAILER_HOST
- PHP_MAILER_PORT
- PHP_MAILER_SECURE
- PHP_MAILER_USER
- PHP_MAILER_PASS
- CRON_SERVER_IP
2020-08-20 23:27:41 +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
Thomas Nilsen 23dc109764 Removed Telegram and email notification setup from install routine.
In prepearing to move the config.php options to db options, the following config
options have been removed from config.php

- SUBSCRIBE_TELEGRAM
- SUBSCRIBE_EMAIL
- TG_BOT_API_TOKEN
- TG_BOT_USERNAME
- GOOGLE_RECAPTCHA
- GOOGLE_RECAPTCHA_SITEKEY
- GOOGLE_RECAPTCHA_SECRET
- PHP_MAILER
- PHP_MAILER_PATH
- PHP_MAILER_SMTP
- PHP_MAILER_HOST
- PHP_MAILER_PORT
- PHP_MAILER_SECURE
- PHP_MAILER_USER
- PHP_MAILER_PASS
- CRON_SERVER_IP
2020-08-19 23:24:32 +02:00
Yiğit Kerem Oktay 5a275f32d5
Update README.md 2020-08-17 18:11:45 +03:00
Yiğit Kerem Oktay adb2fe9e99
Update README.md 2020-08-17 18:11:17 +03:00
Yiğit Kerem Oktay 6858223daf
This file is functional now 2020-08-17 18:08:58 +03:00
Yiğit Kerem Oktay dc1cf2691c
Fix toggle 2020-08-17 18:00:13 +03:00
Yiğit Kerem Oktay 1539375b39
Update options.php 2020-08-17 17:39:39 +03:00
Yiğit Kerem Oktay e419dc31e6
that's better 2020-08-17 17:32:05 +03:00
Yiğit Kerem Oktay 675662db12
Add something pretty required 2020-08-17 17:31:22 +03:00
Yiğit Kerem Oktay 0e1a563449
Fixed it now 2020-08-17 17:23:58 +03:00
Yiğit Kerem Oktay b164d66df5
another attempt 2020-08-17 17:20:43 +03:00
Yiğit Kerem Oktay 8a91605869
try a fix 2020-08-17 17:18:46 +03:00
Yiğit Kerem Oktay 990462cece
Add new functionality 2020-08-17 17:14:47 +03:00
Yiğit Kerem Oktay 3b4fe3f27c
Fix tpyo 2020-08-17 17:08:35 +03:00
Yiğit Kerem Oktay 51895e3a66
Test new toggle function 2020-08-17 17:01:52 +03:00
Yiğit Kerem Oktay 46e5af20b9
Add function render_toggle 2020-08-17 17:00:20 +03:00
Yiğit Kerem Oktay a07ee2131a
add options to index 2020-08-17 16:54:12 +03:00
Yiğit Kerem Oktay 169b165b5d
Create options.php 2020-08-17 16:52:20 +03:00
Yiğit Kerem Oktay 827b96c49b
add css for toggle buttons 2020-08-17 16:45:54 +03:00
Yiğit Kerem Oktay 57dd2b2615
Add options button to menu 2020-08-17 16:45:03 +03:00
Yiğit Kerem Oktay a40d2f134e
Change menu text 2020-08-17 16:43:48 +03:00
Yiğit Kerem Oktay 7aed1d2580
Delete duplicate 2020-08-17 16:40:59 +03:00
Yiğit Kerem Oktay 0bc924e39a
Fix crash while trying to send notifications 2020-08-17 16:39:41 +03:00
Yiğit Kerem Oktay 843632bfe7
Add telegram api to the setup 2020-08-17 13:00:03 +03:00
Yiğit Kerem Oktay 5527740bee
Get data from the db 2020-08-17 12:58:43 +03:00
Yiğit Kerem Oktay b6ed71bdb7
Get info from the db! 2020-08-17 12:56:57 +03:00
Yiğit Kerem Oktay 349aa0e195
Fix tpyo and add some info 2020-08-17 00:41:42 +03:00
Yiğit Kerem Oktay 4801c04b65
Fix tpyo 2020-08-17 00:35:41 +03:00
Yiğit Kerem Oktay 775626f25b
Fix urls 2020-08-17 00:33:22 +03:00
Yiğit Kerem Oktay 88c9c7d20f
Fix version check 2020-08-17 00:31:57 +03:00
Yiğit Kerem Oktay 2ab9cf435e
Use trim for version check 2020-08-17 00:29:33 +03:00
Yiğit Kerem Oktay bc145421a9
Notify updates 2020-08-17 00:25:12 +03:00
Yiğit Kerem Oktay 48ba123c6e
Update install.php 2020-08-17 00:23:10 +03:00
Yiğit Kerem Oktay f9468a491b
Hide subscribe widget 2020-08-17 00:17:40 +03:00
Yiğit Kerem Oktay 986506c080
Allow notifyUpdates by default 2020-08-17 00:14:27 +03:00
Yiğit Kerem Oktay 0693327a21
Add some additional info to update notification 2020-08-17 00:13:26 +03:00
Thomas Nilsen 5a15207476 Merge branch 'master' of https://github.com/yigitkeremoktay/server-status 2020-08-16 23:04:24 +02:00
Yiğit Kerem Oktay 8f3b4d081b
Check for updates (celebration_emoji) 2020-08-17 00:03:58 +03:00
Thomas Nilsen 0b3e617d96 Fix to hide subscriber menu when not configured 2020-08-16 23:03:05 +02:00
Yiğit Kerem Oktay 55f92ead6d
Create updateseed 2020-08-16 23:58:06 +03:00
Yiğit Kerem Oktay ded2414424
Update versionfile 2020-08-16 23:47:34 +03:00
Yiğit Kerem Oktay f593c6ee63
Update README.md 2020-08-16 23:41:25 +03:00
Yiğit Kerem Oktay b391d0a12f
Fix missing css 2020-08-16 23:38:06 +03:00
Yiğit Kerem Oktay d9e7922019
Allow setup of telegram api 2020-08-16 23:35:15 +03:00
Yiğit Kerem Oktay 0271ca87cf
Fix a conflict that overwrites the settings in the db 2020-08-16 23:34:13 +03: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 04dee18b9c
Update install.php 2020-08-16 23:21:44 +03:00
Yiğit Kerem Oktay 96d1573868
Update versionfile 2020-08-16 23:21:14 +03:00
Yiğit Kerem Oktay 7473e18fae
Fix a critical problem 2020-08-16 23:17:35 +03:00
Yiğit Kerem Oktay 8b5e227ff1
Fix bold text 2020-08-16 23:05:58 +03:00
Yiğit Kerem Oktay 1b9067da1e
Try to fix an issue 2020-08-16 23:05:27 +03:00
Yiğit Kerem Oktay 5515a2d776
Update README.md 2020-08-16 22:57:58 +03:00
Yiğit Kerem Oktay f8a7144466
Update README.md 2020-08-16 22:48:51 +03:00
Yiğit Kerem Oktay affe264d58
Update README.md 2020-08-16 22:47:49 +03:00
Yiğit Kerem Oktay 6f52ea6553
Update README.md 2020-08-16 22:47:27 +03:00
Yiğit Kerem Oktay 1603f0e103
Update README.md 2020-08-16 22:47:01 +03:00
Yiğit Kerem Oktay 49765e1a3e
Update versionfile 2020-08-16 22:35:52 +03:00
Yiğit Kerem Oktay e987d77ed7
Get Settings from the db 2020-08-16 22:34:59 +03:00
Yiğit Kerem Oktay 88ba637891
Move creation of the db class 2020-08-16 22:31:33 +03:00
Yiğit Kerem Oktay 7c83e0007f
Remove debug lines 2020-08-16 22:29:42 +03:00
Yiğit Kerem Oktay 9c6813cff6
Move settings to database 2020-08-16 22:29:04 +03:00
Yiğit Kerem Oktay 3ee8f8ace5
Remove white space 2020-08-16 22:21:20 +03:00
Yiğit Kerem Oktay 23b7d83a45
Fix typo 2020-08-16 22:16:45 +03:00
Yiğit Kerem Oktay d041c9b58f
Remove non required line 2020-08-16 22:15:06 +03:00
Yiğit Kerem Oktay 0fa6794cdc
Add " symbol 2020-08-16 22:08:13 +03:00
Yiğit Kerem Oktay f6cd9202bd
Create versionfile 2020-08-16 21:55:31 +03:00
Yiğit Kerem Oktay cd0147e319
Implement version check 2020-08-16 21:55:01 +03:00
Yiğit Kerem Oktay 13288ecb4f
Add version check 2020-08-16 21:50:17 +03:00
Yiğit Kerem Oktay 730bff07af
Delete workflows 2020-08-16 21:45:41 +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
Yigit Kerem Oktay 0825daa570 Fix a graphical issue 2020-08-15 20:47:36 +03:00
Yiğit Kerem Oktay df2186c795
Create php.yml 2020-08-15 23:11:09 +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 83841a4726
Add necessary info to readme 2020-08-15 20:25:42 +03:00
Yiğit Kerem Oktay 9decc6a7a9
Include db class in setup 2020-08-15 20:24:39 +03:00
Yiğit Kerem Oktay 2f544eace2
Include db class 2020-08-15 20:23:23 +03:00
Yiğit Kerem Oktay 489c745609
Create settings table 2020-08-15 20:22:36 +03:00
Yiğit Kerem Oktay 1c8aea09b3
Added db class 2020-08-15 20:21:19 +03:00
Yiğit Kerem Oktay 9af0207549
Hide subscribe buttons 2020-08-15 20:19:06 +03:00
Yiğit Kerem Oktay 5739794799
Fix broken logo on install 2020-08-15 20:17:27 +03:00
Yiğit Kerem Oktay 04c941257a
Merge pull request #1 from thnilsen/subscription2_dev
Subscription2 dev
2020-08-15 19:54:00 +03:00
Thomas Nilsen 8d31ec7f7c Merge branch 'master' into subscription2_dev
Fix Subscriber CSS issue
2020-08-15 18:48:41 +02:00
Vojtěch Sajdl eecde5f23a
Merge pull request #121 from yigitkeremoktay/patch-4
Fix contributors link
2020-08-15 15:15:55 +02:00
Yiğit Kerem Oktay 12e6fd693f
Fix contributors link 2020-08-14 22:36:50 +03:00
Vojtěch Sajdl 0b16909899
Merge pull request #120 from yigitkeremoktay/patch-3
Fix a major issue
2020-08-14 20:54:47 +02:00
Vojtěch Sajdl 9f2e2db846
Merge pull request #118 from yigitkeremoktay/patch-1
Fix back https://github.com/Pryx/server-status/pull/106
2020-08-14 20:52:19 +02:00
Yiğit Kerem Oktay 7fceaf75d2
Fix a major issue
Makes this file functional.
2020-08-14 21:47:50 +03:00
Yiğit Kerem Oktay 0e78c04594
Fix back https://github.com/Pryx/server-status/pull/106
https://github.com/Pryx/server-status/pull/106 was reverted back via another PR  this fixes it back again
2020-08-14 21:07:05 +03:00
Vojtěch Sajdl 96bf232ec5
Merge pull request #115 from yigitkeremoktay/patch-1
Çeviriler Güncellendi
2020-08-14 19:48:45 +02:00
Vojtěch Sajdl f3aca0c172
Merge pull request #117 from yigitkeremoktay/patch-4
Some Graphical Improvements
2020-08-14 19:47:33 +02:00
Vojtěch Sajdl d9f0587e88
Merge pull request #116 from yigitkeremoktay/patch-3
Added Example Sites and Install Guide
2020-08-14 19:46:18 +02:00
Yiğit Kerem Oktay c6be6cb561
Add fix for language issue 2020-08-14 20:27:38 +03:00
Yiğit Kerem Oktay 10b485418c
Fix a bug caused copyright to go blank 2020-08-14 20:15:39 +03:00
Yiğit Kerem Oktay 2d10e18453
Missing Commit Added (Manual Merge 5) 2020-08-14 20:14:23 +03:00
Yiğit Kerem Oktay 0dd6c5edaf
Manual Merge 4 2020-08-14 20:07:00 +03:00
Yiğit Kerem Oktay 7d4aaf9948
Manual Merge Step 3 2020-08-14 20:05:34 +03:00
Yiğit Kerem Oktay d99e754647
Manual Merge Step 2 2020-08-14 20:04:49 +03:00
Yiğit Kerem Oktay f785d56b78
Manual Merge of PR 114 STEP 1 2020-08-14 20:02:42 +03:00
Yiğit Kerem Oktay 28431cc240
Added required definitions 2020-08-14 19:52:18 +03:00
Yiğit Kerem Oktay 7585a0d650
Logo size issue fixed 2020-08-14 19:50:56 +03:00
Yiğit Kerem Oktay 70c8a4fa0f
Add support for custom logo 2020-08-14 19:46:48 +03:00
Yiğit Kerem Oktay 17a6115aab
Some Graphical Improvements 2020-08-14 19:37:16 +03:00
Yiğit Kerem Oktay 27c90e30aa
Çeviriler Güncellendi 2020-08-14 19:12:36 +03:00
Yiğit Kerem Oktay 9674e371de
Delete Server_status_Turkish.mo 2020-08-14 19:11:27 +03:00
Yiğit Kerem Oktay 26e9135e60
Add files via upload 2020-08-14 19:10:54 +03:00
Yiğit Kerem Oktay 8dc7a342fe
Delete server-status.mo 2020-08-14 19:10:37 +03:00
Yiğit Kerem Oktay 05ee9256eb
Added Example Sites and Install Guide 2020-08-14 18:14:39 +03:00
Yiğit Kerem Oktay 09770165a6
Çeviriler Güncellendi
Updated translations. Privacy policy may still need some translations.
2020-08-14 17:14:09 +03:00
Vojtěch Sajdl a476a20737
Fix discord link 2020-08-14 14:51:05 +02:00
Vojtěch Sajdl e96f8733a7
Merge pull request #112 from yigitkeremoktay/patch-1
Add some required info for creating server config
2020-08-14 14:46:39 +02:00
Yiğit Kerem Oktay d538f7d358
Create IISWebConfig 2020-08-14 15:13:12 +03:00
Yiğit Kerem Oktay af2f8969eb
Create ApacheHtaccess 2020-08-14 15:12:30 +03:00
Yiğit Kerem Oktay 34e3782a61
Add additional info 2020-08-14 15:11:42 +03:00
Yiğit Kerem Oktay b14f60e08b
Add some required info for creating server config 2020-08-14 14:58:05 +03:00
Yiğit Kerem Oktay 484bbd60d0
Create create-htaccess.php (#108)
* Create create-htaccess.php

This file generates a .htaccess file that contains all necessary 
code for it.
This is needed because some hosts do not either unzip hidden files
or neither GitHub puts that file inside the zips.

* Delete .htaccess

* Add required code for creating htaccess

* Add support for both iis and apache

* Delete web.config

* Rename create-htaccess.php to create-server-config.php

* Rename file links for create-server-config.php

* Last nitpick :)
2020-08-14 13:40:42 +02:00
Vojtěch Sajdl 7362c857b0
Merge pull request #106 from yigitkeremoktay/patch-1
Fix service labels not fitting inside  container
2020-08-14 13:23:24 +02:00
Yiğit Kerem Oktay ab085596ca
Patch 1.3 2020-08-14 14:00:38 +03:00
Yiğit Kerem Oktay 14e04d0737
Patch 1.2 2020-08-14 13:58:55 +03:00
Yiğit Kerem Oktay f6acd559d5
Fix service labels not fitting inside container
Service Labels are automatically pushed to a new line when there is no enough space
2020-08-14 12:09:12 +03:00
Vojtěch Sajdl dc7fcdbd4f
Added discord to readme 2020-08-12 10:03:11 +02: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 d9b7ed432e
Merge pull request #104 from Nothing4You/fix-maintenance-relative-dates
Fix relative timestamps not properly displaying dates in the future.
2020-06-12 12:04:54 +02:00
Richard Schwab 0be50cf9f9 Fix relative timestamps not properly displaying dates in the future.
In 184247c4ab (#99) jquery.timeago was updated from version 1.6.1 to 1.6.7.
This changed the default value for allowFuture, which is responsible for restricting whether a date in the future would be shown e.g. as "3 days ago" or "3 days from now".
2020-06-12 11:30:09 +02:00
Vojtěch Sajdl 570895c7bd
Fix #102 - strip tags when saving incident 2020-06-03 09:13:54 +02:00
Vojtěch Sajdl 9eba848423
Merge pull request #101 from thnilsen/issue81
Remove urlencode() call from install routine
2020-05-28 14:46:53 +02:00
thnilsen 253bf925ce Fixes issue #81, #91, #94, #95 by removing escaping of of what becomes the WEB_URL config parameter. 2020-05-27 19:31:25 +02:00
Vojtěch Sajdl 45a90aef71
Merge pull request #100 from thnilsen/issue64
Fix for translation when selecting a different language
Fixes #64 #80 #84
2020-05-23 17:18:47 +02:00
thnilsen 02cd19a439 Fixes issue #64 2020-05-23 17:03:08 +02:00
Vojtěch Sajdl 41fd9a2745
Merge pull request #99 from Nothing4You/update-libs
Fix #92 Update libs
2020-05-11 09:57:12 +02:00
Richard Schwab 184247c4ab Update libs:
- jquery to 3.2.1
- jquery.growl to 1.3.5
- jquery.timeago to 1.6.7
- bootstrap to 3.4.1
2020-05-11 07:07:02 +02:00
Vojtěch Sajdl 7294b356dd Fix #78 - run data through htmlspecialchars so we don't crash when there are quotes in the name 2019-03-15 12:22:16 +01:00
Vojtěch Sajdl 2b54aa9d46
Translate (#79)
* Update server-status.mo (POEditor.com)

* Update server-status.po (POEditor.com)

* Add translations from POEditor
2019-03-15 12:14:24 +01:00
Vojtěch Sajdl e8744fe9a5
Update translations 2019-01-14 12:10:40 +01: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
thnilsen 7ee0aa3540 Removed redundant code
- $tg_user was no longer used for validating if a subscriber  was logged
  in or not, as this has been moved to a $_SESSION variable.
2018-12-07 22:41:23 +01:00
Thomas Nilsen c08264f4f7 Minor code cleanup suggested by codacy service 2018-11-25 21:33:18 +01:00
Thomas Nilsen b90fab434c Changes to SQL schema
In order to handle multiple subscription types using the same tables
some changes from the schema as implemented by PR #1 are needed.
A typeID field will be the indicator for which type of notification
to use. Additional notification types must be assinged unique
typeIDs. Assigned typeID for now are:

- 1 = Telegram
- 2 = email
2018-11-25 20:04:59 +01:00
Thomas Nilsen fe812d5b78 Reverts changes done by a rebase merge gone wrong 2018-11-25 19:20:43 +01:00
Thomas Nilsen c57171add5 Reverts changes done by a rebase merge gone wrong 2018-11-25 18:58:42 +01:00
Thomas Nilsen 4903c3bb89 HTML template for status updates to subscribers
- Initial HTML template used to generate HTML emails when status
  notifications is sent to subscribers.
  TODO: Should probably be located in a different directory
  structure
2018-11-25 18:56:23 +01:00
Thomas Nilsen 28eaede6a2 Implementes email subscription handler to front
- Adds handler for email subscription. #65
2018-11-25 18:54:10 +01:00
Thomas Nilsen 39e53ab1f4 Adds dropdown for subscription options to menu
- Modifies menu to include email subscription in addition to Telegram
  subscription
2018-11-25 18:50:31 +01:00
Thomas Nilsen a74ce9ad33 Remove commented code 2018-11-25 18:48:38 +01:00
Thomas Nilsen e98b4da649 Use new notification class 2018-11-25 18:45:54 +01:00
Thomas Nilsen 7ca811d997 Adds new class dependencies
- Mailer class for mail handler
- Notification class for all notifications
- Parsedown class for implenting support for Markdown when adding new
  incidents #8.
2018-11-25 18:39:57 +01:00
Thomas Nilsen 3eccbf529e Add handling of email subscriptions
- Translation issue fixes #64

- Adds handler for email subscription requests
2018-11-25 18:33:25 +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 cf1f00e9b5 Frontend for handling subscription changes. 2018-11-25 17:23:07 +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 d504b0a4cc Add php_idn lib to support IDN/punycode emails
This external library adds functions to encode and decode email
addresses using extended utf-8 character sets. Example
examlpe@bånnibøtta.no

The library is written as simple functions rather than a class.
Original code at https://github.com/IgorVBelousov/php_idn
2018-11-25 17:06:03 +01:00
Thomas Nilsen cd6ce3c8d8 Added additional config definitions
In preparation for adding subscription notification a number of
new  configuration options has been added. These are as follows:

- SUBSCRIBE_EMAIL : True/False to allow email subscription

- SUBSCRIBE_TELEGRAM : True/False to allow Telegram
   subscription

- GOOGLE_RECAPTCHA : True/False to enable reCapthca for
   e-mail signup form

- GOOGLE_RECAPTCHA_SITEKEY : Google reCaptcha sitekey

- GOOGLE_RECAPTCHA_SECRET : Google reCaptcha secret

- PHP_MAILER : True/False to allow the use of PHPMailer()
  library for emails.

- PHP_MAILER_PATH: Path to where PHPMailer() class is
  located on the system

- PHP_MAILER_SMTP : True/False if SMTP is to be used with
  PHPmailer(). Default will be mail().

- PHP_MAILER_HOST : SMTP Host to use if PHP_MAILER_SMTP
  is enabled.

- PHP_MAILER_PORT : SMTP Port

- PHP_MAILER_SECURE : tls/ssl option for PHPMailer()

- PHP_MAILER_USER : Username for SMTP

- PHP_MAILER_PASS : Password for SMTP
2018-11-24 22:19:06 +01:00
Thomas Nilsen 3fec45442e Added warning/success alert render function 2018-11-24 21:13:57 +01:00
Thomas Nilsen 3ff19c0be5 Added parsedown support libraries based on paresedown.org 2018-11-23 23:23:19 +01:00
thnilsen 18af07ac77 Fix formating/repeat issue for install form 2018-11-23 22:13:08 +01:00
thnilsen 23cf02f608 Replace hardcoded urls with constants from config. 2018-11-23 22:12:31 +01:00
jhuesser 1431964afc added telegram to privacy policy 2018-11-23 22:12:31 +01:00
jhuesser ba6e3f4144 <br> handler for POLICY_PHONE 2018-11-23 22:12:31 +01:00
jhuesser cbc5fd2854 some fixes (still dont work) 2018-11-23 22:12:31 +01:00
jhuesser a57f6e2f86 after work commit [not working]
not working, but i need to push it to have it on my other locations
2018-11-23 22:11:41 +01:00
jhuesser 66c13a32cc created default policy 2018-11-23 22:11:41 +01:00
jhuesser 8ffd5f9906 added policy form 2018-11-23 22:11:41 +01:00
jhuesser df4c08d8c8 added titles + third party 2018-11-23 22:11:41 +01:00
jhuesser 51926b37b7 spelling 2018-11-23 22:11:41 +01:00
jhuesser b8daf45ac9 removed swiss law, added EU law 2018-11-23 22:11:41 +01:00
jhuesser ecaf5aa58b add some conflicts 2018-11-23 22:11:41 +01:00
jhuesser 1172eeaf1b fix text 2018-11-23 22:11:41 +01:00
jhuesser a56e6ae8ef added really simple privacy policy and install proccedure 2018-11-23 22:11:41 +01:00
jhuesser d2c28e6ae7 add contact fields 2018-11-23 22:10:49 +01:00
jhuesser db6f705b6a show telegram menu in mobile 2018-11-23 22:10:49 +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 cea55bd2b8 show my subscriptions 2018-11-23 22:10:49 +01:00
jhuesser c96cc6e1c5 login and logout with telegram 2018-11-23 22:10:49 +01:00
jhuesser 65f6de7289 add telegram User Data reader 2018-11-23 22:10:49 +01:00
jhuesser 8e1ae46564 add login with telegram button 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
jhuesser 781c938118 added telegram to install.php 2018-11-23 22:10:49 +01:00
jhuesser bc92eea651 added tg values to config file 2018-11-23 22:07:37 +01:00
jhuesser eabca6bb0c database modifications 2018-11-23 22:06:48 +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
Vojtěch Sajdl e36f37f350
Merge pull request #66 from thnilsen/add_prerequisite
Add prerequisite and policy url configuration
2018-11-21 11:41:50 +01:00
Thomas Nilsen 361c961d14 Added comment to mysqlnd checks for future reference 2018-11-21 11:38:57 +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
Thomas Nilsen b4926077fa 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.
2018-11-08 14:15:20 +01:00
Thomas Nilsen 2566ae9fd4 Add prerequisite checks to install script. - Pryx/server-status#31 2018-11-08 14:04:44 +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 11cdf13054
Update translations 2018-09-21 16:58:47 +02:00
Vojtěch Sajdl fbf75ede44
License change 2018-09-04 11:13:42 +02:00
Vojtěch Sajdl 668502f1df
Lint 2018-08-23 20:54:35 +02:00
Vojtěch Sajdl 93565fc014
Fix #54 - fixed time checking 2018-08-23 20:40:27 +02:00
Vojtěch Sajdl 9488343f9b Update server-status.po (POEditor.com) 2018-08-10 22:59:11 +02:00
Vojtěch Sajdl 309ab293b3 Update server-status.mo (POEditor.com) 2018-08-10 22:59:09 +02:00
Vojtěch Sajdl bc662689f9 Update server-status.po (POEditor.com) 2018-08-10 22:59:06 +02:00
Vojtěch Sajdl 3a42638ef5 Update server-status.mo (POEditor.com) 2018-08-10 22:59:03 +02:00
Vojtěch Sajdl 64996363a9 Update server-status.po (POEditor.com) 2018-08-10 22:59:00 +02:00
Vojtěch Sajdl 8ffb64647d Update server-status.mo (POEditor.com) 2018-08-10 22:58:57 +02:00
Vojtěch Sajdl 7fb7737500 Update server-status.po (POEditor.com) 2018-08-10 22:58:54 +02:00
Vojtěch Sajdl 1b86a98c93 Update server-status.mo (POEditor.com) 2018-08-10 22:58:52 +02:00
Vojtěch Sajdl fccc45d602
String changes
Making translations better by fixing typos and stuff
2018-08-10 22:57:27 +02:00
jhuesser d923a9b88c Add Privacy policy (#40)
* add contact fields

* added really simple privacy policy and install proccedure

* add link to policy in footer
2018-08-02 11:48:10 +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 3d8329137b Update server-status.po (POEditor.com) 2018-07-22 18:56:49 +02:00
Vojtěch Sajdl a072bcc06b Update server-status.mo (POEditor.com) 2018-07-22 18:56:47 +02:00
Vojtěch Sajdl ac8fcc5131
Fix #42 - htaccess now looks at X-Forwarded-Proto 2018-07-11 17:41:04 +02:00
Vojtěch Sajdl 77337a1078
Fix #43 - fixed sql 2018-07-10 14:34:22 +02:00
Vojtěch Sajdl 256bf5c336
Big localization update
Thank you for being awesome 🙂
2018-07-09 22:56:34 +02:00
Vojtěch Sajdl b8de51d628
Merge pull request #39 from jhuesser/api-json-header
Added json header to API response
2018-06-07 21:44:54 +02:00
jhuesser b6a8617c4c added json headers to api response 2018-06-07 21:42:06 +02:00
Vojtěch Sajdl c115899350
Fix for serbian not displaying locale name 2018-05-09 13:54:42 +02:00
Vojtěch Sajdl dc7d0ac8d3
Add Slovak translations courtesy of AVSalien 2018-05-09 13:49:06 +02:00
Vojtěch Sajdl d6c8680a5e
Serbian localization courtesy of Aleksandar Dančulović 2018-05-06 20:53:02 +02:00
Vojtěch Sajdl 22d6ca6895 Update server-status.po (POEditor.com) 2018-04-22 19:26:33 +02:00
Vojtěch Sajdl 8ca259e64a Update server-status.mo (POEditor.com) 2018-04-22 19:26:32 +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
Vojtěch Sajdl 186fd48666
Updating info 2018-04-20 16:30:20 +02:00
Vojtěch Sajdl cd3db44f2d
Badges 2018-04-18 17:28:45 +02:00
Vojtěch Sajdl d1af3c9583 Update server-status.po (POEditor.com) 2018-04-17 16:29:06 +02:00
Vojtěch Sajdl 50c11faa21 Update server-status.mo (POEditor.com) 2018-04-17 16:29:04 +02:00
Vojtěch Sajdl 3c75159e2a
Add parameters back 2018-04-14 12:50:10 +02:00
Vojtěch Sajdl 4b7d8be838
Fix #25 - refactored incident getting 2018-04-14 12:39:00 +02:00
Vojtěch Sajdl 37aa0ca54e
Update README.md 2018-04-14 11:08:55 +02:00
Vojtěch Sajdl d43055a856 Update server-status.po (POEditor.com) 2018-04-13 23:56:44 +02:00
Vojtěch Sajdl a7c172d0de Update server-status.mo (POEditor.com) 2018-04-13 23:56:42 +02:00
Vojtěch Sajdl e0a455e0ea
Fix #19 2018-04-13 23:41:05 +02:00
Vojtěch Sajdl 14407ef0a3
Fix remember me 2018-04-13 22:58:06 +02:00
Vojtěch Sajdl f9c247854f
Fix #11 - add second part of api 2018-04-13 22:38:10 +02:00
Vojtěch Sajdl 3980f5daa6
Make locale negotiator respect HTTP Accept-Language format 2018-04-13 22:00:23 +02:00
Vojtěch Sajdl 7f8c2408ca
Update README.md 2018-04-13 21:48:18 +02:00
Vojtěch Sajdl 9f7e15fcd1
Re #11 - start working on an api
Also some locale negotiator bugfixes & it is now possible to serialize Service and Incident classess to JSON
2018-04-13 21:31:07 +02:00
111 changed files with 15527 additions and 2390 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
config.php
.idea/
.vscode/
.code/

View File

@ -1,33 +1,27 @@
ErrorDocument 404 /404.php
<IfModule mod_headers.c>
Header set X-UA-Compatible "IE=edge"
<FilesMatch "\.(appcache|atom|bbaw|bmp|crx|css|cur|eot|f4[abpv]|flv|geojson|gif|htc|ico|jpe?g|js|json(ld)?|m4[av]|manifest|map|mp4|oex|og[agv]|opus|otf|pdf|png|rdf|rss|safariextz|svgz?|swf|topojson|tt[cf]|txt|vcard|vcf|vtt|webapp|web[mp]|woff2?|xloc|xml|xpi)$">
Header unset X-UA-Compatible
</FilesMatch>
</IfModule>
<IfModule mod_rewrite.c>
#DELETE THIS IF YOU DON'T HAVE HTTPS!
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
<IfModule mod_headers.c>
Header set X-Content-Type-Options "nosniff"
</IfModule>
<IfModule mod_deflate.c>
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
</IfModule>
</IfModule>
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE "application/atom+xml" \
"application/javascript" \
@ -62,17 +56,13 @@ ErrorDocument 404 /404.php
"text/x-cross-domain-policy" \
"text/xml"
</IfModule>
<IfModule mod_mime.c>
AddEncoding gzip svgz
</IfModule>
<IfModule mod_headers.c>
Header unset ETag
</IfModule>
FileETag None
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 1 month"

View File

@ -1,19 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="false" />
</conditions>
<action type="Redirect" redirectType="Permanent" url="https://{HTTP_HOST}{URL}" />
</rule>
</rules>
</rewrite>
<staticContent>
<clientCache cacheControlCustom="public" cacheControlMode="UseMaxAge" cacheControlMaxAge="30.00:00:00" />
</staticContent>
</system.webServer>
</configuration>
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="false" />
</conditions>
<action type="Redirect" redirectType="Permanent" url="https://{HTTP_HOST}{URL}" />
</rule>
</rules>
</rewrite>
<staticContent>
<clientCache cacheControlCustom="public" cacheControlMode="UseMaxAge" cacheControlMaxAge="30.00:00:00" />
</staticContent>
</system.webServer>
</configuration>

850
LICENSE
View File

@ -1,674 +1,176 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS

View File

@ -1,26 +1,61 @@
# Server status page
![screenshot](https://status.trucksbook.eu/img/screenshot.png)
Very simple server status page written in PHP that can run on **PHP 5.3+** - even on **shared webhosting**. Because why waste your money on another server (or host on a server that you might want to do maintenance on), when you can use cheap webhosting?
# Server Status (Official)
## This is the official Server Status Project.
![License](https://img.shields.io/github/license/Pryx/server-status.svg) ![Current release](https://img.shields.io/badge/version-2-blue)
![Beta-Build](https://img.shields.io/badge/latest_beta-Developmet_Beta_7-black)
![Stability](https://img.shields.io/badge/master_stability-Stable-red)
![Build](https://img.shields.io/badge/build-success-green)
<!--
## What does **contributor beta** mean?
It means the beta that is heavily unstable that is meant for contributors to make changes and use as a recovery point.
### Other Beta Types
#### Development Beta
##### This beta has some bugs that are noticeable and is sometimes unstable. Best for new contributors
#### Public Beta
##### This beta has some bugs that are not really noticeable and mostly exist as bugs. Best for trying the new features before updating!
-->
Very simple server status page written in PHP that can run on **PHP 5.5+** - even on **shared webhosting** even without shell access. Because why waste your money on another server (or host on a server that you might want to do maintenance on), when you can use cheap webhosting? And as a cherry on top - it works even without javascript!
## How do I install this thing?
Simply put the files on your server and access it from your browser. There will be a simple install dialog waiting for you.
If you prefer you can install manually by filling the info in config.php.template and renaming it to config.php.
As this **does not** run installation scripts you need to head to your install directory and run create-server-config.php and then delete it.
If you don't want to allow php to access your files or you have permission issues, use the following instructions.
### FOR IIS:
// Rename IISWebConfig to web.config
### FOR Apache and Nginx
// Rename ApacheHtaccess to .htaccess
You can find more info on [our wiki page](https://github.com/Pryx/server-status/wiki)
## Contributing
Anyone is welcome to make pull request with new features or security patches / bug fixes. You can find some ideas [here](https://github.com/Pryx/server-status/labels/help%20wanted).
Anyone is welcome to make pull request with new features or security patches / bug fixes.
You may create a pull request anytime or you can join our discord here(https://discord.gg/Wgxnxz4)
### Translations
Any help with translations is much welcome! You can join us at https://poeditor.com/join/project/37SpmJtyOm. You can even add your own language. Just let me know when you're done and I'm going to include the language in the next release.
[List of contributors](https://github.com/Pryx/server-status/wiki/contributors)
### Does it actually run somewhere?
Yes it does!
https://status.trucksbook.eu/ (Trucksbook)
https://status.theskyfallen.com (The Skyfallen Productions Company)
https://status.ecidsf.com/ (ECIDSF)
https://status.otuts.eu/ (OTUTS)
And many more!
## FAQ
### Does it actually run somewhere?
Yes it does! This is basically debranded version of https://status.trucksbook.eu/.
### My Translations are not working. What to do?
1. Open your shell
2. Type this command 'sudo nano /etc/locale.gen'
3. Uncomment all the languages you want.
4. Save with 'Ctrl+X'
5. Run 'sudo locale-gen'
6. Restart apache 'sudo service apache2 restart'
7. Enjoy!
### Do you have a demo page?
Yes we have! Head over to https://demo.status.sajdl.com/admin and try the admin interface for yourself.
Login details:
@ -30,10 +65,24 @@ password: Ss123456
```
Please note that changes are reverted every hour.
### I noticed there is a new release. How do I update?
Updating server status is fairly straightforward. Download your config.php from the server. Delete all files. Upload the new release with config.php you downloaded earlier. You need to manually run install scripts. For that head to your domain and run create-server-config.php deleting it afterwards.
If you don't want to allow php to access your files or you have permission issues, use the following instructions.
#### FOR IIS:
// Rename IISWebConfig to web.config
#### FOR Apache and Nginx
// Rename ApacheHtaccess to .htaccess
### Is there any way to do this automatically?
We are working on it but it is not yet included. Stay tuned!
### Can I somehow pull status info from Server status programatically?
Yes you can! As of [9f7e15f](https://github.com/Pryx/server-status/commit/9f7e15fcd1d900108cbb0b3cad4bdc5ecf8b741b) we added API to pull status data... And more APIs are coming! Results are encoded in JSON format which should be pretty easy to use in any common programming language.
### Why does this project exist?
It was written as a school project where we had to create a website. I went with this because I found the lack of good looking, easy to install and use status page rather weird. Therefore my goal (as stated above) was to create a simplistic status page that could run almost anywhere. The code is not the nicest or cleanest and it definitely doesn't have that many features, but hey, it works!
### I want feature XY!
### Feature Request
You can write an issue and I will try to take a look when I get some time *OR* you can actually make a fork as the code it GNU licensed. Pull requests are most welcome!
___

15
SECURITY.md Normal file
View File

@ -0,0 +1,15 @@
# Security Policy
## Supported Versions
Only the latest version of server-status is being supported. Older versions won't recieve security updates.
## Reporting a Vulnerability
If you believe that you have have discovered a vulnerability you can report it by emailing the [lead maintainer](https://github.com/Pryx) at vojtech@sajdl.com.
Please include the keyword VULNERABILITY and the repository name in the subject of the email.
In the email, please describe your findings, the project versions you tested and were affected by the vulnerability and also include the full steps to reproduce it.
We appreciate your efforts to make server-status more secure and will try to do everytihing in our power to get the issues resolved as fast as possible. We will
keep you informed of the progress towards a fix.

View File

@ -1,4 +1,4 @@
<?php
<?php
$offset = 0;
if (isset($_GET['ajax']))
{
@ -18,8 +18,11 @@ if (isset($_GET['delete']))
{
Incident::delete($_GET['delete']);
}
if (isset($_GET['tasks'])) {
Queue::process_queue();
}
Template::render_header(_("Dashboard"), true);
Template::render_header(_("Dashboard"), true);
?>
<div class="text-center">
@ -45,7 +48,7 @@ Template::render_header(_("Dashboard"), true);
<?php
} ?>
<div id="status-container" class="clearfix">
<?php
<?php
if (isset($_POST['services']) && !is_array($_POST['services']))
{
$post_services = array($_POST['services']);
@ -69,17 +72,20 @@ Template::render_header(_("Dashboard"), true);
<i class="glyphicon glyphicon-info-sign"></i>
</div>
<div class="panel-heading clearfix">
<input type="text" name="title" id="title" placeholder="<?php echo _("Title");?>" value="<?php echo (isset($_POST['title'])?htmlspecialchars($_POST['title']):''); ?>" required> <span id="time"><input id="time_input" type="text" pattern="(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))" name="time" value="<?php echo (isset($_POST['time'])?htmlspecialchars($_POST['time']):''); ?>" class="pull-right" title="Use ISO 8601 format (e.g. 2017-11-23T19:50:51+00:00)" placeholder="<?php echo _("Time");?>"></span>
<input type="text" name="title" id="title" placeholder="<?php echo _("Title");?>" value="<?php echo (isset($_POST['title'])?htmlspecialchars($_POST['title']):''); ?>" required> <span id="time"><input id="time_input" type="text" pattern="(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))" name="time" value="<?php echo (isset($_POST['time'])?htmlspecialchars($_POST['time']):''); ?>" class="pull-right" title="Use ISO 8601 format (e.g. 2017-11-23T19:50:51+00:00)" placeholder="<?php echo _("Time");?>">
<input id="time_input_js" name="time_js" type="hidden" class="pull-right">
</span>
</div>
<div class="panel-body">
<textarea name="text" placeholder="<?php echo _("Here goes your text...");?>" required><?php echo (isset($_POST['text'])?htmlspecialchars($_POST['text']):''); ?></textarea>
</div>
<div class="panel-footer clearfix">
<small><?php echo _("Posted by");?>: <?php echo $user->get_username();?> <span class="pull-right" id="end_time_wrapper"><?php echo _("Ending");?>:&nbsp;<input id="end_time" title="Use ISO 8601 format (e.g. 2017-11-23T19:50:51+00:00)" type="text" pattern="(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))" name="end_time" class="pull-right" placeholder="<?php echo _("End time");?>" value="<?php echo (isset($_POST['end_time'])?htmlspecialchars($_POST['end_time']):''); ?>"></span></small>
<input id="end_time_js" name="end_time_js" type="hidden" class="pull-right">
</div>
</div>
<select class="form-control pull-left" id="type" name="type">
<?php
<?php
if (isset($_POST['type']))
{
$selected_status = $_POST['type'];

View File

@ -7,7 +7,58 @@ if (!file_exists("../config.php"))
else{
require_once("../config.php");
require_once("../classes/constellation.php");
require_once("../classes/mailer.php");
require_once("../classes/notification.php");
require_once("../template.php");
require_once("../libs/parsedown/Parsedown.php");
require_once("../classes/queue.php");
require_once("../classes/db-class.php");
$db = new SSDB();
define("NAME", $db->getSetting($mysqli,"name"));
define("TITLE", $db->getSetting($mysqli,"title"));
define("WEB_URL", $db->getSetting($mysqli,"url"));
define("MAILER_NAME", $db->getSetting($mysqli,"mailer"));
define("MAILER_ADDRESS", $db->getSetting($mysqli,"mailer_email"));
define("GOOGLE_RECAPTCHA", $db->getBooleanSetting($mysqli, "google_recaptcha"));
define("GOOGLE_RECAPTCHA_SECRET", $db->getSetting($mysqli, "google_recaptcha_secret"));
define("GOOGLE_RECAPTCHA_SITEKEY", $db->getSetting($mysqli, "google_recaptcha_sitekey"));
define("SUBSCRIBE_EMAIL", $db->getBooleanSetting($mysqli, "subscribe_email"));
define("SUBSCRIBE_TELEGRAM", $db->getBooleanSetting($mysqli, "subscribe_telegram"));
define("TG_BOT_USERNAME", $db->getSetting($mysqli, "tg_bot_username"));
define("TG_BOT_API_TOKEN", $db->getSetting($mysqli, "tg_bot_api_token"));
define("PHP_MAILER", $db->getBooleanSetting($mysqli, "php_mailer"));
define("PHP_MAILER_SMTP", $db->getBooleanSetting($mysqli, "php_mailer_smtp"));
define("PHP_MAILER_PATH", $db->getSetting($mysqli, "php_mailer_path"));
define("PHP_MAILER_HOST", $db->getSetting($mysqli, "php_mailer_host"));
define("PHP_MAILER_PORT", $db->getSetting($mysqli, "php_mailer_port"));
define("PHP_MAILER_SECURE", $db->getBooleanSetting($mysqli, "php_mailer_secure"));
define("PHP_MAILER_USER", $db->getSetting($mysqli, "php_mailer_user"));
define("PHP_MAILER_PASS", $db->getSetting($mysqli, "php_mailer_pass"));
define("CRON_SERVER_IP", $db->getSetting($mysqli, "cron_server_ip"));
// Process the subscriber notification queue
// If CRON_SERVER_IP is not set, call notification once incident has been saved
if ( empty(CRON_SERVER_IP) )
{
if ( isset($_GET['sent']) && $_GET['sent'] == true )
{
Queue::process_queue();
}
}
else if ( isset($_GET['task']) && $_GET['task'] == 'cron' )
{
// Else, base it on call to /admin?task=cron being called from IP defined by CRON_SERVER_IP
if (! empty(CRON_SERVER_IP) && $_SERVER['REMOTE_ADDR'] == CRON_SERVER_IP )
{
Queue::process_queue();
syslog(1, "CRON server processed");
}
else {
syslog(1, "CRON called from unauthorised server");
}
}
if(isset($_COOKIE['user'])&&!isset($_SESSION['user']))
{
@ -29,7 +80,7 @@ else{
require_once("login-form.php");
}
}
else
else
{
$user = new User($_SESSION['user']);
if (!$user->is_active())
@ -50,7 +101,7 @@ else{
case 'user':
require_once("user.php");
break;
case 'settings':
require_once("settings.php");
break;
@ -59,6 +110,20 @@ else{
require_once("new-user.php");
break;
case 'new-service':
case 'edit-service':
require_once('service.php');
break;
case 'new-service-group':
case 'edit-service-group':
require_once('service-group.php');
break;
case 'options':
require_once("options.php");
break;
case 'logout':
User::logout();
break;
@ -70,4 +135,4 @@ else{
Template::render_footer(true);
}
}
}

183
admin/options.php Normal file
View File

@ -0,0 +1,183 @@
<?php
function getToggle($variable){
$res = ((isset($variable) && ($variable == "on")) ? "yes" : "no");
return $res;
}
if (!file_exists("../config.php"))
{
header("Location: ../");
}
else{
require_once("../config.php");
require_once("../classes/constellation.php");
require_once("../classes/mailer.php");
require_once("../classes/notification.php");
require_once("../template.php");
require_once("../libs/parsedown/Parsedown.php");
require_once("../classes/queue.php");
require_once("../classes/db-class.php");
}
$db = new SSDB();
$notifyUpdates_status = $db->getBooleanSetting($mysqli, "notifyUpdates");
$emailSubscription_status = $db->getBooleanSetting($mysqli, "subscribe_email");
$telegramSubscription_status = $db->getBooleanSetting($mysqli, "subscribe_telegram");
$tg_bot_api_token = $db->getSetting($mysqli, "tg_bot_api_token");
$tg_bot_username = $db->getSetting($mysqli, "tg_bot_username");
$php_mailer_status = $db->getBooleanSetting($mysqli, "php_mailer");
$php_mailer_smtp_status = $db->getBooleanSetting($mysqli, "php_mailer_smtp");
$php_mailer_secure_status = $db->getBooleanSetting($mysqli, "php_mailer_secure");
$php_mailer_path = $db->getSetting($mysqli, "php_mailer_path");
$php_mailer_host = $db->getSetting($mysqli, "php_mailer_host");
$php_mailer_port = $db->getSetting($mysqli, "php_mailer_port");
$php_mailer_user = $db->getSetting($mysqli, "php_mailer_user");
$php_mailer_pass = $db->getSetting($mysqli, "php_mailer_pass");
$cron_server_ip = $db->getSetting($mysqli, "cron_server_ip");
$google_rechaptcha_status = $db->getBooleanSetting($mysqli, "google_recaptcha");
$google_recaptcha_sitekey = $db->getSetting($mysqli, "google_recaptcha_sitekey");
$google_recaptcha_secret = $db->getSetting($mysqli, "google_recaptcha_secret");
$db->getSetting($mysqli, "");
$set_post = false;
if(!empty($_POST)){
$db->updateSetting($mysqli, "notifyUpdates", getToggle($_POST["nu_toggle"]));
$db->updateSetting($mysqli, "name",htmlspecialchars($_POST["sitename"], ENT_QUOTES));
$db->updateSetting($mysqli, "subscribe_email", getToggle($_POST["email_subscription_toggle"]));
$db->updateSetting($mysqli, "subscribe_telegram", getToggle($_POST["telegram_subscription_toggle"]));
$db->updateSetting($mysqli, "tg_bot_api_token", htmlspecialchars($_POST["tg_bot_api_token"], ENT_QUOTES));
$db->updateSetting($mysqli, "tg_bot_username", htmlspecialchars($_POST["tg_bot_username"], ENT_QUOTES));
$db->updateSetting($mysqli, "php_mailer", getToggle($_POST["php_mailer_toggle"]));
$db->updateSetting($mysqli, "php_mailer_smtp", getToggle($_POST["php_mailer_smtp_toggle"]));
$db->updateSetting($mysqli, "php_mailer_secure", getToggle($_POST["php_mailer_secure_toggle"]));
$db->updateSetting($mysqli, "php_mailer_path", htmlspecialchars($_POST["php_mailer_path"], ENT_QUOTES));
$db->updateSetting($mysqli, "php_mailer_host", htmlspecialchars($_POST["php_mailer_host"], ENT_QUOTES));
$db->updateSetting($mysqli, "php_mailer_port", htmlspecialchars($_POST["php_mailer_port"], ENT_QUOTES));
$db->updateSetting($mysqli, "php_mailer_user", htmlspecialchars($_POST["php_mailer_user"], ENT_QUOTES));
$db->updateSetting($mysqli, "php_mailer_pass", htmlspecialchars($_POST["php_mailer_pass"], ENT_QUOTES));
$db->updateSetting($mysqli, "cron_server_ip", htmlspecialchars($_POST["cron_server_ip"], ENT_QUOTES));
$db->updateSetting($mysqli, "google_recaptcha", getToggle($_POST["google_rechaptcha_toggle"]));
$db->updateSetting($mysqli, "google_recaptcha_sitekey", htmlspecialchars($_POST["google_recaptcha_sitekey"], ENT_QUOTES));
$db->updateSetting($mysqli, "google_recaptcha_secret", htmlspecialchars($_POST["google_recaptcha_secret"], ENT_QUOTES));
$set_post = true;
/*if($nu_toggle == "yes"){
$notifyUpdates_status = true;
} else {
$notifyUpdates_status = false;
}*/
// TODO - Reload page to prevent showing old values! or update variables being displayed
header("Location: " .$uri = $_SERVER['REQUEST_URI']);
// TODO - The code below will not happen ...
/*define("NAME", $db->getSetting($mysqli,"name"));
define("TITLE", $db->getSetting($mysqli,"title"));
define("WEB_URL", $db->getSetting($mysqli,"url"));
define("MAILER_NAME", $db->getSetting($mysqli,"mailer"));
define("MAILER_ADDRESS", $db->getSetting($mysqli,"mailer_email"));
define("SUBSCRIBER_EMAIL", $db->getSetting($mysqli,"subscriber_email"));
define("SUBSCRIBER_TELEGRAM", $db->getSetting($mysqli,"subscriber_telegram"));
define("TG_BOT_API_TOKEN", $db->getSetting($mysqli,"tg_bot_api_token"));
define("TG_BOT_USERNAME", $db->getSetting($mysqli,"tg_bot_username"));
define("GOOGLE_RECAPTCHA", $db->getSetting($mysqli,"google_recaptcha"));
define("GOOGLE_RECAPTCHA_SITEKEY", $db->getSetting($mysqli,"google_recaptcha_sitekey"));
define("GOOGLE_RECAPTCHA_SECRET", $db->getSetting($mysqli,"google_recaptcha_secret"));
define("PHP_MAILER", $db->getSetting($mysqli,"php_mailer"));
define("PHP_MAILER_PATH", $db->getSetting($mysqli,"php_mailer_path"));
define("PHP_MAILER_SMTP", $db->getSetting($mysqli,"php_mailer_smtp"));
define("PHP_MAILER_HOST", $db->getSetting($mysqli,"php_mailer_host"));
define("PHP_MAILER_PORT", $db->getSetting($mysqli,"php_mailer_port"));
define("PHP_MAILER_SECURE", $db->getSetting($mysqli,"php_mailer_secure"));
define("PHP_MAILER_USER", $db->getSetting($mysqli,"php_mailer_user"));
define("PHP_MAILER_PASS", $db->getSetting($mysqli,"php_mailer_pass"));
define("CRON_SERVER_IP", $db->getSetting($mysqli,"cron_server_ip"));
*/
}
Template::render_header(_("Options"), true);
?>
<div class="text-center">
<h2><?php if($set_post){ echo "Settings Saved"; } else { echo "Server Status Options"; } ?></h2>
</div>
<form method="post">
<?php Template::render_toggle("Notify Updates","nu_toggle",$notifyUpdates_status); ?>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">Site Name</span>
</div>
<input type="text" class="form-control" placeholder="" aria-label="Username" aria-describedby="basic-addon1" name="sitename" value="<?php echo NAME; ?>">
</div>
<?php Template::render_toggle("Enable Email Subscription","email_subscription_toggle",$emailSubscription_status); ?>
<?php Template::render_toggle("Enable Telegram Subscription","telegram_subscription_toggle",$telegramSubscription_status); ?>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">Telegram BOT API Token</span>
</div>
<input type="text" class="form-control" placeholder="" aria-label="telegram_bot_api_token" aria-describedby="basic-addon1" name="tg_bot_api_token" value="<?php echo $tg_bot_api_token; ?>">
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">Telegram BOT Username</span>
</div>
<input type="text" class="form-control" placeholder="" aria-label="telegram_bot_username" aria-describedby="basic-addon1" name="tg_bot_username" value="<?php echo $tg_bot_username; ?>">
</div>
<?php Template::render_toggle("Use PHPMailer for notifications","php_mailer_toggle",$php_mailer_status); ?>
<?php Template::render_toggle("Use SMTP with PHPMailer","php_mailer_smtp_toggle",$php_mailer_smtp_status); ?>
<?php Template::render_toggle("Use Secure SMTP with PHPMailer","php_mailer_secure_toggle",$php_mailer_secure_status); ?>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">PHPMailer Path</span>
</div>
<input type="text" class="form-control" placeholder="" aria-label="phpmailer_path" aria-describedby="basic-addon1" name="php_mailer_path" value="<?php echo $php_mailer_path; ?>">
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">PHPMailer SMTP Host</span>
</div>
<input type="text" class="form-control" placeholder="" aria-label="php_mailer_host" aria-describedby="basic-addon1" name="php_mailer_host" value="<?php echo $php_mailer_host; ?>">
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">PHPMailer SMTP Port</span>
</div>
<input type="text" class="form-control" placeholder="" aria-label="php_mailer_port" aria-describedby="basic-addon1" name="php_mailer_port" value="<?php echo $php_mailer_port; ?>">
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">PHPMailer Username</span>
</div>
<input type="text" class="form-control" placeholder="" aria-label="php_mailer_username" aria-describedby="basic-addon1" name="php_mailer_user" value="<?php echo $php_mailer_user; ?>">
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">PHPMailer Password</span>
</div>
<input type="password" class="form-control" placeholder="" aria-label="php_mailer_password" aria-describedby="basic-addon1" name="php_mailer_pass" value="<?php echo $php_mailer_pass; ?>">
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">Cron Server IP</span>
</div>
<input type="text" class="form-control" placeholder="" aria-label="cron_server_ip" aria-describedby="basic-addon1" name="cron_server_ip" value="<?php echo $cron_server_ip; ?>">
</div>
<?php Template::render_toggle("Use Google reChaptcha for subscriber signup","google_rechaptcha_toggle",$google_rechaptcha_status); ?>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">Google reChaptcha Sitekey</span>
</div>
<input type="text" class="form-control" placeholder="" aria-label="google_sitekey" aria-describedby="basic-addon1" name="google_recaptcha_sitekey" value="<?php echo $google_recaptcha_sitekey; ?>">
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">Google reChaptcha Secret</span>
</div>
<input type="text" class="form-control" placeholder="" aria-label="google_secret" aria-describedby="basic-addon1" name="google_recaptcha_secret" value="<?php echo $google_recaptcha_secret; ?>">
</div>
<button class="btn btn-primary pull-right" type="submit">Save Settings</button>
</form>

99
admin/service-group.php Normal file
View File

@ -0,0 +1,99 @@
<?php
if (isset($_GET['new']))
{
ServiceGroup::add();
}
if (isset($_GET['edit']))
{
ServiceGroup::edit();
}
if (isset($_GET['delete']))
{
ServiceGroup::delete();
}
$boolEdit = false;
$group_value = isset($_POST['group']) ? $_POST['group'] : '';
$description_value = isset($_POST['description']) ? $_POST['description'] : '';
$visibility_id_value = isset($_POST['visibility_id']) ? $_POST['visibility_id'] : '';
if ( isset($_GET['id']) && !isset($_POST['id']) ) {
$group_id = (int) $_GET['id'];
$boolEdit = true;
$stmt = $mysqli->prepare("SELECT * FROM services_groups WHERE id LIKE ?");
$stmt->bind_param("i", $group_id);
$stmt->execute();
$query = $stmt->get_result();
$data = $query->fetch_assoc();
$group_value = $data['name'];
$description_value = $data['description'];
$visibility_id_value = $data['visibility'];
}
if (!$boolEdit) {
Template::render_header(_("New service group"), true); ?>
<div class="text-center">
<h2><?php echo _("Add new service group");?></h2>
</div>
<?php
$form_url = WEB_URL .'/admin/?do=new-service-group&amp;new=group';
} else {
Template::render_header(_("Edit service group"), true); ?>
<div class="text-center">
<h2><?php echo _("Edit service group");?></h2>
</div>
<?php
$form_url = WEB_URL .'/admin/?do=edit-service-group&amp;edit&amp;id='.$group_id;
}
?>
<form action="<?php echo $form_url;?>" method="POST" class="form-horizontal">
<?php if (isset($message))
{?>
<p class="alert alert-danger"><?php echo $message?></p>
<?php
} ?>
<div class="form-group">
<div class="col-sm-6"><label for="group"><?php echo _("Service Group Name");?>: </label><input type="text" maxlength="50" name="group" value="<?php echo ((isset($_POST['group']))?htmlspecialchars($_POST['group'],ENT_QUOTES):$group_value);?>" id="group" placeholder="<?php echo _("service group name");?>" class="form-control" required></div>
<div class="col-sm-6"><label for="description"><?php echo _("Description");?>: </label><input type="text" maxlength="100" name="description" value="<?php echo ((isset($_POST['description']))?htmlspecialchars($description_value,ENT_QUOTES):$description_value);?>" id="description" placeholder="<?php echo _("Description");?>" class="form-control"></div>
</div>
<div class="form-group">
<div class="col-sm-6">
<label for="visibility_id"><?php echo _("Visibility");?>: </label>
<select name="visibility_id" id="visibility_id" class="form-control">
<?php
if (!empty($visibility_id_value))
{
$visibility_id = $visibility_id_value;
}
else
{
$visibility_id = null;
}
//$visibilitys = Service::get_groups();
foreach ($visibility as $key => $value) {
if ($visibility_id == $key)
{
echo '<option value="'.$key.'" selected>'.$value.'</option>';
}
else{
echo '<option value="'.$key.'">'.$value.'</option>';
}
}
?>
</select>
</div>
</div>
<?php
if ( $boolEdit ) {
echo '<input type="hidden" id="id" name="id" value="'.$group_id.'">';
}
?>
<button type="submit" class="btn btn-primary pull-right"><?php echo _("Submit");?></button>
</form>

97
admin/service.php Normal file
View File

@ -0,0 +1,97 @@
<?php
if (isset($_GET['new']))
{
Service::add();
}
if (isset($_GET['edit']))
{
Service::edit();
}
/*if (isset($_GET['delete']))
{
Service::delete();
}*/
$boolEdit = false;
$service_value = isset($_POST['service']) ? $_POST['service'] : '';
$description_value = isset($_POST['description']) ? $_POST['description'] : '';
$group_id_value = isset($_POST['group_id']) ? $_POST['group_id'] : '';
if ( isset($_GET['id']) && !isset($_POST['id']) ) {
$service_id = (int) $_GET['id'];
$boolEdit = true;
$stmt = $mysqli->prepare("SELECT * FROM services WHERE id LIKE ?");
$stmt->bind_param("i", $service_id);
$stmt->execute();
$query = $stmt->get_result();
$data = $query->fetch_assoc();
//print_r($data);
$service_value = $data['name'];
$description_value = $data['description'];
$group_id_value = $data['group_id'];
}
if (!$boolEdit) {
Template::render_header(_("New service"), true); ?>
<div class="text-center">
<h2><?php echo _("Add new service");?></h2>
</div>
<?php
$form_url = WEB_URL . '/admin/?do=new-service&amp;new=service';
} else {
Template::render_header(_("New service"), true); ?>
<div class="text-center">
<h2><?php echo _("Add new service");?></h2>
</div>
<?php
$form_url = WEB_URL . '/admin/?do=edit-service&amp;edit&amp;id='.$service_id;
}
?>
<form action="<?php echo $form_url;?>" method="POST" class="form-horizontal">
<?php if (isset($message))
{?>
<p class="alert alert-danger"><?php echo $message?></p>
<?php
} ?>
<div class="form-group">
<div class="col-sm-6"><label for="service"><?php echo _("Service");?>: </label><input type="text" maxlength="50" name="service" value="<?php echo ((isset($_POST['service']))?htmlspecialchars($_POST['service'],ENT_QUOTES):$service_value);?>" id="service" placeholder="<?php echo _("service");?>" class="form-control" required></div>
<div class="col-sm-6"><label for="description"><?php echo _("Description");?>: </label><input type="text" maxlength="200" name="description" value="<?php echo ((isset($_POST['description']))?htmlspecialchars($_POST['description'],ENT_QUOTES):$description_value);?>" id="description" placeholder="<?php echo _("Description");?>" class="form-control"></div>
</div>
<div class="form-group">
<div class="col-sm-6">
<label for="group_id"><?php echo _("Service Group");?>: </label>
<select name="group_id" id="group_id" class="form-control">
<?php
if (!empty($group_id_value))
{
$group_id = $group_id_value;
}
else
{
$group_id = null;
}
$groups = ServiceGroup::get_groups();
foreach ($groups as $key => $value) {
if ($group_id == $key)
{
echo '<option value="'.$key.'" selected>'.$value.'</option>';
}
else{
echo '<option value="'.$key.'">'.$value.'</option>';
}
}
?>
</select>
</div>
</div>
<?php
if ( $boolEdit ) {
echo '<input type="hidden" id="id" name="id" value="'.$service_id.'">';
}
?>
<button type="submit" class="btn btn-primary pull-right"><?php echo _("Submit");?></button>
</form>

View File

@ -1,12 +1,12 @@
<?php
if (isset($_GET['new']))
if (isset($_GET['delete']) && isset($_GET['type']))
{
Service::add();
}
if (isset($_GET['delete']))
{
Service::delete();
if ( $_GET['type'] == 'service') {
Service::delete();
}
elseif ( $_GET['type'] == 'groups') {
ServiceGroup::delete();
}
}
Template::render_header(_("Settings"), true);
@ -14,7 +14,7 @@ Template::render_header(_("Settings"), true);
<div class="text-center">
<h2>Settings</h2>
</div>
<?php
<?php
if (isset($message)){
?>
<p class="alert alert-danger"><?php echo $message; ?></p>
@ -24,19 +24,18 @@ if (isset($message)){
<?php if ($user->get_rank() <= 1){?>
<form action="?do=settings&new=service" method="post">
<div class="input-group pull-right new-service">
<input class="form-control" name="service" placeholder="Name" type="text" value="<?php echo ((isset($_POST['service']))?htmlspecialchars($_POST['service']):''); ?>" maxlength="50" required>
<span class="input-group-btn">
<button type="submit" class="btn btn-success pull-right"><?php echo _("Add service");?></button>
</span>
<a href="<?php echo WEB_URL;?>/admin/?do=new-service" class="btn btn-success pull-right"><?php echo _("Add new service");?></a>
</div>
</form>
<?php }?>
<div class="table-responsive">
<table class="table">
<thead><tr>
<th scope="col"><?php echo _("ID");?></th>
<!--<th scope="col"><?php echo _("ID");?></th>-->
<th scope="col"><?php echo _("Name");?></th>
<th scope="col"><?php echo _("Description");?></th>
<th scope="col"><?php echo _("Group");?></th>
<?php if ($user->get_rank()<=1)
{?>
<th scope="col"><?php echo _("Delete");?></th>
@ -44,16 +43,66 @@ if (isset($message)){
</tr>
</thead>
<tbody>
<?php
$query = $mysqli->query("SELECT * FROM services");
<?php
$query = $mysqli->query("SELECT services.*, services_groups.name AS group_name FROM `services` LEFT JOIN services_groups ON services.group_id = services_groups.id ORDER BY services.name ASC");
while($result = $query->fetch_assoc())
{
echo "<tr>";
echo "<td>".$result['id']."</td>";
echo "<td>".$result['name']."</td>";
//echo "<td>".$result['id']."</td>";
echo '<td><a href="'.WEB_URL.'/admin?do=edit-service&id='.$result['id'].'">'.$result['name'].'</a></th>';
echo "<td>".$result['description']."</td>";
echo "<td>".$result['group_name']."</td>";
if ($user->get_rank()<=1)
{
echo '<td><a href="'.WEB_URL.'/admin/?do=settings&delete='.$result['id'].'" class="pull-right delete-service"><i class="fa fa-trash"></i></a></td>';
echo '<td><a href="'.WEB_URL.'/admin/?do=settings&type=service&delete='.$result['id'].'" class="pull-right delete-service"><i class="fa fa-trash"></i></a></td>';
}
echo "</tr>";
}?>
</tbody>
</table>
</div>
</section>
<section>
<h3 class="pull-left"><?php echo _("Services Groups");?></h3>
<?php if ($user->get_rank() <= 1){?>
<form action="?do=settings&new=service-group" method="post">
<div class="input-group pull-right new-service">
<a href="<?php echo WEB_URL;?>/admin/?do=new-service-group" class="btn btn-success pull-right"><?php echo _("Add new service group");?></a>
</div>
</form>
<?php }?>
<div class="table-responsive">
<table class="table">
<thead><tr>
<!--<th scope="col"><?php echo _("ID");?></th>-->
<th scope="col"><?php echo _("Group Name");?></th>
<th scope="col"><?php echo _("In use by");?></th>
<th scope="col"><?php echo _("Description");?></th>
<th scope="col"><?php echo _("Visibility");?></th>
<?php if ($user->get_rank()<=1)
{?>
<th scope="col"><?php echo _("Delete");?></th>
<?php } ?>
</tr>
</thead>
<tbody>
<?php
$query = $mysqli->query("SELECT sg.* , (SELECT COUNT(*) FROM services WHERE services.group_id = sg.id) AS counter FROM services_groups AS sg ORDER BY sg.id ASC");
while($result = $query->fetch_assoc())
{
echo "<tr>";
//echo "<td>".$result['id']."</td>";
echo '<td><a href="'.WEB_URL.'/admin?do=edit-service-group&id='.$result['id'].'">'.$result['name'].'</a></th>';
echo '<td> <span class="badge badge-danger ml-2">'.$result['counter'].'</span>';
echo "<td>".$result['description']."</td>";
echo "<td>".$visibility[$result['visibility']]."</td>";
if ($user->get_rank()<=1)
{
echo '<td><a href="'.WEB_URL.'/admin/?do=settings&type=groups&delete='.$result['id'].'" class="pull-right delete-service"><i class="fa fa-trash"></i></a></td>';
}
echo "</tr>";
}?>
@ -68,10 +117,10 @@ if (isset($message)){
<?php if ($user->get_rank() == 0){?> <a href="<?php echo WEB_URL;?>/admin/?do=new-user" class="btn btn-success pull-right"><?php echo _("Add new user");?></a><?php }?>
<div class="table-responsive">
<table class="table">
<thead><tr><th scope="col"><?php echo _("ID");?></th><th scope="col"><?php echo _("Username");?></th><th scope="col"><?php echo _("Name");?></th><th scope="col"><?php echo _("Surname");?></th><th scope="col"><?php echo _("Email");?></th><th scope="col"><?php echo _("Role");?></th><th scope="col">Active</th></tr></thead>
<tbody>
<?php
<?php
$query = $mysqli->query("SELECT * FROM users");
while($result = $query->fetch_assoc())
{
@ -89,4 +138,4 @@ if (isset($message)){
</tbody>
</table>
</div>
</section>
</section>

View File

@ -16,9 +16,19 @@ if (isset($_POST['password']))
$displayed_user->change_password();
}
if (isset($_POST['username']))
{
$displayed_user->change_username();
}
if (isset($_POST['name']))
{
$displayed_user->change_name();
}
if (isset($_POST['email']))
{
$displayed_user->email_link();
$success = $displayed_user->email_link();
}
if (isset($_POST['permission']))
@ -36,10 +46,19 @@ Template::render_header(_("User"), true);
?>
<div class="text-center">
<h1><?php echo _("User settings");?></h1>
<h1><?php
if ($_SESSION['user'] == $_GET['id'])
{
echo _("User settings");
}else{
echo _("User");
} ?></h1>
</div>
<?php if (isset($message)){?>
<p class="alert alert-danger"><?php echo $message?></p>
<?php }
if (isset($success)){?>
<p class="alert alert-success"><?php echo $success?></p>
<?php }
$displayed_user->render_user_settings();

19
api/incidents.php Normal file
View File

@ -0,0 +1,19 @@
<?php
if (!file_exists("../config.php"))
{
header("Location: ../");
}
else{
require_once("../config.php");
require_once("../classes/constellation.php");
$limit = (isset($_GET['limit'])?$_GET['limit']:5);
$offset = (isset($_GET['offset'])?$_GET['offset']:0);
$timestamp = (isset($_GET['timestamp']))?$_GET['timestamp']:time();
$result = $constellation->get_incidents((isset($_GET['future'])?$_GET['future']:false), $offset, $limit, $timestamp);
header('Cache-Control: no-cache');
header('Content-type: application/json');
echo json_encode($result);
}

41
api/status.php Normal file
View File

@ -0,0 +1,41 @@
<?php
if (!file_exists("../config.php"))
{
header("Location: ../");
}
else{
require_once("../config.php");
require_once("../classes/constellation.php");
header('Cache-Control: no-cache');
header('Content-type: application/json');
if (!isset($_GET['id']))
{
$array = $constellation->render_status(true, false);
echo json_encode($array);
}else{
// get id of service, check if service exists
$queryId = $mysqli->prepare("SELECT id from services where id = ?;");
$queryId->bind_param("i", $_GET['id']);
$queryId->execute();
$result = $queryId->get_result()->fetch_assoc();
if (!count($result))
{
die(json_encode(["error" => _("Service does not exist!")]));
}
// get name, description and status.type (status of service) by id
$query = $mysqli->prepare("select services.id, name, description, status.type from services inner join status on status.id = services.id where services.id = ?;");
$query->bind_param("i", $_GET['id']);
$query->execute();
$result = $query->get_result()->fetch_assoc();
// if type is a number then return it, else just return the service name/desc
if (is_numeric($result["type"])) {
$service = new Service($_GET["id"], $result["name"], $result["description"], '', $result["type"]);
} else {
$service = new Service($_GET["id"], $result["name"], $result["description"]);
}
echo json_encode($service);
}
}

View File

@ -2,6 +2,7 @@
//DIR Because of include problems
require_once(__DIR__ . "/incident.php");
require_once(__DIR__ . "/service.php");
require_once(__DIR__ . "/service-group.php");
require_once(__DIR__ . "/user.php");
require_once(__DIR__ . "/token.php");
/**
@ -18,28 +19,28 @@ class Constellation
* @param Boolean $admin - specifies whether to render admin controls
*/
public function render_incidents($future=false, $offset=0, $limit = 5, $admin = 0){
global $mysqli;
if ($offset<0)
{
$offset = 0;
$offset = 0;
}
$limit = (isset($_GET['limit'])?$_GET['limit']:5);
$offset = (isset($_GET['offset'])?$_GET['offset']:0);
$timestamp = (isset($_GET['timestamp']))?$_GET['timestamp']:time();
$incidents = $this->get_incidents($future, $offset, $limit, $timestamp);
$ajax = isset($_GET['ajax']);
$limit++;
$c = ($future)?">=":"<=";
$timestamp = (isset($_GET['timestamp'])&& !$future)?$_GET['timestamp']:time();
$sql = $mysqli->prepare("SELECT *, status.id as status_id FROM status INNER JOIN users ON user_id=users.id WHERE `time` $c ? AND `end_time` $c ? OR (`time`<=? AND `end_time` $c ? ) ORDER BY `time` DESC LIMIT ? OFFSET ?");
$sql->bind_param("iiiiii",$timestamp, $timestamp, $timestamp, $timestamp, $limit, $offset);
$sql->execute();
$query = $sql->get_result();
if ($future && $query->num_rows && !$ajax)
if ($future && count($incidents["incidents"]) && !$ajax)
{
echo "<h3>"._("Planned maintenance")."</h3>";
}
else if ($query->num_rows &&!$ajax)
else if (count($incidents["incidents"]) &&!$ajax)
{
if ($offset)
if ($offset)
{
echo '<noscript><div class="centered"><a href="'.WEB_URL.'/?offset='.($offset-$limit+1).'&timestamp='.$timestamp.'" class="btn btn-default">'._("Back").'</a></div></noscript>';
echo '<noscript><div class="centered"><a href="'.WEB_URL.'/?offset='.($offset-$limit).'&timestamp='.$timestamp.'" class="btn btn-default">'._("Back").'</a></div></noscript>';
}
echo "<h3>"._("Past incidents")."</h3>";
}
@ -47,16 +48,15 @@ class Constellation
{
echo "<h3>"._("No incidents")."</h3>";
}
$show = !$future && $query->num_rows==$limit;
$limit--;
$show = !$future && $incidents["more"];
$offset += $limit;
if ($query->num_rows){
while(($result = $query->fetch_assoc()) && $limit-->0)
{
$incident = new Incident($result);
if (count($incidents["incidents"])){
foreach ($incidents['incidents'] as $incident) {
$incident->render($admin);
}
if ($show)
{
echo '<div class="centered"><a href="'.WEB_URL.'/?offset='.($offset).'&timestamp='.$timestamp.'" id="loadmore" class="btn btn-default">'._("Load more").'</a></div>';
@ -67,12 +67,13 @@ class Constellation
/**
* Renders service status - in admin page it returns array so it can be processed further.
* @param boolean $admin
* @return array of services
* @return array of services
*/
public function render_status($admin = 0){
public function render_status($admin = false, $heading = true){
global $mysqli;
$query = $mysqli->query("SELECT id, name FROM services");
//$query = $mysqli->query("SELECT id, name, description FROM services");
$query = $mysqli->query("SELECT services.id, services.name, services.description, services_groups.name as group_name FROM services LEFT JOIN services_groups ON services.group_id=services_groups.id ORDER BY services_groups.name ASC, services.name;");
$array = array();
if ($query->num_rows){
$timestamp = time();
@ -87,30 +88,126 @@ class Constellation
$tmp = $sql->get_result();
if ($tmp->num_rows)
{
$array[] = new Service($result['id'], $result['name'], $tmp->fetch_assoc()['type']);
$array[] = new Service($result['id'], $result['name'], $result['description'], $result['group_name'], $tmp->fetch_assoc()['type']);
}
else{
$array[] = new Service($result['id'], $result['name']);
$array[] = new Service($result['id'], $result['name'], $result['description'], $result['group_name']);
}
}
echo Service::current_status($array);
}
if ($heading)
{
echo Service::current_status($array);
}
}
else{
$array[] = new Service(0, _("No services"), -1);
}
if (!$admin)
{
echo '<div id="status-container" class="clearfix">';
?>
<script>
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip();
});
</script>
<?php
//echo '<div id="status-container" class="clearfix">';
//$arrCompletedGroups = array();
foreach($array as $service){
//print_r($service);
//if ( !empty($service->group_name) && !in_array($service->group_name, $arrCompletedGroups)) {
//print $service->name;
// $arrCompletedGroups[] = $service['group_name'];
// $service->render(true);
//} else {
$service->render();
//}
}
echo '</div>';
echo '</ul>';
//echo '</div>';
}
else{
return $array;
}
}
}
$constellation = new Constellation();
function get_incidents($future = false, $offset = 0, $limit = 5, $timestamp = 0){
global $mysqli;
if ($timestamp == 0)
{
$timestamp = time();
}
$operator = ($future)?">=":"<=";
$limit++;
$sql = $mysqli->prepare("SELECT users.id, status.type, status.title, status.text, status.time, status.end_time, users.username, status.id as status_id FROM status INNER JOIN users ON user_id=users.id WHERE `time` $operator ? AND `end_time` $operator ? OR (`time`<=? AND `end_time` $operator ? ) ORDER BY `time` DESC LIMIT ? OFFSET ?");
$sql->bind_param("iiiiii",$timestamp, $timestamp, $timestamp, $timestamp, $limit, $offset);
$sql->execute();
$query = $sql->get_result();
$array = [];
$limit--;
$more = false;
if ($query->num_rows>$limit){
$more = true;
}
if ($query->num_rows){
while(($result = $query->fetch_assoc()) && $limit-- > 0)
{
// Add service id and service names to an array in the Incident class
$stmt_service = $mysqli->prepare("SELECT services.id,services.name FROM services
INNER JOIN services_status ON services.id = services_status.service_id
WHERE services_status.status_id = ?");
$stmt_service->bind_param("i", $result['status_id']);
$stmt_service->execute();
$query_service = $stmt_service->get_result();
while($result_service = $query_service->fetch_assoc()) {
$result['service_id'][] = $result_service['id'];
$result['service_name'][] = $result_service['name'];
}
$array[] = new Incident($result);
}
}
return [
"more" => $more,
"incidents" => $array
];
}
function render_warning($header, $message, $show_link = false, $url = null, $link_text = null)
{
$this->render_alert('alert-warning', $header, $message, $show_link, $url, $link_text);
}
function render_success($header, $message, $show_link = false, $url = null, $link_text = null)
{
$this->render_alert('alert-success', $header, $message, $show_link, $url, $link_text);
}
/**
* Renders an alert on screen with an optional button to return to a given URL
* @param string alert_type - Type of warning to render alert-danger, alert-warning, alert-success etc
* @param string header - Title of warning
* @param string message - Message to display
* @param boolean show_link - True if button is to be displayed
* @param string url - URL for button
* @param string link_txt - Text for button
* @return void
*/
function render_alert($alert_type, $header, $message, $show_link = false, $url = null, $link_text = null)
{
echo '<div><h1></h1>
<div class="alert '.$alert_type.'" role="alert">
<h4 class="alert-heading">'.$header.'</h4>
<hr>
<p class="mb-0">'.$message.'</p>
</div></div>';
if ( $show_link ) {
echo '<div class="clearfix"><a href="'.$url.'" class="btn btn-success" role="button">'.$link_text.'</a></div>';
}
}
}
$constellation = new Constellation();

55
classes/db-class.php Normal file
View File

@ -0,0 +1,55 @@
<?php
class SSDB
{
function execute($conn,$sql){
if ($conn->query($sql) === TRUE) {
return true;
} else {
return $conn->error;
}
}
function getSetting($conn,$setting){
$sql = "SELECT value FROM settings WHERE setting='".$setting."'";
$result = $conn->query($sql);
if ($result->num_rows == 1) {
while($row = $result->fetch_assoc()) {
return $row["value"];
}
} else {
return "null";
}
}
function setSetting($conn,$settingname,$settingvalue){
$sql = "INSERT INTO settings (setting,value) VALUES ('".$settingname."','".$settingvalue."');";
if ($conn->query($sql) === TRUE) {
return true;
} else {
return $conn->error;
}
}
function deleteSetting($conn,$settingname){
$sql = "DELETE FROM settings WHERE setting=\"".$settingname."\";";
if ($conn->query($sql) === TRUE) {
return true;
} else {
return $conn->error;
}
}
function updateSetting($conn, $settingname, $settingvalue){
$this->deleteSetting($conn, $settingname);
$this->setSetting($conn, $settingname, $settingvalue);
return true;
}
function getBooleanSetting($conn, $setting) {
if (trim($this->getSetting($conn, $setting)) == "yes"){
return true;
}
return false;
}
}

View File

@ -1,16 +1,22 @@
<?php
require_once(__DIR__ . "/notification.php");
/**
* Class for creating and rendering an incident
*/
class Incident
class Incident implements JsonSerializable
{
private $id;
private $date;
private $end_date;
private $timestamp;
private $end_timestamp;
private $text;
private $type;
private $title;
private $username;
private $service_id;
private $service_name;
/**
* Constructs service from its data.
@ -20,6 +26,8 @@ class Incident
{
//TODO: Maybe get data from id?
$this->id = $data['status_id'];
$this->timestamp = $data['time'];
$this->end_timestamp = $data['end_time'];
$this->date = new DateTime("@".$data['time']);
$this->date = $this->date->format('Y-m-d H:i:sP');
if ($data['end_time']>0){
@ -30,6 +38,8 @@ class Incident
$this->title = $data['title'];
$this->text = $data['text'];
$this->username = $data['username'];
$this->service_id = $data['service_id'];
$this->service_name = $data['service_name'];
}
/**
@ -65,7 +75,7 @@ class Incident
}
/**
* Processes submitted form and adds incident unless problem is encountered,
* Processes submitted form and adds incident unless problem is encountered,
* calling this is possible only for admin or higher rank. Also checks requirements
* for char limits.
* @return void
@ -73,10 +83,13 @@ class Incident
public static function add()
{
global $mysqli, $message;
//Sould be a better way to get this array...
$statuses = array(_("Major outage"), _("Minor outage"), _("Planned maintenance"), _("Operational") );
$user_id = $_SESSION['user'];
$type = $_POST['type'];
$title = $_POST['title'];
$text = $_POST['text'];
$title = strip_tags($_POST['title']);
$text = strip_tags($_POST['text'], '<br>');
if (strlen($title)==0)
{
@ -113,9 +126,11 @@ class Incident
$services = $_POST['services'];
}
if (!empty($_POST['time'])){
$time = strtotime($_POST['time']);
$end_time = strtotime($_POST['end_time']);
if (!empty($_POST['time']) && $type == 2){
$input_time = (!empty($_POST['time_js'])?$_POST['time_js']: $_POST['time']);
$input_end_time = (!empty($_POST['end_time_js'])?$_POST['end_time_js']: $_POST['end_time']);
$time = strtotime($input_time);
$end_time = strtotime($input_end_time);
if (!$time)
{
$message = _("Start date format is not recognized. Please use ISO 8601 format.");
@ -127,11 +142,17 @@ class Incident
$message = _("End date format is not recognized. Please use ISO 8601 format.");
return;
}
if ($time >= $end_time)
{
$message = _("End time is either the same or earlier than start time!");
return;
}
}else{
$time = time();
$end_time = '';
}
$stmt = $mysqli->prepare("INSERT INTO status VALUES (NULL,?, ?, ?, ?, ?, ?)");
$stmt->bind_param("issiii", $type, $title, $text, $time ,$end_time ,$user_id);
$stmt->execute();
@ -139,16 +160,28 @@ class Incident
$status_id = $mysqli->insert_id;
foreach ($services as $service) {
$stmt = $mysqli->prepare("INSERT INTO services_status VALUES (NULL,?, ?)");
$stmt = $mysqli->prepare("INSERT INTO services_status VALUES (NULL,?, ?)");
$stmt->bind_param("ii", $service, $status_id);
$stmt->execute();
$query = $stmt->get_result();
}
header("Location: ".WEB_URL."/admin");
// Perform notification to subscribers
$notify = new Notification();
$notify->populate_impacted_services($status_id);
$notify->type = $type;
$notify->time = $time;
$notify->title = $title;
$notify->text = $text;
$notify->status = $statuses[$type];
$notify->notify_subscribers();
header("Location: ".WEB_URL."/admin?sent=true");
}
}
/**
* Renders incident
* @param Boolean $admin - decides whether admin controls should be rendered
@ -158,6 +191,7 @@ class Incident
global $icons;
global $classes, $user;
$admin = $admin && (($user->get_rank()<=1) || ($user->get_username() == $this->username));
$Parsedown = new Parsedown();
?>
<article class="panel panel-<?php echo $classes[$this->type];?>">
<div class="panel-heading icon">
@ -171,11 +205,16 @@ class Incident
<time class="pull-right timeago" datetime="<?php echo $this->date; ?>"><?php echo $this->date; ?></time>
</div>
<div class="panel-body">
<?php echo $this->text; ?>
<?php echo $Parsedown->setBreaksEnabled(true)->text($this->text); ?>
</div>
<div class="panel-footer clearfix">
<small><?php echo _("Posted by");?>: <?php echo $this->username;
if (isset($this->end_date)){?>
<small>
<?php echo _("Impacted service(s): ");
foreach ( $this->service_name as $value ) {
echo '<span class="label label-default">'.$value . '</span>&nbsp;';
}
if (isset($this->end_date)){?>
<span class="pull-right"><?php echo strtotime($this->end_date)>time()?_("Ending"):_("Ended");?>:&nbsp;<time class="pull-right timeago" datetime="<?php echo $this->end_date; ?>"><?php echo $this->end_date; ?></time></span>
<?php } ?>
</small>
@ -183,4 +222,16 @@ class Incident
</article>
<?php
}
}
public function jsonSerialize() {
return [
"id" => $this->id,
"date" => $this->timestamp,
"end_date" => $this->end_timestamp,
"text" => $this->text,
"type" => $this->type,
"title" => $this->title,
"username" => $this->username
];
}
}

View File

@ -150,6 +150,7 @@ class LocaleNegotiator
'nl_BE' => 'Nederlands',
'nl_NL' => 'Nederlands',
'nn_NO' => 'Nynorsk',
'nb_NO' => 'Norsk Bokmål',
'nso_ZA' => 'Northern sotho',
'oc_FR' => 'Occitan',
'or_IN' => 'ଓଡ଼ିଆ',
@ -190,6 +191,7 @@ class LocaleNegotiator
'sr_Latn_CS' => 'Srpski',
'sr_Latn_ME' => 'Srpski',
'sr_Latn_RS' => 'Srpski',
'sr_RS' => 'Srpski',
'sv_FI' => 'Svenska',
'sv_SE' => 'Svenska',
'sw_KE' => 'Kiswahili',
@ -230,7 +232,7 @@ class LocaleNegotiator
$this->default_language = $default_language;
//Works only if the server supports the locale
//This basically means $accepted_langs[<lang_code>] = "<lang name>";
foreach ($tmp as $key => $value) {
foreach ($tmp as $value) {
$lang = basename($value);
$this->accepted_langs[$lang] = $this->all_locales[$lang];
}
@ -253,7 +255,8 @@ class LocaleNegotiator
$langs = [];
if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
preg_match_all('/([a-z]{1,8}(-[a-z]{1,8})?)\s*(;\s*q\s*=\s*(1|0\.[0-9]+))?/i', $_SERVER['HTTP_ACCEPT_LANGUAGE'], $lang_parse);
$http_accept_language = str_replace("-", "_", $_SERVER['HTTP_ACCEPT_LANGUAGE']);
preg_match_all('/([a-z]{1,8}(-[a-z]{1,8})?)\s*(;\s*q\s*=\s*(1|0\.[0-9]+))?/i', $http_accept_language, $lang_parse);
if (count($lang_parse[1])) {
$langs = array_combine($lang_parse[1], $lang_parse[4]);
@ -279,6 +282,8 @@ class LocaleNegotiator
$best_match = false;
//So we have also lang code as value
$accepted_langs = array_flip($this->accepted_langs);
global $lang;
foreach ($langs as $lang) {
if (strlen($lang)>2){
if (in_array($lang, $accepted_langs)){
@ -292,7 +297,9 @@ class LocaleNegotiator
});
if (count($possible)){
$best_match = $possible[0];
foreach ($possible as $value) {
$best_match = $value;
}
break;
}
}

174
classes/mailer.php Normal file
View File

@ -0,0 +1,174 @@
<?php
/**
* Class that encapsulates everything that can be done with email
*/
use PHPMailer\PHPMailer\PHPMailer; // Inclusion of namespace will not cause any issue even if PHPMailer is not used
use PHPMailer\PHPMailer\Exception;
// TODO Any other way to handle this include? Should we just do the include form each index.php?
if (file_exists("libs/php_idn/idna.php")) {
require_once("libs/php_idn/idna.php");
} else {
// Include for Admin section
require_once("../libs/php_idn/idna.php");
}
class Mailer {
public function __construct(){
}
/**
* Generic function to submit mail messages via mail og PHPmailer()
* @param String $to Email address to which mail should be sent
* @param String $message Body of email
* @param boolean $html Set to true if we are sending HTML Mailer
* @return boolean True if success
*/
public function send_mail($to, $subject, $message, $html = true) {
// TODO -Handle $to as an array in order to send to muliple recipients without having
// to call the entire send_mail function over and over..
$content_type = ($html) ? 'text/html' : 'text/plain';
// Convert IDN/punycode domain to ascii
// TODO Handle IDN in left hand side of email address
if ( $this->is_utf8($to) ) {
$elements = explode('@', $to);
$domainpart = EncodePunycodeIDN(array_pop($elements)); // Convert domain part to ascii
$to = $elements[0] . '@' . $domainpart; // Reassemble tge full email address
}
// Send using PHP mailer if it is enabled
if ( PHP_MAILER ) {
require_once(PHP_MAILER_PATH .'/Exception.php'); /* Exception class. */
require_once(PHP_MAILER_PATH .'/PHPMailer.php'); /* The main PHPMailer class. */
if ( PHP_MAILER_SMTP ) {
require_once(PHP_MAILER_PATH .'/SMTP.php'); /* SMTP class, needed if you want to use SMTP. */
}
$phpmail = new PHPMailer(false);
$phpmail->setFrom(MAILER_ADDRESS, MAILER_NAME);
$phpmail->addReplyTo(MAILER_ADDRESS, MAILER_NAME);
//$phpmail->Debugoutput = error_log;
// Define SMTP parameters if enabled
if ( PHP_MAILER_SMTP ) {
$phpmail->isSMTP();
$phpmail->Host = PHP_MAILER_HOST;
$phpmail->Port = PHP_MAILER_PORT;
$phpmail->SMTPSecure = PHP_MAILER_SECURE;
//$phpmail->SMTPDebug = 2; // Enable for debugging
// Handle authentication for SMTP if enabled
if ( !empty(PHP_MAILER_USER) ) {
$phpmail->SMTPAuth = true;
$phpmail->Username = PHP_MAILER_USER;
$phpmail->Password = PHP_MAILER_PASS;
}
}
$phpmail->addAddress($to);
$phpmail->Subject = $subject;
// Send HMTL mail
if ( $html ) {
$phpmail->msgHtml($message);
$phpmail->AltBody = $this->convert_html_to_plain_txt($message, false);
} else {
$phpmail->Body = $message; // Send plain text
}
$phpmail->isHtml($html); // use htmlmail if enabled
if ( ! $phpmail->send() ) {
// TODO Log error message $phpmail->ErrorInfo;
return false;
}
return true;
} else {
// Use standard PHP mail() function
$headers = "Content-Type: $content_type; \"charset=utf-8\" ".PHP_EOL;
$headers .= "MIME-Version: 1.0 ".PHP_EOL;
$headers .= "From: ".MAILER_NAME.' <'.MAILER_ADDRESS.'>'.PHP_EOL;
$headers .= "Reply-To: ".MAILER_NAME.' <'.MAILER_ADDRESS.'>'.PHP_EOL;
mail($to, $subject, $message, $headers);
// TODO log error message if mail fails
return true;
}
}
/**
* Tries to verify the domain using dns request against an MX record of the domain part
* of the passed email address. The code also handles IDN/Punycode formatted addresses which
* contains utf8 characters.
* Original code from https://stackoverflow.com/questions/19261987/how-to-check-if-an-email-address-is-real-or-valid-using-php/19262381
* @param String $email Email address to check
* @return boolean True if MX record exits, false if otherwise
*/
public function verify_domain($email){
// TODO - Handle idn/punycode domain names without being dependent on PHP native libs.
$domain = explode('@', $email);
$domain = EncodePunycodeIDN(array_pop($domain).'.'); // Add dot at end of domain to avoid local domain lookups
syslog(1,$domain);
return checkdnsrr($domain, 'MX');
}
/**
* Check if string contains non-english characters (detect IDN/Punycode enabled domains)
* Original code from: https://stackoverflow.com/questions/13120475/detect-non-english-chars-in-a-string
* @param String $str String to check for extended characters
* @return boolean True if extended characters, false otherwise
*/
public function is_utf8($str)
{
if (strlen($str) == strlen(utf8_decode($str))) {
return false;
} else {
return true;
}
}
/**
* Takes the input from an HTML email and convert it to plain text
* This is commonly used when sending HTML emails as a backup for email clients who can only view, or who choose to only view,
* Original code from https://github.com/DukeOfMarshall/PHP---JSON-Email-Verification/blob/master/EmailVerify.class.php
* plain text emails
* @param string $content The body part of the email to convert to plain text.
* @param boolean $remove_links Set to true if links should be removed from email
* @return String pain text version
*/
public function convert_html_to_plain_txt($content, $remove_links=false){
// TODO does not handle unsubscribe/manage subscription text very well.
// Replace HTML line breaks with text line breaks
$plain_text = str_ireplace(array("<br>","<br />"), "\n\r", $content);
// Remove the content between the tags that wouldn't normally get removed with the strip_tags function
$plain_text = preg_replace(array('@<head[^>]*?>.*?</head>@siu',
'@<style[^>]*?>.*?</style>@siu',
'@<script[^>]*?.*?</script>@siu',
'@<noscript[^>]*?.*?</noscript>@siu',
), "", $plain_text); // Remove everything from between the tags that doesn't get removed with strip_tags function
// If the user has chosen to preserve the addresses from links
if(!$remove_links){
$plain_text = strip_tags(preg_replace('/<a href="(.*)">/', ' $1 ', $plain_text));
}
// Remove HTML spaces
$plain_text = str_replace("&nbsp;", "", $plain_text);
// Replace multiple line breaks with a single line break
$plain_text = preg_replace("/(\s){3,}/","\r\n\r\n",trim($plain_text));
return $plain_text;
}
}

197
classes/notification.php Normal file
View File

@ -0,0 +1,197 @@
<?php
require_once(__DIR__ . "/queue.php");
/**
* Class that encapsulates everything that can be done with notifications
*/
class Notification
{
public $status_id = null;
public $servicenames = "";
public $serviceids = "";
public $type = 0;
public $time = 0;
public $text = "";
public $title = "";
public $status = "";
/**
* Generate an array of servicenames and service IDs affected by a given incident
* @param int $status_id The incident to query
* @return boolean
*/
public function populate_impacted_services($status_id)
{
global $mysqli;
if (! empty($status_id)) {
// Fetch services names for use in email
$stmt = $mysqli->prepare("SELECT services.id, services.name FROM services INNER JOIN services_status on services.id = services_status.service_id WHERE services_status.status_id = ?");
$stmt->bind_param("i", $status_id);
$stmt->execute();
$query = $stmt->get_result();
$arrServicesNames = array();
$arrServicesId = array();
while ($result = $query->fetch_assoc()) {
$arrServicesNames[] = $result['name'];
$arrServicesId[] = (int) $result['id'];
}
$this->status_id = $status_id;
$this->servicenames = implode(",", $arrServicesNames);
$this->serviceids = implode(",", $arrServicesId);
return true;
} else {
return false;
}
}
/**
* Loop over the list of subscribers to notify depending on impacted service(s) and
* call the differnet notification handles.
* @return void
*/
public function notify_subscribers()
{
global $mysqli;
// Fetch list of unique subscribers for given service
// Direct inclusion of variable without using prepare justified by the fact that
// this->serviceids are not user submitted
$sql = "SELECT DISTINCT subscriberIDFK FROM services_subscriber WHERE serviceIDFK IN (" . $this->serviceids . ")";
$query = $mysqli->query($sql);
// Create the queue tasks for email/telegram notifications
$queue = new Queue();
$queue->status = $queue->all_status['populating'];
$queue->user_id = $_SESSION['user'];
$arr_data = array();
if ( SUBSCRIBE_EMAIL ) {
$arr_data = $this->prepare_email(); // Make up the base message and subject for email
$queue->type_id = $queue->all_type_id['notify_email'];
$queue->template_data1 = $arr_data['subject'];
$queue->template_data2 = $arr_data['body'];
$task_id_email = $queue->add_task();
//syslog(1, "queue email: ". $task_id_email);
$arr_email = array();
}
if ( SUBSCRIBE_TELEGRAM ) {
$arr_data = $this->prepare_telegram();
$queue->type_id = $queue->all_type_id['notify_telegram'];
$queue->template_data1 = null;
$queue->template_data2 = $arr_data['body'];
$task_id_telegram = $queue->add_task();
//syslog(1, "queue telegram: ". $task_id_telegram);
$arr_telegram = array();
}
while ($subscriber = $query->fetch_assoc()) {
// Fetch list of subscriber details for already found subscriber IDs
$stmt = $mysqli->prepare("SELECT typeID FROM subscribers WHERE subscriberID = ? AND active=1");
$stmt->bind_param("i", $subscriber['subscriberIDFK']);
$stmt->execute();
$subscriberQuery = $stmt->get_result();
while ($subscriberData = $subscriberQuery->fetch_assoc()) {
$typeID = $subscriberData['typeID']; // Telegram = 1, email = 2
// Handle telegram
if ($typeID == 1 && SUBSCRIBE_TELEGRAM) {
$arr_telegram[] = $subscriber['subscriberIDFK'];
}
// Handle email
if ($typeID == 2 && SUBSCRIBE_EMAIL) {
$arr_email[] = $subscriber['subscriberIDFK'];
}
}
}
if ( SUBSCRIBE_TELEGRAM) {
$queue->task_id = $task_id_telegram;
$queue->add_notification($arr_telegram); // Add array of Telegram users to the notification queue list
}
if ( SUBSCRIBE_EMAIL ) {
$queue->task_id = $task_id_email;
$queue->add_notification($arr_email); // Add array of Email users to the notification queue list
}
}
/**
* Sends Telegram notification message using their web api.
* @param string $userID The Telegram userid to send to
* @param string $firstname The users firstname
* @param string $msg Body of message
* @return boolean true = Sent / False = failed
*/
public function submit_queue_telegram($userID, $firstname, $msg)
{
// TODO Handle limitations (Max 30 different subscribers per second)
// TODO Error handling
$msg = sprintf($msg, $firstname);
$tg_message = array('text' => $msg, 'chat_id' => $userID, 'parse_mode' => 'HTML');
$json = @file_get_contents("https://api.telegram.org/bot" . TG_BOT_API_TOKEN . "/sendMessage?" . http_build_query($tg_message) );
$response = json_decode($json, true);
if (!is_array($response) || ! array_key_exists("ok", $response) || $response['ok'] != 1 ) {
return false;
}
return true;
}
/**
* Sends email notifications to a subscriber.
* Function depends on Parsedown and Mailer class being loaded.
* @param String $userID The email address to send to
* @param String $uthkey Users token for managing subscription
* @return void
*/
public function submit_queue_email($subscriber, $subject, $msg)
{
// TODO Error handling
$mailer = new Mailer();
if ( ! $mailer->send_mail($subscriber, $subject, $msg, true) ) {
return false;
}
return true;
}
public function prepare_email(){
$Parsedown = new Parsedown();
$str_mail = file_get_contents("../libs/templates/email_status_update.html");
$str_mail = str_replace("%name%", NAME, $str_mail);
// $smtp_mail = str_replace("%email%", $userID, $smtp_mail);
$str_mail = str_replace("%url%", WEB_URL, $str_mail);
$str_mail = str_replace("%service%", $this->servicenames, $str_mail);
$str_mail = str_replace("%status%", $this->status, $str_mail);
$str_mail = str_replace("%time%", date("c", $this->time), $str_mail);
$str_mail = str_replace("%comment%", $Parsedown->setBreaksEnabled(true)->text($this->text), $str_mail);
//$str_mail = str_replace("%token%", $token, $str_mail);
$str_mail = str_replace("%service_status_update_from%", _("Service status update from"), $str_mail);
$str_mail = str_replace("%services_impacted%", _("Service(s) Impacted"), $str_mail);
$str_mail = str_replace("%status_label%", _("Status"), $str_mail);
$str_mail = str_replace("%time_label%", _("Time"), $str_mail);
$str_mail = str_replace("%manage_subscription%", _("Manage subscription"), $str_mail);
$str_mail = str_replace("%unsubscribe%", _("Unsubscribe"), $str_mail);
$str_mail = str_replace("%powered_by%", _("Powered by"), $str_mail);
$subject = _('Status update from') . ' - ' . NAME . ' [ ' . $this->status . ' ]';
$val = array();
$val['subject'] = $subject;
$val['body'] = $str_mail;
return $val;
}
public function prepare_telegram(){
$msg = _("Hi #s!\nThere is a status update for service(s): %s\nThe new status is: %s\nTitle: %s\n\n%s\n\n<a href='%s'>View online</a>");
$val['body'] = sprintf($msg, $this->servicenames, $this->status, $this->title, $this->text, WEB_URL);
return $val;
}
}

161
classes/queue.php Normal file
View File

@ -0,0 +1,161 @@
<?php
/**
* Class for creating and managing the queue system
*/
class Queue
{
public $task_id;
public $type_id;
public $status;
public $template_data1; // i.e. Subject for email
public $template_data2; // i.e. HTML email body
public $create_time;
public $completed_time;
public $num_errors;
public $user_id;
public $all_type_id = array('notify_telegram' => 1,
'notify_email' => 2);
public $all_status = array('populating' => 1,
'ready' => 2,
'processing' => 3,
'completed' => 4,
'failed' => 5);
public function add_task() {
global $mysqli;
$stmt = $mysqli->prepare("INSERT INTO queue_task (type_id, status, template_data1, template_data2, created_time, user_id) VALUES (?,?,?,?,?,?)");
if ( false===$stmt ) {
//die('prepare() failed: ' . htmlspecialchars($mysqli->error));
echo $mysqli->errno();
}
#if ( false === $stmt ) { syslog(1, "Error :". $mysqli->error); }
$now = time();
$res = $stmt->bind_param("iissii", $this->type_id, $this->status, $this->template_data1, $this->template_data2, $now, $this->user_id);
if ( false === $res ) {
echo "error";
die();
}
$stmt->execute();
$query = $stmt->get_result();
print $query;
$this->task_id = $mysqli->insert_id;
return $this->task_id;
}
/**
* Remove task from the queue
* @return void
*/
public function delete_task($task_id){
global $mysqli;
$stmt = $mysqli->prepare("DELETE FROM queue_task WHERE id = ?");
$stmt->bind_param("i", $task_id);
$stmt->execute();
}
/**
* Update status for given task
* @param int $new_status The new current status of the task. Must be selected from the $all_status array.
* @return void
*/
public function set_task_status($new_status) {
global $mysqli;
$stmt = $mysqli->prepare("UPDATE queue_task SET status = ? WHERE id = ?");
$stmt->bind_param("ii", $new_status, $this->task_id);
$stmt->execute();
$this->status = $new_status;
}
/**
* Add notification queue data for given task
* @param array $arr_data Array filled with subscriber_id
* @return void
*/
public function add_notification($arr_data) {
global $mysqli;
//Default status = 1, retres = 0, task_id = $this->task_id
// Build query manually since mysqli doesn't cater well for multi insert..
$count = count($arr_data); // Let's find number of elements
$counter = 0;
$query = '';
$seperator = ',';
$sub_query = '(%d, %d, %d ,%d)%s';
foreach ($arr_data as $value) {
$counter++;
if ($counter == $count) { $seperator = ''; } // Make sure last character for SQL query is correct
$query .= sprintf($sub_query, $this->task_id, 1, $value, 0, $seperator);
}
$sql = "INSERT INTO queue_notify (task_id, status, subscriber_id, retries) VALUES ". $query;
$mysqli->query($sql);
$this->set_task_status($this->all_status['ready']); // Make task available for release
}
public function update_notification_retries($task_id, $subscriber_id) {
global $mysqli;
$stmt = $mysqli->prepare("UPDATE queue_notify SET retries = retries+1 WHERE task_id = ? AND subscriber_id = ?");
$stmt->bind_param("ii", $task_id, $subscriber_id);
$stmt->execute();
}
public function delete_notification($task_id, $subscriber_id) {
global $mysqli;
$stmt = $mysqli->prepare("DELETE FROM queue_notify WHERE task_id = ? AND subscriber_id = ?");
$stmt->bind_param("ii", $task_id, $subscriber_id);
$stmt->execute();
}
// TODO: Fix max attempts for notifications
public function process_queue(){
global $mysqli;
$stmt = $mysqli->query("SELECT qn.id, qn.task_id, qn.status, qn.subscriber_id, qn.retries, sub.firstname, sub.userID, sub.token FROM queue_notify AS qn INNER JOIN subscribers AS sub ON qn.subscriber_id = sub.subscriberID WHERE qn.status NOT LIKE 2 AND sub.active=1");
while ( $result = $stmt->fetch_assoc() ) {
$i = 2;
$stmt2 = $mysqli->prepare("SELECT * FROM queue_task WHERE id = ? AND status = ?");
$stmt2->bind_param("ii", $result['task_id'], $i);
$stmt2->execute();
$tmp = $stmt2->get_result();
$result2 = $tmp->fetch_assoc();
$typeID = $result2['type_id'];
// Handle telegram
if ($typeID == 1) {
$msg = str_replace("#s", $result['firstname'], $result2['template_data2']);
if ( ! Notification::submit_queue_telegram($result['userID'], $result['firstname'], $msg) ) {
Queue::update_notification_retries($result['task_id'], $result['subscriber_id']); // Sent
} else {
Queue::delete_notification($result['task_id'], $result['subscriber_id']); // Failed
}
}
// Handle email
if ($typeID == 2) {
$msg = str_replace("%token%", $result['token'], $result2['template_data2']);
if ( ! Notification::submit_queue_email($result['userID'], $result2['template_data1'], $msg) ) {
Queue::update_notification_retries($result['task_id'], $result['subscriber_id']); // Sent
} else {
Queue::delete_notification($result['task_id'], $result['subscriber_id']); // Failed
}
}
}
// Check if queue log is empty and if so delete the queue_task
$stmt = $mysqli->query("SELECT id, (SELECT COUNT(*) FROM queue_notify AS qn WHERE qn.task_id = queue_task.id) AS count FROM queue_task");
while ( $result = $stmt->fetch_assoc() ) {
if ( $result['count'] == 0 ) {
Queue::delete_task($result['id']);
}
}
}
}

167
classes/service-group.php Normal file
View File

@ -0,0 +1,167 @@
<?php
/**
* Class for managing services
*/
class ServiceGroup
{
private $id;
private $name;
private $description;
private $visibility_id;
/**
* Constructs servicegroup from its data.
* @param int $id service ID
* @param String $name service name
* @param String $description tooltip text
* @param int $visibility_id how to display group items
*/
function __construct($id, $name, $description, $visibility_id)
{
//TODO: Maybe get data from ID?
$this->id = $id;
$this->name = $name;
$this->description = $description;
$this->visibility_id = $visibility_id;
$this->status = $status;
}
/**
* Returns id of this servicegroup
* @return int id
*/
public function get_id()
{
return $this->id;
}
/**
* Returns name of this servicegroup
* @return String name
*/
public function get_name()
{
return $this->name;
}
/**
* Returns description of this servicegroup
* @return String description
*/
public function get_description()
{
return $this->description;
}
/**
* Processes submitted form and adds service unless problem is encountered,
* calling this is possible only for admin or higher rank. Also checks requirements
* for char limits.
* @return void
*/
public static function add()
{
global $user, $message;
if (strlen($_POST['group'])>50)
{
$message = _("Service group name is too long! Character limit is 50");
return;
}else if (strlen(trim($_POST['group']))==0){
$message = _("Please enter name!");
return;
}
if ($user->get_rank()<=1)
{
global $mysqli;
$name = $_POST["group"];
$description = $_POST["description"];
$visibility_id = $_POST["visibility_id"];
$stmt = $mysqli->prepare("INSERT INTO services_groups VALUES(NULL,?,?,?)");
$stmt->bind_param("ssi", $name, $description, $visibility_id);
$stmt->execute();
$stmt->get_result();
header("Location: ".WEB_URL."/admin/?do=settings");
}else
{
$message = _("You don't have the permission to do that!");
}
}
public static function edit()
{
global $user, $message;
if (strlen($_POST['group'])>50)
{
$message = _("Service group name is too long! Character limit is 50");
return;
}else if (strlen(trim($_POST['group']))==0){
$message = _("Please enter name!");
return;
}
if ($user->get_rank()<=1)
{
global $mysqli;
$name = $_POST["group"];
$description = $_POST["description"];
$visibility_id = $_POST["visibility_id"];
$group_id = $_POST["id"];
$stmt = $mysqli->prepare("UPDATE services_groups SET name=?, description=?,visibility=? WHERE id LIKE ?");
$stmt->bind_param("ssii", $name, $description, $visibility_id, $group_id);
$stmt->execute();
$stmt->get_result();
header("Location: ".WEB_URL."/admin/?do=settings");
}else
{
$message = _("You don't have the permission to do that!");
}
}
/**
* Deletes this service - first checks if user has permission to do that.
* @return void
*/
public static function delete()
{
global $user, $message;
if ($user->get_rank()<=1)
{
global $mysqli;
$id = $_GET['delete'];
$stmt = $mysqli->prepare("DELETE FROM services_groups WHERE id = ?");
$stmt->bind_param("i", $id);
$stmt->execute();
$query = $stmt->get_result();
$stmt = $mysqli->prepare("UPDATE services SET group_id = NULL WHERE group_id = ?");
$stmt->bind_param("i", $id);
$stmt->execute();
$query = $stmt->get_result();
header("Location: ".WEB_URL."/admin/?do=settings");
}
else
{
$message = _("You don't have the permission to do that!");
}
}
/**
* Get list of services groups.
* @return array $groups
*/
public function get_groups() {
global $mysqli;
$stmt = $mysqli->query("SELECT id, name FROM services_groups ORDER by name ASC");
$groups = array();
$groups[0] = '';
while ($res = $stmt->fetch_assoc()) {
$groups[$res['id']] = $res['name'];
}
return $groups;
}
}

View File

@ -2,23 +2,28 @@
/**
* Class for managing services
*/
class Service
class Service implements JsonSerializable
{
private $id;
private $name;
private $description;
private $group_name;
private $status;
/**
* Constructs service from its data.
* @param int $id service ID
* @param String $name service name
* @param String $descriotion service description for tooltip
* @param int $status current service status
*/
function __construct($id, $name, $status=3)
function __construct($id, $name, $description=null, $group_name='', $status=3)
{
//TODO: Maybe get data from ID?
$this->id = $id;
$this->name = $name;
$this->description = $description;
$this->group_name = $group_name;
$this->status = $status;
}
@ -50,7 +55,16 @@ class Service
}
/**
* Processes submitted form and adds service unless problem is encountered,
* Returns description of this service
* @return String description
*/
public function get_description()
{
return $this->description;
}
/**
* Processes submitted form and adds service unless problem is encountered,
* calling this is possible only for admin or higher rank. Also checks requirements
* for char limits.
* @return void
@ -70,17 +84,54 @@ class Service
if ($user->get_rank()<=1)
{
global $mysqli;
$name = $_POST['service'];
$stmt = $mysqli->prepare("INSERT INTO services VALUES(NULL,?)");
$stmt->bind_param("s", $name);
$name = htmlspecialchars($_POST['service']);
$description = htmlspecialchars($_POST['description']);
$group_id = $_POST['group_id'];
$stmt = $mysqli->prepare("INSERT INTO services ( name, description, group_id ) VALUES ( ?, ?, ? )");
$stmt->bind_param("ssi", $name, $description, $group_id);
$stmt->execute();
$query = $stmt->get_result();
$stmt->get_result();
header("Location: ".WEB_URL."/admin/?do=settings");
}else
{
$message = _("You don't have the permission to do that!");
}
}
/**
* Processes submitted form and adds service unless problem is encountered,
* calling this is possible only for admin or higher rank. Also checks requirements
* for char limits.
* @return void
*/
public static function edit()
{
global $user, $message;
if (strlen($_POST['service'])>50)
{
$message = _("Service name is too long! Character limit is 50");
return;
}else if (strlen(trim($_POST['service']))==0){
$message = _("Please enter name!");
return;
}
if ($user->get_rank()<=1)
{
global $mysqli;
$service_id = $_POST["id"];
$name = htmlspecialchars($_POST['service']);
$description = htmlspecialchars($_POST["description"]);
$group_id = $_POST["group_id"];
$stmt = $mysqli->prepare("UPDATE services SET name=?, description=?, group_id=? WHERE id = ?");
$stmt->bind_param("ssii", $name, $description, $group_id, $service_id);
$stmt->execute();
$stmt->get_result();
header("Location: ".WEB_URL."/admin/?do=settings");
}else
{
$message = _("You don't have the permission to do that!");
}
}
/**
* Deletes this service - first checks if user has permission to do that.
@ -88,13 +139,13 @@ class Service
*/
public static function delete()
{
global $user;
global $user, $message;
if ($user->get_rank()<=1)
{
global $mysqli;
$id = $_GET['delete'];
$stmt = $mysqli->prepare("SELECT service_id, status_id as status, (SELECT count(*) FROM services_status as s WHERE s.status_id=status) as count FROM services_status WHERE service_id = ? GROUP BY status_id");
$stmt = $mysqli->prepare("SELECT status_id as status, (SELECT count(*) FROM services_status as s WHERE s.status_id=status) as count FROM services_status WHERE service_id = ? GROUP BY status");
$stmt->bind_param("i", $id);
$stmt->execute();
$query = $stmt->get_result();
@ -139,11 +190,11 @@ class Service
{
$worst = $service->get_status();
}
$statuses[$service->get_status()]++;
$statuses[$service->get_status()]++;
}
echo '<div id="status-big" class="status '.$classes[$worst].'">';
if ($statuses[$worst] == count($array))
{
echo $all[$worst];
@ -155,16 +206,67 @@ class Service
/**
* Renders this service.
* @param $boolGroup set to true if the groups name is to be rendered
* @return void
*/
public function render(){
global $statuses;
global $classes;
?>
<div class="item clearfix">
<div class="service"><?php echo $this->name; ?></div>
<?php if ($this->status!=-1){?><div class="status <?php echo $classes[$this->status];?>"><?php echo $statuses[$this->status];?></div><?php }?>
</div>
<?php
static $arrCompletedGroups = array();
//static $boolClosed;
static $boolOpened;
// Check if previous ul has been opened, and if a empty/new group is being
// render_header, close the UL first.
if ( $boolOpened ) {
if ( empty($this->group_name) || !in_array($this->group_name, $arrCompletedGroups) ) {
echo '</ul>';
$boolOpened = false;
}
}
// If no group exist or group is new, start a new UL
if ( !empty($this->group_name) && !in_array($this->group_name, $arrCompletedGroups)) {
echo '<ul class="list-group components">';
//echo '<ul class="platforms list-group mb-2">';
// Render the group status if it exists
echo '<li class="list-group-item list-group-item-success group-name"><span><i class="glyphicon glyphicon-plus"></i></span>&nbsp;' . $this->group_name .'<div class="status '. $classes[$this->status] .'">'. _($statuses[$this->status]).'</div></li>';
//echo '<li class="cist-group-item d-flex flex-row justify-content-between platform list-group-item-action py-0 expanded" role="button">' . $this->group_name .'<div class="status '. $classes[$this->status] .'"'. _($statuses[$this->status]).'</div></li>';
$arrCompletedGroups[] = $this->group_name;
$boolOpened = true;
}
if ( empty($this->group_name)) {
echo '<ul class="list-group components">';
// echo '<ul class="platforms list-group mb-2">';
$boolFinish = true;
}
// Render the service status
echo '<li class="list-group-item sub-component"><strong>' . $this->name .'</strong>';
//echo '<li class="list-group-item d-flex flex-columns justify-content-between><span>+</span><h3 class="py-2 my-0 flex-fill expanded">' . $this->name . '</h3>';
if(!empty($this->description)) {
echo '<a class="desc-tool-tip" data-toggle="tooltip" data-placement="top" title="'.$this->description.'"> <span><i class="glyphicon glyphicon-question-sign"></i></span></a>';
}
if ($this->status!=-1){?><div class="status pull-right <?php echo $classes[$this->status];?>"><?php echo _($statuses[$this->status]);?></div>
<?php
}
echo '</li>';
if ( isset($boolFinish) && $boolFinish) {
echo '</ul>';
}
}
}
public function jsonSerialize() {
global $statuses;
return [
"id" => $this->id,
"name" => $this->name,
"description" => $this->description,
"status" => $this->status,
"status_string" => $statuses[$this->status]
];
}
}

329
classes/subscriber.php Normal file
View File

@ -0,0 +1,329 @@
<?php
/**
* Subscriber class
*
*/
Class Subscriber
{
public $id = null;
public $firstname = null;
public $lastname = null;
public $userID = ""; // Holds email, telegram id etc
public $token = null;
public $active = 0;
public $typeID = null; // Holds subscription type ID
function __construct() {
$this->firstname = null;
$this->lastname = null;
$this->userID = "";
$this->token = null;
$this->active = 0;
$this->typeID = null;
}
/**
* Gets authentcation token for specified subscriberID
* @param Integer $subscriberID - specifies which subscriber we are looking up
* @param Integer $typeID - specifies which type of subscription we are refering (1 = telegram, 2 = email)
* @return String $token - 32 bytes HEX string
*/
public function get_token($subscriberID, $typeID)
{
global $mysqli;
$stmt = $mysqli->prepare("SELECT token FROM subscribers WHERE subscriberID = ? and typeID=? and active = 1 LIMIT 1");
$stmt->bind_param("ii", $subscriberID, $typeID);
$stmt->execute();
$result = $stmt->get_result();
if ($result->num_rows > 0) {
$row = $result->fetch_assoc();
$this->token = $row['token'];
//$this->get_subscriber_by_token($this->token);
return $row['token'];
}
return false;
}
public function get_subscriber_by_token($token)
{
global $mysqli;
$stmt = $mysqli->prepare("SELECT subscriberID FROM subscribers WHERE token=? and typeID=?");
$stmt->bind_param("si", $token, $this->typeID);
$stmt->execute();
$result = $stmt->get_result();
if ($result->num_rows > 0) {
$row = $result->fetch_assoc();
$this->id = $row['subscriberID'];
$this->populate(); //
return true;
}
return false;
}
public function get_subscriber_by_userid($create = false)
{
global $mysqli;
$stmt = $mysqli->prepare("SELECT subscriberID FROM subscribers WHERE userID LIKE ? AND typeID = ? LIMIT 1");
$stmt->bind_param("si", $this->userID, $this->typeID );
$stmt->execute();
$result = $stmt->get_result();
if ($result->num_rows > 0) {
$row = $result->fetch_assoc();
$this->id = $row['subscriberID'];
$this->populate();
return $row['subscriberID'];
} else {
// User is not registered in DB, so add if $create = true
if ( $create ) {
$subscriber_id = $this->add($this->typeID, $this->userID, $this->active, $this->firstname, $this->lastname);
return $subscriber_id;
}
return false;
}
}
public function populate()
{
global $mysqli;
$stmt = $mysqli->prepare("SELECT typeID, userID, firstname, lastname, token, active FROM subscribers WHERE subscriberID = ?");
$stmt->bind_param("i", $this->id);
$stmt->execute();
$result = $stmt->get_result();
if ($result->num_rows > 0) {
$row = $result->fetch_assoc();
$this->userID = $row['userID'];
$this->typeID = $row['typeID'];
$this->firstname = $row['firstname'];
$this->lastname = $row['lastname'];
$this->token = $row['token'];
$this->active = $row['active'];
return true;
}
return false;
}
public function add($typeID, $userID, $active = null, $firstname = null, $lastname = null)
{
global $mysqli;
$expireTime = strtotime("+2 hours");
$updateTime = strtotime("now");
$token = $this->generate_token();
$stmt = $mysqli->prepare("INSERT INTO subscribers (typeID, userID, firstname, lastname, token, active, expires, create_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?)");
$stmt->bind_param("issssiii", $typeID, $userID, $firstname, $lastname, $token, $active, $expireTime, $updateTime);
$stmt->execute();
//$query = $stmt->get_result();
$this->id = $mysqli->insert_id;
$this->typeID = $typeID;
$this->userID = $userID;
$this->token = $token;
$this->firstname = $firstname;
$this->lastname = $lastname;
$this->active = $active;
return $this->id;
}
public function update($subscriberID)
{
global $mysqli;
$updateTime = strtotime("now");
$stmt = $mysqli->prepare("UPDATE subscribers SET update_time = ? WHERE subscriberID=?");
$stmt->bind_param("ii", $updateTime, $subscriberID);
$stmt->execute();
return true;
}
public function activate($subscriberID)
{
global $mysqli;
$updateTime = strtotime("now");
$stmt = $mysqli->prepare("UPDATE subscribers SET update_time = ?, expires = ? WHERE subscriberID = ?");
$tmp = null;
$stmt->bind_param("iii", $updateTime, $tmp, $subscriberID);
$stmt->execute();
return true;
}
public function delete($subscriberID)
{
global $mysqli;
$stmt = $mysqli->prepare("DELETE FROM services_subscriber WHERE subscriberIDFK = ?");
$stmt->bind_param("i", $subscriberID);
$stmt->execute();
//$query = $stmt->get_result();
$stmt = $mysqli->prepare("DELETE FROM subscribers WHERE subscriberID = ?");
$stmt->bind_param("i", $subscriberID);
$stmt->execute();
//$query = $stmt->get_result();
return true;
}
public function check_userid_exist()
{
global $mysqli;
$stmt = $mysqli->prepare("SELECT subscriberID, userID, token, active FROM subscribers WHERE typeID=? AND userID=? LIMIT 1");
$stmt->bind_param("is", $this->typeID, $this->userID);
$stmt->execute();
$result = $stmt->get_result();
if($result->num_rows > 0) {
$row = $result->fetch_assoc();
$this->id = $row['subscriberID'];
$this->populate();
return true;
}
return false;
}
public function is_active_subscriber($token)
{
global $mysqli;
$stmt = $mysqli->prepare("SELECT subscriberID, token, userID, active, expires FROM subscribers WHERE token LIKE ? LIMIT 1");
$stmt->bind_param("s", $token );
$stmt->execute();
$result = $stmt->get_result();
if ($result->num_rows > 0) {
$row = $result->fetch_assoc();
} else {
// No data found, fail gently...
return false;
}
// If account is not already active, check if we are within timeframe of exipre +2h
// and active if so, otherwise,delete account and return falsev
if ( $row['active'] <> 1 ) {
// Calculate time range for when subscription need to be validated
$time_end = $row['expires'];
$time_start = $time_end - (3600*2); // TODO - make this interval configurable via a config option
$time_now = time();
if ( ($time_now > $time_start) && ($time_now < $time_end) ) {
// Timefram is within range, active user..
$stmt2 = $mysqli->prepare("UPDATE subscribers SET active=1, expires=null WHERE subscriberID = ?");
$stmt2->bind_param("i", $row['subscriberID']);
$stmt2->execute();
$result = $stmt2->get_result();
$this->active = 1;
$this->id = $row['subscriberID'];
$this->userID = $row['userID'];
$this->token = $row['token'];
return true;
} else {
// Timeframe outside of given scope -> delete account
$stmt2 = $mysqli->prepare("DELETE FROM subscribers WHERE subscriberID = ?");
$stmt2->bind_param("i", $row['subscriberID']);
$stmt2->execute();
$result = $stmt2->get_result();
$this->active = 0;
return false;
}
}
// if we get here, account should already be active
$this->active = 1;
$this->id = $row['subscriberID'];
$this->userID = $row['userID'];
$this->token = $row['token'];
return true;
}
/**
* Generate a new 64 byte token (32 bytes converted from bin2hex = 64 bytes)
* @return string token
*/
public function generate_token()
{
global $mysqli;
if ( function_exists('openssl_random_pseudo_bytes') ) {
$token = openssl_random_pseudo_bytes(32); //Generate a random string.
$token = bin2hex($token); //Convert the binary data into hexadecimal representation.
} else {
// Use alternative token generator if openssl isn't available...
$token = make_alt_token(32, 32);
}
// Make sure token doesn't already exist in db
$stmt = $mysqli->prepare("SELECT subscriberID FROM subscribers WHERE token LIKE ?");
echo $mysqli->error;
$stmt->bind_param("s", $token);
$stmt->execute();
$result = $stmt->get_result();
if ($result->num_rows > 0 ) {
// token already exists, call self again
$token = $this->generate_token();
}
return $token;
}
/**
* Alternative token generator if openssl_random_pseudo_bytes is not available
* Original code by jsheets at shadonet dot com from http://php.net/manual/en/function.mt-rand.php
* @params int min_length Minimum length of token
* @params int max_length Maximum length of token
* @return String token
*/
public function make_alt_token($min_length = 32, $max_length = 64)
{
$key = '';
// build range and shuffle range using ASCII table
for ($i=0; $i<=255; $i++) {
$range[] = chr($i);
}
// shuffle our range 3 times
for ($i=0; $i<=3; $i++) {
shuffle($range);
}
// loop for random number generation
for ($i = 0; $i < mt_rand($min_length, $max_length); $i++) {
$key .= $range[mt_rand(0, count($range)-1)];
}
$return = bin2hex($key);
if (!empty($return)) {
return $return;
} else {
return 0;
}
}
public function set_logged_in()
{
$_SESSION['subscriber_valid'] = true;
$_SESSION['subscriber_id'] = $this->id;
$_SESSION['subscriber_userid'] = $this->userID;
$_SESSION['subscriber_typeid'] = $this->typeID; //email
$_SESSION['subscriber_token'] = $this->token;
}
public function set_logged_off()
{
unset($_SESSION['subscriber_valid']);
unset($_SESSION['subscriber_userid']);
unset($_SESSION['subscriber_typeid']);
unset($_SESSION['subscriber_id']);
unset($_SESSION['subscriber_token']);
}
}

94
classes/subscriptions.php Normal file
View File

@ -0,0 +1,94 @@
<?php
/**
* Subscriptions class
*
*/
Class Subscriptions
{
public function add($userID, $service)
{
global $mysqli;
$stmt = $mysqli->prepare("INSERT INTO services_subscriber (subscriberIDFK, serviceIDFK) VALUES (?, ?)");
$stmt->bind_param("ii", $userID, $service);
$stmt->execute();
//$query = $stmt->get_result();
return true;
}
public function remove($userID, $service)
{
global $mysqli;
$stmt = $mysqli->prepare("DELETE FROM services_subscriber WHERE subscriberIDFK = ? AND serviceIDFK = ?");
$stmt->bind_param("ii", $userID, $service);
$stmt->execute();
//$query = $stmt->get_result();
return true;
}
function render_subscribed_services($typeID, $subscriberID, $userID, $token)
{
global $mysqli;
$stmt = $mysqli->prepare("SELECT services.id, services.name, subscribers.subscriberID, subscribers.userID, subscribers.token
FROM services
LEFT JOIN services_subscriber ON services_subscriber.serviceIDFK = services.id
LEFT JOIN subscribers ON services_subscriber.subscriberIDFK = subscribers.subscriberID
WHERE subscribers.typeID = ? AND subscribers.subscriberID = ?");
$stmt->bind_param("ii", $typeID, $subscriberID);
$stmt->execute();
$query = $stmt->get_result();
$strNotifyType = _('E-mail Notification subscription');
if ( $typeID == 1 ) { $strNotifyType = _('Telegram Notification subscription'); }
?>
<div class="row">
<div class="col-xs-12 col-lg-offset-2 col-lg-8">
<div class="text-center">
<h3><?php echo $strNotifyType; ?></h3>
<p><?php echo _("Manage notification subscription for"); echo "&nbsp". $userID; ?></p>
<a onclick="if (confirm('<?php echo _("Are you sure you want to cancel you subscription?");?>')){return true;}else{event.stopPropagation(); event.preventDefault();};" class="confirmation" href="index.php?do=unsubscribe&amp;type=<?php echo $typeID;?>&amp;token=<?php echo $token;?>"><button class="btn btn-danger"><?php echo _("Cancel Subscription");?></button></a>
</div>
</div>
</div>
<?php
echo '<h1>' . _("Your subscriptions") . "</h1>";
echo '<div class="list-group">';
$subs = array(); // Will be used to hold IDs of services already selected
if ($query->num_rows){
while($result = $query->fetch_assoc())
{
echo '<a href="'.WEB_URL.'/subscriptions.php?remove=' . $result['id'] .'" class="list-group-item"><span class="glyphicon glyphicon-remove text-danger"></span>&nbsp;' . $result['name'] . '</a>';
$subs[] = $result['id'];
}
} else {
echo '<div class="container"><summary>'._("You do not currently subscribe to any services. Please add services from the list below.").'</summary></div>';
}
echo "</div>";
echo '<h1>' . _("Add new subscription") . '</h1>';
// Prepare to query for unselect services. If none are selected, query for all
$subsExp = null;
if (count($subs) > 0 ) {
$subsExp = 'NOT IN ('. implode(",", $subs) .')';
}
$query = $mysqli->query("SELECT services.id, services.name from services WHERE services.id $subsExp");
echo '<div class="list-group">';
if ($query->num_rows){
while($result = $query->fetch_assoc()){
echo '<a href="'.WEB_URL.'/subscriptions.php?add=' . $result['id'] . '" class="list-group-item list-group-item-action"><span class="glyphicon glyphicon-plus text-success"></span>&nbsp;' . $result['name'] . '</a>';
}
} else {
echo '<div class="container"><summary>'._("No further services available for subscriptions.").'</summary></div>';
}
echo '</div>';
}
}

82
classes/telegram.php Normal file
View File

@ -0,0 +1,82 @@
<?php
Class Telegram
{
/**
* Get telegram user data
*
* Gets telegram user data from cookie and save it to array
*
* @return void
*
* @author Telegram
*
*
* @since 0.1
*/
function getTelegramUserData() {
if (isset($_COOKIE['tg_user'])) {
$auth_data_json = urldecode($_COOKIE['tg_user']);
$auth_data = json_decode($auth_data_json, true);
return $auth_data;
}
return false;
}
/**
* Check if data is from telegram
*
* This checks if the data provides is from telegram. It includes a Fix for firefox
*
* @param mixed $auth_data The Authentication Data
*
* @return $auth_data
*
*/
function checkTelegramAuthorization($auth_data) {
$check_hash = $auth_data['hash'];
unset($auth_data['hash']);
$data_check_arr = [];
foreach ($auth_data as $key => $value) {
// $data_check_arr[] = $key . '=' . $value;
$data_check_arr[] = $key . '=' . str_replace('https:/t', 'https://t', $value);
}
sort($data_check_arr);
$data_check_string = implode("\n", $data_check_arr);
$secret_key = hash('sha256', TG_BOT_API_TOKEN, true);
$hash = hash_hmac('sha256', $data_check_string, $secret_key);
if (strcmp($hash, $check_hash) !== 0) {
throw new Exception('Data is NOT from Telegram');
}
if ((time() - $auth_data['auth_date']) > 86400) {
throw new Exception('Data is outdated');
}
return $auth_data;
}
/**
* Save telegram userdata
*
* Save the telegram user data in a cookie
* @return void
*/
function saveTelegramUserData($auth_data) {
$auth_data_json = json_encode($auth_data);
setcookie('tg_user', $auth_data_json);
}
function get_telegram_subscriberid($user)
{
global $mysqli;
$stmt = $mysqli->prepare("SELECT subscriberID FROM subscribers WHERE typeID=1 AND userID LIKE ? LIMIT 1");
$stmt->bind_param("s", $user);
$stmt->execute();
$result = $stmt->get_result();
if ( $result->num_rows) {
$row = $result->fetch_assoc();
$subscriberID = $row['subscriberID'];
return $subscriberID;
}
return null; // Return null on false
}
}

View File

@ -19,7 +19,7 @@ class Token
$stmt = $mysqli->prepare("INSERT INTO tokens VALUES(?, ?, ?, ?)");
$stmt->bind_param("siis", $token, $id, $expire, $data);
$stmt->execute();
$query = $stmt->get_result();
$stmt->get_result();
return $token;
}
@ -30,7 +30,7 @@ class Token
* @param String $data
* @return int count of results in database
*/
public static function validate_token($token, $id, $data)
public static function validate($token, $id, $data)
{
global $mysqli;
$time = time();
@ -41,6 +41,22 @@ class Token
return $query->fetch_assoc()['count'];
}
/**
* Returns token data
* @param String $token
* @param int $id user ID
* @return String data
*/
public static function get_data($token, $id)
{
global $mysqli;
$stmt = $mysqli->prepare("SELECT data as count FROM tokens WHERE token = ? AND user = ?");
$stmt->bind_param("si", $token, $id);
$stmt->execute();
$query = $stmt->get_result();
return $query->fetch_assoc()['data'];
}
/**
* Deletes token.
* @param String $token
@ -53,6 +69,6 @@ class Token
$stmt = $mysqli->prepare("DELETE FROM tokens WHERE token = ? OR expire<?");
$stmt->bind_param("sd", $token,$time);
$stmt->execute();
$query = $stmt->get_result();
$stmt->get_result();
}
}

View File

@ -84,12 +84,7 @@ class User
public function toggle()
{
global $mysqli, $message, $user;
$id = $_SESSION['user'];
$stmt = $mysqli->prepare("SELECT permission FROM users WHERE id=?");
$stmt->bind_param("i", $id);
$stmt->execute();
$query = $stmt->get_result();
$permission = $result['permission'];
$id = $_GET['id'];
if ($this->id!=$_SESSION['user'] && $user->get_rank()<=1 && ($user->get_rank()<$this->rank))
{
@ -132,72 +127,72 @@ class User
$messages[] = _("Rank");
}
if (!isset($messages)){
$name = $_POST['name'];
$surname = $_POST['surname'];
$username = $_POST['username'];
$email = $_POST['email'];
$pass = $_POST['password'];
if (!filter_var($email, FILTER_VALIDATE_EMAIL))
{
$message = "Invalid email!";
return;
}
$variables = array();
if (strlen($name)>50){
$variables[] = 'name: 50';
}
if (strlen($surname)>50){
$variables[] = 'surname: 50';
}
if (strlen($username)>50){
$variables[] = 'username: 50';
}
if (strlen($email)>60){
$variables[] = 'email: 60';
}
if (!empty($variables))
{
$message = _("Please mind the following character limits: ");
$message .= implode(", ", $variables);
return;
}
$salt = uniqid(mt_rand(), true);
$hash = hash('sha256', $pass.$salt);
$permission = $_POST['permission'];
$stmt = $mysqli->prepare("INSERT INTO users values (NULL, ?, ?, ?, ?, ?, ?, ?, 1)");
$stmt->bind_param("ssssssi", $email, $username, $name, $surname, $hash, $salt, $permission);
$stmt->execute();
if ($stmt->affected_rows>0)
{
$to = $email;
$subject = _('User account created').' - '.NAME;
$msg = sprintf(_("Hi %s!<br>"."Your account has been created. You can login with your email address at <a href=\"%s\">%s</a> with password %s - please change it as soon as possible."), $name." ".$surname,WEB_URL."/admin", WEB_URL."/admin", $pass);
$headers = "Content-Type: text/html; charset=utf-8 ".PHP_EOL;
$headers .= "MIME-Version: 1.0 ".PHP_EOL;
$headers .= "From: ".MAILER_NAME.' <'.MAILER_ADDRESS.'>'.PHP_EOL;
$headers .= "Reply-To: ".MAILER_NAME.' <'.MAILER_ADDRESS.'>'.PHP_EOL;
mail($to, $subject, $msg, $headers);
if (!INSTALL_OVERRIDE)
{
header("Location: ".WEB_URL."/admin/?do=settings");
}
}
else{
$message = _("Username or email already used");
}
}
else{
if (isset($messages)){
$message = "Please enter ".implode(", ", $messages);
return;
}
$name = $_POST['name'];
$surname = $_POST['surname'];
$username = $_POST['username'];
$email = $_POST['email'];
$pass = $_POST['password'];
if (!filter_var($email, FILTER_VALIDATE_EMAIL))
{
$message = "Invalid email!";
return;
}
$variables = array();
if (strlen($name)>50){
$variables[] = 'name: 50';
}
if (strlen($surname)>50){
$variables[] = 'surname: 50';
}
if (strlen($username)>50){
$variables[] = 'username: 50';
}
if (strlen($email)>60){
$variables[] = 'email: 60';
}
if (!empty($variables))
{
$message = _("Please mind the following character limits: ");
$message .= implode(", ", $variables);
return;
}
$salt = uniqid(mt_rand(), true);
$hash = hash('sha256', $pass.$salt);
$permission = $_POST['permission'];
$stmt = $mysqli->prepare("INSERT INTO users values (NULL, ?, ?, ?, ?, ?, ?, ?, 1)");
$stmt->bind_param("ssssssi", $email, $username, $name, $surname, $hash, $salt, $permission);
$stmt->execute();
if ($stmt->affected_rows==0)
{
$message = _("Username or email already used");
return;
}
$to = $email;
$subject = _('User account created').' - '.NAME;
$msg = sprintf(_("Hi %s!<br>"."Your account has been created. You can login with your email address at <a href=\"%s\">%s</a> with password %s - please change it as soon as possible."), $name." ".$surname,WEB_URL."/admin", WEB_URL."/admin", $pass);
$headers = "Content-Type: text/html; charset=utf-8 ".PHP_EOL;
$headers .= "MIME-Version: 1.0 ".PHP_EOL;
$headers .= "From: ".MAILER_NAME.' <'.MAILER_ADDRESS.'>'.PHP_EOL;
$headers .= "Reply-To: ".MAILER_NAME.' <'.MAILER_ADDRESS.'>'.PHP_EOL;
mail($to, $subject, $msg, $headers);
if (!INSTALL_OVERRIDE)
{
header("Location: ".WEB_URL."/admin/?do=settings");
}
}
else {
@ -215,55 +210,63 @@ class User
public static function login()
{
global $message, $mysqli;
if (isset($_POST['email']))
if (!isset($_POST['email']) && !isset($_POST['email']))
{
$email = $_POST['email'];
$pass = $_POST['pass'];
$stmt = $mysqli->prepare("SELECT id,password_salt as salt,active FROM users WHERE email=?");
$stmt->bind_param("s", $email);
$stmt->execute();
$query = $stmt->get_result();
if ($query->num_rows)
{
$result = $query->fetch_assoc();
$salt = $result["salt"];
$id = $result["id"];
$active = $result["active"];
if (!$active)
{
$message = _("Your account has been disabled. Please contact administrator.");
}
else
{
$hash = hash('sha256', $pass.$salt);
$stmt = $mysqli->prepare("SELECT count(*) as count FROM users WHERE id=? AND password_hash=?");
$stmt->bind_param("is", $id, $hash);
$stmt->execute();
$query = $stmt->get_result();
if (!$query->fetch_assoc()['count'])
{
$message = _("Wrong email or password");
}else
{
if (isset($_POST['remember'])&&$_POST['remember'])
{
$year = strtotime('+356 days', time());
$token = Token::add($id, 'remember', $year);
setcookie('token', $token, $year, "/");
setcookie('user', $id, $year, "/");
}
$_SESSION['user'] = $id;
header("Location: ".WEB_URL."/admin");
}
}
}
else{
$message = _("Wrong email or password");
}
return;
}
if ((!isset($_POST['email']) || !isset($_POST['email'])))
{
$message = _("Please fill in your email and password!");
return;
}
$email = $_POST['email'];
$pass = $_POST['pass'];
$stmt = $mysqli->prepare("SELECT id,password_salt as salt,active FROM users WHERE email=?");
$stmt->bind_param("s", $email);
$stmt->execute();
$query = $stmt->get_result();
if ($query->num_rows<1)
{
$message = _("Wrong email or password");
return;
}
$result = $query->fetch_assoc();
$salt = $result["salt"];
$id = $result["id"];
$active = $result["active"];
if (!$active)
{
$message = _("Your account has been disabled. Please contact administrator.");
return;
}
$hash = hash('sha256', $pass.$salt);
$stmt = $mysqli->prepare("SELECT count(*) as count FROM users WHERE id=? AND password_hash=?");
$stmt->bind_param("is", $id, $hash);
$stmt->execute();
$query = $stmt->get_result();
if (!$query->fetch_assoc()['count'])
{
$message = _("Wrong email or password");
return;
}
if (isset($_POST['remember'])&&$_POST['remember'])
{
$year = strtotime('+356 days', time());
$token = Token::add($id, 'remember', $year);
setcookie('token', $token, $year, "/");
setcookie('user', $id, $year, "/");
}
$_SESSION['user'] = $id;
header("Location: ".WEB_URL."/admin");
}
/**
@ -274,17 +277,18 @@ class User
*/
public static function restore_session()
{
global $mysqli, $message;
global $message;
$id = $_COOKIE['user'];
$token = $_COOKIE['token'];
$time = time();
if (Token::validate_token($token, $id, "remember"))
if (Token::validate($token, $id, "remember"))
{
$year = strtotime('+356 days', time());
unset($_COOKIE['token']);
$_SESSION['user'] = $id;
$token = Token::add($id, 'remember', $year);
setcookie('token', $token, $year);
$new_token = Token::add($id, 'remember', $year);
setcookie('token', $new_token, $year, "/");
setcookie('user', $id, $year, "/");
}
else
{
@ -305,29 +309,70 @@ class User
{
global $permissions, $user;
?>
<div class="row">
<div class="col-md-2 col-md-offset-2"><img src="https://www.gravatar.com/avatar/<?php echo md5( strtolower( trim( $this->email ) ) );?>" alt="<?php echo _("Profile picture");?>"></div>
<div class="col-md-6"><h3><?php echo $this->name." ".$this->surname;?></h3></div>
</div>
<div class="row">
<div class="col-md-2 col-md-offset-2"><strong><?php echo _("ID");?></strong></div>
<div class="col-md-6"><?php echo $this->id; ?></div>
</div>
<div class="row">
<div class="col-md-2 col-md-offset-2"><strong><?php echo _("Username");?></strong></div>
<div class="col-md-6"><?php echo $this->username." "; if ($this->id!=$_SESSION['user'] && $user->get_rank()<=1 && ($user->get_rank()<$this->rank))
{
echo "<a href='".WEB_URL."/admin/?do=user&id=".$this->id."&what=toggle'>";
echo "<i class='fa fa-".($this->active?"check success":"times danger")."'></i></a>";
}else{
echo "<i class='fa fa-".($this->active?"check success":"times danger")."'></i>";
}?></div>
<div class="row user">
<div class="col-md-2 col-md-offset-2"><img src="https://www.gravatar.com/avatar/<?php echo md5( strtolower( trim( $this->email ) ) );?>?s=160"
alt="<?php echo _("Profile picture");?>"></div>
<div class="col-md-6">
<?php if($this->id==$_SESSION['user']||$user->get_rank()<1){
?>
<form action="<?php echo WEB_URL;?>/admin/?do=user&amp;id=<?php echo $this->id; ?>" method="POST">
<div class="input-group">
<div class="col-md-12">
<div class="row">
<label class="form-name" for="name"><?php echo _("Name"); ?></label>
<label class="form-name" for="surname"><?php echo _("Surname"); ?></label>
</div>
<div class="row">
<input type="text" name="name" placeholder="<?php echo _("Name"); ?>"
title="<?php echo _("Name"); ?>" class="form-control form-name"
value=<?php echo htmlspecialchars($this->name, ENT_QUOTES);?>>
<input type="text" name="surname" placeholder="<?php echo _("Surname"); ?>"
title="<?php echo _("Surname"); ?>" class="form-control form-name"
value=<?php echo htmlspecialchars($this->surname, ENT_QUOTES);?>>
</div>
</div>
</div>
<div class="input-group">
<button type="submit" class="btn btn-primary pull-right"><?php echo _("Change name");?></button>
</div>
</form>
<?php
}else{
?>
<h3><?php echo $this->name." ".$this->surname;?></h3>
<?php
}?>
</div>
</div>
<form action="<?php echo WEB_URL;?>/admin/?do=user&amp;id=<?php echo $this->id; ?>" method="POST">
<div class="row user">
<div class="col-md-2 col-md-offset-2"><strong><?php echo _("Username");?></strong></div>
<div class="col-md-6">
<?php
if ($this->id==$_SESSION['user'] || $user->get_rank()<1){?>
<div class="input-group">
<input type="text" class="form-control" name="username" required value="<?php echo htmlspecialchars($this->username, ENT_QUOTES);?>">
<span class="input-group-btn">
<button type="submit" class="btn btn-primary pull-right"><?php echo _("Change username");?></button>
</span>
</div>
<?php
}else{?><?php echo $this->username." ";
if ($user->get_rank()>=1){
echo "<i class='fa fa-".($this->active?"check success":"times danger")."'></i>";
}
}
?>
</div>
</div>
</form>
<form action="<?php echo WEB_URL;?>/admin/?do=user&id=<?php echo $this->id; ?>" method="POST">
<div class="row">
<div class="row user">
<div class="col-md-2 col-md-offset-2"><strong><?php echo _("Role");?></strong></div>
<div class="col-md-6"><?php if ($user->get_rank() == 0 && $this->id != $_SESSION['user']){?> <div class="input-group"><select class="form-control" name="permission"><?php foreach ($permissions as $key => $value) {
<div class="col-md-6"><?php if ($user->get_rank() == 0 && $this->id != $_SESSION['user']){?>
<div class="input-group"><select class="form-control" name="permission">
<?php foreach ($permissions as $key => $value) {
echo "<option value='$key' ".($key==$this->rank?"selected":"").">$value</option>";
} ?>
</select><span class="input-group-btn">
@ -337,10 +382,10 @@ class User
</div>
</form>
<?php if($this->id==$_SESSION['user'])
<?php if($this->id==$_SESSION['user']||$user->get_rank()<1)
{?>
<form action="<?php echo WEB_URL;?>/admin/?do=user" method="POST">
<div class="row">
<form action="<?php echo WEB_URL;?>/admin/?do=user&amp;id=<?php echo $this->id; ?>" method="POST">
<div class="row user">
<div class="col-md-2 col-md-offset-2"><strong>Email</strong></div>
<div class="col-md-6">
<div class="input-group">
@ -352,6 +397,21 @@ class User
</div>
</div>
</form>
<?php }else
{
?>
<div class="row user">
<div class="col-md-2 col-md-offset-2"><strong><?php echo _("Email");?></strong></div>
<div class="col-md-6">
<a href="mailto:<?php echo $this->email; ?>"><?php echo $this->email; ?></a>
</div>
</div>
<?php
}
if($this->id==$_SESSION['user']){
?>
<form action="<?php echo WEB_URL;?>/admin/?do=user" method="POST">
<div class="row">
<div class="col-md-2 col-md-offset-2"><strong><?php echo _("Password");?></strong></div>
@ -368,17 +428,7 @@ class User
</form>
<?php
}
else
{
?>
<div class="row">
<div class="col-md-2 col-md-offset-2"><strong><?php echo _("Email");?></strong></div>
<div class="col-md-6">
<a href="mailto:<?php echo $this->email; ?>"><?php echo $this->email; ?></a>
</div>
</div>
<?php
}
if ($this->id!=$_SESSION['user'] && $user->get_rank()<=1 && ($user->get_rank()<$this->rank))
{?>
<div class="row">
@ -396,6 +446,71 @@ class User
<?php }
}
/**
* Changes username of user by POST[ID].
* @return void
*/
public function change_username()
{
global $mysqli, $message, $user;
$id = $this->id;
$stmt = $mysqli->prepare("SELECT count(*) FROM users WHERE username LIKE ?");
$stmt->bind_param("s",$_POST["username"]);
$stmt->execute();
if ($stmt->num_rows > 0)
{
$message = _("This username is already taken.");
return;
}
$stmt->close();
if ($_SESSION['user'] != $id && $user->get_rank()>0)
{
$message = _("Cannot change username of other users!");
}else{
$stmt = $mysqli->prepare("UPDATE users SET username = ? WHERE id=?");
$stmt->bind_param("si",$_POST["username"],$id);
$stmt->execute();
$stmt->close();
header("Location: ".WEB_URL."/admin/?do=user&id=".$id);
}
}
/**
* Changes name and surname of user by POST[ID].
* @return void
*/
public function change_name()
{
global $mysqli, $message, $user;
if (strlen(trim($_POST['name']))==0) {
$messages[] = _("Name");
}
if(strlen(trim($_POST['surname']))==0) {
$messages[] = _("Surname");
}
if (!empty($messages))
{
$message = "Please enter ".implode(", ", $messages);
return;
}
$id = $this->id;
if ($_SESSION['user'] != $id && $user->get_rank()>0)
{
$message = _("Cannot change names of other users!");
}else{
$stmt = $mysqli->prepare("UPDATE users SET `name` = ?, `surname` = ? WHERE id=?");
$stmt->bind_param("ssi",$_POST["name"],$_POST["surname"],$id);
$stmt->execute();
$stmt->close();
header("Location: ".WEB_URL."/admin/?do=user&id=".$id);
}
}
/**
* Changes user password and deletes all remember tokens so all other sessions
* won't stay logged in without knowing new pass. Uses token when reseting password.
@ -404,78 +519,82 @@ class User
*/
public function change_password($token = false)
{
global $mysqli, $user, $message;
$time = time();
global $mysqli, $message;
$id = $this->id;
if ($_POST['password']!=$_POST['password_repeat'])
{
$message = _("Passwords do not match!");
}else{
if (!$token)
return;
}
if (!$token)
{
if ($_SESSION['user']!=$id)
{
if ($_SESSION['user']!=$id)
{
$message = _("Cannot change password of other users!");
}else{
$stmt = $mysqli->prepare("SELECT password_salt as salt FROM users WHERE id=?");
$stmt->bind_param("i", $id);
$stmt->execute();
$query = $stmt->get_result();
$result = $query->fetch_assoc();
$salt = $result['salt'];
$pass = $_POST['old_password'];
$hash = hash('sha256', $pass.$salt);
$stmt = $mysqli->prepare("SELECT count(*) as count FROM users WHERE id=? AND password_hash = ?");
$stmt->bind_param("is", $id, $hash);
$stmt->execute();
if ($stmt->get_result()->fetch_assoc()['count'])
{
$pass = $_POST['password'];
$hash = hash('sha256', $pass.$salt);
$stmt = $mysqli->prepare("UPDATE users SET password_hash = ? WHERE id=?");
$stmt->bind_param("si", $hash, $id);
$stmt->execute();
$stmt->close();
$stmt = $mysqli->prepare("DELETE FROM tokens WHERE user = ? AND data = 'remember'");
$stmt->bind_param("d", $id);
$stmt->execute();
$query = $stmt->get_result();
User::logout();
}
else{
$message = _("Wrong password!");
}
}
$message = _("Cannot change password of other users!");
}else{
if (Token::validate_token($token, $id, "passwd"))
$stmt = $mysqli->prepare("SELECT password_salt as salt FROM users WHERE id=?");
$stmt->bind_param("i", $id);
$stmt->execute();
$query = $stmt->get_result();
$result = $query->fetch_assoc();
$salt = $result['salt'];
$pass = $_POST['old_password'];
$hash = hash('sha256', $pass.$salt);
$stmt = $mysqli->prepare("SELECT count(*) as count FROM users WHERE id=? AND password_hash = ?");
$stmt->bind_param("is", $id, $hash);
$stmt->execute();
if ($stmt->get_result()->fetch_assoc()['count'])
{
$stmt = $mysqli->prepare("SELECT password_salt as salt FROM users WHERE id=?");
$stmt->bind_param("i", $id);
$stmt->execute();
$query = $stmt->get_result();
$result = $query->fetch_assoc();
$salt = $result['salt'];
$pass = $_POST['password'];
$hash = hash('sha256', $pass.$salt);
$stmt = $mysqli->prepare("UPDATE users SET password_hash = ? WHERE id=?");
$stmt->bind_param("si", $hash,$id);
$stmt->bind_param("si", $hash, $id);
$stmt->execute();
$stmt->close();
$stmt = $mysqli->prepare("DELETE FROM tokens WHERE user = ? AND data = 'remember'");
$stmt->bind_param("d", $id);
$stmt->execute();
$query = $stmt->get_result();
}
else
{
$message = _("Invalid token detected, please retry your request from start!");
}
Token::delete($token);
$stmt = $mysqli->prepare("DELETE FROM tokens WHERE user = ? AND data = 'remember'");
$stmt->bind_param("d", $id);
$stmt->execute();
$stmt->get_result();
User::logout();
}
else{
$message = _("Wrong password!");
}
}
}else{
if (Token::validate($token, $id, "passwd"))
{
$stmt = $mysqli->prepare("SELECT password_salt as salt FROM users WHERE id=?");
$stmt->bind_param("i", $id);
$stmt->execute();
$query = $stmt->get_result();
$result = $query->fetch_assoc();
$salt = $result['salt'];
$pass = $_POST['password'];
$hash = hash('sha256', $pass.$salt);
$stmt = $mysqli->prepare("UPDATE users SET password_hash = ? WHERE id=?");
$stmt->bind_param("si", $hash,$id);
$stmt->execute();
$stmt->close();
$stmt = $mysqli->prepare("DELETE FROM tokens WHERE user = ? AND data = 'remember'");
$stmt->bind_param("d", $id);
$stmt->execute();
$stmt->get_result();
}
else
{
$message = _("Invalid token detected, please retry your request from start!");
}
Token::delete($token);
}
}
@ -516,13 +635,24 @@ class User
* @return void
*/
public function email_link(){
global $mysqli;
global $user, $mysqli;
$email = $_POST['email'];
$time = strtotime('+1 day', time());
$id = $this->id;
$token = Token::add($id, 'email;$email', $time);
if ($user->get_rank()<1 && $id!=$_SESSION['user'])
{
$stmt = $mysqli->prepare("UPDATE users SET email = ? WHERE id=?");
$stmt->bind_param("sd", $email, $id);
$stmt->execute();
$stmt->get_result();
header("Location: ".WEB_URL."/admin/?do=user&id=".$id);
return;
}
$time = strtotime('+1 day', time());
$token = Token::add($id, 'email;$email', $time);
$link = WEB_URL."/admin/?do=change-email&id=$id&token=$token";
$to = $email;
@ -534,6 +664,7 @@ class User
$headers .= "Reply-To: ".MAILER_NAME.' <'.MAILER_ADDRESS.'>'.PHP_EOL;
mail($to, $subject, $msg, $headers);
return _('Confirmation email sent!');
}
/**
@ -543,20 +674,19 @@ class User
public function change_email()
{
global $mysqli, $message;
$time = time();
$token = $_GET['token'];
$id = $_GET['id'];
if (Token::validate_token($token, $id, "email;%"))
if (Token::validate($token, $id, "email;%"))
{
$data = explode(";", $result['data']);
$data = explode(";", Token::get_data($token, $id));
$email = $data[1];
$stmt = $mysqli->prepare("UPDATE users SET email = ? WHERE id=?");
$stmt->bind_param("sd", $email, $id);
$stmt->execute();
$query = $stmt->get_result();
$stmt->get_result();
Token::delete($token);
header("Location: ".WEB_URL."/admin/");
}
@ -574,12 +704,10 @@ class User
* @return void
*/
public static function logout(){
global $mysqli;
session_unset();
if (isset($_COOKIE['token']))
{
$token = $_COOKIE['token'];
$time = time();
Token::delete($token);
unset($_COOKIE['user']);
unset($_COOKIE['token']);

View File

@ -1,15 +1,45 @@
<?php
//This is config file, please be careful
/**************************************************************************************/
// SERVER STATUS CONFIG FILE TEMPLATE
// THIS FILE IS FOR CREATING YOUR CONFIG MANUALLY
// !!!!!!!IMPORTANT NOTE!!!!!!!!!
// You will need to create your htaccess or web.config file yourself if you use this template
// Please head to http(s)://yourdomain.com/create-server-config.php
// Wait until script finishes.
// Then delete it from your document root.
// If you don't want to allow php to access your root directory or if you have permission
// issues please follow the steps below.
// --------------------------
// FOR IIS:
// Rename IISWebConfig to web.config
// FOR Apache and Nginx
// Rename ApacheHtaccess to .htaccess
// --------------------------
// Contributors:
// Vojtěch Sajdl - Yigit Kerem Oktay - Thomas Nilsen - jhuesser
/**************************************************************************************/
session_start();
//You can change these:
define("NAME", '##name##'); //Website name
define("TITLE", "##title##");
define("WEB_URL", "##url##"); //Used for links
define("MAILER_NAME", "##mailer##"); //Mailer name
define("MAILER_ADDRESS", "##mailer_email##"); //Mailer address
//Start editing here
//define("NAME", "##name##"); //Website name
//define("TITLE", "##title##");
//define("WEB_URL", "##url##"); //Used for links
//define("MAILER_NAME", "##mailer##"); //Mailer name
//define("MAILER_ADDRESS", "##mailer_email##"); //Mailer address
define("POLICY_NAME", "##policy_name##"); //name for contact in policy
define("ADDRESS", "##address##");
define("POLICY_MAIL", "##policy_mail##"); //contact email in policy
define("POLICY_PHONE", "##policy_phone##");
define("WHO_WE_ARE","##who_we_are##");
define("POLICY_URL","##policy_url##");
define("INSTALL_OVERRIDE", false);
define("DEFAULT_LANGUAGE", "en_GB");
define("CUSTOM_LOGO_URL",""); // This will use the default logo if left empty
define("COPYRIGHT_TEXT",""); // Leave this empty if you don't want your copyright displayed
// Without COPYRIGHT_TEXT Set
// 2020 Server Status Project Contributors
// With COPYRIGHT_TEXT Set
// 2020 Server Status Project Contributors and COPYRIGHT_TEXT
//Stop editing
require("classes/locale-negotiator.php");
$negotiator = new LocaleNegotiator(DEFAULT_LANGUAGE);
@ -21,10 +51,11 @@ if (!isset($_SESSION['locale'])||isset($_GET['lang']))
$_SESSION['locale'] = $best_match;
}
putenv('LANGUAGE='.$_SESSION['locale'].'.UTF-8');
setlocale(LC_ALL, $_SESSION['locale'].".UTF-8");
setlocale(LC_MESSAGES, $_SESSION['locale'].".UTF-8");
bindtextdomain("server-status", __DIR__ . "/locale/");
bind_textdomain_codeset("server-status", "utf-8");
bind_textdomain_codeset("server-status", "utf-8");
textdomain("server-status");
//Database connection
@ -36,11 +67,3 @@ if ($mysqli->connect_errno) {
}
$mysqli->set_charset("utf8");
//This should later be translatable, maybe find a better solution?
$statuses = array(_("Major outage"), _("Minor outage"), _("Planned maintenance"), _("Operational") );
$classes = array("danger", "warning", "primary", "success" );
$icons = array("fa fa-times", "fa fa-exclamation", "fa fa-info", "fa fa-check" );
$some = array(_("Some systems are experiencing major outages"), _("Some systems are experiencing minor outages"), _("Some systems are under maintenance"));
$all = array(_("Our systems are experiencing major outages."), _("Our systems are experiencing minor outages"), _("Our systems are under maintenance"), _("All systems operational"));
$permissions = array(_("Super admin"), _("Admin"), _("Editor"));

23
create-server-config.php Normal file
View File

@ -0,0 +1,23 @@
<?php
/********************************************************************/
// create-server-config.php
// Created by Yigit Kerem Oktay
// This file generates a .htaccess file that contains all necessary
// code for it.
// This is needed because some hosts do not either unzip hidden files
// or neither GitHub puts that file inside the zips.
/********************************************************************/
if(stripos($_SERVER['SERVER_SOFTWARE'],'apache')!== false){
$f = fopen(".htaccess", "a+");
$f2 = fopen("ApacheHtaccess","r");
fwrite($f, fread($f2, filesize("ApacheHtaccess")));
fclose($f);
fclose($f2);
} else {
$f = fopen("web.config", "a+");
$f2 = fopen("IISWebConfig","r");
fwrite($f, fread($f2, filesize("IISWebConfig")));
fclose($f);
fclose($f2);
}
?>

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
/* jQuery Growl
* Copyright 2015 Kevin Sylvestre
* 1.3.3
* 1.3.5
*/
.ontop, #growls-default, #growls-tl, #growls-tr, #growls-bl, #growls-br, #growls-tc, #growls-bc, #growls-cc, #growls-cl, #growls-cr {
z-index: 50000;

View File

@ -1,39 +1,44 @@
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400&subset=cyrillic,cyrillic-ext,greek,greek-ext,latin-ext,vietnamese');
@import url('https://fonts.googleapis.com/css?family=Fira+Sans:400,700&subset=cyrillic,cyrillic-ext,greek,greek-ext,latin-ext,vietnamese');
body {
background: #ffffff;
margin: 0;
height: 100%;
line-height: 24px;
font-family: 'Open Sans', sans-serif;
body {
background: #ffffff;
margin: 0;
margin-top: 80px;
height: 100%;
line-height: 24px;
font-family: 'Open Sans', sans-serif;
}
img {
height: auto;
max-width: 100%;
height: auto;
max-width: 100%;
}
a {
padding: 0;
margin: 0;
text-decoration: none;
a {
padding: 0;
margin: 0;
text-decoration: none;
}
a:hover,
a:focus {
text-decoration: none;
color:#3566a8;
color:#f5f4f4;
}
a.desc-tool-tip, a.desc-tool-tip:hover, a.desc-tool-tip:visited {
color: grey;
}
.centered {
text-align: center
text-align: center
}
.navbar {
padding-top: 5px;
margin-bottom: 0px;
padding-top: 5px;
margin-bottom: 0px;
}
.navbar-brand {
@ -42,36 +47,32 @@ a:focus {
.navbar-default .navbar-nav > li > a {
color: #f5f4f4;
font-size: 1em;
color: #f5f4f4;
font-size: 1em;
}
.navbar-default .navbar-nav > li > a:hover {
color: #a7a7a7;
color: #a7a7a7;
}
.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus {
color: #ffffff;
background-color: transparent;
color: #f5f4f4;
background-color: transparent;
}
.navbar-collapse
{
background: #2f60a3;
background: gray;
}
.navbar-default {
z-index: 200;
background-color: #2f60a3;
border-color: transparent;
border-radius: 0px;
z-index: 200;
background-color: gray;
border-color: transparent;
border-radius: 0px 0px 30px 30px;
height: 77px;
position: fixed;
top: 0;
width: 100%;
}
body {
min-height: 100vh;
height: 100vh;
}
.admins_color h4 {
color: #3a72bd;
font-weight: bold;
@ -93,7 +94,7 @@ div.center {
#wrapper
{
max-width: 900px;
max-width: 1024px;
min-height: calc(100vh - 157px);
padding-right: 15px;
padding-left: 15px
@ -132,7 +133,7 @@ body a h1{
.status{
float: right;
box-sizing: border-box;
padding: 15px 35px;
padding: 0px 35px;
text-align: right;
font-size: 1.05em;
font-family: 'Fira Sans', sans-serif;
@ -160,7 +161,7 @@ body a h1{
.navbar-header .btn
{
margin-top: 15px;
margin-top: 15px;
margin-right: 10px
}
@ -243,11 +244,11 @@ body a h1{
border-left-color: transparent;
}
.timeline .panel .panel-heading.icon * {
.timeline .panel .panel-heading.icon * {
/*This shouldn't be relative in size...*/
font-size: 20px;
vertical-align: middle;
line-height: 40px;
font-size: 20px;
vertical-align: middle;
line-height: 40px;
}
.timeline .panel .panel-heading.icon {
position: absolute;
@ -296,10 +297,11 @@ body a h1{
/* Footer */
#footerwrap {
border-radius: 30px 30px 0px 0px;
min-height: 60px;
padding-top: 15px;
padding-bottom: 10px;
background: #2f60a3;
background: gray;
}
#footerwrap a{
@ -341,8 +343,8 @@ body a h1{
}
@media (max-width: 991px) {
#footerwrap .col-md-8, #footerwrap .col-md-4 {
text-align: center !important;
body #footerwrap .col-md-8, #footerwrap .col-md-4 {
text-align: center;
}
}
@ -564,7 +566,7 @@ i.danger{
}
#footerwrap .dropdown-menu{
background: #337ab7
background: gray;
}
#footerwrap .dropdown-menu a{
@ -573,7 +575,7 @@ i.danger{
padding: 2px 5px;
display: block;
transition: 125ms ease-in-out background-color;
background-color: #337ab7
background-color: gray;
}
#footerwrap .dropdown-menu a:hover{
@ -599,4 +601,85 @@ i.danger{
body .h1,body .h2,body .h3,body h1,body h2,body h3 {
margin-top: 18px;
}
}
.row.user .input-group
{
width: 100%;
margin-bottom: 5px
}
.row.user .form-name{
width: 50%;
float: left;
}
label.form-name
{
line-height: 20px
}
.panel .panel-footer .label{
display: inline-block;
}
/* The switch - the box around the slider */
.switch {
position: relative;
display: inline-block;
width: 60px;
height: 34px;
}
/* Hide default HTML checkbox */
.switch input {
opacity: 0;
width: 0;
height: 0;
}
/* The slider */
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 26px;
width: 26px;
left: 4px;
bottom: 4px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .slider {
background-color: #2196F3;
}
input:focus + .slider {
box-shadow: 0 0 1px #2196F3;
}
input:checked + .slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}
/* Rounded sliders */
.slider.round {
border-radius: 34px;
}
.slider.round:before {
border-radius: 50%;
}

219
email_subscriptions.php Normal file
View File

@ -0,0 +1,219 @@
<?php
require_once("template.php");
require_once("config.php");
require_once("classes/constellation.php");
require_once("classes/subscriber.php");
require_once("classes/subscriptions.php");
require_once("classes/mailer.php");
//require_once("libs/php_idn/idna.php");
require_once("classes/db-class.php");
$db = new SSDB();
define("NAME", $db->getSetting($mysqli,"name"));
define("TITLE", $db->getSetting($mysqli,"title"));
define("WEB_URL", $db->getSetting($mysqli,"url"));
define("MAILER_NAME", $db->getSetting($mysqli,"mailer"));
define("MAILER_ADDRESS", $db->getSetting($mysqli,"mailer_email"));
define("GOOGLE_RECAPTCHA", $db->getBooleanSetting($mysqli, "google_recaptcha"));
//define("", $db->getSettings($mysqli, ""));
define("GOOGLE_RECAPTCHA_SECRET", $db->getSetting($mysqli, "google_recaptcha_secret"));
define("GOOGLE_RECAPTCHA_SITEKEY", $db->getSetting($mysqli, "google_recaptcha_sitekey"));
define("SUBSCRIBE_EMAIL", $db->getBooleanSetting($mysqli, "subscribe_email"));
define("SUBSCRIBE_TELEGRAM", $db->getBooleanSetting($mysqli, "subscribe_telegram"));
define("TG_BOT_USERNAME", $db->getSetting($mysqli, "tg_bot_username"));
define("TG_BOT_API_TOKEN", $db->getSetting($mysqli, "tg_bot_api_token"));
define("PHP_MAILER", $db->getBooleanSetting($mysqli, "php_mailer"));
define("PHP_MAILER_SMTP", $db->getBooleanSetting($mysqli, "php_mailer_smtp"));
define("PHP_MAILER_PATH", $db->getSetting($mysqli, "php_mailer_path"));
define("PHP_MAILER_HOST", $db->getSetting($mysqli, "php_mailer_host"));
define("PHP_MAILER_PORT", $db->getSetting($mysqli, "php_mailer_port"));
define("PHP_MAILER_SECURE", $db->getBooleanSetting($mysqli, "php_mailer_secure"));
define("PHP_MAILER_USER", $db->getSetting($mysqli, "php_mailer_user"));
define("PHP_MAILER_PASS", $db->getSetting($mysqli, "php_mailer_pass"));
$mailer = new Mailer();
$subscriber = new Subscriber();
$subscription = new Subscriptions();
$boolRegistered = false;
if ( isset($_GET['new']) ) {
// Form validation for subscribers signing up
$message = "";
Template :: render_header(_("Email Subscription"));
if (isset($_POST['emailaddress'])) {
if (0 == strlen(trim($_POST['emailaddress']))){
$messages[] = _("Email address");
}
// Perform DNS domain validation on
if ( ! $mailer->verify_domain($_POST['emailaddress']) ) {
$messages[] = _("Domain does not apper to be a valid email domain. (Check MX record)");
}
if (GOOGLE_RECAPTCHA) {
// Validate recaptcha
$response = $_POST["g-recaptcha-response"];
$url = 'https://www.google.com/recaptcha/api/siteverify';
$data = array(
'secret' => GOOGLE_RECAPTCHA_SECRET,
'response' => $_POST["g-recaptcha-response"]
);
$options = array(
'http' => array (
'header' => 'Content-Type: application/x-www-form-urlencoded\r\n',
'method' => 'POST',
'content' => http_build_query($data)
)
);
$context = stream_context_create($options);
$verify = file_get_contents($url, false, $context);
$captcha_success = json_decode($verify);
if ( $captcha_success->success==false ) {
$messages[] = _("reChaptcha validation failed");
}
}
if ( isset($messages) ) {
$message = _("Please check<br>");
$message .= implode("<br> ", $messages);
}
}
if(isset($_POST['emailaddress']) && empty($message))
{
// Check if email is already registered
$boolUserExist = false;
$subscriber->userID = $_POST['emailaddress'];
$subscriber->typeID = 2; // Email
$boolUserExist = $subscriber->check_userid_exist();
$url = WEB_URL."/index.php?do=manage&token=".$subscriber->token;
if ( ! $boolUserExist ) {
// Create a new subscriber as it does not exist
$subscriber->add($subscriber->typeID, $_POST['emailaddress']);
$url = WEB_URL."/index.php?do=manage&token=".$subscriber->token; // Needed again after adding subscriber since token did not exist before add
$msg = sprintf(_("Thank you for registering to receive status updates via email.</br></br> Click on the following link to confirm and manage your subcription: <a href=\"%s\">%s</a>. New subscriptions must be confirmed within 2 hours"), $url, NAME .' - ' . _("Validate subscription"));
} else {
if ( ! $subscriber->active ) {
// Subscriber is registered, but has not been activated yet...
$msg = sprintf(_("Thank you for registering to receive status updates via email.</br></br> Click on the following link to confirm and manage your subcription: <a href=\"%s\">%s</a>. New subscriptions must be confirmed within 2 hours"), $url, NAME .' - ' . _("Validate subscription"));
$subscriber->activate($subscriber->id);
} else {
// subscriber is registered and active
$msg = sprintf(_("Click on the following link to update your existing subscription: <a href=\"%s\">%s</a>"), $url, NAME .' - ' . _("Manage subscription"));
$subscriber->update($subscriber->id);
}
}
// Show success message
$header = _("Thank you for subscribing");
$message = _("You will receive an email shortly with an activation link. Please click on the link to activate and/or manage your subscription.");
$constellation->render_success($header, $message, true, WEB_URL, _('Go back'));
// Send email about new registration
$subject = _('Email subscription registered').' - '.NAME;
$mailer->send_mail($_POST['emailaddress'], $subject, $msg);
$boolRegistered = true;
}
// Add a new email subscriber - display form
if ( isset($_GET['new']) && (! $boolRegistered) ) {
if (!empty($message)) {
echo '<p class="alert alert-danger">'.$message.'</p>';
}
$strPostedEmail = (isset($_POST['emailaddress'])) ? $_POST['emailaddress'] : "";
?>
<form method="post" action="index.php?do=email_subscription&new=1" class="clearfix" enctype="multipart/form-data" >
<h3><?php echo _('Subscribe to get email notifications on status updates');?></h3>
<div class="form-group clearfix">
<label for="labelEmailAddress"><?php echo _('Email address');?></label>
<input type="email" class="form-control" name="emailaddress" id="emailaddress" aria-describedby="emailHelp" placeholder="<?php echo _('Enter email address');?>" value="<?php echo $strPostedEmail;?>" required>
</div>
<?php if (GOOGLE_RECAPTCHA) {?>
<div class="col-md-12">
<div class="form-group">
<div class="captcha_wrapper">
<div class="g-recaptcha" data-sitekey="<?php echo GOOGLE_RECAPTCHA_SITEKEY;?>"></div>
</div>
</div>
</div>
<?php } ?>
<summary>
<?php
$msg = sprintf(_('By subscribing to recieve notifications you are agreeing to our <a href="%s">Privacy Policy</a>'), POLICY_URL);
echo $msg;
?>
</summary>
<div class="form-group form-check">
</div>
<a href="<?php echo WEB_URL;?>" id="cancel" name="cancel" class="btn btn-default"><?php echo _('Close');?></a>
<button type="submit" class="btn btn-primary"><?php echo _('Subscribe');?></button>
</form>
<?php
}
/* Handle management and activation of email subscriptions */
} else if (isset($_GET['do']) && $_GET['do'] == 'manage') {
// check if userid/token combo is valid, active or expired
$subscriber->typeID = 2; //EMAIL
if ( $subscriber->is_active_subscriber($_GET['token']) ) {
// forward user to subscriber list....
$subscriber->set_logged_in();
header('Location: subscriptions.php');
exit;
} else {
Template :: render_header(_("Email Subscription"));
$header = _("We cannot find a valid subscriber account matching those details");
$message = _("If you have recently subscribed, please make sure you activate the account within two hours of doing so. You are welcome to try and re-subscribe.");
$constellation->render_warning($header, $message, true, WEB_URL, _('Go back'));
}
} else if (isset($_GET['do']) && $_GET['do'] == 'unsubscribe') {
// Handle unsubscriptions
// TODO This function is universal and should probably live elsewhere??
if (isset($_GET['token'])) {
$subscriber->typeID = (int) $_GET['type'];
if ( $subscriber->get_subscriber_by_token($_GET['token'])) {
$subscriber->delete($subscriber->id);
$subscriber->set_logged_off();
Template :: render_header(_("Email Subscription"));
$header = _("You have been unsubscribed from our system");
$message = _("We are sorry to see you go. If you want to subscribe again at a later date please feel free to re-subscribe.");
$constellation->render_success($header, $message, true, WEB_URL, _('Go back'));
} else {
// TODO Log token for troubleshooting ?
// Cannot find subscriber - show alert
Template :: render_header(_("Email Subscription"));
$header = _("We are unable to find any valid subscriber detail matching your submitted data!");
$message = _("If you believe this to be an error, please contact the system admininistrator.");
$constellation->render_warning($header, $message, true, WEB_URL, _('Go back'));
//
}
} else {
// TODO Log $_GET[] for troubleshooting ?
$header = _("We are unable to find any valid subscriber detail matching your submitted data!");
$message = _("If you believe this to be an error, please contact the system admininistrator.");
$constellation->render_warning($header, $message, true, WEB_URL, _('Go back'));
}
}
Template :: render_footer();

1
head.txt Normal file
View File

@ -0,0 +1 @@
<!-- Add any code just after head element -->

View File

@ -1,15 +1,53 @@
<?php
require_once("template.php");
require_once("libs/parsedown/Parsedown.php");
if (!file_exists("config.php"))
{
require_once("template.php");
require_once("install.php");
}
else{
} elseif(isset($_GET['do'])) { // we can add other actions with $_GET['do'] later.
// Fix for translation via _(). We need config.php first...
require_once("config.php");
require_once("template.php");
switch ($_GET['do']) {
case 'subscriptions':
require_once("subscriptions.php");
break;
case 'email_subscription':
case 'manage':
case 'unsubscribe';
require_once("email_subscriptions.php");
break;
default:
// TODO : How to handle url invalid/unknown [do] commands
header('Location: index.php');
break;
}
} else {
require_once("config.php");
require_once("template.php");
require_once("classes/constellation.php");
require_once("classes/db-class.php");
$db = new SSDB();
define("NAME", $db->getSetting($mysqli,"name"));
define("TITLE", $db->getSetting($mysqli,"title"));
define("WEB_URL", $db->getSetting($mysqli,"url"));
define("MAILER_NAME", $db->getSetting($mysqli,"mailer"));
define("MAILER_ADDRESS", $db->getSetting($mysqli,"mailer_email"));
define("SUBSCRIBE_EMAIL", $db->getBooleanSetting($mysqli,"subscribe_email"));
define("SUBSCRIBE_TELEGRAM", $db->getBooleanSetting($mysqli,"subscribe_telegram"));
define("TG_BOT_USERNAME", $db->getSetting($mysqli,"tg_bot_username"));
define("TG_BOT_API_TOKEN", $db->getSetting($mysqli,"tg_bot_api_token"));
define("GOOGLE_RECAPTCHA", $db->getBooleanSetting($mysqli,"google_recaptcha"));
define("GOOGLE_RECAPTCHA_SITEKEY", $db->getSetting($mysqli,"google_recaptcha_sitekey"));
define("GOOGLE_RECAPTCHA_SECRET", $db->getSetting($mysqli,"google_recaptcha_secret"));
$offset = 0;
if (isset($_GET['ajax']))
@ -21,17 +59,50 @@ if (isset($_GET['ajax']))
$offset = $_GET['offset'];
}
if (isset($_GET['subscriber_logout'])){
setcookie('tg_user', '');
setcookie('referer', '', time() - 3600);
$_SESSION['subscriber_valid'] = false;
unset($_SESSION['subscriber_userid']);
unset($_SESSION['subscriber_typeid']);
unset($_SESSION['subscriber_id']);
header('Location: index.php');
}
/*
$versionfile = fopen("versionfile", "r") or die("Unable to open version file!");
$appversion = fread($versionfile,filesize("versionfile"));
fclose($versionfile);
if($db->getSetting($mysqli,"dbConfigVersion") != trim($appversion)){
die("Database needs to be updated. Please update the database and try again. App Version: '".$appversion."' DB Settings Version: '".$db->getSetting($mysqli,"dbConfigVersion")."'.");
}
$useedf = fopen("updateseed", "r") or die("Unable to open updateseed file!");
$useed = fread($useedf,filesize("updateseed"));
fclose($useedf);
if(trim($useed) == "stable"){
$remoteversion = file_get_contents("https://skyfallenhosted.ml/serverstatus/versionauthority/stable/version");
$remotedl = file_get_contents("https://skyfallenhosted.ml/serverstatus/versionauthority/stable/dl");
}
if(trim($useed) == "beta"){
$remoteversion = file_get_contents("https://skyfallenhosted.ml/serverstatus/versionauthority/beta/version");
$remotedl = file_get_contents("https://skyfallenhosted.ml/serverstatus/versionauthority/beta/dl");
}
if($db->getSetting($mysqli,"notifyUpdates") == "yes"){
if(trim($remoteversion) != trim($appversion)){
die("Your installation is not upp to date! Download the new update from: '".$remotedl."' Your version is:'".$appversion."' Remote Authority Version is:'".$remoteversion."' Your Update Seed is:'".$useed."' Remote Package Authority is Skyfallen. <br>If you cannot access Remote Authority, please check status.theskyfallen.com and skyfallenhosted.ml manually.");
}
}
*/
Template::render_header("Status");
?>
<div class="text-center">
<h2><?php echo _("Current status");?></h2>
</div>
<div id="current">
<?php $constellation->render_status();?>
<?php $constellation->render_status();?>
</div>
<?php if ($mysqli->query("SELECT count(*) FROM status")->num_rows)
{
{
?>
<div id="timeline">
<div class="item">
@ -44,7 +115,7 @@ Template::render_header("Status");
</div>
</div>
</div>
<?php }
<?php }
Template::render_footer();
}
}

View File

@ -1,11 +1,25 @@
<?php
<?php
require_once("template.php");
define("WEB_URL", "."); //Website name
define("NAME", _('Status page')); //Website name
define("MINIMUM_PHP_VERSION", "5.4.0");
define("POLICY_URL", "policy.php"); //Default policy URL
define("CUSTOM_LOGO_URL","");
define("COPYRIGHT_TEXT","");
require_once("classes/locale-negotiator.php");
require_once("classes/db-class.php");
$isDeveleoperEnvironement = false;
if(isset($_GET["isDev"])){
if($_GET["isDev"] == "devMode"){
$isDeveleoperEnvironement = true;
}
}
$negotiator = new LocaleNegotiator("en_GB");
$message = "";
$db = new SSDB();
if (!isset($_SESSION['locale'])||isset($_GET['lang']))
{
$override = ((isset($_GET['lang']))?$_GET['lang']:null);
@ -14,7 +28,7 @@ if (!isset($_SESSION['locale'])||isset($_GET['lang']))
setlocale(LC_ALL, $_SESSION['locale'].".UTF-8");
bindtextdomain("server-status", __DIR__ . "/locale/");
bind_textdomain_codeset($_SESSION['locale'], "utf-8");
bind_textdomain_codeset($_SESSION['locale'], "utf-8");
textdomain("server-status");
}
@ -31,38 +45,38 @@ if (isset($_POST['server']))
$message .= _("Please set valid url!");
}
//Ostatní má checky existence ve funkci pro pridani
//Ostatní má checky existence ve funkci pro pridani
if (0 == strlen(trim($_POST['servername']))){
$messages[] = _("Server name");
}
}
if (0 == strlen(trim($_POST['url']))){
$messages[] = _("Url");
}
}
if (0 == strlen(trim($_POST['mailer']))){
$messages[] = _("Mailer name");
}
}
if (0 == strlen(trim($_POST['title']))){
$messages[] = _("Title");
}
}
if (0 == strlen(trim($_POST['mailer_email']))){
$messages[] = _("Mailer email");
}
}
if (0 == strlen(trim($_POST['server']))){
$messages[] = _("Database server");
}
}
if (0 == strlen(trim($_POST['database']))){
$messages[] = _("Database name");
}
}
if (0 == strlen(trim($_POST['dbuser']))){
$messages[] = _("Database user");
}
}
if (0 == strlen(trim($_POST['dbpassword'])))
{
@ -76,7 +90,7 @@ if (isset($_POST['server']))
}
if(isset($_POST['server']) && empty($message))
{
{
define("MAILER_NAME", $_POST['mailer']);
define("MAILER_ADDRESS", $_POST['mailer_email']);
define("INSTALL_OVERRIDE", true);
@ -85,7 +99,7 @@ if(isset($_POST['server']) && empty($message))
//There may be better way to do this...
$sql = file_get_contents("install.sql");
$array = explode(";", $sql);
foreach ($array as $value) {
$val = trim($value);
if (empty($val))
@ -111,35 +125,113 @@ if(isset($_POST['server']) && empty($message))
{
//Create config
$config = file_get_contents("config.php.template");
$config = str_replace("##name##", $_POST['servername'], $config);
$config = str_replace("##title##", $_POST['title'], $config);
$config = str_replace("##url##", $_POST['url'], $config);
$config = str_replace("##mailer##", $_POST['mailer'], $config);
$config = str_replace("##mailer_email##", $_POST['mailer_email'], $config);
$config = str_replace("##server##", $_POST['server'], $config);
$config = str_replace("##database##", $_POST['database'], $config);
$config = str_replace("##user##", $_POST['dbuser'], $config);
$config = str_replace("##password##", $_POST['dbpassword'], $config);
$config = str_replace("##name##", $_POST['servername'], $config);
//$config = str_replace("##name##", htmlspecialchars($_POST['servername'], ENT_QUOTES), $config);
$db->setSetting($mysqli,"name",htmlspecialchars($_POST['servername'], ENT_QUOTES));
//$config = str_replace("##title##", htmlspecialchars($_POST['title'], ENT_QUOTES), $config);
$db->setSetting($mysqli,"title",htmlspecialchars($_POST['title'], ENT_QUOTES));
//$config = str_replace("##url##", $_POST['url'], $config);
$db->setSetting($mysqli,"url",$_POST['url']);
//$config = str_replace("##mailer##", htmlspecialchars($_POST['mailer'], ENT_QUOTES), $config);
$db->setSetting($mysqli,"mailer",htmlspecialchars($_POST['mailer'], ENT_QUOTES));
//$config = str_replace("##mailer_email##", htmlspecialchars($_POST['mailer_email'], ENT_QUOTES), $config);
$db->setSetting($mysqli,"mailer_email",htmlspecialchars($_POST['mailer_email'], ENT_QUOTES));
$config = str_replace("##server##", htmlspecialchars($_POST['server'], ENT_QUOTES), $config);
$config = str_replace("##database##", htmlspecialchars($_POST['database'], ENT_QUOTES), $config);
$config = str_replace("##user##", htmlspecialchars($_POST['dbuser'], ENT_QUOTES), $config);
$config = str_replace("##password##", htmlspecialchars($_POST['dbpassword'], ENT_QUOTES), $config);
// Duplicate of lines 122-123 //$config = str_replace("##name##", htmlspecialchars($_POST['servername'], ENT_QUOTES), $config);
$config = str_replace("##policy_name##", htmlspecialchars($_POST['policy_name'], ENT_QUOTES), $config);
$config = str_replace("##address##", htmlspecialchars($_POST['address'], ENT_QUOTES), $config);
$config = str_replace("##policy_mail##", htmlspecialchars($_POST['policy_mail'], ENT_QUOTES), $config);
$config = str_replace("##policy_phone##", htmlspecialchars($_POST['policy_phone'], ENT_QUOTES),$config);
$config = str_replace("##who_we_are##", htmlspecialchars($_POST['who_we_are'], ENT_QUOTES), $config);
$policy_url_conf = ( ! empty($_POST['policy_url']) ) ? htmlspecialchars($_POST['policy_url'], ENT_QUOTES) : $_POST['url']."/policy.php";
$config = str_replace("##policy_url##", $policy_url_conf, $config);
file_put_contents("config.php", $config);
unlink("config.php.template");
unlink("install.sql");
unlink(__FILE__);
include_once "create-server-config.php";
$db->setSetting($mysqli,"dbConfigVersion","Version2Beta7");
$db->setSetting($mysqli,"notifyUpdates","yes");
$db->setSetting($mysqli,"subscribe_email","no");
$db->setSetting($mysqli,"subscribe_telegram","no");
$db->setSetting($mysqli,"tg_bot_api_token","");
$db->setSetting($mysqli,"tg_bot_username","");
$db->setSetting($mysqli,"php_mailer","no");
$db->setSetting($mysqli,"php_mailer_host","");
$db->setSetting($mysqli,"php_mailer_smtp","no");
$db->setSetting($mysqli,"php_mailer_path","");
$db->setSetting($mysqli,"php_mailer_port","");
$db->setSetting($mysqli,"php_mailer_secure","no");
$db->setSetting($mysqli,"php_mailer_user","");
$db->setSetting($mysqli,"php_mailer_pass","");
$db->setSetting($mysqli,"google_recaptcha","no");
$db->setSetting($mysqli,"google_recaptcha_secret","");
$db->setSetting($mysqli,"google_recaptcha_sitekey","");
$db->setSetting($mysqli,"cron_server_ip","");
if(!$isDeveleoperEnvironement) {
unlink("create-server-config.php");
unlink("config.php.template");
unlink("install.sql");
unlink(__FILE__);
}
header("Location: ".WEB_URL);
}
}
Template::render_header(_("Install"));
?>
<h1 class="text-center"><?php echo _("Prerequisite");?></h1>
<summary><?php echo _("If any of the following prerequisites are shown as failed (red X), please correct the issue and reload the page before proceeding with the installation.");?></summary>
<?php
$php_version_req = sprintf(_("Minimum PHP version %s"), MINIMUM_PHP_VERSION);
$preq_fail = array("remove", "danger");
$preq_ok = array("ok", "success");
$preq_phpver = $preq_fail;
$preq_mysqlnd = $preq_fail;
$preq_writedir = $preq_fail;
// Check if PHP version if > MINIMUM_PHP_VERSION
if (strnatcmp(phpversion(), MINIMUM_PHP_VERSION) >= 0) { $preq_phpver = $preq_ok; }
// Test for mysqlnd precense. The mysqlnd driver provides some extra functions that is not available
// if the plain mysql package is installed, and mysqli_get_client_stats is one of them. This is documented
// on the PHP site at http://www.php.net/manual/en/mysqlnd.stats.php
// This test is also discussed at https://stackoverflow.com/questions/1475701/how-to-know-if-mysqlnd-is-the-active-driver
if ( function_exists('mysqli_get_client_stats') ) { $preq_mysqlnd = $preq_ok; }
// Check if we have access to write to location
if ( is_writable(__DIR__) ) { $preq_writedir = $preq_ok; }
?>
<section class="prereq-section clearfix">
<div class="container-fluid">
<div class="row ">
<div class="col-md-6 text-right"><label for="php version"><?php echo $php_version_req;?></div>
<div class="col-md-6"><a href="#" class="btn btn-<?php echo $preq_phpver[1];?>"><span class="glyphicon glyphicon-<?php echo $preq_phpver[0]; ?>"></span></a></div>
</div>
<div class="row ">
<div class="col-md-6 text-right"><label for="mysqlnd Library installed"><?php echo _('PHP mysqlnd library installed');?></div>
<div class="col-md-6"><a href="#" class="btn btn-<?php echo $preq_mysqlnd[1];?>"><span class="glyphicon glyphicon-<?php echo $preq_mysqlnd[0]; ?>"></span></a></div>
</div>
<div class="row">
<div class="col-md-6 text-right"><label for="write_access"><?php echo _('Write access to web directory');?></div>
<div class="col-md-6"><a href="#" class="btn btn-<?php echo $preq_writedir[1];?>"><span class="glyphicon glyphicon-<?php echo $preq_writedir[0]; ?>"></span></a></div>
</div>
</div>
</section>
<h1 class="text-center"><?php echo _("Installation");?></h1>
<?php
if (!empty($message))
{
?>
<p class="alert alert-danger"><?php echo $message; ?></p>
<?php
}
<?php
}
?>
<summary><?php echo _("We will ask you some basic questions about your website. Most of the settings can be later edited in the config.php file.");?></summary>
@ -176,6 +268,28 @@ if (!empty($message))
<div class="col-sm-6"><label for="dbpassword"><?php echo _("Password");?>: </label><input type="password" name="dbpassword" value="<?php echo ((isset($_POST['dbpassword']))?htmlspecialchars($_POST['dbpassword'], ENT_QUOTES):'');?>" id="dbpassword" placeholder="<?php echo _("Password");?>" class="form-control" required></div>
</div>
</section>
<section class="install-section clearfix">
<h2><?php echo _("Privacy Policy");?></h2>
<summary><?php echo _("Since you are collecting personal information, the GDPR needs you to have a privacy policy. Enter the details below.");?></summary>
<div class="form-group clearfix">
<div class="col-sm-6"><label for="policy_name"><?php echo _("Name");?>: </label><input type="text" name="policy_name" value="<?php echo ((isset($_POST['policy_name']))?htmlspecialchars($_POST['policy_name'], ENT_QUOTES):'');?>" id="policy_name" placeholder="<?php echo _("Company name");?>" class="form-control" required></div>
<div class="col-sm-6"><label for="address"><?php echo _("Address");?>: </label><input type="text" name="address" value="<?php echo ((isset($_POST['address']))?htmlspecialchars($_POST['address'], ENT_QUOTES):'');?>" id="address" placeholder="<?php echo _("Full address");?>" class="form-control" required></div>
</div>
<div class="form-group clearfix">
<div class="col-sm-6"><label for="policy_mail"><?php echo _("E-Mail");?>: </label><input type="text" name="policy_mail" value="<?php echo ((isset($_POST['policy_mail']))?htmlspecialchars($_POST['policy_mail'], ENT_QUOTES):'');?>" id="policy_mail" placeholder="<?php echo _("E-Mail");?>" class="form-control" required></div>
<div class="col-sm-6"><label for="policy_phone"><?php echo _("Phone");?>: </label><input type="text" name="policy_phone" value="<?php echo ((isset($_POST['policy_phone']))?htmlspecialchars($_POST['policy_phone'], ENT_QUOTES):'');?>" id="policy_phone" placeholder="<?php echo _("Phone number");?>" class="form-control"></div>
</div>
<div class="form-group clearfix">
<div class=""><label for="who_we_are"><?php echo _("Who we are");?>: </label><textarea class="form-control" id="who_we_are" rows="3" name="who_we_are" placeholder="<?php echo _("Some info about yourself");?>" value="<?php echo ((isset($_POST['who_we_are']))?htmlspecialchars($_POST['who_we_are'], ENT_QUOTES):'');?>"></textarea></div>
</div>
<div class="form-group clearfix">
<div class="col-sm-12"><label for="url"><?php echo _("External Policy Url");?>: </label>
<summary><?php echo _("If you alredy have an existing Policy published, please provide the full Url to override the local policy definition. Leave blank to use the local definition");?></summary>
<input type="policy_url" name="policy_url" value="<?php echo ((isset($_POST['policy_url']))?htmlspecialchars($_POST['policy_url'], ENT_QUOTES):'');?>" id="policy_url" placeholder="<?php echo _("External Policy Url");?>" class="form-control">
</div>
</div>
</section>
<section class="install-section clearfix">
<h2><?php echo _("User");?></h2>
<summary><?php echo _("And finally, we need info to create a new user. You don't have to provide it, but then... No status page admin...");?></summary>
@ -197,4 +311,4 @@ if (!empty($message))
</section>
</form>
<?php
Template::render_footer();
Template::render_footer();

View File

@ -1,3 +1,7 @@
CREATE TABLE `settings` (
`setting` varchar(255) NOT NULL UNIQUE,
`value` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci;
CREATE TABLE `services` (
`id` int(11) NOT NULL,
`name` varchar(50) COLLATE utf8_czech_ci NOT NULL
@ -33,6 +37,46 @@ CREATE TABLE `users` (
`permission` int(11) NOT NULL DEFAULT '0',
`active` tinyint(1) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci;
CREATE TABLE `subscribers` (
`subscriberID` int(11) NOT NULL,
`telegramID` int(50) NOT NULL,
`firstname` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`lastname` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE `services_subscriber` (
`comboID` int(11) NOT NULL,
`subscriberIDFK` int(11) NOT NULL,
`serviceIDFK` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE queue_notify (
id int(11) NOT NULL AUTO_INCREMENT,
task_id int(11) NOT NULL,
status tinyint(1) NOT NULL,
subscriber_id int(11) NOT NULL,
retries tinyint(1) DEFAULT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci;
CREATE TABLE services_groups (
id int(11) NOT NULL AUTO_INCREMENT,
name varchar(50) NOT NULL,
description varchar(50) DEFAULT NULL,
visibility tinyint(4) NOT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE queue_task (
id int(11) NOT NULL AUTO_INCREMENT,
type_id int(11) NOT NULL,
status tinyint(1) NOT NULL,
template_data1 text COLLATE utf8_czech_ci,
template_data2 text COLLATE utf8_czech_ci,
created_time int(11) NOT NULL,
completed_time int(11) DEFAULT NULL,
num_errors int(11) DEFAULT NULL,
user_id int(11) NOT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci;
ALTER TABLE `services`
ADD PRIMARY KEY (`id`);
ALTER TABLE `services_status`
@ -57,6 +101,17 @@ ALTER TABLE `status`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
ALTER TABLE `services_subscriber`
ADD PRIMARY KEY (`comboID`),
ADD UNIQUE KEY `unique_subscription` (`subscriberIDFK`,`serviceIDFK`),
ADD KEY `serviceIDFK` (`serviceIDFK`);
ALTER TABLE `subscribers`
ADD PRIMARY KEY (`subscriberID`),
ADD UNIQUE KEY `telegramID` (`telegramID`);
ALTER TABLE `services_subscriber`
MODIFY `comboID` int(11) NOT NULL AUTO_INCREMENT;
ALTER TABLE `subscribers`
MODIFY `subscriberID` int(11) NOT NULL AUTO_INCREMENT;
ALTER TABLE `services_status`
ADD CONSTRAINT `service_id` FOREIGN KEY (`service_id`) REFERENCES `services` (`id`),
ADD CONSTRAINT `status_id` FOREIGN KEY (`status_id`) REFERENCES `status` (`id`);
@ -64,3 +119,24 @@ ALTER TABLE `status`
ADD CONSTRAINT `user_id` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
ALTER TABLE `tokens`
ADD CONSTRAINT `user` FOREIGN KEY (`user`) REFERENCES `users` (`id`);
ALTER TABLE `services_subscriber`
ADD CONSTRAINT `services_subscriber_ibfk_1` FOREIGN KEY (`subscriberIDFK`) REFERENCES `subscribers` (`subscriberID`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `services_subscriber_ibfk_2` FOREIGN KEY (`serviceIDFK`) REFERENCES `services` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
COMMIT;
ALTER TABLE `subscribers` CHANGE COLUMN lastname lastname varchar(255) DEFAULT NULL; # was varchar(255) NOT NULL
ALTER TABLE `subscribers` CHANGE COLUMN firstname firstname varchar(255) DEFAULT NULL; # was varchar(255) NOT NULL
ALTER TABLE `subscribers` CHANGE COLUMN telegramID userID varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `subscribers` ADD COLUMN typeID tinyint(1) NOT NULL AFTER subscriberID;
ALTER TABLE `subscribers` ADD COLUMN token varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER lastname;
ALTER TABLE `subscribers` ADD COLUMN expires int(11) DEFAULT NULL;
ALTER TABLE `subscribers` ADD COLUMN active tinyint(1) DEFAULT NULL;
ALTER TABLE `subscribers` ADD COLUMN create_time int(11) DEFAULT NULL;
ALTER TABLE `subscribers` ADD COLUMN update_time int(11) DEFAULT NULL;
ALTER TABLE `subscribers` DROP INDEX telegramID; # was UNIQUE (telegramID)
ALTER TABLE `subscribers` ADD UNIQUE userID (userID);
COMMIT;
ALTER TABLE services ADD COLUMN description varchar(200) COLLATE utf8_czech_ci NOT NULL;
ALTER TABLE services ADD COLUMN group_id int(11) DEFAULT NULL;
COMMIT;

View File

@ -1,9 +1,9 @@
(function(){
$("#time_input").flatpickr({enableTime:true, minDate: "today",time_24hr:true, formatDate: function(date, format) {
return date.toISOString();
$("#time_input").flatpickr({enableTime:true, minDate: "today",time_24hr:true, onChange: function(date, dateStr, instance) {
$("#time_input_js").val(date[0].toISOString());
}});
$("#end_time").flatpickr({enableTime:true, minDate: "today",time_24hr:true, formatDate: function(date, format) {
return date.toISOString(); // iso date str
$("#end_time").flatpickr({enableTime:true, minDate: "today",time_24hr:true, onChange: function(date, dateStr, instance) {
$("#end_time_js").val(date[0].toISOString()); // iso date str
}});
@ -11,46 +11,48 @@
var icons = ["fa fa-times", "fa fa-exclamation", "fa fa-info", "fa fa-check"];
$("body").on("change","#new-incident select", function(){
var val = $(this).val();
var val = parseInt($(this).val()); //this should make exploitation harder
$("#new-incident .panel.new .panel-heading i").get(0).className = icons[val];
$("#new-incident .panel.new").get(0).className = classes[val] + " new";
$("#time_input").val("");
$("#end_time").val("");
});
$("#new-incident select").trigger("change");
$("body").on("submit","#new-incident",function(){
var time = Date.parse($('#time_input').val());
var end_time = Date.parse($('#end_time').val());
var type = $("#type").val();
var time = Date.parse($("#time_input").val());
var end_time = Date.parse($("#end_time").val());
var type = $("#type").val() || 0;
if (type == 2 &&(isNaN(time) || isNaN(end_time)))
if (parseInt(type) === 2 &&(isNaN(time) || isNaN(end_time)))
{
if (isNaN(end_time))
{
$('#time_input').addClass("error");
$("#time_input").addClass("error");
$.growl.error({ message: "Start time is invalid!" });
}
if (isNaN(end_time))
{
$('#end_time').addClass("error");
$("#end_time").addClass("error");
$.growl.error({ message: "End time is invalid!" });
}
return false;
}
else if (type == 2 && time >= end_time)
else if (parseInt(type) === 2 && time >= end_time)
{
$.growl.error({ message: "End time is either the same or earlier than start time!" });
$('#time').addClass("error");
$('#end_time').addClass("error");
$("#time").addClass("error");
$("#end_time").addClass("error");
return false;
}
if($('#status-container :checkbox:checked').length == 0)
if($("#status-container :checkbox:checked").length === 0)
{
$.growl.error({ message: "Please check at least one service!" });
$('#status-container').addClass("error");
$("#status-container").addClass("error");
return false;
}
});

View File

@ -8,23 +8,25 @@ function timeago()
}
(function(){
jQuery.timeago.settings.allowFuture = true;
timeago();
$("body").on("click", ".navbar-toggle", function(){
$($(this).data("target")).toggleClass("collapse");
});
$("body").on("click", ".navbar-toggle", function(){
$($(this).data("target")).toggleClass("collapse");
});
var incidents = $('.timeline');
$("body").on("click", "#loadmore", function(e){
e.preventDefault();
var url = $("#loadmore").attr("href") + "&ajax=true";
$("#loadmore").remove();
$.get(url,
function(data){
incidents.append(data);
timeago();
});
});
})();
$("body").on("click", "#loadmore", function(e){
e.preventDefault();
var url = $("#loadmore").attr("href") + "&ajax=true";
$("#loadmore").remove();
$.get(url,
function(data){
incidents.append(data);
timeago();
});
});
})();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
js/vendor/jquery-3.5.1.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -1,30 +1,45 @@
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
// Generated by CoffeeScript 2.1.0
(function() {
(function () {
/*
jQuery Growl
Copyright 2015 Kevin Sylvestre
1.3.3
1.3.5
*/
"use strict";
var $, Animation, Growl;
$ = jQuery;
Animation = (function() {
class Animation {
static transition($el) {
var el, ref, result, type;
el = $el[0];
ref = this.transitions;
for (type in ref) {
result = ref[type];
if (el.style[type] != null) {
return result;
}
}
Animation = function () {
var Animation = function () {
function Animation() {
_classCallCheck(this, Animation);
}
};
_createClass(Animation, null, [{
key: "transition",
value: function transition($el) {
var el, ref, result, type;
el = $el[0];
ref = this.transitions;
for (type in ref) {
result = ref[type];
if (el.style[type] != null) {
return result;
}
}
}
}]);
return Animation;
}();
;
Animation.transitions = {
"webkitTransition": "webkitTransitionEnd",
@ -34,16 +49,24 @@
};
return Animation;
}();
})();
Growl = function () {
var Growl = function () {
_createClass(Growl, null, [{
key: "growl",
value: function growl() {
var settings = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
Growl = (function() {
class Growl {
static growl(settings = {}) {
return new Growl(settings);
}
return new Growl(settings);
}
}]);
function Growl() {
var settings = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
_classCallCheck(this, Growl);
constructor(settings = {}) {
this.render = this.render.bind(this);
this.bind = this.bind.bind(this);
this.unbind = this.unbind.bind(this);
@ -67,139 +90,170 @@
this.render();
}
initialize(location) {
var id;
id = 'growls-' + location;
return $('body:not(:has(#' + id + '))').append('<div id="' + id + '" />');
}
render() {
var $growl;
$growl = this.$growl();
this.$growls(this.settings.location).append($growl);
if (this.settings.fixed) {
this.present();
} else {
this.cycle();
_createClass(Growl, [{
key: "initialize",
value: function initialize(location) {
var id;
id = 'growls-' + location;
return $('body:not(:has(#' + id + '))').append('<div id="' + id + '" />');
}
}
bind($growl = this.$growl()) {
$growl.on("click", this.click);
if (this.settings.delayOnHover) {
$growl.on("mouseenter", this.mouseEnter);
$growl.on("mouseleave", this.mouseLeave);
}, {
key: "render",
value: function render() {
var $growl;
$growl = this.$growl();
this.$growls(this.settings.location).append($growl);
if (this.settings.fixed) {
this.present();
} else {
this.cycle();
}
}
return $growl.on("contextmenu", this.close).find(`.${this.settings.namespace}-close`).on("click", this.close);
}
}, {
key: "bind",
value: function bind() {
var $growl = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.$growl();
unbind($growl = this.$growl()) {
$growl.off("click", this.click);
if (this.settings.delayOnHover) {
$growl.off("mouseenter", this.mouseEnter);
$growl.off("mouseleave", this.mouseLeave);
$growl.on("click", this.click);
if (this.settings.delayOnHover) {
$growl.on("mouseenter", this.mouseEnter);
$growl.on("mouseleave", this.mouseLeave);
}
return $growl.on("contextmenu", this.close).find("." + this.settings.namespace + "-close").on("click", this.close);
}
return $growl.off("contextmenu", this.close).find(`.${this.settings.namespace}-close`).off("click", this.close);
}
}, {
key: "unbind",
value: function unbind() {
var $growl = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.$growl();
mouseEnter(event) {
var $growl;
$growl = this.$growl();
return $growl.stop(true, true);
}
mouseLeave(event) {
return this.waitAndDismiss();
}
click(event) {
if (this.settings.url != null) {
$growl.off("click", this.click);
if (this.settings.delayOnHover) {
$growl.off("mouseenter", this.mouseEnter);
$growl.off("mouseleave", this.mouseLeave);
}
return $growl.off("contextmenu", this.close).find("." + this.settings.namespace + "-close").off("click", this.close);
}
}, {
key: "mouseEnter",
value: function mouseEnter(event) {
var $growl;
$growl = this.$growl();
return $growl.stop(true, true);
}
}, {
key: "mouseLeave",
value: function mouseLeave(event) {
return this.waitAndDismiss();
}
}, {
key: "click",
value: function click(event) {
if (this.settings.url != null) {
event.preventDefault();
event.stopPropagation();
return window.open(this.settings.url);
}
}
}, {
key: "close",
value: function close(event) {
var $growl;
event.preventDefault();
event.stopPropagation();
return window.open(this.settings.url);
$growl = this.$growl();
return $growl.stop().queue(this.dismiss).queue(this.remove);
}
}
close(event) {
var $growl;
event.preventDefault();
event.stopPropagation();
$growl = this.$growl();
return $growl.stop().queue(this.dismiss).queue(this.remove);
}
cycle() {
var $growl;
$growl = this.$growl();
return $growl.queue(this.present).queue(this.waitAndDismiss());
}
waitAndDismiss() {
var $growl;
$growl = this.$growl();
return $growl.delay(this.settings.duration).queue(this.dismiss).queue(this.remove);
}
present(callback) {
var $growl;
$growl = this.$growl();
this.bind($growl);
return this.animate($growl, `${this.settings.namespace}-incoming`, 'out', callback);
}
dismiss(callback) {
var $growl;
$growl = this.$growl();
this.unbind($growl);
return this.animate($growl, `${this.settings.namespace}-outgoing`, 'in', callback);
}
remove(callback) {
this.$growl().remove();
return typeof callback === "function" ? callback() : void 0;
}
animate($element, name, direction = 'in', callback) {
var transition;
transition = Animation.transition($element);
$element[direction === 'in' ? 'removeClass' : 'addClass'](name);
$element.offset().position;
$element[direction === 'in' ? 'addClass' : 'removeClass'](name);
if (callback == null) {
return;
}, {
key: "cycle",
value: function cycle() {
var $growl;
$growl = this.$growl();
return $growl.queue(this.present).queue(this.waitAndDismiss());
}
if (transition != null) {
$element.one(transition, callback);
} else {
callback();
}, {
key: "waitAndDismiss",
value: function waitAndDismiss() {
var $growl;
$growl = this.$growl();
return $growl.delay(this.settings.duration).queue(this.dismiss).queue(this.remove);
}
}
$growls(location) {
var base;
if (this.$_growls == null) {
this.$_growls = [];
}, {
key: "present",
value: function present(callback) {
var $growl;
$growl = this.$growl();
this.bind($growl);
return this.animate($growl, this.settings.namespace + "-incoming", 'out', callback);
}
return (base = this.$_growls)[location] != null ? base[location] : base[location] = $('#growls-' + location);
}
}, {
key: "dismiss",
value: function dismiss(callback) {
var $growl;
$growl = this.$growl();
this.unbind($growl);
return this.animate($growl, this.settings.namespace + "-outgoing", 'in', callback);
}
}, {
key: "remove",
value: function remove(callback) {
this.$growl().remove();
return typeof callback === "function" ? callback() : void 0;
}
}, {
key: "animate",
value: function animate($element, name) {
var direction = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'in';
var callback = arguments[3];
$growl() {
return this.$_growl != null ? this.$_growl : this.$_growl = $(this.html());
}
var transition;
transition = Animation.transition($element);
$element[direction === 'in' ? 'removeClass' : 'addClass'](name);
$element.offset().position;
$element[direction === 'in' ? 'addClass' : 'removeClass'](name);
if (callback == null) {
return;
}
if (transition != null) {
$element.one(transition, callback);
} else {
callback();
}
}
}, {
key: "$growls",
value: function $growls(location) {
var base;
if (this.$_growls == null) {
this.$_growls = [];
}
return (base = this.$_growls)[location] != null ? base[location] : base[location] = $('#growls-' + location);
}
}, {
key: "$growl",
value: function $growl() {
return this.$_growl != null ? this.$_growl : this.$_growl = $(this.html());
}
}, {
key: "html",
value: function html() {
return this.container(this.content());
}
}, {
key: "content",
value: function content() {
return "<div class='" + this.settings.namespace + "-close'>" + this.settings.close + "</div>\n<div class='" + this.settings.namespace + "-title'>" + this.settings.title + "</div>\n<div class='" + this.settings.namespace + "-message'>" + this.settings.message + "</div>";
}
}, {
key: "container",
value: function container(content) {
return "<div class='" + this.settings.namespace + " " + this.settings.namespace + "-" + this.settings.style + " " + this.settings.namespace + "-" + this.settings.size + "'>\n " + content + "\n</div>";
}
}]);
html() {
return this.container(this.content());
}
return Growl;
}();
content() {
return `<div class='${this.settings.namespace}-close'>${this.settings.close}</div>\n<div class='${this.settings.namespace}-title'>${this.settings.title}</div>\n<div class='${this.settings.namespace}-message'>${this.settings.message}</div>`;
}
container(content) {
return `<div class='${this.settings.namespace} ${this.settings.namespace}-${this.settings.style} ${this.settings.namespace}-${this.settings.size}'>\n ${content}\n</div>`;
}
};
;
Growl.settings = {
namespace: 'growl',
@ -212,16 +266,19 @@
};
return Growl;
})();
}();
this.Growl = Growl;
$.growl = function(options = {}) {
$.growl = function () {
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
return Growl.growl(options);
};
$.growl.error = function(options = {}) {
$.growl.error = function () {
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var settings;
settings = {
title: "Error!",
@ -230,7 +287,9 @@
return $.growl($.extend(settings, options));
};
$.growl.notice = function(options = {}) {
$.growl.notice = function () {
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var settings;
settings = {
title: "Notice!",
@ -239,7 +298,9 @@
return $.growl($.extend(settings, options));
};
$.growl.warning = function(options = {}) {
$.growl.warning = function () {
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var settings;
settings = {
title: "Warning!",
@ -247,5 +308,4 @@
};
return $.growl($.extend(settings, options));
};
}).call(this);
}).call(this);

View File

@ -3,15 +3,15 @@
* updating fuzzy timestamps (e.g. "4 minutes ago" or "about 1 day ago").
*
* @name timeago
* @version 1.6.1
* @requires jQuery v1.2.3+
* @version 1.6.7
* @requires jQuery >=1.5.0 <4.0
* @author Ryan McGeary
* @license MIT License - http://www.opensource.org/licenses/mit-license.php
*
* For usage and examples, visit:
* http://timeago.yarp.com/
*
* Copyright (c) 2008-2017, Ryan McGeary (ryan -[at]- mcgeary [*dot*] org)
* Copyright (c) 2008-2019, Ryan McGeary (ryan -[at]- mcgeary [*dot*] org)
*/
(function (factory) {
@ -42,7 +42,7 @@
settings: {
refreshMillis: 60000,
allowPast: true,
allowFuture: true,
allowFuture: false,
localeTitle: false,
cutoff: 0,
autoDispose: true,
@ -51,7 +51,7 @@
prefixFromNow: null,
suffixAgo: "ago",
suffixFromNow: "from now",
inPast: 'any moment now',
inPast: "any moment now",
seconds: "less than a minute",
minute: "about a minute",
minutes: "%d minutes",

View File

@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2013-2018 Emanuil Rusev, erusev.com
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

1980
libs/parsedown/Parsedown.php Normal file

File diff suppressed because it is too large Load Diff

97
libs/parsedown/README.md Normal file
View File

@ -0,0 +1,97 @@
> I also make [Caret](https://caret.io?ref=parsedown) - a Markdown editor for Mac and PC.
## Parsedown
[![Build Status](https://img.shields.io/travis/erusev/parsedown/master.svg?style=flat-square)](https://travis-ci.org/erusev/parsedown)
<!--[![Total Downloads](http://img.shields.io/packagist/dt/erusev/parsedown.svg?style=flat-square)](https://packagist.org/packages/erusev/parsedown)-->
Better Markdown Parser in PHP
[Demo](http://parsedown.org/demo) |
[Benchmarks](http://parsedown.org/speed) |
[Tests](http://parsedown.org/tests/) |
[Documentation](https://github.com/erusev/parsedown/wiki/)
### Features
* One File
* No Dependencies
* Super Fast
* Extensible
* [GitHub flavored](https://help.github.com/articles/github-flavored-markdown)
* Tested in 5.3 to 7.2 and in HHVM
* [Markdown Extra extension](https://github.com/erusev/parsedown-extra)
### Installation
#### Composer
Install the [composer package] by running the following command:
composer require erusev/parsedown
#### Manual
1. Download the "Source code" from the [latest release]
2. Include `Parsedown.php`
[composer package]: https://packagist.org/packages/erusev/parsedown "The Parsedown package on packagist.org"
[latest release]: https://github.com/erusev/parsedown/releases/latest "The latest release of Parsedown"
### Example
``` php
$Parsedown = new Parsedown();
echo $Parsedown->text('Hello _Parsedown_!'); # prints: <p>Hello <em>Parsedown</em>!</p>
// you can also parse inline markdown only
echo $Parsedown->line('Hello _Parsedown_!'); # prints: Hello <em>Parsedown</em>!
```
More examples in [the wiki](https://github.com/erusev/parsedown/wiki/) and in [this video tutorial](http://youtu.be/wYZBY8DEikI).
### Security
Parsedown is capable of escaping user-input within the HTML that it generates. Additionally Parsedown will apply sanitisation to additional scripting vectors (such as scripting link destinations) that are introduced by the markdown syntax itself.
To tell Parsedown that it is processing untrusted user-input, use the following:
```php
$parsedown = new Parsedown;
$parsedown->setSafeMode(true);
```
If instead, you wish to allow HTML within untrusted user-input, but still want output to be free from XSS it is recommended that you make use of a HTML sanitiser that allows HTML tags to be whitelisted, like [HTML Purifier](http://htmlpurifier.org/).
In both cases you should strongly consider employing defence-in-depth measures, like [deploying a Content-Security-Policy](https://scotthelme.co.uk/content-security-policy-an-introduction/) (a browser security feature) so that your page is likely to be safe even if an attacker finds a vulnerability in one of the first lines of defence above.
#### Security of Parsedown Extensions
Safe mode does not necessarily yield safe results when using extensions to Parsedown. Extensions should be evaluated on their own to determine their specific safety against XSS.
### Escaping HTML
> ⚠️  **WARNING:** This method isn't safe from XSS!
If you wish to escape HTML **in trusted input**, you can use the following:
```php
$parsedown = new Parsedown;
$parsedown->setMarkupEscaped(true);
```
Beware that this still allows users to insert unsafe scripting vectors, such as links like `[xss](javascript:alert%281%29)`.
### Questions
**How does Parsedown work?**
It tries to read Markdown like a human. First, it looks at the lines. Its interested in how the lines start. This helps it recognise blocks. It knows, for example, that if a line starts with a `-` then perhaps it belongs to a list. Once it recognises the blocks, it continues to the content. As it reads, it watches out for special characters. This helps it recognise inline elements (or inlines).
We call this approach "line based". We believe that Parsedown is the first Markdown parser to use it. Since the release of Parsedown, other developers have used the same approach to develop other Markdown parsers in PHP and in other languages.
**Is it compliant with CommonMark?**
It passes most of the CommonMark tests. Most of the tests that don't pass deal with cases that are quite uncommon. Still, as CommonMark matures, compliance should improve.
**Who uses it?**
[Laravel Framework](https://laravel.com/), [Bolt CMS](http://bolt.cm/), [Grav CMS](http://getgrav.org/), [Herbie CMS](http://www.getherbie.org/), [Kirby CMS](http://getkirby.com/), [October CMS](http://octobercms.com/), [Pico CMS](http://picocms.org), [Statamic CMS](http://www.statamic.com/), [phpDocumentor](http://www.phpdoc.org/), [RaspberryPi.org](http://www.raspberrypi.org/), [Symfony demo](https://github.com/symfony/symfony-demo) and [more](https://packagist.org/packages/erusev/parsedown/dependents).
**How can I help?**
Use it, star it, share it and if you feel generous, [donate](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=528P3NZQMP8N2).

504
libs/php_idn/LICENSE Normal file
View File

@ -0,0 +1,504 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
[This is the first released version of the Lesser GPL. It also counts
as the successor of the GNU Library Public License, version 2, hence
the version number 2.1.]
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
Licenses are intended to guarantee your freedom to share and change
free software--to make sure the software is free for all its users.
This license, the Lesser General Public License, applies to some
specially designated software packages--typically libraries--of the
Free Software Foundation and other authors who decide to use it. You
can use it too, but we suggest you first think carefully about whether
this license or the ordinary General Public License is the better
strategy to use in any particular case, based on the explanations below.
When we speak of free software, we are referring to freedom of use,
not price. Our General Public Licenses are designed to make sure that
you have the freedom to distribute copies of free software (and charge
for this service if you wish); that you receive source code or can get
it if you want it; that you can change the software and use pieces of
it in new free programs; and that you are informed that you can do
these things.
To protect your rights, we need to make restrictions that forbid
distributors to deny you these rights or to ask you to surrender these
rights. These restrictions translate to certain responsibilities for
you if you distribute copies of the library or if you modify it.
For example, if you distribute copies of the library, whether gratis
or for a fee, you must give the recipients all the rights that we gave
you. You must make sure that they, too, receive or can get the source
code. If you link other code with the library, you must provide
complete object files to the recipients, so that they can relink them
with the library after making changes to the library and recompiling
it. And you must show them these terms so they know their rights.
We protect your rights with a two-step method: (1) we copyright the
library, and (2) we offer you this license, which gives you legal
permission to copy, distribute and/or modify the library.
To protect each distributor, we want to make it very clear that
there is no warranty for the free library. Also, if the library is
modified by someone else and passed on, the recipients should know
that what they have is not the original version, so that the original
author's reputation will not be affected by problems that might be
introduced by others.
Finally, software patents pose a constant threat to the existence of
any free program. We wish to make sure that a company cannot
effectively restrict the users of a free program by obtaining a
restrictive license from a patent holder. Therefore, we insist that
any patent license obtained for a version of the library must be
consistent with the full freedom of use specified in this license.
Most GNU software, including some libraries, is covered by the
ordinary GNU General Public License. This license, the GNU Lesser
General Public License, applies to certain designated libraries, and
is quite different from the ordinary General Public License. We use
this license for certain libraries in order to permit linking those
libraries into non-free programs.
When a program is linked with a library, whether statically or using
a shared library, the combination of the two is legally speaking a
combined work, a derivative of the original library. The ordinary
General Public License therefore permits such linking only if the
entire combination fits its criteria of freedom. The Lesser General
Public License permits more lax criteria for linking other code with
the library.
We call this license the "Lesser" General Public License because it
does Less to protect the user's freedom than the ordinary General
Public License. It also provides other free software developers Less
of an advantage over competing non-free programs. These disadvantages
are the reason we use the ordinary General Public License for many
libraries. However, the Lesser license provides advantages in certain
special circumstances.
For example, on rare occasions, there may be a special need to
encourage the widest possible use of a certain library, so that it becomes
a de-facto standard. To achieve this, non-free programs must be
allowed to use the library. A more frequent case is that a free
library does the same job as widely used non-free libraries. In this
case, there is little to gain by limiting the free library to free
software only, so we use the Lesser General Public License.
In other cases, permission to use a particular library in non-free
programs enables a greater number of people to use a large body of
free software. For example, permission to use the GNU C Library in
non-free programs enables many more people to use the whole GNU
operating system, as well as its variant, the GNU/Linux operating
system.
Although the Lesser General Public License is Less protective of the
users' freedom, it does ensure that the user of a program that is
linked with the Library has the freedom and the wherewithal to run
that program using a modified version of the Library.
The precise terms and conditions for copying, distribution and
modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, whereas the latter must
be combined with the library in order to run.
GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library or other
program which contains a notice placed by the copyright holder or
other authorized party saying it may be distributed under the terms of
this Lesser General Public License (also called "this License").
Each licensee is addressed as "you".
A "library" means a collection of software functions and/or data
prepared so as to be conveniently linked with application programs
(which use some of those functions and data) to form executables.
The "Library", below, refers to any such software library or work
which has been distributed under these terms. A "work based on the
Library" means either the Library or any derivative work under
copyright law: that is to say, a work containing the Library or a
portion of it, either verbatim or with modifications and/or translated
straightforwardly into another language. (Hereinafter, translation is
included without limitation in the term "modification".)
"Source code" for a work means the preferred form of the work for
making modifications to it. For a library, complete source code means
all the source code for all modules it contains, plus any associated
interface definition files, plus the scripts used to control compilation
and installation of the library.
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running a program using the Library is not restricted, and output from
such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.
1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
appropriate copyright notice and disclaimer of warranty; keep intact
all the notices that refer to this License and to the absence of any
warranty; and distribute a copy of this License along with the
Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) The modified work must itself be a software library.
b) You must cause the files modified to carry prominent notices
stating that you changed the files and the date of any change.
c) You must cause the whole of the work to be licensed at no
charge to all third parties under the terms of this License.
d) If a facility in the modified Library refers to a function or a
table of data to be supplied by an application program that uses
the facility, other than as an argument passed when the facility
is invoked, then you must make a good faith effort to ensure that,
in the event an application does not supply such function or
table, the facility still operates, and performs whatever part of
its purpose remains meaningful.
(For example, a function in a library to compute square roots has
a purpose that is entirely well-defined independent of the
application. Therefore, Subsection 2d requires that any
application-supplied function or table used by this function must
be optional: if the application does not supply it, the square
root function must still compute square roots.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Library,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Library, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote
it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Library.
In addition, mere aggregation of another work not based on the Library
with the Library (or with a work based on the Library) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may opt to apply the terms of the ordinary GNU General Public
License instead of this License to a given copy of the Library. To do
this, you must alter all the notices that refer to this License, so
that they refer to the ordinary GNU General Public License, version 2,
instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.
Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
This option is useful when you wish to copy part of the code of
the Library into a program that is not a library.
4. You may copy and distribute the Library (or a portion or
derivative of it, under Section 2) in object code or executable form
under the terms of Sections 1 and 2 above provided that you accompany
it with the complete corresponding machine-readable source code, which
must be distributed under the terms of Sections 1 and 2 above on a
medium customarily used for software interchange.
If distribution of object code is made by offering access to copy
from a designated place, then offering equivalent access to copy the
source code from the same place satisfies the requirement to
distribute the source code, even though third parties are not
compelled to copy the source along with the object code.
5. A program that contains no derivative of any portion of the
Library, but is designed to work with the Library by being compiled or
linked with it, is called a "work that uses the Library". Such a
work, in isolation, is not a derivative work of the Library, and
therefore falls outside the scope of this License.
However, linking a "work that uses the Library" with the Library
creates an executable that is a derivative of the Library (because it
contains portions of the Library), rather than a "work that uses the
library". The executable is therefore covered by this License.
Section 6 states terms for distribution of such executables.
When a "work that uses the Library" uses material from a header file
that is part of the Library, the object code for the work may be a
derivative work of the Library even though the source code is not.
Whether this is true is especially significant if the work can be
linked without the Library, or if the work is itself a library. The
threshold for this to be true is not precisely defined by law.
If such an object file uses only numerical parameters, data
structure layouts and accessors, and small macros and small inline
functions (ten lines or less in length), then the use of the object
file is unrestricted, regardless of whether it is legally a derivative
work. (Executables containing this object code plus portions of the
Library will still fall under Section 6.)
Otherwise, if the work is a derivative of the Library, you may
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.
6. As an exception to the Sections above, you may also combine or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
under terms of your choice, provided that the terms permit
modification of the work for the customer's own use and reverse
engineering for debugging such modifications.
You must give prominent notice with each copy of the work that the
Library is used in it and that the Library and its use are covered by
this License. You must supply a copy of this License. If the work
during execution displays copyright notices, you must include the
copyright notice for the Library among them, as well as a reference
directing the user to the copy of this License. Also, you must do one
of these things:
a) Accompany the work with the complete corresponding
machine-readable source code for the Library including whatever
changes were used in the work (which must be distributed under
Sections 1 and 2 above); and, if the work is an executable linked
with the Library, with the complete machine-readable "work that
uses the Library", as object code and/or source code, so that the
user can modify the Library and then relink to produce a modified
executable containing the modified Library. (It is understood
that the user who changes the contents of definitions files in the
Library will not necessarily be able to recompile the application
to use the modified definitions.)
b) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (1) uses at run time a
copy of the library already present on the user's computer system,
rather than copying library functions into the executable, and (2)
will operate properly with a modified version of the library, if
the user installs one, as long as the modified version is
interface-compatible with the version that the work was made with.
c) Accompany the work with a written offer, valid for at
least three years, to give the same user the materials
specified in Subsection 6a, above, for a charge no more
than the cost of performing this distribution.
d) If distribution of the work is made by offering access to copy
from a designated place, offer equivalent access to copy the above
specified materials from the same place.
e) Verify that the user has already received a copy of these
materials or that you have already sent this user a copy.
For an executable, the required form of the "work that uses the
Library" must include any data and utility programs needed for
reproducing the executable from it. However, as a special exception,
the materials to be distributed need not include anything that is
normally distributed (in either source or binary form) with the major
components (compiler, kernel, and so on) of the operating system on
which the executable runs, unless that component itself accompanies
the executable.
It may happen that this requirement contradicts the license
restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.
7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
library, provided that the separate distribution of the work based on
the Library and of the other library facilities is otherwise
permitted, and provided that you do these two things:
a) Accompany the combined library with a copy of the same work
based on the Library, uncombined with any other library
facilities. This must be distributed under the terms of the
Sections above.
b) Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
where to find the accompanying uncombined form of the same work.
8. You may not copy, modify, sublicense, link with, or distribute
the Library except as expressly provided under this License. Any
attempt otherwise to copy, modify, sublicense, link with, or
distribute the Library is void, and will automatically terminate your
rights under this License. However, parties who have received copies,
or rights, from you under this License will not have their licenses
terminated so long as such parties remain in full compliance.
9. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Library or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Library (or any work based on the
Library), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Library or works based on it.
10. Each time you redistribute the Library (or any work based on the
Library), the recipient automatically receives a license from the
original licensor to copy, distribute, link with or modify the Library
subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties with
this License.
11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Library at all. For example, if a patent
license would not permit royalty-free redistribution of the Library by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Library.
If any portion of this section is held invalid or unenforceable under any
particular circumstance, the balance of the section is intended to apply,
and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
12. If the distribution and/or use of the Library is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Library under this License may add
an explicit geographical distribution limitation excluding those countries,
so that distribution is permitted only in or among countries not thus
excluded. In such case, this License incorporates the limitation as if
written in the body of this License.
13. The Free Software Foundation may publish revised and/or new
versions of the Lesser General Public License from time to time.
Such new versions will be similar in spirit to the present version,
but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Library
specifies a version number of this License which applies to it and
"any later version", you have the option of following the terms and
conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.
14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
copyrighted by the Free Software Foundation, write to the Free
Software Foundation; we sometimes make exceptions for this. Our
decision will be guided by the two goals of preserving the free status
of all derivatives of our free software and of promoting the sharing
and reuse of software generally.
NO WARRANTY
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Libraries
If you develop a new library, and you want it to be of the greatest
possible use to the public, we recommend making it free software that
everyone can redistribute and change. You can do so by permitting
redistribution under these terms (or, alternatively, under the terms of the
ordinary General Public License).
To apply these terms, attach the following notices to the library. It is
safest to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.
<one line to give the library's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA
Also add information on how to contact you by electronic and paper mail.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the library, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the
library `Frob' (a library for tweaking knobs) written by James Random
Hacker.
<signature of Ty Coon>, 1 April 1990
Ty Coon, President of Vice
That's all there is to it!

31
libs/php_idn/README.md Normal file
View File

@ -0,0 +1,31 @@
PHP IDN Punycode
================
Encode and decode IDN Punycode if not exists internal php functions `idn_to_ascii` and `idn_to_utf8`.
Functions use algorithm by rfc 3492.
[![Build Status](https://travis-ci.org/IgorVBelousov/php_idn.svg?branch=master)](https://travis-ci.org/IgorVBelousov/php_idn)
**function EncodePunycodeIDN( $value )** string
Encode UTF-8 domain name to IDN Punycode
Parameters:
string **$value** Domain name
Returns:
Encoded Domain name
**function DecodePunycodeIDN( $value )** string
Decode IDN Punycode to UTF-8 domain name
Parameters:
string **$value** Punycode
Returns:
Domain name in UTF-8 charset

320
libs/php_idn/idna.php Normal file
View File

@ -0,0 +1,320 @@
<?php
/**
* Finds the character code for a UTF-8 character: like ord() but for UTF-8.
*
* @author Nicolas Thouvenin <nthouvenin@gmail.com>
* @copyright 2008 Nicolas Thouvenin
* @license http://opensource.org/licenses/LGPL-2.1 LGPL v2.1
*/
function ordUTF8($c, $index = 0, &$bytes = null)
{
$len = strlen($c);
$bytes = 0;
if ($index >= $len)
return false;
$h = ord($c{$index});
if ($h <= 0x7F) {
$bytes = 1;
return $h;
}
else if ($h < 0xC2)
return false;
else if ($h <= 0xDF && $index < $len - 1) {
$bytes = 2;
return ($h & 0x1F) << 6 | (ord($c{$index + 1}) & 0x3F);
}
else if ($h <= 0xEF && $index < $len - 2) {
$bytes = 3;
return ($h & 0x0F) << 12 | (ord($c{$index + 1}) & 0x3F) << 6
| (ord($c{$index + 2}) & 0x3F);
}
else if ($h <= 0xF4 && $index < $len - 3) {
$bytes = 4;
return ($h & 0x0F) << 18 | (ord($c{$index + 1}) & 0x3F) << 12
| (ord($c{$index + 2}) & 0x3F) << 6
| (ord($c{$index + 3}) & 0x3F);
}
else
return false;
}
/**
* Encode UTF-8 domain name to IDN Punycode
*
* @param string $value Domain name
* @return string Encoded Domain name
*
* @author Igor V Belousov <igor@belousovv.ru>
* @copyright 2013, 2015 Igor V Belousov
* @license http://opensource.org/licenses/LGPL-2.1 LGPL v2.1
* @link http://belousovv.ru/myscript/phpIDN
*/
function EncodePunycodeIDN( $value )
{
if ( function_exists( 'idn_to_ascii' ) ) {
return idn_to_ascii( $value );
}
/* search subdomains */
$sub_domain = explode( '.', $value );
if ( count( $sub_domain ) > 1 ) {
$sub_result = '';
foreach ( $sub_domain as $sub_value ) {
$sub_result .= '.' . EncodePunycodeIDN( $sub_value );
}
return substr( $sub_result, 1 );
}
/* http://tools.ietf.org/html/rfc3492#section-6.3 */
$n = 0x80;
$delta = 0;
$bias = 72;
$output = array();
$input = array();
$str = $value;
while ( mb_strlen( $str , 'UTF-8' ) > 0 )
{
array_push( $input, mb_substr( $str, 0, 1, 'UTF-8' ) );
$str = (version_compare(PHP_VERSION, '5.4.8','<'))?mb_substr( $str, 1, mb_strlen($str, 'UTF-8') , 'UTF-8' ):mb_substr( $str, 1, null, 'UTF-8' );
}
/* basic symbols */
$basic = preg_grep( '/[\x00-\x7f]/', $input );
$b = $basic;
if ( $b == $input )
{
return $value;
}
$b = count( $b );
if ( $b > 0 ) {
$output = $basic;
/* add delimeter */
$output[] = '-';
}
unset($basic);
/* add prefix */
array_unshift( $output, 'xn--' );
$input_len = count( $input );
$h = $b;
$ord_input = array();
while ( $h < $input_len ) {
$m = 0x10FFFF;
for ( $i = 0; $i < $input_len; ++$i )
{
$ord_input[ $i ] = ordUtf8( $input[ $i ] );
if ( ( $ord_input[ $i ] >= $n ) && ( $ord_input[ $i ] < $m ) )
{
$m = $ord_input[ $i ];
}
}
if ( ( $m - $n ) > ( 0x10FFFF / ( $h + 1 ) ) )
{
return $value;
}
$delta += ( $m - $n ) * ( $h + 1 );
$n = $m;
for ( $i = 0; $i < $input_len; ++$i )
{
$c = $ord_input[ $i ];
if ( $c < $n )
{
++$delta;
if ( $delta == 0 )
{
return $value;
}
}
if ( $c == $n )
{
$q = $delta;
for ( $k = 36;; $k += 36 )
{
if ( $k <= $bias )
{
$t = 1;
}
elseif ( $k >= ( $bias + 26 ) )
{
$t = 26;
}
else
{
$t = $k - $bias;
}
if ( $q < $t )
{
break;
}
$tmp_int = $t + ( $q - $t ) % ( 36 - $t );
$output[] = chr( ( $tmp_int + 22 + 75 * ( $tmp_int < 26 ) ) );
$q = ( $q - $t ) / ( 36 - $t );
}
$output[] = chr( ( $q + 22 + 75 * ( $q < 26 ) ) );
/* http://tools.ietf.org/html/rfc3492#section-6.1 */
$delta = ( $h == $b ) ? $delta / 700 : $delta>>1;
$delta += intval( $delta / ( $h + 1 ) );
$k2 = 0;
while ( $delta > 455 )
{
$delta /= 35;
$k2 += 36;
}
$bias = intval( $k2 + 36 * $delta / ( $delta + 38 ) );
/* end section-6.1 */
$delta = 0;
++$h;
}
}
++$delta;
++$n;
}
return implode( '', $output );
}
/**
* Decode IDN Punycode to UTF-8 domain name
*
* @param string $value Punycode
* @return string Domain name in UTF-8 charset
*
* @author Igor V Belousov <igor@belousovv.ru>
* @copyright 2013, 2015 Igor V Belousov
* @license http://opensource.org/licenses/LGPL-2.1 LGPL v2.1
* @link http://belousovv.ru/myscript/phpIDN
*/
function DecodePunycodeIDN( $value )
{
if ( function_exists( 'idn_to_utf8' ) ) {
return idn_to_utf8( $value );
}
/* search subdomains */
$sub_domain = explode( '.', $value );
if ( count( $sub_domain ) > 1 ) {
$sub_result = '';
foreach ( $sub_domain as $sub_value ) {
$sub_result .= '.' . DecodePunycodeIDN( $sub_value );
}
return substr( $sub_result, 1 );
}
/* search prefix */
if ( substr( $value, 0, 4 ) != 'xn--' )
{
return $value;
}
else
{
$bad_input = $value;
$value = substr( $value, 4 );
}
$n = 0x80;
$i = 0;
$bias = 72;
$output = array();
/* search delimeter */
$d = strrpos( $value, '-' );
if ( $d > 0 ) {
for ( $j = 0; $j < $d; ++$j) {
$c = $value[ $j ];
$output[] = $c;
if ( $c > 0x7F )
{
return $bad_input;
}
}
++$d;
} else {
$d = 0;
}
while ($d < strlen( $value ) )
{
$old_i = $i;
$w = 1;
for ($k = 36;; $k += 36)
{
if ( $d == strlen( $value ) )
{
return $bad_input;
}
$c = $value[ $d++ ];
$c = ord( $c );
$digit = ( $c - 48 < 10 ) ? $c - 22 :
(
( $c - 65 < 26 ) ? $c - 65 :
(
( $c - 97 < 26 ) ? $c - 97 : 36
)
);
if ( $digit > ( 0x10FFFF - $i ) / $w )
{
return $bad_input;
}
$i += $digit * $w;
if ( $k <= $bias )
{
$t = 1;
}
elseif ( $k >= $bias + 26 )
{
$t = 26;
}
else
{
$t = $k - $bias;
}
if ( $digit < $t ) {
break;
}
$w *= 36 - $t;
}
$delta = $i - $old_i;
/* http://tools.ietf.org/html/rfc3492#section-6.1 */
$delta = ( $old_i == 0 ) ? $delta/700 : $delta>>1;
$count_output_plus_one = count( $output ) + 1;
$delta += intval( $delta / $count_output_plus_one );
$k2 = 0;
while ( $delta > 455 )
{
$delta /= 35;
$k2 += 36;
}
$bias = intval( $k2 + 36 * $delta / ( $delta + 38 ) );
/* end section-6.1 */
if ( $i / $count_output_plus_one > 0x10FFFF - $n )
{
return $bad_input;
}
$n += intval( $i / $count_output_plus_one );
$i %= $count_output_plus_one;
array_splice( $output, $i, 0,
html_entity_decode( '&#' . $n . ';', ENT_NOQUOTES, 'UTF-8' )
);
++$i;
}
return implode( '', $output );
}

View File

@ -0,0 +1,56 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style type="text/css">
.button {
background-color: #4CAF50;
border: none;
color: white;
padding: 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
}
.button1 {border-radius: 12px;}
</style>
</head>
<body>
<h2 style="text-align: center;">%service_status_update_from% %name%</h2>
<hr />
<table style="height: 240px; width: 624px; margin-left: auto; margin-right: auto;">
<tbody>
<tr style="height: 11px;">
<td style="width: 232.383px; height: 11px; text-align: right;"><strong>%services_impacted%:</strong></td>
<td style="width: 375.617px; height: 11px;">%service%</td>
</tr>
<tr style="height: 11px;">
<td style="width: 232.383px; height: 11px; text-align: right;"><strong>%status_label%:</strong></td>
<td style="width: 375.617px; height: 11px;">%status%</td>
</tr>
<tr style="height: 14.7667px;">
<td style="width: 232.383px; height: 14.7667px; text-align: right;"><strong>%time_label%:</strong></td>
<td style="width: 375.617px; height: 14.7667px;">%time%</td>
</tr>
<tr style="height: 53px;">
<td style="width: 232.383px; height: 53px;">&nbsp;</td>
<td style="width: 375.617px; height: 53px; text-align: left;">%comment%</td>
</tr>
</tbody>
</table>
<hr />
<table style="height: 27px; margin-left: auto; margin-right: auto;" width="192">
<tbody>
<tr>
<td style="text-align: center;"><a href="%url%/?do=manage&amp;token=%token%"><button class="button button1">%manage_subscription%</button></a></td>
</tr>
</tbody>
</table>
<p style="text-align: center;"><a href="%url%/?do=unsubscribe&amp;token=%token%"><sub><sup>%unsubscribe%</sup></sub></a></p>
<p style="text-align: center;"><a href="%url%"><img src="%url%/favicon/apple-icon-57x57.png" alt="" />&nbsp;%powered_by%&nbsp;Server-Status</a></p>

View File

@ -15,7 +15,7 @@ msgstr "Stránka nenalezena"
msgid "Sorry, but the page you were trying to view does not exist."
msgstr "Stránka, kterou se pokoušíte zobrazit, bohužel neexistuje."
#: admin/dashboard.php:22 admin/dashboard.php:26 template.php:106
#: admin/dashboard.php:22 admin/dashboard.php:26 template.php:115
msgid "Dashboard"
msgstr "Nástěnka"
@ -27,7 +27,7 @@ msgstr "Vítejte"
msgid "New incident"
msgstr "Nová událost"
#: admin/dashboard.php:72 install.php:48 install.php:157
#: admin/dashboard.php:72 install.php:48 install.php:163
msgid "Title"
msgstr "Název"
@ -35,23 +35,23 @@ msgstr "Název"
msgid "Time"
msgstr "Čas"
#: admin/dashboard.php:75
#: admin/dashboard.php:77
msgid "Here goes your text..."
msgstr "Sem napište svůj text..."
#: admin/dashboard.php:78 classes/incident.php:177
#: admin/dashboard.php:80 classes/incident.php:183
msgid "Posted by"
msgstr "Zveřejnil"
#: admin/dashboard.php:78 classes/incident.php:179
#: admin/dashboard.php:80 classes/incident.php:185
msgid "Ending"
msgstr "Končí"
#: admin/dashboard.php:78
#: admin/dashboard.php:80
msgid "End time"
msgstr "Konec"
#: admin/dashboard.php:96 admin/new-user.php:53
#: admin/dashboard.php:99 admin/new-user.php:53
msgid "Submit"
msgstr "Odeslat"
@ -64,13 +64,13 @@ msgid "Please login to continue."
msgstr "Pro pokračování se přihlašte."
#: admin/login-form.php:15 admin/login-form.php:16 admin/lost-password.php:46
#: admin/lost-password.php:48 admin/new-user.php:24 admin/settings.php:69
#: classes/user.php:125 classes/user.php:375 install.php:163 install.php:188
#: admin/lost-password.php:48 admin/new-user.php:24 admin/settings.php:72
#: classes/user.php:120 classes/user.php:404 install.php:169 install.php:210
msgid "Email"
msgstr "Email"
#: admin/login-form.php:19 admin/login-form.php:20 admin/new-user.php:27
#: classes/user.php:128 classes/user.php:357 install.php:176 install.php:191
#: classes/user.php:123 classes/user.php:417 install.php:182 install.php:213
msgid "Password"
msgstr "Heslo"
@ -114,17 +114,17 @@ msgstr "Odeslat požadavek"
msgid "Reset password for %s (%s)"
msgstr "Zresetovat heslo uživatele %s (%s)"
#: admin/lost-password.php:60 admin/lost-password.php:61 classes/user.php:361
#: classes/user.php:362
#: admin/lost-password.php:60 admin/lost-password.php:61 classes/user.php:421
#: classes/user.php:422
msgid "New password"
msgstr "Nové heslo"
#: admin/lost-password.php:62 admin/lost-password.php:63 classes/user.php:363
#: classes/user.php:364
#: admin/lost-password.php:62 admin/lost-password.php:63 classes/user.php:423
#: classes/user.php:424
msgid "Repeat password"
msgstr "Zopakujte heslo"
#: admin/lost-password.php:64 classes/user.php:365
#: admin/lost-password.php:64 classes/user.php:425
msgid "Change password"
msgstr "Změnit heslo"
@ -132,18 +132,21 @@ msgstr "Změnit heslo"
msgid "New user"
msgstr "Nový uživatel"
#: admin/new-user.php:19 admin/settings.php:38 admin/settings.php:69
#: classes/user.php:119 install.php:152 install.php:162 install.php:183
#: admin/new-user.php:19 admin/settings.php:39 admin/settings.php:72
#: classes/user.php:114 classes/user.php:322 classes/user.php:326
#: classes/user.php:327 classes/user.php:488 install.php:158 install.php:168
#: install.php:190 install.php:205
msgid "Name"
msgstr "Jméno"
#: admin/new-user.php:20 admin/settings.php:69 classes/user.php:122
#: install.php:184
#: admin/new-user.php:20 admin/settings.php:72 classes/user.php:117
#: classes/user.php:323 classes/user.php:329 classes/user.php:330
#: classes/user.php:491 install.php:206
msgid "Surname"
msgstr "Příjmení"
#: admin/new-user.php:23 admin/settings.php:69 classes/user.php:317
#: install.php:187
#: admin/new-user.php:23 admin/settings.php:72 classes/user.php:349
#: install.php:209
msgid "Username"
msgstr "Uživatelské jméno"
@ -151,7 +154,7 @@ msgstr "Uživatelské jméno"
msgid "Permission"
msgstr "Oprávnění"
#: admin/settings.php:12 template.php:108
#: admin/settings.php:12 template.php:117
msgid "Settings"
msgstr "Nastavení"
@ -163,35 +166,35 @@ msgstr "Služby"
msgid "Add service"
msgstr "Přidat službu"
#: admin/settings.php:37 admin/settings.php:69 classes/user.php:313
#: admin/settings.php:38 admin/settings.php:72
msgid "ID"
msgstr "ID"
#: admin/settings.php:41
#: admin/settings.php:42
msgid "Delete"
msgstr "Smazat"
#: admin/settings.php:65
#: admin/settings.php:67
msgid "Users"
msgstr "Uživatelé"
#: admin/settings.php:66
#: admin/settings.php:68
msgid "Add new user"
msgstr "Přidat uživatele"
#: admin/settings.php:69 classes/user.php:329
#: admin/settings.php:72 classes/user.php:372
msgid "Role"
msgstr "Role"
#: admin/user.php:35 install.php:175 install.php:180
#: admin/user.php:45 admin/user.php:54 install.php:181 install.php:202
msgid "User"
msgstr "Uživatel"
#: admin/user.php:39
#: admin/user.php:52
msgid "User settings"
msgstr "Nastavení uživatele"
#: classes/constellation.php:36
#: classes/constellation.php:36 template.php:4
msgid "Planned maintenance"
msgstr "Plánovaná údržba"
@ -207,43 +210,43 @@ msgstr "Historie událostí"
msgid "No incidents"
msgstr "Žádné události"
#: classes/constellation.php:62
#: classes/constellation.php:61
msgid "Load more"
msgstr "Zobrazit více"
#: classes/constellation.php:100
#: classes/constellation.php:101
msgid "No services"
msgstr "Žádné služby"
#: classes/incident.php:83
#: classes/incident.php:87
msgid "Please enter title"
msgstr "Prosím zadejte nadpis"
#: classes/incident.php:86
#: classes/incident.php:90
msgid "Title too long! Character limit is 50"
msgstr "Nadpis je moc dlouhý! Maximální počet znaků je 50"
#: classes/incident.php:92
#: classes/incident.php:96
msgid "Please enter text"
msgstr "Prosím vložte text"
#: classes/incident.php:98
#: classes/incident.php:102
msgid "Please set start and end time! Use ISO 8601 format."
msgstr "Nastavte prosím čas začátku a konce! Použijte ISO 8601 formát."
#: classes/incident.php:103
#: classes/incident.php:107
msgid "Please select at least one service"
msgstr "Vyberte alespoň jednu službu"
#: classes/incident.php:121
#: classes/incident.php:127
msgid "Start date format is not recognized. Please use ISO 8601 format."
msgstr "Formát času počátku nebyl rozeznán. Použijte prosím ISO 8601 formát."
#: classes/incident.php:127
#: classes/incident.php:133
msgid "End date format is not recognized. Please use ISO 8601 format."
msgstr "Formát času konce nebyl rozeznán. Použijte prosím ISO 8601 formát."
#: classes/incident.php:179
#: classes/incident.php:185
msgid "Ended"
msgstr "Skončilo"
@ -255,128 +258,128 @@ msgstr "Název služby je moc dlouhý! Maximální počet znaků je 50"
msgid "Please enter name!"
msgstr "Zadejte prosím název!"
#: classes/service.php:81 classes/service.php:123 classes/user.php:102
#: classes/user.php:204
#: classes/service.php:81 classes/service.php:123 classes/user.php:97
#: classes/user.php:199
msgid "You don't have the permission to do that!"
msgstr "Nemáte oprávnění toto provést!"
#: classes/user.php:165
#: classes/user.php:164
msgid "Please mind the following character limits: "
msgstr "Respektujte prosím tyto limity znaků:"
#: classes/user.php:182
#: classes/user.php:185
msgid "User account created"
msgstr "Uživatelský účet vytvořen"
#: classes/user.php:183
#: classes/user.php:186
msgid "Hi %s!<br>Your account has been created. You can login with your email address at <a href=\"%s\">%s</a> with password %s - please change it as soon as possible."
msgstr "Zdravíme, %s!<br>Váš uživatelský účet byl právě vytvořen. Nyní se můžete přihlásit Vaší emailovou adresou zde <a href=\"%s\">%s</a> s heslem %s - prosíme změňte ho co nejdříve."
#: classes/user.php:196
#: classes/user.php:180
msgid "Username or email already used"
msgstr "Uživatelské jméno nebo heslo se již používá"
#: classes/user.php:236
#: classes/user.php:244
msgid "Your account has been disabled. Please contact administrator."
msgstr "Váš účet je deaktivovaný. Prosím kontaktujte správce."
#: classes/user.php:248 classes/user.php:264
#: classes/user.php:233 classes/user.php:256
msgid "Wrong email or password"
msgstr "Neplatné uživatelské jméno nebo heslo."
#: classes/user.php:295
#: classes/user.php:299
msgid "Invalid token detected, please login again!"
msgstr "Neplatný token, přihlašte se prosím znovu!"
#: classes/user.php:309
#: classes/user.php:314
msgid "Profile picture"
msgstr "Profilový obrázek"
#: classes/user.php:334
#: classes/user.php:379
msgid "Change role"
msgstr "Změnit roli"
#: classes/user.php:349
#: classes/user.php:394
msgid "Change email"
msgstr "Změnit email"
#: classes/user.php:359 classes/user.php:360
#: classes/user.php:419 classes/user.php:420
msgid "Old password"
msgstr "Staré heslo"
#: classes/user.php:412
#: classes/user.php:526
msgid "Passwords do not match!"
msgstr "Hesla se neshodují"
#: classes/user.php:418
#: classes/user.php:534
msgid "Cannot change password of other users!"
msgstr "Nemůžete změnit heslo jiného uživatele!"
#: classes/user.php:448
#: classes/user.php:567
msgid "Wrong password!"
msgstr "Chybné heslo!"
#: classes/user.php:474 classes/user.php:565
#: classes/user.php:595 classes/user.php:695
msgid "Invalid token detected, please retry your request from start!"
msgstr "Neplatný token, zkuste požadavek zadat znovu od začátku!"
#: classes/user.php:504
#: classes/user.php:623
msgid "Reset password"
msgstr "Resetovat heslo"
#: classes/user.php:529
#: classes/user.php:659
msgid "Email change"
msgstr "Změna emailu"
#: classes/incident.php:50 classes/user.php:608
#: classes/incident.php:54 classes/user.php:736
msgid "You don't have permission to do that!"
msgstr "Nemáte oprávnění toto provést!"
#: config.php:40
#: template.php:4
msgid "Major outage"
msgstr "Závažný problém"
#: config.php:40
#: template.php:4
msgid "Minor outage"
msgstr "Menší výpadek"
#: config.php:40
#: template.php:4
msgid "Operational"
msgstr "V provozu"
#: config.php:43
#: template.php:7
msgid "Some systems are experiencing major outages"
msgstr "Některé systémy mají závažné výpadky"
#: config.php:43
#: template.php:7
msgid "Some systems are experiencing minor outages"
msgstr "Některé systémy mají menší problémy"
#: config.php:43
#: template.php:7
msgid "Some systems are under maintenance"
msgstr "Některé systémy prochází plánovanou údržbou"
#: config.php:44
#: template.php:8
msgid "Our systems are experiencing major outages."
msgstr "Naše systémy mají závažné problémy"
#: config.php:44
#: template.php:8
msgid "Our systems are experiencing minor outages"
msgstr "Naše systémy mají menší problémy"
#: config.php:44
#: template.php:8
msgid "Our systems are under maintenance"
msgstr "Naše systémy prochází plánovanou údržbou"
#: config.php:44
#: template.php:8
msgid "All systems operational"
msgstr "Všechny systémy v provozu"
#: config.php:45
#: template.php:9
msgid "Super admin"
msgstr "Super admin"
#: config.php:45
#: template.php:9
msgid "Admin"
msgstr "Admin"
@ -384,15 +387,15 @@ msgstr "Admin"
msgid "Service Status"
msgstr "Status služeb"
#: template.php:97
#: template.php:106
msgid "Toggle navigation"
msgstr "Přepnout navigaci"
#: template.php:107
#: template.php:116
msgid "User (%s)"
msgstr "Uživatel (%s)"
#: template.php:109
#: template.php:118
msgid "Logout"
msgstr "Odhlásit"
@ -404,11 +407,11 @@ msgstr "Momentální stav"
msgid "Status page"
msgstr "Status page"
#: install.php:133
#: install.php:139
msgid "Install"
msgstr "Instalovat"
#: install.php:135
#: install.php:141
msgid "Installation"
msgstr "Instalace"
@ -426,55 +429,55 @@ msgstr "Zadejte prosím valitní adresu url!"
msgid "Error while creating database. Please check permission for your account or MYSQL version.<br>Error: %s"
msgstr "Chyba při vytváření databáze. Prosím zkontrolujte oprávnění účtu nebo verzi MYSQL. <br>Chybová hláška: %s"
#: install.php:148
#: install.php:154
msgid "Website details"
msgstr "Detaily webu"
#: install.php:40 install.php:153
#: install.php:40 install.php:159
msgid "Url"
msgstr "Url"
#: install.php:160
#: install.php:166
msgid "Also an email address for mailer would be nice :)"
msgstr "Také emailová adresa pro mailovací skript by bodla :)"
#: install.php:167
#: install.php:173
msgid "Database connection"
msgstr "Připojení k databázi"
#: install.php:168
#: install.php:174
msgid "We need database connection to be able to create tables. Please check that your account has the permission needed to do that."
msgstr "Potřebujeme aby databázové spojení mohlo vytvářet tabulky. Prosím zkontrolujte že k tomu máte oprávnění."
#: install.php:171
#: install.php:177
msgid "Server"
msgstr "Server"
#: install.php:172
#: install.php:178
msgid "Database"
msgstr "Databáze"
#: install.php:181
#: install.php:203
msgid "And finally, we need info to create a new user. You don't have to provide it, but then... No status page admin..."
msgstr "A nakonec potřebujeme info pro vytvoření uživatele. Nemusíte nám ho dát, ale jak pak vlezete do administrace?"
#: install.php:194
#: install.php:216
msgid "Run install!"
msgstr "Spustit instalaci!"
#: classes/user.php:132
#: classes/user.php:127
msgid "Rank"
msgstr "Hodnost"
#: classes/user.php:505
#: classes/user.php:624
msgid "Hi %s!<br>Below you will find link to change your password. The link is valid for 24hrs. If you didn't request this, feel free to ignore it. <br><br><a href=\"%s\">RESET PASSWORD</a><br><br>If the link doesn't work, copy &amp; paste it into your browser: <br>%s"
msgstr "Zdravíme, %s!<br>Níže naleznete odkaz pro změnu hesla. Odkaz je platný 24 hodin. Pokud jste o resetování hesla nepožádali, zprávu můžete ignorovat. <br><br><a href=\"%s\">ZRESETOVAT HESLO</a><br><br>Pokud odkaz nefunguje, zkopírujte ho do svého prohlížeče: <br>%s"
#: classes/user.php:530
#: classes/user.php:660
msgid "Hi %s!<br>Below you will find link to change your email. The link is valid for 24hrs. If you didn't request this, feel free to ignore it. <br><br><a href=\"%s\">CHANGE EMAIL</a><br><br>If the link doesn't work, copy &amp; paste it into your browser: <br>%s"
msgstr "Zdravíme, %s!<br>Níže naleznete odkaz pro změnu emailu. Odkaz je platný 24 hodin. Pokud jste o resetování hesla nepožádali, zprávu můžete ignorovat. <br><br><a href=\"%s\">ZRESETOVAT HESLO</a><br><br>Pokud odkaz nefunguje, zkopírujte ho do svého prohlížeče: <br>%s"
#: config.php:45
#: template.php:9
msgid "Editor"
msgstr "Editor"
@ -506,19 +509,19 @@ msgstr "Uživatel databáze"
msgid "Database password"
msgstr "Heslo databáze"
#: template.php:138
#: template.php:147
msgid "Toggle Dropdown"
msgstr "Přepnout dropdown"
#: template.php:147
#: template.php:156
msgid "Help with translation!"
msgstr "Pomozte s překladem"
#: classes/user.php:389
#: classes/user.php:439
msgid "Deactivate user"
msgstr "Deaktivovat uživatele"
#: classes/user.php:391
#: classes/user.php:441
msgid "Activate user"
msgstr "Aktivovat uživatele"
@ -526,15 +529,138 @@ msgstr "Aktivovat uživatele"
msgid "Please enter"
msgstr "Prosím zadejte"
#: install.php:144
#: install.php:150
msgid "We will ask you some basic questions about your website. Most of the settings can be later edited in the config.php file."
msgstr "Budeme se Vás ptát na pár základních otázek o Vašem webu. Většinu nastavení lze pak změnit v souboru config.php"
#: install.php:149
#: install.php:155
msgid "We need a name for your status page (shown behind page title after the dash) and a url of your server status installation (i.e. <a href='#'>https://example.com/status</a> - without the trailing slash), so we can mail users link for forgotten password etc..."
msgstr "Potřebujeme název pro vaši status stránku (zobrazen za pomlčkou) a odkaz na umístění webu (např. <a href='#'>https://example.com/status</a> - bez lomítka na konci), abychom mohli uživatelům poslat odkaz pro obnovení hesla atd."
#: install.php:155
#: install.php:161
msgid "A title that you want to be shown on the top of the page."
msgstr "Název který chcete mít zobrazen na vrchu stránky."
#: api/status.php:24
msgid "Service does not exist!"
msgstr "Služba neexistuje!"
#: classes/user.php:220
msgid "Please fill in your email and password!"
msgstr "Vyplňte prosím email a heslo!"
#: classes/user.php:336
msgid "Change name"
msgstr "Změnit jméno"
#: classes/user.php:356
msgid "Change username"
msgstr "Změnit přezdívku"
#: classes/user.php:463
msgid "This username is already taken."
msgstr "Tato přezdívka je už používána."
#: classes/user.php:470
msgid "Cannot change username of other users!"
msgstr "Nemůžete měnit přezdívky ostatních!"
#: classes/user.php:504
msgid "Cannot change names of other users!"
msgstr "Nemůžete měnit jména ostatních!"
#: classes/user.php:667
msgid "Confirmation email sent!"
msgstr "Potvrzovací email byl odeslán!"
#: install.php:186 policy.php:6
msgid "Privacy Policy"
msgstr "Ochrana soukromí"
#: install.php:190
msgid "Company name"
msgstr "Název společnosti"
#: install.php:191
msgid "Address"
msgstr "Adresa"
#: install.php:191
msgid "Full address"
msgstr "Celá adresa"
#: install.php:194
msgid "E-Mail"
msgstr "E-Mail"
#: install.php:195
msgid "Phone"
msgstr "Telefon"
#: install.php:195
msgid "Phone number"
msgstr "Telefonní číslo"
#: install.php:198 policy.php:7
msgid "Who we are"
msgstr "Kdo jsme"
#: policy.php:9
msgid "Contact"
msgstr "Kontakt"
#: policy.php:17
msgid "What personal data we collect and why"
msgstr "Jaké data sbíráme a proč"
#: policy.php:19
msgid "If you access our websites, the following information will be saved: IP-address, Date, Time, Browser queries, \n"
"\tGeneral information about your browser, operating system and all search queries on the sites. \n"
"\tThis user data will be used for anonym user statistics to recognize trends and improve our content.\n"
"\t"
msgstr "Při přístupu na náš web bude uloženo následující: IP adresa, datum, čas, dotaz, obecné informace o Vašem prohlížeči, operační systém a vaše vyhledávání. Tyto uživatelské data jsou využita pro anonymní uživatelské statistiky pro rozeznání trendů a zlepšení obsahu."
#: policy.php:23
msgid "How we protect your data"
msgstr "Jak chráníme vaše data"
#: policy.php:24
msgid "In collaboration with our hosting provider we try our best to protect our \n"
"\tdatabases against access from third parties, losses, misuse or forgery.\n"
"\t"
msgstr "Spolu s naším poskytovatelem hostingu se snažíme, aby naše databáze byly co nejlépe zabezpečené proti neoprávněnému přístupu třetích stran, ztrát, zneužití nebo padělání."
#: policy.php:27
msgid "Third party that receive your personal data"
msgstr "Třetí strany, kterým poskytujeme vaše data"
#: policy.php:29
msgid "Cookies"
msgstr "Cookies"
#: policy.php:30
msgid "This site uses cookies small text files that are placed on your machine to help the site provide a better user experience. \n"
"\tIn general, cookies are used to retain user preferences, store information for things like shopping carts, \n"
"\tand provide anonymised tracking data to third party applications like Google Analytics. \n"
"\tAs a rule, cookies will make your browsing experience better. However, you may prefer to disable cookies on this site and on others. \n"
"\tThe most effective way to do this is to disable cookies in your browser. We suggest consulting the Help section of your browser \n"
"\tor taking a look at the About Cookies website which offers guidance for all modern browsers"
msgstr "Tyto stránky používají soubory cookie - malé textové soubory, které jsou umístěny na vašem počítači a pomáhají nám tak poskytovat lepší uživatelské prostředí.\n"
"Obecně platí, že soubory cookie slouží k uchování uživatelských nastavení, ukládání informací o věcech, jako jsou nákupní vozíky,\n"
"a poskytují anonymní data pro sledovací aplikace třetích stran, jako je Google Analytics.\n"
"Soubory cookie zpravidla zlepšují funkcionalitu stránek. Můžete však upřednostňovat vypnutí souborů cookie na této i ostattních stránkách.\n"
"Nejúčinnější způsob, jak to udělat, je zakázat cookies ve vašem prohlížeči. Navrhujeme využít vestavěnou sekci Nápověda v prohlížeči\n"
"nebo se podívat na webovou stránku \"About Cookies\", která nabízí pokyny pro všechny moderní prohlížeče"
#: install.php:187
msgid "Since you are collecting personal information, the GDPR needs you to have a privacy policy. Enter the details below."
msgstr "Protože sbíráte osobní informace, GDPR vyžaduje poskytnutí informací o ochraně osobních údajů. Vepište detaily níže."
#: install.php:198
msgid "Some info about yourself"
msgstr "Informace o Vás"
#: policy.php:18
msgid "General"
msgstr "Obecné"

Binary file not shown.

View File

@ -0,0 +1,671 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: POEditor.com\n"
"Project-Id-Version: Server status\n"
"Language: da\n"
#: 404.php:12
msgid "Page Not Found"
msgstr "Siden blev ikke fundet\n"
""
#: 404.php:13
msgid "Sorry, but the page you were trying to view does not exist."
msgstr "Beklager, men siden du forsøgte at se findes ikke."
#: admin/dashboard.php:22 admin/dashboard.php:26 template.php:115
msgid "Dashboard"
msgstr "Dashboard"
#: admin/dashboard.php:27
msgid "Welcome"
msgstr "Velkommen"
#: admin/dashboard.php:39
msgid "New incident"
msgstr "Ny hændelse"
#: admin/dashboard.php:72 install.php:48 install.php:163
msgid "Title"
msgstr "Titel"
#: admin/dashboard.php:72
msgid "Time"
msgstr "Tid"
#: admin/dashboard.php:77
msgid "Here goes your text..."
msgstr "Her skal du skrive din tekst"
#: admin/dashboard.php:80 classes/incident.php:183
msgid "Posted by"
msgstr "Tilføjet af"
#: admin/dashboard.php:80 classes/incident.php:185
msgid "Ending"
msgstr "Sluttidspunkt"
#: admin/dashboard.php:80
msgid "End time"
msgstr "Sluttidspunkt"
#: admin/dashboard.php:99 admin/new-user.php:53
msgid "Submit"
msgstr "Send"
#: admin/login-form.php:2 admin/login-form.php:5 admin/login-form.php:27
msgid "Login"
msgstr "Login"
#: admin/login-form.php:11
msgid "Please login to continue."
msgstr "Login for at forsætte"
#: admin/login-form.php:15 admin/login-form.php:16 admin/lost-password.php:46
#: admin/lost-password.php:48 admin/new-user.php:24 admin/settings.php:72
#: classes/user.php:120 classes/user.php:404 install.php:169 install.php:210
msgid "Email"
msgstr "E-Mail"
#: admin/login-form.php:19 admin/login-form.php:20 admin/new-user.php:27
#: classes/user.php:123 classes/user.php:417 install.php:182 install.php:213
msgid "Password"
msgstr "Adgangskode"
#: admin/login-form.php:22
msgid "Forgotten password?"
msgstr "Glemt adgangskode?"
#: admin/login-form.php:23
msgid "Remember me"
msgstr "Husk mig"
#: admin/lost-password.php:2 admin/lost-password.php:5
msgid "Lost password"
msgstr "Glemt adgangskode"
#: admin/lost-password.php:16
msgid "Go back"
msgstr "Tilbage"
#: admin/lost-password.php:20
msgid "Password changed successfully!"
msgstr "Ændring af adgangskode lykkes!"
#: admin/lost-password.php:21 admin/lost-password.php:35
msgid "Go back to login page"
msgstr "Tilbage til login siden"
#: admin/lost-password.php:30
msgid "Go back to start"
msgstr "Tilbage til start"
#: admin/lost-password.php:34
msgid "Email with password reset link has been sent!"
msgstr "E-Mail med link til nulstilling af adgangskode er hermed sendt!"
#: admin/lost-password.php:50
msgid "Submit request"
msgstr "Send anmodning"
#: admin/lost-password.php:57
msgid "Reset password for %s (%s)"
msgstr "Nulstill adgangskode for %s (%s)"
#: admin/lost-password.php:60 admin/lost-password.php:61 classes/user.php:421
#: classes/user.php:422
msgid "New password"
msgstr "Ny adgangskode"
#: admin/lost-password.php:62 admin/lost-password.php:63 classes/user.php:423
#: classes/user.php:424
msgid "Repeat password"
msgstr "Gentag adgangskode"
#: admin/lost-password.php:64 classes/user.php:425
msgid "Change password"
msgstr "Ændre adgangskode"
#: admin/new-user.php:7
msgid "New user"
msgstr "Ny bruger"
#: admin/new-user.php:19 admin/settings.php:39 admin/settings.php:72
#: classes/user.php:114 classes/user.php:322 classes/user.php:326
#: classes/user.php:327 classes/user.php:488 install.php:158 install.php:168
#: install.php:190 install.php:205
msgid "Name"
msgstr "Navn"
#: admin/new-user.php:20 admin/settings.php:72 classes/user.php:117
#: classes/user.php:323 classes/user.php:329 classes/user.php:330
#: classes/user.php:491 install.php:206
msgid "Surname"
msgstr "Efternavn"
#: admin/new-user.php:23 admin/settings.php:72 classes/user.php:349
#: install.php:209
msgid "Username"
msgstr "Brugernavn"
#: admin/new-user.php:29
msgid "Permission"
msgstr "Tilladelse"
#: admin/settings.php:12 template.php:117
msgid "Settings"
msgstr "Indstillinger"
#: admin/settings.php:23
msgid "Services"
msgstr "Tjenester"
#: admin/settings.php:29
msgid "Add service"
msgstr "Tilføj tjeneste"
#: admin/settings.php:38 admin/settings.php:72
msgid "ID"
msgstr "ID"
#: admin/settings.php:42
msgid "Delete"
msgstr "Slet"
#: admin/settings.php:67
msgid "Users"
msgstr "Brugere"
#: admin/settings.php:68
msgid "Add new user"
msgstr "Tilføjer bruger"
#: admin/settings.php:72 classes/user.php:372
msgid "Role"
msgstr "Rolle"
#: admin/user.php:45 admin/user.php:54 install.php:181 install.php:202
msgid "User"
msgstr "Bruger"
#: admin/user.php:52
msgid "User settings"
msgstr "Bruger indstillinger"
#: classes/constellation.php:36 template.php:4
msgid "Planned maintenance"
msgstr "Planlagt vedligeholdelse"
#: classes/constellation.php:42
msgid "Back"
msgstr "Tilbage"
#: classes/constellation.php:44
msgid "Past incidents"
msgstr "Tidligere hændelser"
#: classes/constellation.php:48
msgid "No incidents"
msgstr "Ingen hændelser"
#: classes/constellation.php:61
msgid "Load more"
msgstr "Vis mere"
#: classes/constellation.php:101
msgid "No services"
msgstr "Ingen tjenester"
#: classes/incident.php:87
msgid "Please enter title"
msgstr "Indtast venligst titlen"
#: classes/incident.php:90
msgid "Title too long! Character limit is 50"
msgstr "Titlen er for lang! Karaktergrænsen er 50 tegn."
#: classes/incident.php:96
msgid "Please enter text"
msgstr "Indtast venligst tekst"
#: classes/incident.php:102
msgid "Please set start and end time! Use ISO 8601 format."
msgstr "Indstil start- og sluttidspunktet! Brug ISO 8601-format."
#: classes/incident.php:107
msgid "Please select at least one service"
msgstr "Vælg mindst en tjeneste"
#: classes/incident.php:127
msgid "Start date format is not recognized. Please use ISO 8601 format."
msgstr "Startdato format genkendes ikke. Brug venligst ISO 8601 format."
#: classes/incident.php:133
msgid "End date format is not recognized. Please use ISO 8601 format."
msgstr "Slutdato format er ikke genkendt. Brug venligst ISO 8601 format."
#: classes/incident.php:185
msgid "Ended"
msgstr "Sluttede"
#: classes/service.php:63
msgid "Service name is too long! Character limit is 50"
msgstr "Navnet på tjenesten er for lang! Karaktergrænsen er 50 tegn."
#: classes/service.php:66
msgid "Please enter name!"
msgstr "Indtast venligst navn!"
#: classes/service.php:81 classes/service.php:123 classes/user.php:97
#: classes/user.php:199
msgid "You don't have the permission to do that!"
msgstr "Du har ikke tilladelse til at gøre det!"
#: classes/user.php:164
msgid "Please mind the following character limits: "
msgstr "Vær opmærksom på følgende tegnbegrænsninger:␣"
#: classes/user.php:185
msgid "User account created"
msgstr "Brugerkonto er oprettet"
#: classes/user.php:186
msgid "Hi %s!<br>Your account has been created. You can login with your email address at <a href=\"%s\">%s</a> with password %s - please change it as soon as possible."
msgstr "Hej%s! <br> Din konto er blevet oprettet. Du kan logge ind med din emailadresse på <a href=\"%s\">%s </a> med adgangskode%s - skal du ændre det så hurtigt som muligt."
#: classes/user.php:180
msgid "Username or email already used"
msgstr "Brugernavn eller E-Mail er allerede i brug"
#: classes/user.php:244
msgid "Your account has been disabled. Please contact administrator."
msgstr "Din konto er blevet deaktiveret. Kontakt venligst din administrator"
#: classes/user.php:233 classes/user.php:256
msgid "Wrong email or password"
msgstr "Forkert e-mail eller adgangskode"
#: classes/user.php:299
msgid "Invalid token detected, please login again!"
msgstr "Ugyldigt token fundet, skal du logge ind igen!"
#: classes/user.php:314
msgid "Profile picture"
msgstr "Profil billede"
#: classes/user.php:379
msgid "Change role"
msgstr "Ændre rolle"
#: classes/user.php:394
msgid "Change email"
msgstr "Ændre E-Mail"
#: classes/user.php:419 classes/user.php:420
msgid "Old password"
msgstr "Nuværende adgangskode"
#: classes/user.php:526
msgid "Passwords do not match!"
msgstr "Adgangskoderne var ikke ens!"
#: classes/user.php:534
msgid "Cannot change password of other users!"
msgstr "Kan ikke ændre adgangskode til andre brugere!"
#: classes/user.php:567
msgid "Wrong password!"
msgstr "Forkert adgangskode"
#: classes/user.php:595 classes/user.php:695
msgid "Invalid token detected, please retry your request from start!"
msgstr "Ugyldigt token opdaget, prøv venligst din anmodning fra starten!"
#: classes/user.php:623
msgid "Reset password"
msgstr "Nulstil adgangskode"
#: classes/user.php:659
msgid "Email change"
msgstr "Ændring af e-mail"
#: classes/incident.php:54 classes/user.php:736
msgid "You don't have permission to do that!"
msgstr "Du har ikke tilladelse til at gøre det!"
#: template.php:4
msgid "Major outage"
msgstr "Større nedbrud"
#: template.php:4
msgid "Minor outage"
msgstr "Mindre nedbrug"
#: template.php:4
msgid "Operational"
msgstr "Funktionsdygtig"
#: template.php:7
msgid "Some systems are experiencing major outages"
msgstr "Nogle systemer oplever store nedbrud"
#: template.php:7
msgid "Some systems are experiencing minor outages"
msgstr "Nogle systemer oplever mindre nedbrud"
#: template.php:7
msgid "Some systems are under maintenance"
msgstr "Nogle systemer er under vedligeholdelse"
#: template.php:8
msgid "Our systems are experiencing major outages."
msgstr "Vores systemer oplever store nedbrud."
#: template.php:8
msgid "Our systems are experiencing minor outages"
msgstr "Vores systemer oplever mindre nedbrud."
#: template.php:8
msgid "Our systems are under maintenance"
msgstr "Vores systemer er under vedligeholdelse"
#: template.php:8
msgid "All systems operational"
msgstr "Alle systemer er funktionsdygtige"
#: template.php:9
msgid "Super admin"
msgstr "Super Admin"
#: template.php:9
msgid "Admin"
msgstr "Admin"
#: template.php:53
msgid "Service Status"
msgstr "Tjeneste Status"
#: template.php:106
msgid "Toggle navigation"
msgstr "Skift navigation"
#: template.php:116
msgid "User (%s)"
msgstr "Bruger (%s)"
#: template.php:118
msgid "Logout"
msgstr "Logud"
#: index.php:27
msgid "Current status"
msgstr "Nuværende status"
#: install.php:4
msgid "Status page"
msgstr "Status side"
#: install.php:139
msgid "Install"
msgstr "Installere"
#: install.php:141
msgid "Installation"
msgstr "Installation"
#: install.php:26
msgid "Connection failed: %s\n"
""
msgstr "Forbindelse fejlede: %s"
#: install.php:31
msgid "Please set valid url!"
msgstr "Angiv venligst gyldig URL!"
#: install.php:98
msgid "Error while creating database. Please check permission for your account or MYSQL version.<br>Error: %s"
msgstr "Fejl under oprettelse af database. Tjek venligst tilladelse til din konto eller MYSQL-version. <br> Fejl: %s"
#: install.php:154
msgid "Website details"
msgstr "Website detaljer"
#: install.php:40 install.php:159
msgid "Url"
msgstr "URL"
#: install.php:166
msgid "Also an email address for mailer would be nice :)"
msgstr "Også en mailadresse til mailer ville være rart :)"
#: install.php:173
msgid "Database connection"
msgstr "Database forbindelse"
#: install.php:174
msgid "We need database connection to be able to create tables. Please check that your account has the permission needed to do that."
msgstr "Vi har brug for databaseforbindelse for at kunne oprette tabeller. Kontroller, at din konto har den tilladelse, der er nødvendig for at gøre det."
#: install.php:177
msgid "Server"
msgstr "Server"
#: install.php:178
msgid "Database"
msgstr "Database"
#: install.php:203
msgid "And finally, we need info to create a new user. You don't have to provide it, but then... No status page admin..."
msgstr "Og endelig har vi brug for info for at oprette en ny bruger. Du behøver ikke give det, men så ... Ingen status side admin .."
#: install.php:216
msgid "Run install!"
msgstr "Kør Installation"
#: classes/user.php:127
msgid "Rank"
msgstr "Rang"
#: classes/user.php:624
msgid "Hi %s!<br>Below you will find link to change your password. The link is valid for 24hrs. If you didn't request this, feel free to ignore it. <br><br><a href=\"%s\">RESET PASSWORD</a><br><br>If the link doesn't work, copy &amp; paste it into your browser: <br>%s"
msgstr "Hej %s! <br> Nedenfor finder du link til at ændre dit kodeord. Linket gælder i 24 timer. Hvis du ikke har anmodet om dette, er du velkommen til at ignorere det. <br> <br> <a href=\"%s\"> NULSTIL ADGANGSKODE </a> <br> <br> Hvis linket ikke virker, skal du kopiere &amp; Indsæt det i din browser: <br> %s"
#: classes/user.php:660
msgid "Hi %s!<br>Below you will find link to change your email. The link is valid for 24hrs. If you didn't request this, feel free to ignore it. <br><br><a href=\"%s\">CHANGE EMAIL</a><br><br>If the link doesn't work, copy &amp; paste it into your browser: <br>%s"
msgstr "Hej %s! <br> Nedenfor finder du link til at ændre din email. Linket gælder i 24 timer. Hvis du ikke har anmodet om dette, er du velkommen til at ignorere det. <br> <br> <a href=\"%s\"> ÆNDRE E-MAIL </a> <br> <br> Hvis linket ikke virker, skal du kopiere &amp; Indsæt det i din browser: <br> %s"
#: template.php:9
msgid "Editor"
msgstr "Moderator"
#: install.php:36
msgid "Server name"
msgstr "Server navn"
#: install.php:44
msgid "Mailer name"
msgstr "Mailer navn"
#: install.php:52
msgid "Mailer email"
msgstr "Mailer E-Mail"
#: install.php:56
msgid "Database server"
msgstr "Database server"
#: install.php:60
msgid "Database name"
msgstr "Database navn"
#: install.php:64
msgid "Database user"
msgstr "Database bruger"
#: install.php:69
msgid "Database password"
msgstr "Database adgangskode"
#: template.php:147
msgid "Toggle Dropdown"
msgstr "Skift Dropdown"
#: template.php:156
msgid "Help with translation!"
msgstr "Hjælp med at oversætte!"
#: classes/user.php:439
msgid "Deactivate user"
msgstr "Deaktivere bruger"
#: classes/user.php:441
msgid "Activate user"
msgstr "Aktivere bruger"
#: install.php:73
msgid "Please enter"
msgstr "Kom ind\n"
""
#: install.php:150
msgid "We will ask you some basic questions about your website. Most of the settings can be later edited in the config.php file."
msgstr "Vi vil stille dig nogle grundlæggende spørgsmål om dit websted. De fleste af indstillingerne kan senere redigeres i config.php filen."
#: install.php:155
msgid "We need a name for your status page (shown behind page title after the dash) and a url of your server status installation (i.e. <a href='#'>https://example.com/status</a> - without the trailing slash), so we can mail users link for forgotten password etc..."
msgstr "Vi har brug for et navn til din statusside (vist bag sidetitel efter bindestreg) og en webadresse til din serverstatusinstallation (dvs. <a href='#'> https://example.com/status </a> - uden det efterfølgende skråstreg), så vi kan sende brugerne link til glemt kodeord osv. .."
#: install.php:161
msgid "A title that you want to be shown on the top of the page."
msgstr "En titel, som du vil blive vist øverst på siden."
#: api/status.php:24
msgid "Service does not exist!"
msgstr "Service eksisterer ikke!"
#: classes/user.php:220
msgid "Please fill in your email and password!"
msgstr "Udfyld venligst din email og adgangskode!"
#: classes/user.php:336
msgid "Change name"
msgstr "Ændre navn"
#: classes/user.php:356
msgid "Change username"
msgstr "Ændre brugernavn"
#: classes/user.php:463
msgid "This username is already taken."
msgstr "Denne brugernavn er allerede taget."
#: classes/user.php:470
msgid "Cannot change username of other users!"
msgstr "Kan ikke ændre brugernavnet af andre brugere!"
#: classes/user.php:504
msgid "Cannot change names of other users!"
msgstr "Kan ikke ændre navne på andre brugere!"
#: classes/user.php:667
msgid "Confirmation email sent!"
msgstr "Bekræftelses email sendt"
#: install.php:186 policy.php:6
msgid "Privacy Policy"
msgstr "Fortrolighedspolitik"
#: install.php:190
msgid "Company name"
msgstr "Firmanavn"
#: install.php:191
msgid "Address"
msgstr "Adresse"
#: install.php:191
msgid "Full address"
msgstr "Fuld adresse"
#: install.php:194
msgid "E-Mail"
msgstr "E-Mail"
#: install.php:195
msgid "Phone"
msgstr "Telefon"
#: install.php:195
msgid "Phone number"
msgstr "Telefonnummer"
#: install.php:198 policy.php:7
msgid "Who we are"
msgstr "Hvem vi er"
#: policy.php:9
msgid "Contact"
msgstr "Kontakt"
#: policy.php:17
msgid "What personal data we collect and why"
msgstr "Hvilke personlige data indsamler vi og hvorfor"
#: policy.php:19
msgid "If you access our websites, the following information will be saved: IP-address, Date, Time, Browser queries, \n"
"\tGeneral information about your browser, operating system and all search queries on the sites. \n"
"\tThis user data will be used for anonym user statistics to recognize trends and improve our content.\n"
"\t"
msgstr "Hvis du besøger vores hjemmesider, vil følgende oplysninger blive gemt:\n"
"IP-adresse, Dato, Tid, Browser forespørgsler,\n"
"\tGenerelle oplysninger om din browser, operativsystem og alle søgninger på webstederne. \n"
"\tDisse brugerdata vil blive brugt til anonym brugerstatistik for at genkende trends og forbedre vores indhold."
#: policy.php:23
msgid "How we protect your data"
msgstr "Hvordan vi beskytter dine data"
#: policy.php:24
msgid "In collaboration with our hosting provider we try our best to protect our \n"
"\tdatabases against access from third parties, losses, misuse or forgery.\n"
"\t"
msgstr "I samarbejde med vores hostingudbyder forsøger vi vores bedste for at beskytte vores \n"
"\tdatabaser mod adgang fra tredjepart, tab, misbrug eller forfalskning."
#: policy.php:27
msgid "Third party that receive your personal data"
msgstr "Tredjepart, der modtager dine personlige oplysninger"
#: policy.php:29
msgid "Cookies"
msgstr "Cookies"
#: policy.php:30
msgid "This site uses cookies small text files that are placed on your machine to help the site provide a better user experience. \n"
"\tIn general, cookies are used to retain user preferences, store information for things like shopping carts, \n"
"\tand provide anonymised tracking data to third party applications like Google Analytics. \n"
"\tAs a rule, cookies will make your browsing experience better. However, you may prefer to disable cookies on this site and on others. \n"
"\tThe most effective way to do this is to disable cookies in your browser. We suggest consulting the Help section of your browser \n"
"\tor taking a look at the About Cookies website which offers guidance for all modern browsers"
msgstr "Dette websted bruger cookies - små tekstfiler, der er placeret på din maskine for at hjælpe webstedet med at give en bedre brugeroplevelse.\n"
"\tGenerelt bruges cookies til at bevare brugerens præferencer, gemme oplysninger om ting som indkøbsvogne,\n"
"\tog levere anonymiserede sporingsdata til tredjeparts applikationer som Google Analytics.\n"
"\tCookies vil som regel gøre din browsing oplevelse bedre. Du kan dog foretrække at deaktivere cookies på dette websted og på andre.\n"
"\tDen mest effektive måde at gøre dette på er at deaktivere cookies i din browser. Vi foreslår at konsultere Hjælp-sektionen i din browser\n"
"\teller kig på webstedet About Cookies, der giver vejledning til alle moderne browsere"
#: install.php:187
msgid "Since you are collecting personal information, the GDPR needs you to have a privacy policy. Enter the details below."
msgstr "Siden du samler personlige oplysninger, har GDPR dig brug for en privatlivspolitik. Indtast detaljerne nedenfor."
#: install.php:198
msgid "Some info about yourself"
msgstr "Nogle oplysninger om dig selv"
#: policy.php:18
msgid "General"
msgstr "Generel"

BIN
locale/da_DK/flag.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 645 B

View File

@ -0,0 +1,28 @@
(function (factory) {
if (typeof define === 'function' && define.amd) {
define(['jquery'], factory);
} else if (typeof module === 'object' && typeof module.exports === 'object') {
factory(require('jquery'));
} else {
factory(jQuery);
}
}(function (jQuery) {
// Danish
jQuery.timeago.settings.strings = {
prefixAgo: "for",
prefixFromNow: "om",
suffixAgo: "siden",
suffixFromNow: "",
seconds: "mindre end et minut",
minute: "ca. et minut",
minutes: "%d minutter",
hour: "ca. en time",
hours: "ca. %d timer",
day: "en dag",
days: "%d dage",
month: "ca. en måned",
months: "%d måneder",
year: "ca. et år",
years: "%d år"
};
}));

View File

@ -7,15 +7,15 @@ msgstr ""
"Project-Id-Version: Server status\n"
"Language: de\n"
#: 404.php:7
#: 404.php:12
msgid "Page Not Found"
msgstr ""
msgstr "Seite nicht gefunden"
#: 404.php:8
#: 404.php:13
msgid "Sorry, but the page you were trying to view does not exist."
msgstr ""
msgstr "Entschuldigung, die aufgerufene Seite existiert nicht."
#: admin/dashboard.php:22 admin/dashboard.php:26 template.php:106
#: admin/dashboard.php:22 admin/dashboard.php:26 template.php:115
msgid "Dashboard"
msgstr "Dashboard"
@ -27,7 +27,7 @@ msgstr "Willkommen"
msgid "New incident"
msgstr "Neuer Vorfall"
#: admin/dashboard.php:72
#: admin/dashboard.php:72 install.php:48 install.php:163
msgid "Title"
msgstr "Titel"
@ -35,25 +35,25 @@ msgstr "Titel"
msgid "Time"
msgstr "Zeit"
#: admin/dashboard.php:75
#: admin/dashboard.php:77
msgid "Here goes your text..."
msgstr ""
msgstr "Hier erscheint dein Text..."
#: admin/dashboard.php:78 classes/incident.php:177
#: admin/dashboard.php:80 classes/incident.php:183
msgid "Posted by"
msgstr "gepostet von"
msgstr "Gepostet von"
#: admin/dashboard.php:78 classes/incident.php:179
#: admin/dashboard.php:80 classes/incident.php:185
msgid "Ending"
msgstr "Ende"
#: admin/dashboard.php:78
#: admin/dashboard.php:80
msgid "End time"
msgstr ""
msgstr "Endzeit"
#: admin/dashboard.php:96 admin/new-user.php:53
#: admin/dashboard.php:99 admin/new-user.php:53
msgid "Submit"
msgstr ""
msgstr "Absenden"
#: admin/login-form.php:2 admin/login-form.php:5 admin/login-form.php:27
msgid "Login"
@ -64,13 +64,13 @@ msgid "Please login to continue."
msgstr "Bitte melde dich an um fortzufahren"
#: admin/login-form.php:15 admin/login-form.php:16 admin/lost-password.php:46
#: admin/lost-password.php:48 admin/new-user.php:24 admin/settings.php:69
#: classes/user.php:125 classes/user.php:375 install.php:150 install.php:175
#: admin/lost-password.php:48 admin/new-user.php:24 admin/settings.php:72
#: classes/user.php:120 classes/user.php:404 install.php:169 install.php:210
msgid "Email"
msgstr "Email"
#: admin/login-form.php:19 admin/login-form.php:20 admin/new-user.php:27
#: classes/user.php:128 classes/user.php:357 install.php:163 install.php:178
#: classes/user.php:123 classes/user.php:417 install.php:182 install.php:213
msgid "Password"
msgstr "Passwort"
@ -80,15 +80,15 @@ msgstr "Passwort vergessen?"
#: admin/login-form.php:23
msgid "Remember me"
msgstr ""
msgstr "Eingeloggt bleiben"
#: admin/lost-password.php:2 admin/lost-password.php:5
msgid "Lost password"
msgstr ""
msgstr "Password vergessen"
#: admin/lost-password.php:16
msgid "Go back"
msgstr ""
msgstr "Zurück gehen"
#: admin/lost-password.php:20
msgid "Password changed successfully!"
@ -96,11 +96,11 @@ msgstr "Passwort erfolgreich geändert!"
#: admin/lost-password.php:21 admin/lost-password.php:35
msgid "Go back to login page"
msgstr ""
msgstr "Gehe zurück zum Login"
#: admin/lost-password.php:30
msgid "Go back to start"
msgstr ""
msgstr "Gehe zurück zum Start"
#: admin/lost-password.php:34
msgid "Email with password reset link has been sent!"
@ -108,42 +108,45 @@ msgstr "Email mit Passwort Reset Link wurde versandt!"
#: admin/lost-password.php:50
msgid "Submit request"
msgstr ""
msgstr "Anfrage abschicken"
#: admin/lost-password.php:57
msgid "Reset password for %s (%s)"
msgstr ""
msgstr "Passwort zurücksetzen für %s (%s)"
#: admin/lost-password.php:60 admin/lost-password.php:61 classes/user.php:361
#: classes/user.php:362
#: admin/lost-password.php:60 admin/lost-password.php:61 classes/user.php:421
#: classes/user.php:422
msgid "New password"
msgstr "Neues Passwort"
#: admin/lost-password.php:62 admin/lost-password.php:63 classes/user.php:363
#: classes/user.php:364
#: admin/lost-password.php:62 admin/lost-password.php:63 classes/user.php:423
#: classes/user.php:424
msgid "Repeat password"
msgstr ""
msgstr "Password erneut eingeben"
#: admin/lost-password.php:64 classes/user.php:365
#: admin/lost-password.php:64 classes/user.php:425
msgid "Change password"
msgstr "Passwort ändern"
#: admin/new-user.php:7
msgid "New user"
msgstr "Neuer User"
msgstr "Neuer Benutzer"
#: admin/new-user.php:19 admin/settings.php:38 admin/settings.php:69
#: classes/user.php:119 install.php:144 install.php:149 install.php:170
#: admin/new-user.php:19 admin/settings.php:39 admin/settings.php:72
#: classes/user.php:114 classes/user.php:322 classes/user.php:326
#: classes/user.php:327 classes/user.php:488 install.php:158 install.php:168
#: install.php:190 install.php:205
msgid "Name"
msgstr "Vorname"
#: admin/new-user.php:20 admin/settings.php:69 classes/user.php:122
#: install.php:171
#: admin/new-user.php:20 admin/settings.php:72 classes/user.php:117
#: classes/user.php:323 classes/user.php:329 classes/user.php:330
#: classes/user.php:491 install.php:206
msgid "Surname"
msgstr "Nachname"
#: admin/new-user.php:23 admin/settings.php:69 classes/user.php:317
#: install.php:174
#: admin/new-user.php:23 admin/settings.php:72 classes/user.php:349
#: install.php:209
msgid "Username"
msgstr "Benutzername"
@ -151,7 +154,7 @@ msgstr "Benutzername"
msgid "Permission"
msgstr "Berechtigung"
#: admin/settings.php:12 template.php:108
#: admin/settings.php:12 template.php:117
msgid "Settings"
msgstr "Einstellungen"
@ -163,361 +166,506 @@ msgstr "Services"
msgid "Add service"
msgstr "Services hinzufügen"
#: admin/settings.php:37 admin/settings.php:69 classes/user.php:313
#: admin/settings.php:38 admin/settings.php:72
msgid "ID"
msgstr "ID"
#: admin/settings.php:41
#: admin/settings.php:42
msgid "Delete"
msgstr "löschen"
#: admin/settings.php:65
#: admin/settings.php:67
msgid "Users"
msgstr "Benutzer"
#: admin/settings.php:66
#: admin/settings.php:68
msgid "Add new user"
msgstr "Neuen Benutzer hinzufügen"
#: admin/settings.php:69 classes/user.php:329
#: admin/settings.php:72 classes/user.php:372
msgid "Role"
msgstr "Role"
msgstr "Rolle"
#: admin/user.php:35 install.php:162 install.php:167
#: admin/user.php:45 admin/user.php:54 install.php:181 install.php:202
msgid "User"
msgstr "Benutzer"
#: admin/user.php:39
#: admin/user.php:52
msgid "User settings"
msgstr "Benutzer Einstellungen"
msgstr "Benutzer-Einstellungen"
#: classes/constellation.php:36 config.php:40
#: classes/constellation.php:36 template.php:4
msgid "Planned maintenance"
msgstr "geplante Wartung"
#: classes/constellation.php:42
msgid "Back"
msgstr ""
msgstr "Zurück"
#: classes/constellation.php:44
msgid "Past incidents"
msgstr ""
msgstr "Vergangene Vorfälle"
#: classes/constellation.php:48
msgid "No incidents"
msgstr "Kein Vorfall"
#: classes/constellation.php:62
#: classes/constellation.php:61
msgid "Load more"
msgstr "lade weitere"
msgstr "Mehr laden"
#: classes/constellation.php:100
#: classes/constellation.php:101
msgid "No services"
msgstr "Keine Services"
#: classes/incident.php:83
#: classes/incident.php:87
msgid "Please enter title"
msgstr ""
msgstr "Bitte gebe einen Titel ein"
#: classes/incident.php:86
#: classes/incident.php:90
msgid "Title too long! Character limit is 50"
msgstr "Titel zu lang! Zeichenlimit is 50"
#: classes/incident.php:92
#: classes/incident.php:96
msgid "Please enter text"
msgstr ""
msgstr "Bitte Text eingeben"
#: classes/incident.php:98
#: classes/incident.php:102
msgid "Please set start and end time! Use ISO 8601 format."
msgstr ""
msgstr "Bitte setze die Start- und Endzeit! Verwende das ISO 8601 Format."
#: classes/incident.php:103
#: classes/incident.php:107
msgid "Please select at least one service"
msgstr ""
#: classes/incident.php:121
msgid "Start date format is not recognized. Please use ISO 8601 format."
msgstr ""
msgstr "Bitte wähle mindestens einen Service"
#: classes/incident.php:127
msgid "End date format is not recognized. Please use ISO 8601 format."
msgstr ""
msgid "Start date format is not recognized. Please use ISO 8601 format."
msgstr "Startdatum wurde nicht erkannt. Bitte verwende das ISO 8601 Format."
#: classes/incident.php:179
#: classes/incident.php:133
msgid "End date format is not recognized. Please use ISO 8601 format."
msgstr "Enddatum wurde nicht erkannt. Bitte verwende das ISO 8601 Format."
#: classes/incident.php:185
msgid "Ended"
msgstr ""
msgstr "Vorbei"
#: classes/service.php:63
msgid "Service name is too long! Character limit is 50"
msgstr ""
msgstr "Name des Services ist zu lang! Maximal 50 Zeichen"
#: classes/service.php:66
msgid "Please enter name!"
msgstr ""
msgstr "Bitte Namen eingeben!"
#: classes/service.php:81 classes/service.php:123 classes/user.php:102
#: classes/user.php:204
#: classes/service.php:81 classes/service.php:123 classes/user.php:97
#: classes/user.php:199
msgid "You don't have the permission to do that!"
msgstr "Du hast nicht die Berechtigung das zu tun!"
#: classes/user.php:165
#: classes/user.php:164
msgid "Please mind the following character limits: "
msgstr ""
msgstr "Bitte beachte die folgenden Zeichenbeschränkungen: "
#: classes/user.php:182
#: classes/user.php:185
msgid "User account created"
msgstr "Benutzer Konto wurde erstellt"
#: classes/user.php:183
#: classes/user.php:186
msgid "Hi %s!<br>Your account has been created. You can login with your email address at <a href=\"%s\">%s</a> with password %s - please change it as soon as possible."
msgstr ""
msgstr "Hallo %s!<br>Dein Account wurde erstellt. Du kannst dich mit deiner E-Mail-Adresse bei <a href=\"%s\">%s</a> mit dem Passwort %s anmelden - Bitte ändere dein Passwort sobald wie möglich. "
#: classes/user.php:196
#: classes/user.php:180
msgid "Username or email already used"
msgstr "Benutzername or Email bereits vergeben"
#: classes/user.php:236
#: classes/user.php:244
msgid "Your account has been disabled. Please contact administrator."
msgstr "Dein Konto wurde deaktiviert. Bitte kontaktiere den Administrator"
#: classes/user.php:248 classes/user.php:264
#: classes/user.php:233 classes/user.php:256
msgid "Wrong email or password"
msgstr "Falsche Email oder Passwort"
#: classes/user.php:295
#: classes/user.php:299
msgid "Invalid token detected, please login again!"
msgstr ""
msgstr "Ungültiger Token, bitte melden dich erneut an!"
#: classes/user.php:309
#: classes/user.php:314
msgid "Profile picture"
msgstr "Profilbild"
#: classes/user.php:334
#: classes/user.php:379
msgid "Change role"
msgstr ""
msgstr "Rolle ändern"
#: classes/user.php:349
#: classes/user.php:394
msgid "Change email"
msgstr ""
msgstr "E-Mail-Adresse ändern"
#: classes/user.php:359 classes/user.php:360
#: classes/user.php:419 classes/user.php:420
msgid "Old password"
msgstr ""
msgstr "Altes Passwort"
#: classes/user.php:398
#: classes/user.php:526
msgid "Passwords do not match!"
msgstr ""
msgstr "Passwörter stimmen nicht überein"
#: classes/user.php:404
#: classes/user.php:534
msgid "Cannot change password of other users!"
msgstr ""
msgstr "Das Passwort eines anderen Benutzers kann nicht geändert werden!"
#: classes/user.php:434
#: classes/user.php:567
msgid "Wrong password!"
msgstr "Falsches Passwort!"
#: classes/user.php:460 classes/user.php:551
#: classes/user.php:595 classes/user.php:695
msgid "Invalid token detected, please retry your request from start!"
msgstr ""
msgstr "Ungültiger Token, bitte starte deine Anfrage neu!"
#: classes/user.php:490
#: classes/user.php:623
msgid "Reset password"
msgstr ""
msgstr "Passwort zurücksetzen"
#: classes/user.php:515
#: classes/user.php:659
msgid "Email change"
msgstr ""
msgstr "E-Mail-Adresse ändern"
#: classes/incident.php:50 classes/user.php:594
#: classes/incident.php:54 classes/user.php:736
msgid "You don't have permission to do that!"
msgstr ""
msgstr "Du hast dafür keine Berechtigung!"
#: config.php:40
#: template.php:4
msgid "Major outage"
msgstr ""
msgstr "Größere Unterbrechung"
#: config.php:40
#: template.php:4
msgid "Minor outage"
msgstr ""
msgstr "Kleinere Unterbrechung"
#: config.php:40
#: template.php:4
msgid "Operational"
msgstr ""
msgstr "Funktionsfähig"
#: config.php:43
#: template.php:7
msgid "Some systems are experiencing major outages"
msgstr ""
msgstr "Einige Systeme haben größere Unterbrechungen"
#: config.php:43
#: template.php:7
msgid "Some systems are experiencing minor outages"
msgstr ""
msgstr "Einige Systeme haben kleinere Unterbrechungen"
#: config.php:43
#: template.php:7
msgid "Some systems are under maintenance"
msgstr ""
msgstr "Einige System werden gewartet"
#: config.php:44
#: template.php:8
msgid "Our systems are experiencing major outages."
msgstr ""
msgstr "Unsere Systeme haben größere Unterbrechungen."
#: config.php:44
#: template.php:8
msgid "Our systems are experiencing minor outages"
msgstr ""
msgstr "Unsere Systeme haben kleinere Unterbrechungen."
#: config.php:44
#: template.php:8
msgid "Our systems are under maintenance"
msgstr ""
msgstr "Unsere System werden gewartet"
#: config.php:44
#: template.php:8
msgid "All systems operational"
msgstr ""
msgstr "Alle Systeme sind funktionsfähig"
#: config.php:45
#: template.php:9
msgid "Super admin"
msgstr ""
msgstr "Super-Administrator"
#: config.php:45
#: template.php:9
msgid "Admin"
msgstr ""
msgstr "Administrator"
#: template.php:53
msgid "Service Status"
msgstr ""
msgstr "Status des Services"
#: template.php:97
#: template.php:106
msgid "Toggle navigation"
msgstr ""
msgstr "Navigationsleiste ein- / ausblenden"
#: template.php:107
#: template.php:116
msgid "User (%s)"
msgstr ""
msgstr "Benutzer (%s)"
#: template.php:109
#: template.php:118
msgid "Logout"
msgstr ""
msgstr "Abmelden"
#: index.php:27
msgid "Current status"
msgstr ""
msgstr "Aktueller Status"
#: install.php:4
msgid "Status page"
msgstr ""
msgstr "Statusseite"
#: install.php:127
#: install.php:139
msgid "Install"
msgstr ""
msgstr "Installieren"
#: install.php:129
#: install.php:141
msgid "Installation"
msgstr ""
msgstr "Installation"
#: config.php:33 install.php:26
#: install.php:26
msgid "Connection failed: %s\n"
""
msgstr ""
msgstr "Verbindung fehlgeschlagen: %s\n"
"\n"
""
#: install.php:31
msgid "Please set valid url!"
msgstr ""
msgstr "Bitte setze eine gültige URL!"
#: install.php:93
#: install.php:98
msgid "Error while creating database. Please check permission for your account or MYSQL version.<br>Error: %s"
msgstr ""
#: install.php:140
msgid "Website details"
msgstr ""
#: install.php:141
msgid "We need a name for your status page and a url, so we can mail users link for forgotten password etc."
msgstr ""
#: install.php:40 install.php:145
msgid "Url"
msgstr ""
#: install.php:147
msgid "Also an email address for mailer would be nice :)"
msgstr ""
msgstr "Fehler beim Erstellen der Datenbank! Bitte überprüfe die Berechtigungen für den Account oder die MySQL-Version.<br>Fehler: %s"
#: install.php:154
msgid "Website details"
msgstr "Details über Webseite"
#: install.php:40 install.php:159
msgid "Url"
msgstr "URL"
#: install.php:166
msgid "Also an email address for mailer would be nice :)"
msgstr "Außerdem solltest Du noch eine E-Mail-Adresse angeben :)"
#: install.php:173
msgid "Database connection"
msgstr ""
msgstr "Verbindung zur Datenbank"
#: install.php:155
#: install.php:174
msgid "We need database connection to be able to create tables. Please check that your account has the permission needed to do that."
msgstr ""
msgstr "Wir benötigen eine Verbindung zur Datenbank, um Tabellen zu erstellen. Bitte überprüfe, ob dein Account die benötigten Berechtigungen besitzt."
#: install.php:158
#: install.php:177
msgid "Server"
msgstr ""
msgstr "Server"
#: install.php:159
#: install.php:178
msgid "Database"
msgstr ""
msgstr "Datenbank"
#: install.php:168
#: install.php:203
msgid "And finally, we need info to create a new user. You don't have to provide it, but then... No status page admin..."
msgstr ""
msgstr "Zum Schluss benötigen wir Informationen, um einen neuen Benutzer erstellen zu können. Du musst sie nicht angeben ... aber denn gibt es keinen Adminbereich ..."
#: install.php:181
#: install.php:216
msgid "Run install!"
msgstr ""
msgstr "Installation starten!"
#: classes/user.php:132
#: classes/user.php:127
msgid "Rank"
msgstr ""
msgstr "Rang"
#: classes/user.php:491
#: classes/user.php:624
msgid "Hi %s!<br>Below you will find link to change your password. The link is valid for 24hrs. If you didn't request this, feel free to ignore it. <br><br><a href=\"%s\">RESET PASSWORD</a><br><br>If the link doesn't work, copy &amp; paste it into your browser: <br>%s"
msgstr ""
msgstr "Hallo %s!<br>Weiter unten findest Du den Link, zm dein Passwort zu ändern. Der Link ist 24 Stunden lang gültig. Wenn Du das nicht angefragt hast, kannst Du diese Mail ignorieren. <br><br><a href=\"%s\">PASSWORT ZURÜCKSETZEN</a><br><br>Wenn der Link nicht funktioniert, kopiere ihn und füge ihn in deinem Browser ein: <br>%s "
#: classes/user.php:516
#: classes/user.php:660
msgid "Hi %s!<br>Below you will find link to change your email. The link is valid for 24hrs. If you didn't request this, feel free to ignore it. <br><br><a href=\"%s\">CHANGE EMAIL</a><br><br>If the link doesn't work, copy &amp; paste it into your browser: <br>%s"
msgstr ""
msgstr "\n"
"Hi %s!<br>Below you will find link to change your password. The link is valid for 24hrs. If you didn't request this, feel free to ignore it. <br><br><a href=\"%s\">RESET PASSWORD</a><br><br>If the link doesn't work, copy &amp; paste it into your browser: <br>%s "
#: config.php:45
#: template.php:9
msgid "Editor"
msgstr ""
msgstr "Editor"
#: install.php:36
msgid "Server name"
msgstr ""
msgstr "Name der Servers"
#: install.php:44
msgid "Mailer name"
msgstr ""
#: install.php:48
msgid "Mailer email"
msgstr ""
msgstr "Name"
#: install.php:52
msgid "Database server"
msgstr ""
msgid "Mailer email"
msgstr "E-Mail"
#: install.php:56
msgid "Database name"
msgstr ""
msgid "Database server"
msgstr "Datenbankserver"
#: install.php:60
msgid "Database user"
msgstr ""
msgid "Database name"
msgstr "Datenbank-Name"
#: install.php:65
msgid "Database password"
msgstr ""
#: install.php:64
msgid "Database user"
msgstr "Datenbank-Benutzer"
#: install.php:69
msgid "Please set"
msgstr ""
#: template.php:138
msgid "Toggle Dropdown"
msgstr ""
msgid "Database password"
msgstr "Datenbank-Password"
#: template.php:147
msgid "Help with translation!"
msgstr ""
msgid "Toggle Dropdown"
msgstr "Ein- / Ausklappen"
#: template.php:156
msgid "Help with translation!"
msgstr "Bei der Übersetzung helfen"
#: classes/user.php:439
msgid "Deactivate user"
msgstr "Benutzer deaktivieren"
#: classes/user.php:441
msgid "Activate user"
msgstr "Benutzer aktivieren"
#: install.php:73
msgid "Please enter"
msgstr "Bitte eingeben"
#: install.php:150
msgid "We will ask you some basic questions about your website. Most of the settings can be later edited in the config.php file."
msgstr "Wir werden dir einige einfache Fragen über deine Webseite stellen. Die meisten können später in der Datei config.php bearbeitet werden."
#: install.php:155
msgid "We need a name for your status page (shown behind page title after the dash) and a url of your server status installation (i.e. <a href='#'>https://example.com/status</a> - without the trailing slash), so we can mail users link for forgotten password etc..."
msgstr "Wir brauchen einen Namen für deine Statusseite (wird im Seitentitel hinter dem Bindestrich angezeigt) und eine URL für die Installation (z. B. <a href='#'>https://example.com/status</a>) - ohne den letzten Schrägstrich), damit wir E-Mails mit Links für vergessene Passwörter etc. senden können."
#: install.php:161
msgid "A title that you want to be shown on the top of the page."
msgstr "Ein Titel, der oben auf der Seite angezeigt werden soll."
#: api/status.php:24
msgid "Service does not exist!"
msgstr "Dienst existiert nicht!"
#: classes/user.php:220
msgid "Please fill in your email and password!"
msgstr "Bitte E-Mail und Passwort eintragen!"
#: classes/user.php:336
msgid "Change name"
msgstr "Namen ändern"
#: classes/user.php:356
msgid "Change username"
msgstr "Benutzernamen ändern"
#: classes/user.php:463
msgid "This username is already taken."
msgstr "Benutzername wird bereits benutzt."
#: classes/user.php:470
msgid "Cannot change username of other users!"
msgstr "Kann den Benutzernamen anderer Benutzer nicht ändern!"
#: classes/user.php:504
msgid "Cannot change names of other users!"
msgstr "Kann Namen anderer Benutzer nicht ändern!"
#: classes/user.php:667
msgid "Confirmation email sent!"
msgstr "Bestätigungsemail versendet!"
#: install.php:186 policy.php:6
msgid "Privacy Policy"
msgstr "Datenschutz-Bestimmungen"
#: install.php:190
msgid "Company name"
msgstr "Name der Firma"
#: install.php:191
msgid "Address"
msgstr "Adresse"
#: install.php:191
msgid "Full address"
msgstr "Vollständige Adresse"
#: install.php:194
msgid "E-Mail"
msgstr "Email"
#: install.php:195
msgid "Phone"
msgstr "Telefon"
#: install.php:195
msgid "Phone number"
msgstr "Telefonnummer"
#: install.php:198 policy.php:7
msgid "Who we are"
msgstr "Wer wir sind"
#: policy.php:9
msgid "Contact"
msgstr "Kontakt"
#: policy.php:17
msgid "What personal data we collect and why"
msgstr "Welche persönlichen Daten sammeln wir und warum?"
#: policy.php:19
msgid "If you access our websites, the following information will be saved: IP-address, Date, Time, Browser queries, \n"
"\tGeneral information about your browser, operating system and all search queries on the sites. \n"
"\tThis user data will be used for anonym user statistics to recognize trends and improve our content.\n"
"\t"
msgstr "Wenn Sie auf unsere Webseiten zugreifen, werden folgende Informationen gespeichert: IP-Adresse, Datum, Uhrzeit, Browserabfragen,\n"
"Allgemeine Informationen zu Ihrem Browser, Betriebssystem und allen Suchanfragen auf den Websites.\n"
"Diese Benutzerdaten werden für anonyme Benutzerstatistiken verwendet, um Trends zu erkennen und unseren Inhalt zu verbessern."
#: policy.php:23
msgid "How we protect your data"
msgstr "Wie schützen wir Ihre Daten?"
#: policy.php:24
msgid "In collaboration with our hosting provider we try our best to protect our \n"
"\tdatabases against access from third parties, losses, misuse or forgery.\n"
"\t"
msgstr "In Zusammenarbeit mit unserem Hosting-Provider versuchen wir unser Bestes, um unsere zu schützen\n"
"Datenbanken gegen Zugriffe von Dritten, Verluste, Missbrauch oder Fälschung."
#: policy.php:27
msgid "Third party that receive your personal data"
msgstr "Dritte, die Ihre persönlichen Daten erhalten"
#: policy.php:29
msgid "Cookies"
msgstr "Cookies"
#: policy.php:30
msgid "This site uses cookies small text files that are placed on your machine to help the site provide a better user experience. \n"
"\tIn general, cookies are used to retain user preferences, store information for things like shopping carts, \n"
"\tand provide anonymised tracking data to third party applications like Google Analytics. \n"
"\tAs a rule, cookies will make your browsing experience better. However, you may prefer to disable cookies on this site and on others. \n"
"\tThe most effective way to do this is to disable cookies in your browser. We suggest consulting the Help section of your browser \n"
"\tor taking a look at the About Cookies website which offers guidance for all modern browsers"
msgstr "Diese Website verwendet Cookies - kleine Textdateien, die auf Ihrem Computer platziert werden, um die Website für eine bessere Benutzererfahrung zu sorgen.\n"
"Im Allgemeinen werden Cookies verwendet, um Benutzereinstellungen beizubehalten, Informationen für Dinge wie Einkaufswagen zu speichern,\n"
"und anonymisierte Tracking-Daten für Anwendungen von Drittanbietern wie Google Analytics bereitstellen.\n"
"In der Regel werden Cookies das Browsen verbessern. Möglicherweise möchten Sie jedoch Cookies auf dieser Website und anderen deaktivieren.\n"
"Der effektivste Weg, dies zu tun, ist die Deaktivierung von Cookies in Ihrem Browser. Wir empfehlen Ihnen, den Hilfebereich Ihres Browsers zu konsultieren\n"
"oder werfen Sie einen Blick auf die Website von About Cookies, die Anleitungen für alle modernen Browser bietet"
#: install.php:187
msgid "Since you are collecting personal information, the GDPR needs you to have a privacy policy. Enter the details below."
msgstr "Da Sie persönliche Informationen sammeln, benötigt die DSGVO eine Datenschutzrichtlinie. Geben Sie die Details unten ein."
#: install.php:198
msgid "Some info about yourself"
msgstr "Einige Infos über dich"
#: policy.php:18
msgid "General"
msgstr "Allgemeines"

View File

@ -15,7 +15,7 @@ msgstr "Page Not Found"
msgid "Sorry, but the page you were trying to view does not exist."
msgstr "Sorry, but the page you were trying to view does not exist."
#: admin/dashboard.php:22 admin/dashboard.php:26 template.php:106
#: admin/dashboard.php:22 admin/dashboard.php:26 template.php:115
msgid "Dashboard"
msgstr "Dashboard"
@ -27,7 +27,7 @@ msgstr "Welcome"
msgid "New incident"
msgstr "New incident"
#: admin/dashboard.php:72 install.php:48 install.php:157
#: admin/dashboard.php:72 install.php:48 install.php:163
msgid "Title"
msgstr "Title"
@ -35,23 +35,23 @@ msgstr "Title"
msgid "Time"
msgstr "Time"
#: admin/dashboard.php:75
#: admin/dashboard.php:77
msgid "Here goes your text..."
msgstr "Here goes your text..."
#: admin/dashboard.php:78 classes/incident.php:177
#: admin/dashboard.php:80 classes/incident.php:183
msgid "Posted by"
msgstr "Posted by"
#: admin/dashboard.php:78 classes/incident.php:179
#: admin/dashboard.php:80 classes/incident.php:185
msgid "Ending"
msgstr "Ending"
#: admin/dashboard.php:78
#: admin/dashboard.php:80
msgid "End time"
msgstr "End time"
#: admin/dashboard.php:96 admin/new-user.php:53
#: admin/dashboard.php:99 admin/new-user.php:53
msgid "Submit"
msgstr "Submit"
@ -64,13 +64,13 @@ msgid "Please login to continue."
msgstr "Please log in to continue."
#: admin/login-form.php:15 admin/login-form.php:16 admin/lost-password.php:46
#: admin/lost-password.php:48 admin/new-user.php:24 admin/settings.php:69
#: classes/user.php:125 classes/user.php:375 install.php:163 install.php:188
#: admin/lost-password.php:48 admin/new-user.php:24 admin/settings.php:72
#: classes/user.php:120 classes/user.php:404 install.php:169 install.php:210
msgid "Email"
msgstr "Email"
#: admin/login-form.php:19 admin/login-form.php:20 admin/new-user.php:27
#: classes/user.php:128 classes/user.php:357 install.php:176 install.php:191
#: classes/user.php:123 classes/user.php:417 install.php:182 install.php:213
msgid "Password"
msgstr "Password"
@ -114,17 +114,17 @@ msgstr "Submit request"
msgid "Reset password for %s (%s)"
msgstr "Reset password for %s (%s)"
#: admin/lost-password.php:60 admin/lost-password.php:61 classes/user.php:361
#: classes/user.php:362
#: admin/lost-password.php:60 admin/lost-password.php:61 classes/user.php:421
#: classes/user.php:422
msgid "New password"
msgstr "New password"
#: admin/lost-password.php:62 admin/lost-password.php:63 classes/user.php:363
#: classes/user.php:364
#: admin/lost-password.php:62 admin/lost-password.php:63 classes/user.php:423
#: classes/user.php:424
msgid "Repeat password"
msgstr "Repeat password"
#: admin/lost-password.php:64 classes/user.php:365
#: admin/lost-password.php:64 classes/user.php:425
msgid "Change password"
msgstr "Change password"
@ -132,18 +132,21 @@ msgstr "Change password"
msgid "New user"
msgstr "New user"
#: admin/new-user.php:19 admin/settings.php:38 admin/settings.php:69
#: classes/user.php:119 install.php:152 install.php:162 install.php:183
#: admin/new-user.php:19 admin/settings.php:39 admin/settings.php:72
#: classes/user.php:114 classes/user.php:322 classes/user.php:326
#: classes/user.php:327 classes/user.php:488 install.php:158 install.php:168
#: install.php:190 install.php:205
msgid "Name"
msgstr "Name"
#: admin/new-user.php:20 admin/settings.php:69 classes/user.php:122
#: install.php:184
#: admin/new-user.php:20 admin/settings.php:72 classes/user.php:117
#: classes/user.php:323 classes/user.php:329 classes/user.php:330
#: classes/user.php:491 install.php:206
msgid "Surname"
msgstr "Surname"
#: admin/new-user.php:23 admin/settings.php:69 classes/user.php:317
#: install.php:187
#: admin/new-user.php:23 admin/settings.php:72 classes/user.php:349
#: install.php:209
msgid "Username"
msgstr "Username"
@ -151,7 +154,7 @@ msgstr "Username"
msgid "Permission"
msgstr "Permission"
#: admin/settings.php:12 template.php:108
#: admin/settings.php:12 template.php:117
msgid "Settings"
msgstr "Settings"
@ -163,35 +166,35 @@ msgstr "Services"
msgid "Add service"
msgstr "Add service"
#: admin/settings.php:37 admin/settings.php:69 classes/user.php:313
#: admin/settings.php:38 admin/settings.php:72
msgid "ID"
msgstr "ID"
#: admin/settings.php:41
#: admin/settings.php:42
msgid "Delete"
msgstr "Delete"
#: admin/settings.php:65
#: admin/settings.php:67
msgid "Users"
msgstr "Users"
#: admin/settings.php:66
#: admin/settings.php:68
msgid "Add new user"
msgstr "Add new user"
#: admin/settings.php:69 classes/user.php:329
#: admin/settings.php:72 classes/user.php:372
msgid "Role"
msgstr "Role"
#: admin/user.php:35 install.php:175 install.php:180
#: admin/user.php:45 admin/user.php:54 install.php:181 install.php:202
msgid "User"
msgstr "User"
#: admin/user.php:39
#: admin/user.php:52
msgid "User settings"
msgstr "User settings"
#: classes/constellation.php:36
#: classes/constellation.php:36 template.php:4
msgid "Planned maintenance"
msgstr "Planned maintenance"
@ -207,43 +210,43 @@ msgstr "Past incidents"
msgid "No incidents"
msgstr "No incidents"
#: classes/constellation.php:62
#: classes/constellation.php:61
msgid "Load more"
msgstr "Load more"
#: classes/constellation.php:100
#: classes/constellation.php:101
msgid "No services"
msgstr "No services"
#: classes/incident.php:83
#: classes/incident.php:87
msgid "Please enter title"
msgstr "Please enter title"
#: classes/incident.php:86
#: classes/incident.php:90
msgid "Title too long! Character limit is 50"
msgstr "Title too long! Character limit is 50"
#: classes/incident.php:92
#: classes/incident.php:96
msgid "Please enter text"
msgstr "Please enter text"
#: classes/incident.php:98
#: classes/incident.php:102
msgid "Please set start and end time! Use ISO 8601 format."
msgstr "Please set start and end time! Use ISO 8601 format."
#: classes/incident.php:103
#: classes/incident.php:107
msgid "Please select at least one service"
msgstr "Please select at least one service"
#: classes/incident.php:121
#: classes/incident.php:127
msgid "Start date format is not recognized. Please use ISO 8601 format."
msgstr "Start date format is not recognized. Please use ISO 8601 format."
#: classes/incident.php:127
#: classes/incident.php:133
msgid "End date format is not recognized. Please use ISO 8601 format."
msgstr "End date format is not recognized. Please use ISO 8601 format."
#: classes/incident.php:179
#: classes/incident.php:185
msgid "Ended"
msgstr "Ended"
@ -255,128 +258,128 @@ msgstr "Service name is too long! Character limit is 50"
msgid "Please enter name!"
msgstr "Please enter name!"
#: classes/service.php:81 classes/service.php:123 classes/user.php:102
#: classes/user.php:204
#: classes/service.php:81 classes/service.php:123 classes/user.php:97
#: classes/user.php:199
msgid "You don't have the permission to do that!"
msgstr "You don't have the permission to do that!"
#: classes/user.php:165
#: classes/user.php:164
msgid "Please mind the following character limits: "
msgstr "Please mind the following character limits: "
#: classes/user.php:182
#: classes/user.php:185
msgid "User account created"
msgstr "User account created"
#: classes/user.php:183
#: classes/user.php:186
msgid "Hi %s!<br>Your account has been created. You can login with your email address at <a href=\"%s\">%s</a> with password %s - please change it as soon as possible."
msgstr "Hi %s!<br>Your account has been created. You can login with your email address at <a href=\"%s\">%s</a> with password %s - please change it as soon as possible."
#: classes/user.php:196
#: classes/user.php:180
msgid "Username or email already used"
msgstr "Username or email already used"
#: classes/user.php:236
#: classes/user.php:244
msgid "Your account has been disabled. Please contact administrator."
msgstr "Your account has been disabled. Please contact administrator."
#: classes/user.php:248 classes/user.php:264
#: classes/user.php:233 classes/user.php:256
msgid "Wrong email or password"
msgstr "Wrong email or password"
#: classes/user.php:295
#: classes/user.php:299
msgid "Invalid token detected, please login again!"
msgstr "Invalid token detected, please login again!"
#: classes/user.php:309
#: classes/user.php:314
msgid "Profile picture"
msgstr "Profile picture"
#: classes/user.php:334
#: classes/user.php:379
msgid "Change role"
msgstr "Change role"
#: classes/user.php:349
#: classes/user.php:394
msgid "Change email"
msgstr "Change email"
#: classes/user.php:359 classes/user.php:360
#: classes/user.php:419 classes/user.php:420
msgid "Old password"
msgstr "Old password"
#: classes/user.php:412
#: classes/user.php:526
msgid "Passwords do not match!"
msgstr "Passwords do not match!"
#: classes/user.php:418
#: classes/user.php:534
msgid "Cannot change password of other users!"
msgstr "Cannot change password of other users!"
#: classes/user.php:448
#: classes/user.php:567
msgid "Wrong password!"
msgstr "Wrong password!"
#: classes/user.php:474 classes/user.php:565
#: classes/user.php:595 classes/user.php:695
msgid "Invalid token detected, please retry your request from start!"
msgstr "Invalid token detected, please retry your request from start!"
#: classes/user.php:504
#: classes/user.php:623
msgid "Reset password"
msgstr "Reset password"
#: classes/user.php:529
#: classes/user.php:659
msgid "Email change"
msgstr "Email change"
#: classes/incident.php:50 classes/user.php:608
#: classes/incident.php:54 classes/user.php:736
msgid "You don't have permission to do that!"
msgstr "You don't have permission to do that!"
#: config.php:40
#: template.php:4
msgid "Major outage"
msgstr "Major outage"
#: config.php:40
#: template.php:4
msgid "Minor outage"
msgstr "Minor outage"
#: config.php:40
#: template.php:4
msgid "Operational"
msgstr "Operational"
#: config.php:43
#: template.php:7
msgid "Some systems are experiencing major outages"
msgstr "Some systems are experiencing major outages"
#: config.php:43
#: template.php:7
msgid "Some systems are experiencing minor outages"
msgstr "Some systems are experiencing minor outages"
#: config.php:43
#: template.php:7
msgid "Some systems are under maintenance"
msgstr "Some systems are under maintenance"
#: config.php:44
#: template.php:8
msgid "Our systems are experiencing major outages."
msgstr "Our systems are experiencing major outages."
#: config.php:44
#: template.php:8
msgid "Our systems are experiencing minor outages"
msgstr "Our systems are experiencing minor outages"
#: config.php:44
#: template.php:8
msgid "Our systems are under maintenance"
msgstr "Our systems are under maintenance"
#: config.php:44
#: template.php:8
msgid "All systems operational"
msgstr "All systems operational"
#: config.php:45
#: template.php:9
msgid "Super admin"
msgstr "Super admin"
#: config.php:45
#: template.php:9
msgid "Admin"
msgstr "Admin"
@ -384,15 +387,15 @@ msgstr "Admin"
msgid "Service Status"
msgstr "Service Status"
#: template.php:97
#: template.php:106
msgid "Toggle navigation"
msgstr "Toggle navigation"
#: template.php:107
#: template.php:116
msgid "User (%s)"
msgstr "User (%s)"
#: template.php:109
#: template.php:118
msgid "Logout"
msgstr "Logout"
@ -404,11 +407,11 @@ msgstr "Current status"
msgid "Status page"
msgstr "Status page"
#: install.php:133
#: install.php:139
msgid "Install"
msgstr "Install"
#: install.php:135
#: install.php:141
msgid "Installation"
msgstr "Installation"
@ -426,55 +429,55 @@ msgstr "Please set valid url!"
msgid "Error while creating database. Please check permission for your account or MYSQL version.<br>Error: %s"
msgstr "Error while creating database. Please check permission for your account or MYSQL version.<br>Error: %s"
#: install.php:148
#: install.php:154
msgid "Website details"
msgstr "Website details"
#: install.php:40 install.php:153
#: install.php:40 install.php:159
msgid "Url"
msgstr "Url"
#: install.php:160
#: install.php:166
msgid "Also an email address for mailer would be nice :)"
msgstr "Also an email address for mailer would be nice :)"
#: install.php:167
#: install.php:173
msgid "Database connection"
msgstr "Database connection"
#: install.php:168
#: install.php:174
msgid "We need database connection to be able to create tables. Please check that your account has the permission needed to do that."
msgstr "We need database connection to be able to create tables. Please check that your account has the permission needed to do that."
#: install.php:171
#: install.php:177
msgid "Server"
msgstr "Server"
#: install.php:172
#: install.php:178
msgid "Database"
msgstr "Database"
#: install.php:181
#: install.php:203
msgid "And finally, we need info to create a new user. You don't have to provide it, but then... No status page admin..."
msgstr "And finally, we need info to create a new user. You don't have to provide it, but then... No status page admin..."
#: install.php:194
#: install.php:216
msgid "Run install!"
msgstr "Run install!"
#: classes/user.php:132
#: classes/user.php:127
msgid "Rank"
msgstr "Rank"
#: classes/user.php:505
#: classes/user.php:624
msgid "Hi %s!<br>Below you will find link to change your password. The link is valid for 24hrs. If you didn't request this, feel free to ignore it. <br><br><a href=\"%s\">RESET PASSWORD</a><br><br>If the link doesn't work, copy &amp; paste it into your browser: <br>%s"
msgstr "Hi %s!<br>Below you will find link to change your password. The link is valid for 24hrs. If you didn't request this, feel free to ignore it. <br><br><a href=\"%s\">RESET PASSWORD</a><br><br>If the link doesn't work, copy &amp; paste it into your browser: <br>%s"
#: classes/user.php:530
#: classes/user.php:660
msgid "Hi %s!<br>Below you will find link to change your email. The link is valid for 24hrs. If you didn't request this, feel free to ignore it. <br><br><a href=\"%s\">CHANGE EMAIL</a><br><br>If the link doesn't work, copy &amp; paste it into your browser: <br>%s"
msgstr "Hi %s!<br>Below you will find link to change your email. The link is valid for 24hrs. If you didn't request this, feel free to ignore it. <br><br><a href=\"%s\">CHANGE EMAIL</a><br><br>If the link doesn't work, copy &amp; paste it into your browser: <br>%s"
#: config.php:45
#: template.php:9
msgid "Editor"
msgstr "Editor"
@ -506,19 +509,19 @@ msgstr "Database user"
msgid "Database password"
msgstr "Database password"
#: template.php:138
#: template.php:147
msgid "Toggle Dropdown"
msgstr "Toggle Dropdown"
#: template.php:147
#: template.php:156
msgid "Help with translation!"
msgstr "Help with translation!"
#: classes/user.php:389
#: classes/user.php:439
msgid "Deactivate user"
msgstr "Deactivate user"
#: classes/user.php:391
#: classes/user.php:441
msgid "Activate user"
msgstr "Activate user"
@ -526,15 +529,141 @@ msgstr "Activate user"
msgid "Please enter"
msgstr "Please enter"
#: install.php:144
#: install.php:150
msgid "We will ask you some basic questions about your website. Most of the settings can be later edited in the config.php file."
msgstr "We will ask you some basic questions about your website. Most of the settings can be later edited in the config.php file."
#: install.php:149
#: install.php:155
msgid "We need a name for your status page (shown behind page title after the dash) and a url of your server status installation (i.e. <a href='#'>https://example.com/status</a> - without the trailing slash), so we can mail users link for forgotten password etc..."
msgstr "We need a name for your status page (shown behind page title after the dash) and a url of your server status installation (i.e. <a href='#'>https://example.com/status</a> - without the trailing slash), so we can mail users link for forgotten password etc..."
#: install.php:155
#: install.php:161
msgid "A title that you want to be shown on the top of the page."
msgstr "A title that you want to be shown on the top of the page."
#: api/status.php:24
msgid "Service does not exist!"
msgstr "Service does not exist!"
#: classes/user.php:220
msgid "Please fill in your email and password!"
msgstr "Please fill in your email and password!"
#: classes/user.php:336
msgid "Change name"
msgstr "Change name"
#: classes/user.php:356
msgid "Change username"
msgstr "Change username"
#: classes/user.php:463
msgid "This username is already taken."
msgstr "This username is already taken."
#: classes/user.php:470
msgid "Cannot change username of other users!"
msgstr "Cannot change username of other users!"
#: classes/user.php:504
msgid "Cannot change names of other users!"
msgstr "Cannot change names of other users!"
#: classes/user.php:667
msgid "Confirmation email sent!"
msgstr "Confirmation email sent!"
#: install.php:186 policy.php:6
msgid "Privacy Policy"
msgstr "Privacy Policy"
#: install.php:190
msgid "Company name"
msgstr "Company name"
#: install.php:191
msgid "Address"
msgstr "Address"
#: install.php:191
msgid "Full address"
msgstr "Full address"
#: install.php:194
msgid "E-Mail"
msgstr "E-Mail"
#: install.php:195
msgid "Phone"
msgstr "Phone"
#: install.php:195
msgid "Phone number"
msgstr "Phone number"
#: install.php:198 policy.php:7
msgid "Who we are"
msgstr "Who we are"
#: policy.php:9
msgid "Contact"
msgstr "Contact"
#: policy.php:17
msgid "What personal data we collect and why"
msgstr "What personal data we collect and why"
#: policy.php:19
msgid "If you access our websites, the following information will be saved: IP-address, Date, Time, Browser queries, \n"
"\tGeneral information about your browser, operating system and all search queries on the sites. \n"
"\tThis user data will be used for anonym user statistics to recognize trends and improve our content.\n"
"\t"
msgstr "If you access our websites, the following information will be saved: IP-address, Date, Time, Browser queries, \n"
"\tGeneral information about your browser, operating system and all search queries on the sites. \n"
"\tThis user data will be used for anonym user statistics to recognize trends and improve our content."
#: policy.php:23
msgid "How we protect your data"
msgstr "How we protect your data"
#: policy.php:24
msgid "In collaboration with our hosting provider we try our best to protect our \n"
"\tdatabases against access from third parties, losses, misuse or forgery.\n"
"\t"
msgstr "In collaboration with our hosting provider we try our best to protect our \n"
"\tdatabases against access from third parties, losses, misuse or forgery."
#: policy.php:27
msgid "Third party that receive your personal data"
msgstr "Third party that receive your personal data"
#: policy.php:29
msgid "Cookies"
msgstr "Cookies"
#: policy.php:30
msgid "This site uses cookies small text files that are placed on your machine to help the site provide a better user experience. \n"
"\tIn general, cookies are used to retain user preferences, store information for things like shopping carts, \n"
"\tand provide anonymised tracking data to third party applications like Google Analytics. \n"
"\tAs a rule, cookies will make your browsing experience better. However, you may prefer to disable cookies on this site and on others. \n"
"\tThe most effective way to do this is to disable cookies in your browser. We suggest consulting the Help section of your browser \n"
"\tor taking a look at the About Cookies website which offers guidance for all modern browsers"
msgstr "This site uses cookies small text files that are placed on your machine to help the site provide a better user experience. \n"
"\tIn general, cookies are used to retain user preferences, store information for things like shopping carts, \n"
"\tand provide anonymised tracking data to third party applications like Google Analytics. \n"
"\tAs a rule, cookies will make your browsing experience better. However, you may prefer to disable cookies on this site and on others. \n"
"\tThe most effective way to do this is to disable cookies in your browser. We suggest consulting the Help section of your browser \n"
"\tor taking a look at the About Cookies website which offers guidance for all modern browsers"
#: install.php:187
msgid "Since you are collecting personal information, the GDPR needs you to have a privacy policy. Enter the details below."
msgstr "Since you are collecting personal information, the GDPR needs you to have a privacy policy. Enter the details below."
#: install.php:198
msgid "Some info about yourself"
msgstr "Some info about yourself"
#: policy.php:18
msgid "General"
msgstr "General"

View File

@ -7,15 +7,15 @@ msgstr ""
"Project-Id-Version: Server status\n"
"Language: es\n"
#: 404.php:7
#: 404.php:12
msgid "Page Not Found"
msgstr "Página no encontrada"
#: 404.php:8
#: 404.php:13
msgid "Sorry, but the page you were trying to view does not exist."
msgstr "Lo sentimos, pero la pagina a la que intenta acceder no existe"
#: admin/dashboard.php:22 admin/dashboard.php:26 template.php:106
#: admin/dashboard.php:22 admin/dashboard.php:26 template.php:115
msgid "Dashboard"
msgstr "Panel"
@ -27,7 +27,7 @@ msgstr "Bienvenido"
msgid "New incident"
msgstr "Nuevo incidente"
#: admin/dashboard.php:72
#: admin/dashboard.php:72 install.php:48 install.php:163
msgid "Title"
msgstr "Títutlo"
@ -35,23 +35,23 @@ msgstr "Títutlo"
msgid "Time"
msgstr "Tiempo"
#: admin/dashboard.php:75
#: admin/dashboard.php:77
msgid "Here goes your text..."
msgstr "Aquí va tu texto..."
#: admin/dashboard.php:78 classes/incident.php:177
#: admin/dashboard.php:80 classes/incident.php:183
msgid "Posted by"
msgstr "Escrito por:"
#: admin/dashboard.php:78 classes/incident.php:179
#: admin/dashboard.php:80 classes/incident.php:185
msgid "Ending"
msgstr "Finaliza:"
#: admin/dashboard.php:78
#: admin/dashboard.php:80
msgid "End time"
msgstr "Hora de término:"
#: admin/dashboard.php:96 admin/new-user.php:53
#: admin/dashboard.php:99 admin/new-user.php:53
msgid "Submit"
msgstr "Enviar"
@ -64,13 +64,13 @@ msgid "Please login to continue."
msgstr "Por favor, ingrese para continuar"
#: admin/login-form.php:15 admin/login-form.php:16 admin/lost-password.php:46
#: admin/lost-password.php:48 admin/new-user.php:24 admin/settings.php:69
#: classes/user.php:125 classes/user.php:375 install.php:150 install.php:175
#: admin/lost-password.php:48 admin/new-user.php:24 admin/settings.php:72
#: classes/user.php:120 classes/user.php:404 install.php:169 install.php:210
msgid "Email"
msgstr "Correo"
#: admin/login-form.php:19 admin/login-form.php:20 admin/new-user.php:27
#: classes/user.php:128 classes/user.php:357 install.php:163 install.php:178
#: classes/user.php:123 classes/user.php:417 install.php:182 install.php:213
msgid "Password"
msgstr "Contraseña"
@ -114,17 +114,17 @@ msgstr "Enviar petición"
msgid "Reset password for %s (%s)"
msgstr "Reinciar contraseña para %s (%s)"
#: admin/lost-password.php:60 admin/lost-password.php:61 classes/user.php:361
#: classes/user.php:362
#: admin/lost-password.php:60 admin/lost-password.php:61 classes/user.php:421
#: classes/user.php:422
msgid "New password"
msgstr "Nueva contraseña"
#: admin/lost-password.php:62 admin/lost-password.php:63 classes/user.php:363
#: classes/user.php:364
#: admin/lost-password.php:62 admin/lost-password.php:63 classes/user.php:423
#: classes/user.php:424
msgid "Repeat password"
msgstr "Repetir contraseña"
#: admin/lost-password.php:64 classes/user.php:365
#: admin/lost-password.php:64 classes/user.php:425
msgid "Change password"
msgstr "Cambiar contraseña"
@ -132,18 +132,21 @@ msgstr "Cambiar contraseña"
msgid "New user"
msgstr "Nuevo usuario"
#: admin/new-user.php:19 admin/settings.php:38 admin/settings.php:69
#: classes/user.php:119 install.php:144 install.php:149 install.php:170
#: admin/new-user.php:19 admin/settings.php:39 admin/settings.php:72
#: classes/user.php:114 classes/user.php:322 classes/user.php:326
#: classes/user.php:327 classes/user.php:488 install.php:158 install.php:168
#: install.php:190 install.php:205
msgid "Name"
msgstr "Nombre"
#: admin/new-user.php:20 admin/settings.php:69 classes/user.php:122
#: install.php:171
#: admin/new-user.php:20 admin/settings.php:72 classes/user.php:117
#: classes/user.php:323 classes/user.php:329 classes/user.php:330
#: classes/user.php:491 install.php:206
msgid "Surname"
msgstr "Apellido"
#: admin/new-user.php:23 admin/settings.php:69 classes/user.php:317
#: install.php:174
#: admin/new-user.php:23 admin/settings.php:72 classes/user.php:349
#: install.php:209
msgid "Username"
msgstr "Nombre de usuario"
@ -151,7 +154,7 @@ msgstr "Nombre de usuario"
msgid "Permission"
msgstr "Permisos"
#: admin/settings.php:12 template.php:108
#: admin/settings.php:12 template.php:117
msgid "Settings"
msgstr "Configuración"
@ -163,35 +166,35 @@ msgstr "Servicios"
msgid "Add service"
msgstr "Agregar servicio"
#: admin/settings.php:37 admin/settings.php:69 classes/user.php:313
#: admin/settings.php:38 admin/settings.php:72
msgid "ID"
msgstr "ID"
#: admin/settings.php:41
#: admin/settings.php:42
msgid "Delete"
msgstr "Borrar"
#: admin/settings.php:65
#: admin/settings.php:67
msgid "Users"
msgstr "Usuarios"
#: admin/settings.php:66
#: admin/settings.php:68
msgid "Add new user"
msgstr "Agregar nuevo usuario"
#: admin/settings.php:69 classes/user.php:329
#: admin/settings.php:72 classes/user.php:372
msgid "Role"
msgstr "Rol"
#: admin/user.php:35 install.php:162 install.php:167
#: admin/user.php:45 admin/user.php:54 install.php:181 install.php:202
msgid "User"
msgstr "Usuario"
#: admin/user.php:39
#: admin/user.php:52
msgid "User settings"
msgstr "Configuración de usuario"
#: classes/constellation.php:36 config.php:40
#: classes/constellation.php:36 template.php:4
msgid "Planned maintenance"
msgstr "Mantenimiento programado"
@ -207,43 +210,43 @@ msgstr "Incidentes pasados"
msgid "No incidents"
msgstr "Sin incidentes"
#: classes/constellation.php:62
#: classes/constellation.php:61
msgid "Load more"
msgstr "Cargar más"
#: classes/constellation.php:100
#: classes/constellation.php:101
msgid "No services"
msgstr "Sin servicios"
#: classes/incident.php:83
#: classes/incident.php:87
msgid "Please enter title"
msgstr "Por favor, ingrese un título"
#: classes/incident.php:86
#: classes/incident.php:90
msgid "Title too long! Character limit is 50"
msgstr "¡El título es muy grande! El límite es de 50 caracteres"
#: classes/incident.php:92
#: classes/incident.php:96
msgid "Please enter text"
msgstr "Por favor, ingrese texto"
#: classes/incident.php:98
#: classes/incident.php:102
msgid "Please set start and end time! Use ISO 8601 format."
msgstr "¡Por favor, ingrese hora de inicio y término! Utilice formato ISO 8601."
#: classes/incident.php:103
#: classes/incident.php:107
msgid "Please select at least one service"
msgstr "Por favor, seleccione al menos un servicio"
#: classes/incident.php:121
#: classes/incident.php:127
msgid "Start date format is not recognized. Please use ISO 8601 format."
msgstr "Fecha de inicio no reconocida. Por favor utilice formato ISO 8601."
#: classes/incident.php:127
#: classes/incident.php:133
msgid "End date format is not recognized. Please use ISO 8601 format."
msgstr "Fecha de término no reconocida. Por favor utilice formato ISO 8601."
#: classes/incident.php:179
#: classes/incident.php:185
msgid "Ended"
msgstr "Términado"
@ -255,128 +258,128 @@ msgstr "¡El nombre del servicio es muy largo! El límite es de 50 caracteres"
msgid "Please enter name!"
msgstr "Por favor, ingrese un nombre"
#: classes/service.php:81 classes/service.php:123 classes/user.php:102
#: classes/user.php:204
#: classes/service.php:81 classes/service.php:123 classes/user.php:97
#: classes/user.php:199
msgid "You don't have the permission to do that!"
msgstr "¡No tienes permisos para hacer eso!"
#: classes/user.php:165
#: classes/user.php:164
msgid "Please mind the following character limits: "
msgstr "Por favor, tenga en cuenta los siguientes límites de caracteres: ␣"
#: classes/user.php:182
#: classes/user.php:185
msgid "User account created"
msgstr "Cuenta de usuario creada"
#: classes/user.php:183
#: classes/user.php:186
msgid "Hi %s!<br>Your account has been created. You can login with your email address at <a href=\"%s\">%s</a> with password %s - please change it as soon as possible."
msgstr "Hola %s!<br>Tu cuenta fue creada. Ahora puedes ingresar con tu correo en <a href=\"%s\">%s</a> con la contrseña %s - por favor, cambiala tan pronto sea posible."
#: classes/user.php:196
#: classes/user.php:180
msgid "Username or email already used"
msgstr "El nombre de usuario ya existe"
#: classes/user.php:236
#: classes/user.php:244
msgid "Your account has been disabled. Please contact administrator."
msgstr "Su cuenta fue deshabilitada. Por favor, contacte a un administrador."
#: classes/user.php:248 classes/user.php:264
#: classes/user.php:233 classes/user.php:256
msgid "Wrong email or password"
msgstr "No se reconoce el correo o la contrseña."
#: classes/user.php:295
#: classes/user.php:299
msgid "Invalid token detected, please login again!"
msgstr "Token inválido detectado. Por favor, vuelva a iniciar sesión."
#: classes/user.php:309
#: classes/user.php:314
msgid "Profile picture"
msgstr "Imagen de perfil"
#: classes/user.php:334
#: classes/user.php:379
msgid "Change role"
msgstr "Cambiar rol"
#: classes/user.php:349
#: classes/user.php:394
msgid "Change email"
msgstr "Cambiar correo"
#: classes/user.php:359 classes/user.php:360
#: classes/user.php:419 classes/user.php:420
msgid "Old password"
msgstr "Contraseña anterior"
#: classes/user.php:398
#: classes/user.php:526
msgid "Passwords do not match!"
msgstr "Las contraseñas no coinciden"
#: classes/user.php:404
#: classes/user.php:534
msgid "Cannot change password of other users!"
msgstr "¡No es posible cambiar la contraseña de otros usuarios!"
#: classes/user.php:434
#: classes/user.php:567
msgid "Wrong password!"
msgstr "¡Contraseña incorrecta!"
#: classes/user.php:460 classes/user.php:551
#: classes/user.php:595 classes/user.php:695
msgid "Invalid token detected, please retry your request from start!"
msgstr "¡Token inválido detectado. Por favor, vuelva a realizar su petición desde el inicio!"
#: classes/user.php:490
#: classes/user.php:623
msgid "Reset password"
msgstr "Reiniciar contraseña"
#: classes/user.php:515
#: classes/user.php:659
msgid "Email change"
msgstr "Cambiar correo"
#: classes/incident.php:50 classes/user.php:594
#: classes/incident.php:54 classes/user.php:736
msgid "You don't have permission to do that!"
msgstr "¡No tienes permisos para hacer eso!"
#: config.php:40
#: template.php:4
msgid "Major outage"
msgstr "Interrupción importante"
#: config.php:40
#: template.php:4
msgid "Minor outage"
msgstr "Interrupción menor"
#: config.php:40
#: template.php:4
msgid "Operational"
msgstr "Operacional"
#: config.php:43
#: template.php:7
msgid "Some systems are experiencing major outages"
msgstr "Algunos sistemas están experimentando interrupciones importantes"
#: config.php:43
#: template.php:7
msgid "Some systems are experiencing minor outages"
msgstr "Algunos sistemas experimentan interrupciones menores"
#: config.php:43
#: template.php:7
msgid "Some systems are under maintenance"
msgstr "Algunos sistemas están bajo mantenimiento"
#: config.php:44
#: template.php:8
msgid "Our systems are experiencing major outages."
msgstr "Nuestros sistemas están experimentando interrupciones importantes."
#: config.php:44
#: template.php:8
msgid "Our systems are experiencing minor outages"
msgstr "Nuestros sistemas están experimentando interrupciones menores"
#: config.php:44
#: template.php:8
msgid "Our systems are under maintenance"
msgstr "Nuestros sistemas están bajo mantenimiento"
#: config.php:44
#: template.php:8
msgid "All systems operational"
msgstr "Todos los sistemas están operativos"
#: config.php:45
#: template.php:9
msgid "Super admin"
msgstr "Super administrador"
#: config.php:45
#: template.php:9
msgid "Admin"
msgstr "Administrador"
@ -384,15 +387,15 @@ msgstr "Administrador"
msgid "Service Status"
msgstr "Estado del servicio"
#: template.php:97
#: template.php:106
msgid "Toggle navigation"
msgstr "Cambiar navegación"
#: template.php:107
#: template.php:116
msgid "User (%s)"
msgstr "Usuario (%s)"
#: template.php:109
#: template.php:118
msgid "Logout"
msgstr "Salir"
@ -404,15 +407,15 @@ msgstr "Estado actual"
msgid "Status page"
msgstr "Página de estado"
#: install.php:127
#: install.php:139
msgid "Install"
msgstr "Instalar"
#: install.php:129
#: install.php:141
msgid "Installation"
msgstr "Instalación"
#: config.php:33 install.php:26
#: install.php:26
msgid "Connection failed: %s\n"
""
msgstr "Falló la conexión: %s"
@ -421,63 +424,59 @@ msgstr "Falló la conexión: %s"
msgid "Please set valid url!"
msgstr "¡Por favor, ingrese una URL válida!"
#: install.php:93
#: install.php:98
msgid "Error while creating database. Please check permission for your account or MYSQL version.<br>Error: %s"
msgstr "Error creando la base de datos. Por favor revise los permisos para su cuenta o versión de MySQL.<br>Error: %s"
#: install.php:140
#: install.php:154
msgid "Website details"
msgstr "Detalles del sitio web"
#: install.php:141
msgid "We need a name for your status page and a url, so we can mail users link for forgotten password etc."
msgstr "Necesitamos un nombre para su página de estado y una URL, de modo que podamos enviarles un enlace a los usuarios para obtener una contraseña olvidada, etc."
#: install.php:40 install.php:145
#: install.php:40 install.php:159
msgid "Url"
msgstr "URL"
#: install.php:147
#: install.php:166
msgid "Also an email address for mailer would be nice :)"
msgstr "También una dirección de correo electrónico para el envío de correos estaría bien :)"
#: install.php:154
#: install.php:173
msgid "Database connection"
msgstr "Conexión a la base de datos"
#: install.php:155
#: install.php:174
msgid "We need database connection to be able to create tables. Please check that your account has the permission needed to do that."
msgstr "Necesitamos una conexión de base de datos para poder crear tablas. Verifique que su cuenta tenga el permiso necesario para hacerlo."
#: install.php:158
#: install.php:177
msgid "Server"
msgstr "Servidor"
#: install.php:159
#: install.php:178
msgid "Database"
msgstr "Base de datos"
#: install.php:168
#: install.php:203
msgid "And finally, we need info to create a new user. You don't have to provide it, but then... No status page admin..."
msgstr "Y finalmente, necesitamos información para crear un nuevo usuario. No es necesario que lo proporcione, pero entonces... No habrá ningún administrador de la página de estado..."
#: install.php:181
#: install.php:216
msgid "Run install!"
msgstr "¡Iniciar instalación!"
#: classes/user.php:132
#: classes/user.php:127
msgid "Rank"
msgstr "Rango"
#: classes/user.php:491
#: classes/user.php:624
msgid "Hi %s!<br>Below you will find link to change your password. The link is valid for 24hrs. If you didn't request this, feel free to ignore it. <br><br><a href=\"%s\">RESET PASSWORD</a><br><br>If the link doesn't work, copy &amp; paste it into your browser: <br>%s"
msgstr "Hola %s!<br>Abajo encontrarás un link para cambiar tu contraseña. El link es válido por 24 horas. Sí no solicitaste esto, puedes ignorar este mensaje. <br><br><a href=\"%s\">REINICIAR CONTRAEÑA</a><br><br>Sí el link no funcina, copia &amp; pega esto en tu navegador: <br>%s"
#: classes/user.php:516
#: classes/user.php:660
msgid "Hi %s!<br>Below you will find link to change your email. The link is valid for 24hrs. If you didn't request this, feel free to ignore it. <br><br><a href=\"%s\">CHANGE EMAIL</a><br><br>If the link doesn't work, copy &amp; paste it into your browser: <br>%s"
msgstr "Hola %s!<br>Abajo encontrarás un link para cambiar tu correo. El link es válido por 24 horas. Sí no solicitaste esto, puedes ignorar este mensaje. <br><br><a href=\"%s\">CAMBIAR CORREO</a><br><br>Sí el link no funcina, copia &amp; pega esto en tu navegador: <br>%s"
#: config.php:45
#: template.php:9
msgid "Editor"
msgstr "Editor"
@ -489,35 +488,173 @@ msgstr "Nombre del servidor"
msgid "Mailer name"
msgstr "Nombre del remitente"
#: install.php:48
#: install.php:52
msgid "Mailer email"
msgstr "Correo del remitente"
#: install.php:52
#: install.php:56
msgid "Database server"
msgstr "Servidor de la base de datos"
#: install.php:56
#: install.php:60
msgid "Database name"
msgstr "Nombre de la base de datos"
#: install.php:60
#: install.php:64
msgid "Database user"
msgstr "Usuario de la base de datos"
#: install.php:65
#: install.php:69
msgid "Database password"
msgstr "Contraseña de la base de datos"
#: install.php:69
msgid "Please set"
msgstr "Por favor, configure"
#: template.php:138
#: template.php:147
msgid "Toggle Dropdown"
msgstr "Alternar menú desplegable"
#: template.php:147
#: template.php:156
msgid "Help with translation!"
msgstr "¡Ayuda con la traducción!"
#: classes/user.php:439
msgid "Deactivate user"
msgstr ""
#: classes/user.php:441
msgid "Activate user"
msgstr ""
#: install.php:73
msgid "Please enter"
msgstr ""
#: install.php:150
msgid "We will ask you some basic questions about your website. Most of the settings can be later edited in the config.php file."
msgstr ""
#: install.php:155
msgid "We need a name for your status page (shown behind page title after the dash) and a url of your server status installation (i.e. <a href='#'>https://example.com/status</a> - without the trailing slash), so we can mail users link for forgotten password etc..."
msgstr ""
#: install.php:161
msgid "A title that you want to be shown on the top of the page."
msgstr ""
#: api/status.php:24
msgid "Service does not exist!"
msgstr ""
#: classes/user.php:220
msgid "Please fill in your email and password!"
msgstr ""
#: classes/user.php:336
msgid "Change name"
msgstr ""
#: classes/user.php:356
msgid "Change username"
msgstr ""
#: classes/user.php:463
msgid "This username is already taken."
msgstr ""
#: classes/user.php:470
msgid "Cannot change username of other users!"
msgstr ""
#: classes/user.php:504
msgid "Cannot change names of other users!"
msgstr ""
#: classes/user.php:667
msgid "Confirmation email sent!"
msgstr ""
#: install.php:186 policy.php:6
msgid "Privacy Policy"
msgstr ""
#: install.php:190
msgid "Company name"
msgstr ""
#: install.php:191
msgid "Address"
msgstr ""
#: install.php:191
msgid "Full address"
msgstr ""
#: install.php:194
msgid "E-Mail"
msgstr ""
#: install.php:195
msgid "Phone"
msgstr ""
#: install.php:195
msgid "Phone number"
msgstr ""
#: install.php:198 policy.php:7
msgid "Who we are"
msgstr ""
#: policy.php:9
msgid "Contact"
msgstr ""
#: policy.php:17
msgid "What personal data we collect and why"
msgstr ""
#: policy.php:19
msgid "If you access our websites, the following information will be saved: IP-address, Date, Time, Browser queries, \n"
"\tGeneral information about your browser, operating system and all search queries on the sites. \n"
"\tThis user data will be used for anonym user statistics to recognize trends and improve our content.\n"
"\t"
msgstr ""
#: policy.php:23
msgid "How we protect your data"
msgstr ""
#: policy.php:24
msgid "In collaboration with our hosting provider we try our best to protect our \n"
"\tdatabases against access from third parties, losses, misuse or forgery.\n"
"\t"
msgstr ""
#: policy.php:27
msgid "Third party that receive your personal data"
msgstr ""
#: policy.php:29
msgid "Cookies"
msgstr ""
#: policy.php:30
msgid "This site uses cookies small text files that are placed on your machine to help the site provide a better user experience. \n"
"\tIn general, cookies are used to retain user preferences, store information for things like shopping carts, \n"
"\tand provide anonymised tracking data to third party applications like Google Analytics. \n"
"\tAs a rule, cookies will make your browsing experience better. However, you may prefer to disable cookies on this site and on others. \n"
"\tThe most effective way to do this is to disable cookies in your browser. We suggest consulting the Help section of your browser \n"
"\tor taking a look at the About Cookies website which offers guidance for all modern browsers"
msgstr ""
#: install.php:187
msgid "Since you are collecting personal information, the GDPR needs you to have a privacy policy. Enter the details below."
msgstr ""
#: install.php:198
msgid "Some info about yourself"
msgstr ""
#: policy.php:18
msgid "General"
msgstr ""

View File

@ -7,15 +7,15 @@ msgstr ""
"Project-Id-Version: Server status\n"
"Language: fr\n"
#: 404.php:7
#: 404.php:12
msgid "Page Not Found"
msgstr "Page non trouvée"
#: 404.php:8
#: 404.php:13
msgid "Sorry, but the page you were trying to view does not exist."
msgstr "Désolé, la page demandée n'existe pas"
#: admin/dashboard.php:22 admin/dashboard.php:26 template.php:106
#: admin/dashboard.php:22 admin/dashboard.php:26 template.php:115
msgid "Dashboard"
msgstr "Tableau de bord"
@ -27,7 +27,7 @@ msgstr "Bienvenue"
msgid "New incident"
msgstr "Nouvel incident"
#: admin/dashboard.php:72
#: admin/dashboard.php:72 install.php:48 install.php:163
msgid "Title"
msgstr "Titre"
@ -35,42 +35,42 @@ msgstr "Titre"
msgid "Time"
msgstr "Date"
#: admin/dashboard.php:75
#: admin/dashboard.php:77
msgid "Here goes your text..."
msgstr "Entrez votre texte..."
#: admin/dashboard.php:78 classes/incident.php:177
#: admin/dashboard.php:80 classes/incident.php:183
msgid "Posted by"
msgstr "Publié par"
#: admin/dashboard.php:78 classes/incident.php:179
#: admin/dashboard.php:80 classes/incident.php:185
msgid "Ending"
msgstr "Terminé"
#: admin/dashboard.php:78
#: admin/dashboard.php:80
msgid "End time"
msgstr "Date de fin"
#: admin/dashboard.php:96 admin/new-user.php:53
#: admin/dashboard.php:99 admin/new-user.php:53
msgid "Submit"
msgstr "Envoyer"
#: admin/login-form.php:2 admin/login-form.php:5 admin/login-form.php:27
msgid "Login"
msgstr "Login"
msgstr "Se connecter"
#: admin/login-form.php:11
msgid "Please login to continue."
msgstr "Connectez-vous pour continuer"
#: admin/login-form.php:15 admin/login-form.php:16 admin/lost-password.php:46
#: admin/lost-password.php:48 admin/new-user.php:24 admin/settings.php:69
#: classes/user.php:125 classes/user.php:375 install.php:150 install.php:175
#: admin/lost-password.php:48 admin/new-user.php:24 admin/settings.php:72
#: classes/user.php:120 classes/user.php:404 install.php:169 install.php:210
msgid "Email"
msgstr "Email"
#: admin/login-form.php:19 admin/login-form.php:20 admin/new-user.php:27
#: classes/user.php:128 classes/user.php:357 install.php:163 install.php:178
#: classes/user.php:123 classes/user.php:417 install.php:182 install.php:213
msgid "Password"
msgstr "Mot de passe"
@ -92,7 +92,7 @@ msgstr "Retour"
#: admin/lost-password.php:20
msgid "Password changed successfully!"
msgstr "Le mot de passe à bien été changer"
msgstr "Le mot de passe a bien été changé !"
#: admin/lost-password.php:21 admin/lost-password.php:35
msgid "Go back to login page"
@ -114,17 +114,17 @@ msgstr "Envoyer une demande"
msgid "Reset password for %s (%s)"
msgstr "Réinitialiser le mot de passe pour %s (%s)"
#: admin/lost-password.php:60 admin/lost-password.php:61 classes/user.php:361
#: classes/user.php:362
#: admin/lost-password.php:60 admin/lost-password.php:61 classes/user.php:421
#: classes/user.php:422
msgid "New password"
msgstr "Nouveau mot de passe"
#: admin/lost-password.php:62 admin/lost-password.php:63 classes/user.php:363
#: classes/user.php:364
#: admin/lost-password.php:62 admin/lost-password.php:63 classes/user.php:423
#: classes/user.php:424
msgid "Repeat password"
msgstr "Répéter le mot de passe"
#: admin/lost-password.php:64 classes/user.php:365
#: admin/lost-password.php:64 classes/user.php:425
msgid "Change password"
msgstr "Changer le mot de passe"
@ -132,26 +132,29 @@ msgstr "Changer le mot de passe"
msgid "New user"
msgstr "Nouvel utilisateur"
#: admin/new-user.php:19 admin/settings.php:38 admin/settings.php:69
#: classes/user.php:119 install.php:144 install.php:149 install.php:170
#: admin/new-user.php:19 admin/settings.php:39 admin/settings.php:72
#: classes/user.php:114 classes/user.php:322 classes/user.php:326
#: classes/user.php:327 classes/user.php:488 install.php:158 install.php:168
#: install.php:190 install.php:205
msgid "Name"
msgstr "Prénom"
#: admin/new-user.php:20 admin/settings.php:69 classes/user.php:122
#: install.php:171
#: admin/new-user.php:20 admin/settings.php:72 classes/user.php:117
#: classes/user.php:323 classes/user.php:329 classes/user.php:330
#: classes/user.php:491 install.php:206
msgid "Surname"
msgstr "Nom"
#: admin/new-user.php:23 admin/settings.php:69 classes/user.php:317
#: install.php:174
#: admin/new-user.php:23 admin/settings.php:72 classes/user.php:349
#: install.php:209
msgid "Username"
msgstr "Nom d'utilisateur"
msgstr "Identifiant"
#: admin/new-user.php:29
msgid "Permission"
msgstr "Autorisation"
#: admin/settings.php:12 template.php:108
#: admin/settings.php:12 template.php:117
msgid "Settings"
msgstr "Paramètres"
@ -163,35 +166,35 @@ msgstr "Services"
msgid "Add service"
msgstr "Ajouter un service"
#: admin/settings.php:37 admin/settings.php:69 classes/user.php:313
#: admin/settings.php:38 admin/settings.php:72
msgid "ID"
msgstr "ID"
#: admin/settings.php:41
#: admin/settings.php:42
msgid "Delete"
msgstr "Supprimer"
#: admin/settings.php:65
#: admin/settings.php:67
msgid "Users"
msgstr "Utilisateurs"
#: admin/settings.php:66
#: admin/settings.php:68
msgid "Add new user"
msgstr "Ajouter un nouvel utilisateur"
#: admin/settings.php:69 classes/user.php:329
#: admin/settings.php:72 classes/user.php:372
msgid "Role"
msgstr "Rôle"
#: admin/user.php:35 install.php:162 install.php:167
#: admin/user.php:45 admin/user.php:54 install.php:181 install.php:202
msgid "User"
msgstr "Utilisateur"
#: admin/user.php:39
#: admin/user.php:52
msgid "User settings"
msgstr "Paramètres utilisateur"
#: classes/constellation.php:36 config.php:40
#: classes/constellation.php:36 template.php:4
msgid "Planned maintenance"
msgstr "Maintenance prévue"
@ -201,49 +204,49 @@ msgstr "Retour"
#: classes/constellation.php:44
msgid "Past incidents"
msgstr "Incidents passés"
msgstr "Historique des Incidents"
#: classes/constellation.php:48
msgid "No incidents"
msgstr "Aucun incident"
#: classes/constellation.php:62
#: classes/constellation.php:61
msgid "Load more"
msgstr "En voir plus"
msgstr "En charger plus"
#: classes/constellation.php:100
#: classes/constellation.php:101
msgid "No services"
msgstr "Aucun service"
#: classes/incident.php:83
#: classes/incident.php:87
msgid "Please enter title"
msgstr "Entrez un titre"
#: classes/incident.php:86
#: classes/incident.php:90
msgid "Title too long! Character limit is 50"
msgstr "Titre trop long ! Limité à 50 caractères"
#: classes/incident.php:92
#: classes/incident.php:96
msgid "Please enter text"
msgstr "Entrez du texte"
#: classes/incident.php:98
#: classes/incident.php:102
msgid "Please set start and end time! Use ISO 8601 format."
msgstr "Entrez une date de début et de fin ! Utilisez le format ISO 8601."
msgstr "Entrez une date de début et de fin ! Utilisez le format ISO 8601. (ex: 2017-05-17T13:50:51+00:00)"
#: classes/incident.php:103
#: classes/incident.php:107
msgid "Please select at least one service"
msgstr "Sélectionnez au moins un service"
#: classes/incident.php:121
msgid "Start date format is not recognized. Please use ISO 8601 format."
msgstr "La date de début n'est pas reconnue. Utiliser le format ISO 8601."
#: classes/incident.php:127
msgid "End date format is not recognized. Please use ISO 8601 format."
msgstr "La date de fin n'est pas reconnue. Utilisez le format ISO 8601."
msgid "Start date format is not recognized. Please use ISO 8601 format."
msgstr "La date de début n'est pas reconnue. Utiliser le format ISO 8601. (ex: 2017-05-17T13:50:51+00:00)"
#: classes/incident.php:179
#: classes/incident.php:133
msgid "End date format is not recognized. Please use ISO 8601 format."
msgstr "La date de fin n'est pas reconnue. Utilisez le format ISO 8601. (ex: 2017-05-17T13:50:51+00:00)"
#: classes/incident.php:185
msgid "Ended"
msgstr "Terminé"
@ -255,144 +258,144 @@ msgstr "Nom du service trop long ! Limité à 50 caractères"
msgid "Please enter name!"
msgstr "Entrez un nom !"
#: classes/service.php:81 classes/service.php:123 classes/user.php:102
#: classes/user.php:204
#: classes/service.php:81 classes/service.php:123 classes/user.php:97
#: classes/user.php:199
msgid "You don't have the permission to do that!"
msgstr "Vous n'avez pas la permission !"
#: classes/user.php:165
#: classes/user.php:164
msgid "Please mind the following character limits: "
msgstr "Veuillez respecter les limites de caractères suivantes: "
#: classes/user.php:182
#: classes/user.php:185
msgid "User account created"
msgstr "Compte utilisateur créé"
#: classes/user.php:183
#: classes/user.php:186
msgid "Hi %s!<br>Your account has been created. You can login with your email address at <a href=\"%s\">%s</a> with password %s - please change it as soon as possible."
msgstr "Bienvenue %s!<br>Votre compte à bien été crée. Vous pouvez dés maintenant vous connecter via votre email à <a href=\"%s\">%s</a> avec votre mot de passe %s - Veuillez le changer le plus rapidement possible."
msgstr "Bienvenue %s!<br>Votre compte a bien été créée. Vous pouvez dés maintenant vous connecter via votre adresse e-mail sur <a href=\"%s\">%s</a> avec le mot de passe suivant : %s - Veuillez le changer le plus rapidement possible."
#: classes/user.php:196
#: classes/user.php:180
msgid "Username or email already used"
msgstr "Le nom d'utilisateur/email est déjà utilisé"
msgstr "Lidentifiant ou l'adresse e-mail est déjà utilisé"
#: classes/user.php:236
#: classes/user.php:244
msgid "Your account has been disabled. Please contact administrator."
msgstr "Votre compte à été désactivé. Veuillez contacter l'administrateur."
#: classes/user.php:248 classes/user.php:264
#: classes/user.php:233 classes/user.php:256
msgid "Wrong email or password"
msgstr "Email/Mot de passe incorrect"
msgstr "Adresse e-mail ou mot de passe incorrect"
#: classes/user.php:295
#: classes/user.php:299
msgid "Invalid token detected, please login again!"
msgstr "Jeton invalide détécté, veuillez vous reconnecter à nouveau!"
msgstr "Billet invalide détecté, veuillez vous reconnecter à nouveau !"
#: classes/user.php:309
#: classes/user.php:314
msgid "Profile picture"
msgstr "Photo de profil"
#: classes/user.php:334
#: classes/user.php:379
msgid "Change role"
msgstr "Changer le rôle"
msgstr "Changer de rôle"
#: classes/user.php:349
#: classes/user.php:394
msgid "Change email"
msgstr "Changer l'email"
msgstr "Changer dadresse e-mail"
#: classes/user.php:359 classes/user.php:360
#: classes/user.php:419 classes/user.php:420
msgid "Old password"
msgstr "Ancien mot de passe"
#: classes/user.php:398
#: classes/user.php:526
msgid "Passwords do not match!"
msgstr "Les mots de passe ne correspondent pas !"
#: classes/user.php:404
#: classes/user.php:534
msgid "Cannot change password of other users!"
msgstr "Vous ne pouvez pas changer le mot de passe des autres utilisateurs !"
#: classes/user.php:434
#: classes/user.php:567
msgid "Wrong password!"
msgstr "Mot de passe incorrect !"
#: classes/user.php:460 classes/user.php:551
#: classes/user.php:595 classes/user.php:695
msgid "Invalid token detected, please retry your request from start!"
msgstr "Jeton invalide détécté. Ressayez, svp, votre requete depuis le debut!"
msgstr "Billet invalide détecté. Veuillez réessayé votre requête depuis le début !"
#: classes/user.php:490
#: classes/user.php:623
msgid "Reset password"
msgstr "Réinitialiser le mot de passe"
#: classes/user.php:515
#: classes/user.php:659
msgid "Email change"
msgstr "Adresse email changée"
msgstr "Adresse e-mail changée"
#: classes/incident.php:50 classes/user.php:594
#: classes/incident.php:54 classes/user.php:736
msgid "You don't have permission to do that!"
msgstr "Vous n'avez pas la permission !"
#: config.php:40
#: template.php:4
msgid "Major outage"
msgstr "Panne majeure"
#: config.php:40
#: template.php:4
msgid "Minor outage"
msgstr "Panne mineure"
#: config.php:40
#: template.php:4
msgid "Operational"
msgstr "Opérationnel"
#: config.php:43
#: template.php:7
msgid "Some systems are experiencing major outages"
msgstr "Certains systèmes rencontrent des pannes majeures"
#: config.php:43
#: template.php:7
msgid "Some systems are experiencing minor outages"
msgstr "Certains systèmes rencontrent des pannes mineures"
#: config.php:43
#: template.php:7
msgid "Some systems are under maintenance"
msgstr "Certains systèmes sont en maintenance"
#: config.php:44
#: template.php:8
msgid "Our systems are experiencing major outages."
msgstr "Nos systèmes rencontrent des pannes majeures"
#: config.php:44
#: template.php:8
msgid "Our systems are experiencing minor outages"
msgstr "Nos systèmes rencontrent des pannes mineures"
#: config.php:44
#: template.php:8
msgid "Our systems are under maintenance"
msgstr "Nos systèmes sont en cours de maintenance"
#: config.php:44
#: template.php:8
msgid "All systems operational"
msgstr "Tous les systèmes sont opérationnels"
#: config.php:45
#: template.php:9
msgid "Super admin"
msgstr "Super admin"
msgstr "Super Administrateur"
#: config.php:45
#: template.php:9
msgid "Admin"
msgstr "Admin"
msgstr "Administrateur"
#: template.php:53
msgid "Service Status"
msgstr "État du service"
msgstr "État des services"
#: template.php:97
#: template.php:106
msgid "Toggle navigation"
msgstr "Barre de navigation"
#: template.php:107
#: template.php:116
msgid "User (%s)"
msgstr "Utilisateur (%s)"
#: template.php:109
#: template.php:118
msgid "Logout"
msgstr "Déconnexion"
@ -404,15 +407,15 @@ msgstr "État actuel"
msgid "Status page"
msgstr "Page de configuration"
#: install.php:127
#: install.php:139
msgid "Install"
msgstr "Installer"
#: install.php:129
#: install.php:141
msgid "Installation"
msgstr "Installation"
#: config.php:33 install.php:26
#: install.php:26
msgid "Connection failed: %s\n"
""
msgstr "La connexion a échoué : %s"
@ -421,65 +424,61 @@ msgstr "La connexion a échoué : %s"
msgid "Please set valid url!"
msgstr "Entrez un URL valide !"
#: install.php:93
#: install.php:98
msgid "Error while creating database. Please check permission for your account or MYSQL version.<br>Error: %s"
msgstr "Erreur lors de la création de la base de donnée. Vérifiez les permissions de votre compte ou votre version de MySQL.<br>Error: %s"
msgstr "Erreur lors de la création de la base de donnée. Vérifiez les permissions de votre compte ou votre version de MySQL.<br>Erreur: %s"
#: install.php:140
#: install.php:154
msgid "Website details"
msgstr "Détails du site"
#: install.php:141
msgid "We need a name for your status page and a url, so we can mail users link for forgotten password etc."
msgstr "Un nom et un URL est requis pour pouvoir envoyer un lien pour les mots de passe oublié par exemple"
#: install.php:40 install.php:145
#: install.php:40 install.php:159
msgid "Url"
msgstr "URL"
#: install.php:147
#: install.php:166
msgid "Also an email address for mailer would be nice :)"
msgstr "Bien sur une adresse email pour l'emetteur serait bien :)"
msgstr "Bien sur une adresse email pour l’émetteur serait bien :)"
#: install.php:154
#: install.php:173
msgid "Database connection"
msgstr "Connexion à la base de données"
#: install.php:155
#: install.php:174
msgid "We need database connection to be able to create tables. Please check that your account has the permission needed to do that."
msgstr "Nous avons besoin d'une connexion à la base de données pour créer les tables. Controlez, s'il vous plait, que votre compte à les permissions pour se connecter"
msgstr "Nous avons besoin d'une connexion à la base de données pour créer les tables. Veuillez contrôler que votre compte possède les permissions pour se connecter."
#: install.php:158
#: install.php:177
msgid "Server"
msgstr "Serveur"
#: install.php:159
#: install.php:178
msgid "Database"
msgstr "Base de donnéee"
#: install.php:168
#: install.php:203
msgid "And finally, we need info to create a new user. You don't have to provide it, but then... No status page admin..."
msgstr "Et finalement, nous avons besoin d'informations pour créer un nouvel utilisateur. Vous n'avez pas besoin de les fournir, mais alors... Pas de page status d'admin..."
msgstr "Et finalement, nous avons besoin d'informations pour créer un nouvel utilisateur. Vous n'avez pas besoin de les fournir, mais dans ce cas ... Pas de page de configuration d'administration..."
#: install.php:181
#: install.php:216
msgid "Run install!"
msgstr "Démarrage de l'installation"
#: classes/user.php:132
#: classes/user.php:127
msgid "Rank"
msgstr "Place"
#: classes/user.php:491
#: classes/user.php:624
msgid "Hi %s!<br>Below you will find link to change your password. The link is valid for 24hrs. If you didn't request this, feel free to ignore it. <br><br><a href=\"%s\">RESET PASSWORD</a><br><br>If the link doesn't work, copy &amp; paste it into your browser: <br>%s"
msgstr "Bonjour %s!<br>Ci-dessous, vous trouverez un lien pour changer votre mot de passe. Ce lien est valable pendant 24 heures. Si vous n'avez fait aucune demande, ignorez ce message. <br><br><a href=\"%s\">Réinitialiser mon mot de passe</a><br><br>Si ce lien ne fonctionne pas, copier &amp; et coller ce lien dans votre navigateur: <br>%s"
#: classes/user.php:516
#: classes/user.php:660
msgid "Hi %s!<br>Below you will find link to change your email. The link is valid for 24hrs. If you didn't request this, feel free to ignore it. <br><br><a href=\"%s\">CHANGE EMAIL</a><br><br>If the link doesn't work, copy &amp; paste it into your browser: <br>%s"
msgstr "Bonjour %s!<br>Ci-dessous, vous trouverez un lien pour changer votre email. Ce lien est valable pendant 24 heures. Si vous n'avez fait aucune demande, ignorez ce message. <br><br><a href=\"%s\">Changer mon email</a><br><br>Si ce lien ne fonctionne pas, copier &amp; et coller ce lien dans votre navigateur: <br>%s "
msgstr "Bonjour %s!<br>Ci-dessous, vous trouverez un lien pour changer votre adresse e-mail. Ce lien est valable pendant 24 heures. Si vous n'avez fait aucune demande, ignorez ce message. <br><br><a href=\"%s\">Changer mon e-mail</a><br><br>Si ce lien ne fonctionne pas, copier &amp; et coller ce lien dans votre navigateur: <br>%s "
#: config.php:45
#: template.php:9
msgid "Editor"
msgstr "Editeur"
msgstr "Éditeur"
#: install.php:36
msgid "Server name"
@ -489,35 +488,180 @@ msgstr "Nom du serveur"
msgid "Mailer name"
msgstr "Nom de l'expéditeur"
#: install.php:48
msgid "Mailer email"
msgstr "Adresse email de l'expéditeur"
#: install.php:52
msgid "Database server"
msgstr "Serveur de base de données"
msgid "Mailer email"
msgstr "Adresse e-mail de l'expéditeur"
#: install.php:56
msgid "Database name"
msgstr "Nom de la base de donnée"
msgid "Database server"
msgstr "Serveur de la base de données"
#: install.php:60
msgid "Database name"
msgstr "Nom de la base de données"
#: install.php:64
msgid "Database user"
msgstr "Utilisateur de la base de donnée"
#: install.php:65
#: install.php:69
msgid "Database password"
msgstr "Mot de passe de la base de donnée"
#: install.php:69
msgid "Please set"
msgstr "Renseigner, s'il vous plait"
#: template.php:138
#: template.php:147
msgid "Toggle Dropdown"
msgstr "Activer / désactiver le menu déroulant"
#: template.php:147
#: template.php:156
msgid "Help with translation!"
msgstr "Aidez à traduire !"
msgstr "Aidez-nous à traduire !"
#: classes/user.php:439
msgid "Deactivate user"
msgstr "Désactiver l'utilisateur"
#: classes/user.php:441
msgid "Activate user"
msgstr "Activer l'utilisateur"
#: install.php:73
msgid "Please enter"
msgstr "Veuillez entré"
#: install.php:150
msgid "We will ask you some basic questions about your website. Most of the settings can be later edited in the config.php file."
msgstr "Nous allons vous poser quelques questions basiques à propos de votre site. La plupart des paramètres pourra être modifiée plus tard dans le fichier config.php"
#: install.php:155
msgid "We need a name for your status page (shown behind page title after the dash) and a url of your server status installation (i.e. <a href='#'>https://example.com/status</a> - without the trailing slash), so we can mail users link for forgotten password etc..."
msgstr "Nous avons besoin d'un nom pour votre page de configuration (affiché derrière le titre de la page après le tiret) et de l'URL de l'installation de votre statut-serveur (ex: <a href='#'>https://example.com/status</a> - sans le slash final), ainsi nous pourrions envoyer un e-mail aux utilisateurs ayant oublié leurs mots de passe, etc..."
#: install.php:161
msgid "A title that you want to be shown on the top of the page."
msgstr "Un titre qui sera afficher en haut de la page."
#: api/status.php:24
msgid "Service does not exist!"
msgstr "Le service n'existe pas !"
#: classes/user.php:220
msgid "Please fill in your email and password!"
msgstr "Veuillez entrer votre e-mail et mot de passe !"
#: classes/user.php:336
msgid "Change name"
msgstr "Changer de nom"
#: classes/user.php:356
msgid "Change username"
msgstr "Changer d'identifiant"
#: classes/user.php:463
msgid "This username is already taken."
msgstr "Cet identifiant est déjà pris."
#: classes/user.php:470
msgid "Cannot change username of other users!"
msgstr "Vous ne pouvez changer l'identifiant des autres utilisateurs !"
#: classes/user.php:504
msgid "Cannot change names of other users!"
msgstr "Vous ne pouvez pas changer le nom des autres utilisateurs !"
#: classes/user.php:667
msgid "Confirmation email sent!"
msgstr "Confirmation envoyée par e-mail !"
#: install.php:186 policy.php:6
msgid "Privacy Policy"
msgstr "Politique de confidentialité"
#: install.php:190
msgid "Company name"
msgstr "Nom de l'entreprise"
#: install.php:191
msgid "Address"
msgstr "Addresse"
#: install.php:191
msgid "Full address"
msgstr "Adresse complète"
#: install.php:194
msgid "E-Mail"
msgstr "Email"
#: install.php:195
msgid "Phone"
msgstr "Portable"
#: install.php:195
msgid "Phone number"
msgstr "Téléphone"
#: install.php:198 policy.php:7
msgid "Who we are"
msgstr "Qui sommes-nous ?"
#: policy.php:9
msgid "Contact"
msgstr "Contact"
#: policy.php:17
msgid "What personal data we collect and why"
msgstr "Quelles données personnelles sont collectées et pourquoi ?"
#: policy.php:19
msgid "If you access our websites, the following information will be saved: IP-address, Date, Time, Browser queries, \n"
"\tGeneral information about your browser, operating system and all search queries on the sites. \n"
"\tThis user data will be used for anonym user statistics to recognize trends and improve our content.\n"
"\t"
msgstr "Si vous accédez à nos sites Web, les informations suivantes seront enregistrées: adresse IP, date, heure, requêtes du navigateur, Informations générales sur votre navigateur, votre système d'exploitation et toutes les requêtes de recherche sur les sites.\n"
"Ces données utilisateur seront utilisées pour les statistiques des utilisateurs danonymat afin de reconnaître les tendances et daméliorer notre contenu."
#: policy.php:23
msgid "How we protect your data"
msgstr "Comment protégeons-nous vos données ?"
#: policy.php:24
msgid "In collaboration with our hosting provider we try our best to protect our \n"
"\tdatabases against access from third parties, losses, misuse or forgery.\n"
"\t"
msgstr "En collaboration avec notre hébergeur, nous faisons de notre mieux pour protéger vos bases de données contre les pertes, les abus ou la falsification.\n"
""
#: policy.php:27
msgid "Third party that receive your personal data"
msgstr "Des tiers qui reçoivent vos données personnelles"
#: policy.php:29
msgid "Cookies"
msgstr "Cookies"
#: policy.php:30
msgid "This site uses cookies small text files that are placed on your machine to help the site provide a better user experience. \n"
"\tIn general, cookies are used to retain user preferences, store information for things like shopping carts, \n"
"\tand provide anonymised tracking data to third party applications like Google Analytics. \n"
"\tAs a rule, cookies will make your browsing experience better. However, you may prefer to disable cookies on this site and on others. \n"
"\tThe most effective way to do this is to disable cookies in your browser. We suggest consulting the Help section of your browser \n"
"\tor taking a look at the About Cookies website which offers guidance for all modern browsers"
msgstr "Ce site utilise des cookies - de petits fichiers texte placés sur votre ordinateur pour aider le site à offrir une meilleure expérience utilisateur.\n"
"En général, les cookies sont utilisés pour conserver les préférences de l'utilisateur, stocker des informations sur des objets tels que les paniers d'achat,\n"
"et fournir des données de suivi anonymisées à des applications tierces telles que Google Analytics.\n"
"En règle générale, les cookies amélioreront votre expérience de navigation. Cependant, vous préférerez peut-être désactiver les cookies sur ce site et sur d'autres.\n"
"Le moyen le plus efficace de le faire est de désactiver les cookies dans votre navigateur. Nous vous suggérons de consulter la section Aide de votre navigateur\n"
"ou en consultant le site Web À propos des cookies, qui propose des conseils pour tous les navigateurs modernes."
#: install.php:187
msgid "Since you are collecting personal information, the GDPR needs you to have a privacy policy. Enter the details below."
msgstr "Dans la mesure où vous collectez des informations personnelles, le GDPR a besoin de votre politique de confidentialité. Entrez les détails ci-dessous."
#: install.php:198
msgid "Some info about yourself"
msgstr "Quelques infos sur vous"
#: policy.php:18
msgid "General"
msgstr "Général"

Binary file not shown.

View File

@ -0,0 +1,672 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: POEditor.com\n"
"Project-Id-Version: Server status\n"
"Language: it\n"
#: 404.php:12
msgid "Page Not Found"
msgstr "Pagina non trovata"
#: 404.php:13
msgid "Sorry, but the page you were trying to view does not exist."
msgstr "Mi dispiace ma la pagina che cerchi non esiste."
#: admin/dashboard.php:22 admin/dashboard.php:26 template.php:115
msgid "Dashboard"
msgstr "Dashboard"
#: admin/dashboard.php:27
msgid "Welcome"
msgstr "Benvenuto"
#: admin/dashboard.php:39
msgid "New incident"
msgstr "Nuovo incidente"
#: admin/dashboard.php:72 install.php:48 install.php:163
msgid "Title"
msgstr "Titolo"
#: admin/dashboard.php:72
msgid "Time"
msgstr "Ora"
#: admin/dashboard.php:77
msgid "Here goes your text..."
msgstr "Inserisci qui il testo..."
#: admin/dashboard.php:80 classes/incident.php:183
msgid "Posted by"
msgstr "Postato da"
#: admin/dashboard.php:80 classes/incident.php:185
msgid "Ending"
msgstr "Fine"
#: admin/dashboard.php:80
msgid "End time"
msgstr "Fine Tempo"
#: admin/dashboard.php:99 admin/new-user.php:53
msgid "Submit"
msgstr "Invia"
#: admin/login-form.php:2 admin/login-form.php:5 admin/login-form.php:27
msgid "Login"
msgstr "Entra"
#: admin/login-form.php:11
msgid "Please login to continue."
msgstr "Accedi per poter continuare..."
#: admin/login-form.php:15 admin/login-form.php:16 admin/lost-password.php:46
#: admin/lost-password.php:48 admin/new-user.php:24 admin/settings.php:72
#: classes/user.php:120 classes/user.php:404 install.php:169 install.php:210
msgid "Email"
msgstr "Email"
#: admin/login-form.php:19 admin/login-form.php:20 admin/new-user.php:27
#: classes/user.php:123 classes/user.php:417 install.php:182 install.php:213
msgid "Password"
msgstr "Password"
#: admin/login-form.php:22
msgid "Forgotten password?"
msgstr "Password dimenticata?"
#: admin/login-form.php:23
msgid "Remember me"
msgstr "Ricordami"
#: admin/lost-password.php:2 admin/lost-password.php:5
msgid "Lost password"
msgstr "Password persa"
#: admin/lost-password.php:16
msgid "Go back"
msgstr "Indietro"
#: admin/lost-password.php:20
msgid "Password changed successfully!"
msgstr "Password cambiata con successo!"
#: admin/lost-password.php:21 admin/lost-password.php:35
msgid "Go back to login page"
msgstr "Vai indietro nella pagina di login"
#: admin/lost-password.php:30
msgid "Go back to start"
msgstr "Torna indietro per iniziare"
#: admin/lost-password.php:34
msgid "Email with password reset link has been sent!"
msgstr "Email di reset inviata!"
#: admin/lost-password.php:50
msgid "Submit request"
msgstr "Invia richiesta"
#: admin/lost-password.php:57
msgid "Reset password for %s (%s)"
msgstr "Resetta password per %s (%s)"
#: admin/lost-password.php:60 admin/lost-password.php:61 classes/user.php:421
#: classes/user.php:422
msgid "New password"
msgstr "Nuova password"
#: admin/lost-password.php:62 admin/lost-password.php:63 classes/user.php:423
#: classes/user.php:424
msgid "Repeat password"
msgstr "Ripeti password"
#: admin/lost-password.php:64 classes/user.php:425
msgid "Change password"
msgstr "Cambia password"
#: admin/new-user.php:7
msgid "New user"
msgstr "Nuovo utente"
#: admin/new-user.php:19 admin/settings.php:39 admin/settings.php:72
#: classes/user.php:114 classes/user.php:322 classes/user.php:326
#: classes/user.php:327 classes/user.php:488 install.php:158 install.php:168
#: install.php:190 install.php:205
msgid "Name"
msgstr "Nome"
#: admin/new-user.php:20 admin/settings.php:72 classes/user.php:117
#: classes/user.php:323 classes/user.php:329 classes/user.php:330
#: classes/user.php:491 install.php:206
msgid "Surname"
msgstr "Cognome"
#: admin/new-user.php:23 admin/settings.php:72 classes/user.php:349
#: install.php:209
msgid "Username"
msgstr "Username"
#: admin/new-user.php:29
msgid "Permission"
msgstr "Autorizzazione"
#: admin/settings.php:12 template.php:117
msgid "Settings"
msgstr "Impostazioni"
#: admin/settings.php:23
msgid "Services"
msgstr "Servizi"
#: admin/settings.php:29
msgid "Add service"
msgstr "Aggiungi servizio"
#: admin/settings.php:38 admin/settings.php:72
msgid "ID"
msgstr "ID"
#: admin/settings.php:42
msgid "Delete"
msgstr "Elimina"
#: admin/settings.php:67
msgid "Users"
msgstr "Utenti"
#: admin/settings.php:68
msgid "Add new user"
msgstr "Aggiunti nuovo utente"
#: admin/settings.php:72 classes/user.php:372
msgid "Role"
msgstr "Ruolo"
#: admin/user.php:45 admin/user.php:54 install.php:181 install.php:202
msgid "User"
msgstr "Utente"
#: admin/user.php:52
msgid "User settings"
msgstr "Impostazioni Utente"
#: classes/constellation.php:36 template.php:4
msgid "Planned maintenance"
msgstr "Manutenzione programmata"
#: classes/constellation.php:42
msgid "Back"
msgstr "Indietro"
#: classes/constellation.php:44
msgid "Past incidents"
msgstr "Incidenti passati"
#: classes/constellation.php:48
msgid "No incidents"
msgstr "Nessun incidente"
#: classes/constellation.php:61
msgid "Load more"
msgstr "Carica altro"
#: classes/constellation.php:101
msgid "No services"
msgstr "Nessun servizio"
#: classes/incident.php:87
msgid "Please enter title"
msgstr "Inserisci un titolo"
#: classes/incident.php:90
msgid "Title too long! Character limit is 50"
msgstr "Titolo troppo lungo! Limite carattere 50"
#: classes/incident.php:96
msgid "Please enter text"
msgstr "Inserisci il testo"
#: classes/incident.php:102
msgid "Please set start and end time! Use ISO 8601 format."
msgstr "Si prega di impostare l'ora di inizio e di fine! Usa il formato ISO 8601."
#: classes/incident.php:107
msgid "Please select at least one service"
msgstr "Si prega di selezionare almeno un servizio\n"
""
#: classes/incident.php:127
msgid "Start date format is not recognized. Please use ISO 8601 format."
msgstr "Il formato della data di inizio non è riconosciuto. Si prega di utilizzare il formato ISO 8601."
#: classes/incident.php:133
msgid "End date format is not recognized. Please use ISO 8601 format."
msgstr "Il formato della data di fine non è riconosciuto. Si prega di utilizzare il formato ISO 8601."
#: classes/incident.php:185
msgid "Ended"
msgstr "Conclusa"
#: classes/service.php:63
msgid "Service name is too long! Character limit is 50"
msgstr "Il nome del servizio è troppo lungo! Il limite di caratteri è 50"
#: classes/service.php:66
msgid "Please enter name!"
msgstr "Inserisci il nome!"
#: classes/service.php:81 classes/service.php:123 classes/user.php:97
#: classes/user.php:199
msgid "You don't have the permission to do that!"
msgstr "Non hai il permesso di farlo!"
#: classes/user.php:164
msgid "Please mind the following character limits: "
msgstr "Ricordati i seguenti limiti di caratteri:␣"
#: classes/user.php:185
msgid "User account created"
msgstr "Account utente creato"
#: classes/user.php:186
msgid "Hi %s!<br>Your account has been created. You can login with your email address at <a href=\"%s\">%s</a> with password %s - please change it as soon as possible."
msgstr "Ciao %s!<br>Il tuo account è stato creato. Puoi accedere con il tuo indirizzo email <a href=\"%s\">%s</a> e con password %s - per favore cambialo il prima possibile."
#: classes/user.php:180
msgid "Username or email already used"
msgstr "Username o email giù usati"
#: classes/user.php:244
msgid "Your account has been disabled. Please contact administrator."
msgstr "Il tuo account è stato disabilitato. Contatta l'amministratore."
#: classes/user.php:233 classes/user.php:256
msgid "Wrong email or password"
msgstr "Email o password errata."
#: classes/user.php:299
msgid "Invalid token detected, please login again!"
msgstr "Rilevato token non valido, effettua nuovamente il login!"
#: classes/user.php:314
msgid "Profile picture"
msgstr "Immagine profilo"
#: classes/user.php:379
msgid "Change role"
msgstr "Cambia ruolo"
#: classes/user.php:394
msgid "Change email"
msgstr "Cambia email"
#: classes/user.php:419 classes/user.php:420
msgid "Old password"
msgstr "Vecchia password"
#: classes/user.php:526
msgid "Passwords do not match!"
msgstr "Le passwords non corrispondono!"
#: classes/user.php:534
msgid "Cannot change password of other users!"
msgstr "Impossibile cambiare la password di altri utenti!"
#: classes/user.php:567
msgid "Wrong password!"
msgstr "Password errata!"
#: classes/user.php:595 classes/user.php:695
msgid "Invalid token detected, please retry your request from start!"
msgstr "Rilevato token non valido, si prega di riprovare la richiesta dall'inizio!"
#: classes/user.php:623
msgid "Reset password"
msgstr "Resetta password"
#: classes/user.php:659
msgid "Email change"
msgstr "Email cambiata"
#: classes/incident.php:54 classes/user.php:736
msgid "You don't have permission to do that!"
msgstr "Non hai il permesso di farlo!"
#: template.php:4
msgid "Major outage"
msgstr "Grave interruzione"
#: template.php:4
msgid "Minor outage"
msgstr "Lieve interruzione"
#: template.php:4
msgid "Operational"
msgstr "Operativo"
#: template.php:7
msgid "Some systems are experiencing major outages"
msgstr "Alcuni sistemi stanno subendo interruzioni importanti"
#: template.php:7
msgid "Some systems are experiencing minor outages"
msgstr "Alcuni sistemi stanno riscontrando interruzioni minori"
#: template.php:7
msgid "Some systems are under maintenance"
msgstr "Alcuni sistemi sono in manutenzione"
#: template.php:8
msgid "Our systems are experiencing major outages."
msgstr "I nostri sistemi stanno riscontrando interruzioni importanti."
#: template.php:8
msgid "Our systems are experiencing minor outages"
msgstr "I nostri sistemi stanno riscontrando interruzioni minori"
#: template.php:8
msgid "Our systems are under maintenance"
msgstr "I nostri sistemi sono in manutenzione"
#: template.php:8
msgid "All systems operational"
msgstr "Tutti i sistemi sono operativi"
#: template.php:9
msgid "Super admin"
msgstr "Super Amministratore\n"
""
#: template.php:9
msgid "Admin"
msgstr "Admin"
#: template.php:53
msgid "Service Status"
msgstr "Stato del servizio"
#: template.php:106
msgid "Toggle navigation"
msgstr "Attiva / disattiva la navigazione"
#: template.php:116
msgid "User (%s)"
msgstr "Utente (%s)"
#: template.php:118
msgid "Logout"
msgstr "Esci"
#: index.php:27
msgid "Current status"
msgstr "Stato attuale"
#: install.php:4
msgid "Status page"
msgstr "Pagina di stato"
#: install.php:139
msgid "Install"
msgstr "Installa"
#: install.php:141
msgid "Installation"
msgstr "Installazione"
#: install.php:26
msgid "Connection failed: %s\n"
""
msgstr "Connessione fallita: %s"
#: install.php:31
msgid "Please set valid url!"
msgstr "Inserisci un url valido!"
#: install.php:98
msgid "Error while creating database. Please check permission for your account or MYSQL version.<br>Error: %s"
msgstr "Errore nella creazione del database. Controlla l'autorizzazione per il tuo account o la versione di MYSQL.<br>Error: %s"
#: install.php:154
msgid "Website details"
msgstr "Dettagli sito web"
#: install.php:40 install.php:159
msgid "Url"
msgstr "Url"
#: install.php:166
msgid "Also an email address for mailer would be nice :)"
msgstr "Anche un indirizzo email per il mailer sarebbe carino :)"
#: install.php:173
msgid "Database connection"
msgstr "Connessione al database"
#: install.php:174
msgid "We need database connection to be able to create tables. Please check that your account has the permission needed to do that."
msgstr "Abbiamo bisogno di una connessione al database per poter creare tabelle. Per favore controlla che il tuo account abbia il permesso necessario per farlo."
#: install.php:177
msgid "Server"
msgstr "Server"
#: install.php:178
msgid "Database"
msgstr "Database"
#: install.php:203
msgid "And finally, we need info to create a new user. You don't have to provide it, but then... No status page admin..."
msgstr "E infine, abbiamo bisogno di informazioni per creare un nuovo utente. Non devi fornirlo, ma poi ... Nessun amministratore della pagina di stato..."
#: install.php:216
msgid "Run install!"
msgstr "Esegui l'installazione!"
#: classes/user.php:127
msgid "Rank"
msgstr "Rank"
#: classes/user.php:624
msgid "Hi %s!<br>Below you will find link to change your password. The link is valid for 24hrs. If you didn't request this, feel free to ignore it. <br><br><a href=\"%s\">RESET PASSWORD</a><br><br>If the link doesn't work, copy &amp; paste it into your browser: <br>%s"
msgstr "Ciao %s!<br>Sotto troverai il link per cambiare la tua password. Il link è valido per 24 ore. Se non lo hai richiesto, ignora questo messaggio. <br><br><a href=\"%s\">RESETTA PASSWORD</a><br><br>Se il collegamento non funziona, copia &amp; incollalo nel tuo browser: <br>%s"
#: classes/user.php:660
msgid "Hi %s!<br>Below you will find link to change your email. The link is valid for 24hrs. If you didn't request this, feel free to ignore it. <br><br><a href=\"%s\">CHANGE EMAIL</a><br><br>If the link doesn't work, copy &amp; paste it into your browser: <br>%s"
msgstr "Ciao %s!<br>Sotto troverai il link per cambiare la tua password. Il link è valido per 24 ore. Se non lo hai richiesto, ignora questo messaggio. <br><br><a href=\"%s\">CAMBIA EMAIL</a><br><br>Se il collegamento non funziona, copia &amp; incollalo nel tuo browser: <br>%s\n"
""
#: template.php:9
msgid "Editor"
msgstr "Modifica"
#: install.php:36
msgid "Server name"
msgstr "Nome server"
#: install.php:44
msgid "Mailer name"
msgstr "Noma mailer"
#: install.php:52
msgid "Mailer email"
msgstr "Email mailer"
#: install.php:56
msgid "Database server"
msgstr "Server database"
#: install.php:60
msgid "Database name"
msgstr "Nome database"
#: install.php:64
msgid "Database user"
msgstr "Username database"
#: install.php:69
msgid "Database password"
msgstr "Password database"
#: template.php:147
msgid "Toggle Dropdown"
msgstr "Attiva / disattiva elenco a discesa"
#: template.php:156
msgid "Help with translation!"
msgstr "Aiutaci nella traduzione"
#: classes/user.php:439
msgid "Deactivate user"
msgstr "Disattiva utente"
#: classes/user.php:441
msgid "Activate user"
msgstr "Attiva utente"
#: install.php:73
msgid "Please enter"
msgstr "Per favore accedi"
#: install.php:150
msgid "We will ask you some basic questions about your website. Most of the settings can be later edited in the config.php file."
msgstr "Ti faremo alcune domande di base sul tuo sito web. La maggior parte delle impostazioni può essere successivamente modificata nel file config.php."
#: install.php:155
msgid "We need a name for your status page (shown behind page title after the dash) and a url of your server status installation (i.e. <a href='#'>https://example.com/status</a> - without the trailing slash), so we can mail users link for forgotten password etc..."
msgstr "Abbiamo bisogno di un nome per la tua pagina di stato (visualizzata dietro il titolo della pagina dopo il trattino) e un url dell'installazione dello stato del tuo server (es. <a href='#'>https://esempio.com/status</a> - senza la barra finale), in modo che possiamo inviare agli utenti il link per la password dimenticata, ecc ...\n"
""
#: install.php:161
msgid "A title that you want to be shown on the top of the page."
msgstr "Un titolo che si desidera mostrare nella parte superiore della pagina."
#: api/status.php:24
msgid "Service does not exist!"
msgstr "Il servizio non esiste!"
#: classes/user.php:220
msgid "Please fill in your email and password!"
msgstr "Per favore inserisci la tua email e password!"
#: classes/user.php:336
msgid "Change name"
msgstr "Cambia nome"
#: classes/user.php:356
msgid "Change username"
msgstr "Cambia nome utente"
#: classes/user.php:463
msgid "This username is already taken."
msgstr "Questo nome utente è già in uso."
#: classes/user.php:470
msgid "Cannot change username of other users!"
msgstr "Impossibile cambiare il nome utente di altri utenti!"
#: classes/user.php:504
msgid "Cannot change names of other users!"
msgstr "Non è possibile modificare i nomi degli altri utenti!"
#: classes/user.php:667
msgid "Confirmation email sent!"
msgstr "Email di conferma inviata!"
#: install.php:186 policy.php:6
msgid "Privacy Policy"
msgstr "Politica Sulla Riservatezza"
#: install.php:190
msgid "Company name"
msgstr "Nome della ditta"
#: install.php:191
msgid "Address"
msgstr "Indirizzo"
#: install.php:191
msgid "Full address"
msgstr "Indirizzo completo"
#: install.php:194
msgid "E-Mail"
msgstr "E-Mail"
#: install.php:195
msgid "Phone"
msgstr "Telefono"
#: install.php:195
msgid "Phone number"
msgstr "Numero di telefono"
#: install.php:198 policy.php:7
msgid "Who we are"
msgstr "Chi siamo"
#: policy.php:9
msgid "Contact"
msgstr "Contatto"
#: policy.php:17
msgid "What personal data we collect and why"
msgstr "Quali dati personali raccogliamo e perché"
#: policy.php:19
msgid "If you access our websites, the following information will be saved: IP-address, Date, Time, Browser queries, \n"
"\tGeneral information about your browser, operating system and all search queries on the sites. \n"
"\tThis user data will be used for anonym user statistics to recognize trends and improve our content.\n"
"\t"
msgstr "Se accedi ai nostri siti Web, verranno salvate le seguenti informazioni: indirizzo IP, data, ora, query browser,\n"
"Informazioni generali sul tuo browser, sistema operativo e tutte le query di ricerca sui siti.\n"
"Questi dati utente verranno utilizzati per le statistiche anonime degli utenti per riconoscere le tendenze e migliorare i nostri contenuti."
#: policy.php:23
msgid "How we protect your data"
msgstr "Come proteggiamo i tuoi dati"
#: policy.php:24
msgid "In collaboration with our hosting provider we try our best to protect our \n"
"\tdatabases against access from third parties, losses, misuse or forgery.\n"
"\t"
msgstr "In collaborazione con il nostro provider di hosting facciamo del nostro meglio per proteggere i nostri\n"
"database contro l'accesso da parte di terzi, perdite, uso improprio o contraffazione."
#: policy.php:27
msgid "Third party that receive your personal data"
msgstr "Terza parte che riceve i tuoi dati personali"
#: policy.php:29
msgid "Cookies"
msgstr "Biscotti"
#: policy.php:30
msgid "This site uses cookies small text files that are placed on your machine to help the site provide a better user experience. \n"
"\tIn general, cookies are used to retain user preferences, store information for things like shopping carts, \n"
"\tand provide anonymised tracking data to third party applications like Google Analytics. \n"
"\tAs a rule, cookies will make your browsing experience better. However, you may prefer to disable cookies on this site and on others. \n"
"\tThe most effective way to do this is to disable cookies in your browser. We suggest consulting the Help section of your browser \n"
"\tor taking a look at the About Cookies website which offers guidance for all modern browsers"
msgstr "Questo sito utilizza i cookie: piccoli file di testo posizionati sulla macchina per aiutare il sito a fornire un'esperienza utente migliore.\n"
"In generale, i cookie vengono utilizzati per conservare le preferenze dell'utente, memorizzare informazioni per cose come carrelli della spesa,\n"
"e fornire dati di tracciamento resi anonimi a applicazioni di terze parti come Google Analytics.\n"
"Di regola, i cookie renderanno la tua esperienza di navigazione migliore. Tuttavia, potresti preferire disabilitare i cookie su questo sito e su altri.\n"
"Il modo più efficace per farlo è disabilitare i cookie nel tuo browser. Ti suggeriamo di consultare la sezione Aiuto del tuo browser\n"
"o dare un'occhiata al sito Web About Cookies che offre una guida per tutti i browser moderni"
#: install.php:187
msgid "Since you are collecting personal information, the GDPR needs you to have a privacy policy. Enter the details below."
msgstr "Poiché stai raccogliendo informazioni personali, il GDPR ha bisogno che tu abbia una politica sulla privacy. Inserisci i dettagli di seguito."
#: install.php:198
msgid "Some info about yourself"
msgstr "Alcune informazioni su di te"
#: policy.php:18
msgid "General"
msgstr "Generale"

BIN
locale/it_IT/flag.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 557 B

View File

@ -0,0 +1,26 @@
(function (factory) {
if (typeof define === 'function' && define.amd) {
define(['jquery'], factory);
} else if (typeof module === 'object' && typeof module.exports === 'object') {
factory(require('jquery'));
} else {
factory(jQuery);
}
}(function (jQuery) {
// Italian
jQuery.timeago.settings.strings = {
suffixAgo: "fa",
suffixFromNow: "da ora",
seconds: "meno di un minuto",
minute: "circa un minuto",
minutes: "%d minuti",
hour: "circa un'ora",
hours: "circa %d ore",
day: "un giorno",
days: "%d giorni",
month: "circa un mese",
months: "%d mesi",
year: "circa un anno",
years: "%d anni"
};
}));

Binary file not shown.

View File

@ -0,0 +1,661 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: POEditor.com\n"
"Project-Id-Version: Server status\n"
"Language: lt\n"
#: 404.php:12
msgid "Page Not Found"
msgstr "Puslapis nerastas "
#: 404.php:13
msgid "Sorry, but the page you were trying to view does not exist."
msgstr "Atleiskit, bet puslapis neegzistuoja "
#: admin/dashboard.php:22 admin/dashboard.php:26 template.php:115
msgid "Dashboard"
msgstr "Prietaisų skydelis "
#: admin/dashboard.php:27
msgid "Welcome"
msgstr "Sveiki"
#: admin/dashboard.php:39
msgid "New incident"
msgstr "Naujas įvykis "
#: admin/dashboard.php:72 install.php:48 install.php:163
msgid "Title"
msgstr "Pavadinimas"
#: admin/dashboard.php:72
msgid "Time"
msgstr "Laikas"
#: admin/dashboard.php:77
msgid "Here goes your text..."
msgstr "Čia gali rašyti "
#: admin/dashboard.php:80 classes/incident.php:183
msgid "Posted by"
msgstr "Paskelbtas "
#: admin/dashboard.php:80 classes/incident.php:185
msgid "Ending"
msgstr "Pabaiga"
#: admin/dashboard.php:80
msgid "End time"
msgstr "Baigias laikas"
#: admin/dashboard.php:99 admin/new-user.php:53
msgid "Submit"
msgstr "Nusiųsti "
#: admin/login-form.php:2 admin/login-form.php:5 admin/login-form.php:27
msgid "Login"
msgstr "Prisijungti "
#: admin/login-form.php:11
msgid "Please login to continue."
msgstr "Prašome prisijungti ir tęsti "
#: admin/login-form.php:15 admin/login-form.php:16 admin/lost-password.php:46
#: admin/lost-password.php:48 admin/new-user.php:24 admin/settings.php:72
#: classes/user.php:120 classes/user.php:404 install.php:169 install.php:210
msgid "Email"
msgstr "Elektroninis paštas "
#: admin/login-form.php:19 admin/login-form.php:20 admin/new-user.php:27
#: classes/user.php:123 classes/user.php:417 install.php:182 install.php:213
msgid "Password"
msgstr "Slaptažodis "
#: admin/login-form.php:22
msgid "Forgotten password?"
msgstr "Pamiršote slaptažodį? "
#: admin/login-form.php:23
msgid "Remember me"
msgstr "Prisiminti mane "
#: admin/lost-password.php:2 admin/lost-password.php:5
msgid "Lost password"
msgstr "Pamečiau slaptažodį "
#: admin/lost-password.php:16
msgid "Go back"
msgstr "Eiti atgal "
#: admin/lost-password.php:20
msgid "Password changed successfully!"
msgstr "Slaptažodis pakeistas sėkmingai "
#: admin/lost-password.php:21 admin/lost-password.php:35
msgid "Go back to login page"
msgstr "Eiti atgal prisijungti į puslapį "
#: admin/lost-password.php:30
msgid "Go back to start"
msgstr "Eik atgal, kad pradėtum "
#: admin/lost-password.php:34
msgid "Email with password reset link has been sent!"
msgstr "Į elektroninį paštą buvo nusiųstas slaptažodžio atkūrimas "
#: admin/lost-password.php:50
msgid "Submit request"
msgstr "Nusiųsti paraišką "
#: admin/lost-password.php:57
msgid "Reset password for %s (%s)"
msgstr "Atkurti slaptažodį, kad"
#: admin/lost-password.php:60 admin/lost-password.php:61 classes/user.php:421
#: classes/user.php:422
msgid "New password"
msgstr "Naujas slaptažodis "
#: admin/lost-password.php:62 admin/lost-password.php:63 classes/user.php:423
#: classes/user.php:424
msgid "Repeat password"
msgstr "Pakartokite slaptažodį "
#: admin/lost-password.php:64 classes/user.php:425
msgid "Change password"
msgstr "Pakeisti slaptažodį "
#: admin/new-user.php:7
msgid "New user"
msgstr "Naujas vartotojas "
#: admin/new-user.php:19 admin/settings.php:39 admin/settings.php:72
#: classes/user.php:114 classes/user.php:322 classes/user.php:326
#: classes/user.php:327 classes/user.php:488 install.php:158 install.php:168
#: install.php:190 install.php:205
msgid "Name"
msgstr "Vardas"
#: admin/new-user.php:20 admin/settings.php:72 classes/user.php:117
#: classes/user.php:323 classes/user.php:329 classes/user.php:330
#: classes/user.php:491 install.php:206
msgid "Surname"
msgstr "Pavardė "
#: admin/new-user.php:23 admin/settings.php:72 classes/user.php:349
#: install.php:209
msgid "Username"
msgstr "Vartotojo vardas "
#: admin/new-user.php:29
msgid "Permission"
msgstr "Leidimas"
#: admin/settings.php:12 template.php:117
msgid "Settings"
msgstr "Nustatymai "
#: admin/settings.php:23
msgid "Services"
msgstr "Paslaugos "
#: admin/settings.php:29
msgid "Add service"
msgstr "Pridėti paslauga "
#: admin/settings.php:38 admin/settings.php:72
msgid "ID"
msgstr "Vartotojo ID"
#: admin/settings.php:42
msgid "Delete"
msgstr "Ištrinti "
#: admin/settings.php:67
msgid "Users"
msgstr "Vartotojai "
#: admin/settings.php:68
msgid "Add new user"
msgstr "Pridėti naują vartotoją "
#: admin/settings.php:72 classes/user.php:372
msgid "Role"
msgstr "Rolė"
#: admin/user.php:45 admin/user.php:54 install.php:181 install.php:202
msgid "User"
msgstr "Vartotojas "
#: admin/user.php:52
msgid "User settings"
msgstr "Vartotojo nustatymai "
#: classes/constellation.php:36 template.php:4
msgid "Planned maintenance"
msgstr "Planuojama priežiūra"
#: classes/constellation.php:42
msgid "Back"
msgstr "Atgal"
#: classes/constellation.php:44
msgid "Past incidents"
msgstr "Paskutiniai įvykiai"
#: classes/constellation.php:48
msgid "No incidents"
msgstr "Nėra įvykių "
#: classes/constellation.php:61
msgid "Load more"
msgstr "Užkrauti daugiau "
#: classes/constellation.php:101
msgid "No services"
msgstr "Nėra paslaugų "
#: classes/incident.php:87
msgid "Please enter title"
msgstr "Prašau parašyti pavadinimą "
#: classes/incident.php:90
msgid "Title too long! Character limit is 50"
msgstr "Pavadinimas per ilgas, limitas 50"
#: classes/incident.php:96
msgid "Please enter text"
msgstr "Prašau parašyti tekstą "
#: classes/incident.php:102
msgid "Please set start and end time! Use ISO 8601 format."
msgstr "Prašau pradėti ir baigti laiką! Naudok ISO 8601 Formatą "
#: classes/incident.php:107
msgid "Please select at least one service"
msgstr "Prašau pasirink vieną paslaugą "
#: classes/incident.php:127
msgid "Start date format is not recognized. Please use ISO 8601 format."
msgstr ""
#: classes/incident.php:133
msgid "End date format is not recognized. Please use ISO 8601 format."
msgstr ""
#: classes/incident.php:185
msgid "Ended"
msgstr "Pabaiga "
#: classes/service.php:63
msgid "Service name is too long! Character limit is 50"
msgstr "Paslaugos pavadinimas per ilgas! Limitas 50"
#: classes/service.php:66
msgid "Please enter name!"
msgstr "Prašau parašyti vardą! "
#: classes/service.php:81 classes/service.php:123 classes/user.php:97
#: classes/user.php:199
msgid "You don't have the permission to do that!"
msgstr "Tu neturi teisių daryti tai! "
#: classes/user.php:164
msgid "Please mind the following character limits: "
msgstr "Risiminkite šiuos apribojimus "
#: classes/user.php:185
msgid "User account created"
msgstr "Vartotojas sukurtas "
#: classes/user.php:186
msgid "Hi %s!<br>Your account has been created. You can login with your email address at <a href=\"%s\">%s</a> with password %s - please change it as soon as possible."
msgstr "Sveikas, tavo vartotojas sukurtas. Tu gali prisijungti su savo elektroniniu paštu\n"
"Prašau pasikeisk kuo greičiau "
#: classes/user.php:180
msgid "Username or email already used"
msgstr "Vardas ar elektroninis paštas jau naudojamas "
#: classes/user.php:244
msgid "Your account has been disabled. Please contact administrator."
msgstr "Tavo vartotojas atjungtas. Prašau susisiek su administracija "
#: classes/user.php:233 classes/user.php:256
msgid "Wrong email or password"
msgstr "Klaidingas elektroninis paštas arba slaptažodis "
#: classes/user.php:299
msgid "Invalid token detected, please login again!"
msgstr ""
#: classes/user.php:314
msgid "Profile picture"
msgstr "Profilio nuotrauka "
#: classes/user.php:379
msgid "Change role"
msgstr "Keisti rolę"
#: classes/user.php:394
msgid "Change email"
msgstr "Keisti elektroninį paštą "
#: classes/user.php:419 classes/user.php:420
msgid "Old password"
msgstr "Senas slaptažodis "
#: classes/user.php:526
msgid "Passwords do not match!"
msgstr "Slaptažodžiai nesutampa"
#: classes/user.php:534
msgid "Cannot change password of other users!"
msgstr ""
#: classes/user.php:567
msgid "Wrong password!"
msgstr "Neteisingas slaptažodis "
#: classes/user.php:595 classes/user.php:695
msgid "Invalid token detected, please retry your request from start!"
msgstr ""
#: classes/user.php:623
msgid "Reset password"
msgstr "Atkurti slaptažodį "
#: classes/user.php:659
msgid "Email change"
msgstr "Pakeisti elektroninį paštą "
#: classes/incident.php:54 classes/user.php:736
msgid "You don't have permission to do that!"
msgstr "Tu neturi leidimo daryti tai! "
#: template.php:4
msgid "Major outage"
msgstr ""
#: template.php:4
msgid "Minor outage"
msgstr ""
#: template.php:4
msgid "Operational"
msgstr "Veikla "
#: template.php:7
msgid "Some systems are experiencing major outages"
msgstr ""
#: template.php:7
msgid "Some systems are experiencing minor outages"
msgstr ""
#: template.php:7
msgid "Some systems are under maintenance"
msgstr ""
#: template.php:8
msgid "Our systems are experiencing major outages."
msgstr ""
#: template.php:8
msgid "Our systems are experiencing minor outages"
msgstr ""
#: template.php:8
msgid "Our systems are under maintenance"
msgstr ""
#: template.php:8
msgid "All systems operational"
msgstr "Visa sistemos veikla "
#: template.php:9
msgid "Super admin"
msgstr "Super adminas"
#: template.php:9
msgid "Admin"
msgstr "Adminas "
#: template.php:53
msgid "Service Status"
msgstr "Paslaugų statusas "
#: template.php:106
msgid "Toggle navigation"
msgstr ""
#: template.php:116
msgid "User (%s)"
msgstr "Vartotojas"
#: template.php:118
msgid "Logout"
msgstr "Atsijungti "
#: index.php:27
msgid "Current status"
msgstr "Dabartinis statusas "
#: install.php:4
msgid "Status page"
msgstr "Pradinis puslapis "
#: install.php:139
msgid "Install"
msgstr "Instaliuoti "
#: install.php:141
msgid "Installation"
msgstr "Instaliacija "
#: install.php:26
msgid "Connection failed: %s\n"
""
msgstr "Prisijungimo klaida "
#: install.php:31
msgid "Please set valid url!"
msgstr "Prašau nu statyk galiojantį url"
#: install.php:98
msgid "Error while creating database. Please check permission for your account or MYSQL version.<br>Error: %s"
msgstr "Klaida kuriant database. Patikrink savo vartotojo leidimus arba MYSQL versija"
#: install.php:154
msgid "Website details"
msgstr "Puslapio detales"
#: install.php:40 install.php:159
msgid "Url"
msgstr "Url"
#: install.php:166
msgid "Also an email address for mailer would be nice :)"
msgstr ""
#: install.php:173
msgid "Database connection"
msgstr "Database prisijungimas "
#: install.php:174
msgid "We need database connection to be able to create tables. Please check that your account has the permission needed to do that."
msgstr ""
#: install.php:177
msgid "Server"
msgstr "Serveris "
#: install.php:178
msgid "Database"
msgstr "Database "
#: install.php:203
msgid "And finally, we need info to create a new user. You don't have to provide it, but then... No status page admin..."
msgstr ""
#: install.php:216
msgid "Run install!"
msgstr "Vykdyti instaliacija "
#: classes/user.php:127
msgid "Rank"
msgstr "Rankas "
#: classes/user.php:624
msgid "Hi %s!<br>Below you will find link to change your password. The link is valid for 24hrs. If you didn't request this, feel free to ignore it. <br><br><a href=\"%s\">RESET PASSWORD</a><br><br>If the link doesn't work, copy &amp; paste it into your browser: <br>%s"
msgstr "Sveiki. Apačioje rasi linka kuriame galėsi pasikeisti slaptažodį, jei to nedarei ignoruok. "
#: classes/user.php:660
msgid "Hi %s!<br>Below you will find link to change your email. The link is valid for 24hrs. If you didn't request this, feel free to ignore it. <br><br><a href=\"%s\">CHANGE EMAIL</a><br><br>If the link doesn't work, copy &amp; paste it into your browser: <br>%s"
msgstr ""
#: template.php:9
msgid "Editor"
msgstr "Editorius"
#: install.php:36
msgid "Server name"
msgstr "Serverio vardas"
#: install.php:44
msgid "Mailer name"
msgstr ""
#: install.php:52
msgid "Mailer email"
msgstr ""
#: install.php:56
msgid "Database server"
msgstr ""
#: install.php:60
msgid "Database name"
msgstr "Database vardas"
#: install.php:64
msgid "Database user"
msgstr "Database vartotojas "
#: install.php:69
msgid "Database password"
msgstr "Database slaptažodis "
#: template.php:147
msgid "Toggle Dropdown"
msgstr ""
#: template.php:156
msgid "Help with translation!"
msgstr "Padėk su vertimu "
#: classes/user.php:439
msgid "Deactivate user"
msgstr "Neaktyvus vartotojas "
#: classes/user.php:441
msgid "Activate user"
msgstr "Prisijungęs vartotojas "
#: install.php:73
msgid "Please enter"
msgstr "Prašau užeik "
#: install.php:150
msgid "We will ask you some basic questions about your website. Most of the settings can be later edited in the config.php file."
msgstr ""
#: install.php:155
msgid "We need a name for your status page (shown behind page title after the dash) and a url of your server status installation (i.e. <a href='#'>https://example.com/status</a> - without the trailing slash), so we can mail users link for forgotten password etc..."
msgstr ""
#: install.php:161
msgid "A title that you want to be shown on the top of the page."
msgstr ""
#: api/status.php:24
msgid "Service does not exist!"
msgstr "Paslauga neegzistuoja "
#: classes/user.php:220
msgid "Please fill in your email and password!"
msgstr "Prašau užpildyti savo elektroninį paštą ir slaptažodį! "
#: classes/user.php:336
msgid "Change name"
msgstr "Pakeisti vardą "
#: classes/user.php:356
msgid "Change username"
msgstr "Pakeisti vartotojo vardą "
#: classes/user.php:463
msgid "This username is already taken."
msgstr "Šitas vartotojo vardas jau yra sukurtas. "
#: classes/user.php:470
msgid "Cannot change username of other users!"
msgstr ""
#: classes/user.php:504
msgid "Cannot change names of other users!"
msgstr ""
#: classes/user.php:667
msgid "Confirmation email sent!"
msgstr "Patvirtinimas nusiųstas į elektroninį paštą! "
#: install.php:186 policy.php:6
msgid "Privacy Policy"
msgstr ""
#: install.php:190
msgid "Company name"
msgstr "Kompanijos pavadinimas "
#: install.php:191
msgid "Address"
msgstr "Adresas "
#: install.php:191
msgid "Full address"
msgstr "Pilnas adresas"
#: install.php:194
msgid "E-Mail"
msgstr "Elektroninis paštas "
#: install.php:195
msgid "Phone"
msgstr "Telefonas "
#: install.php:195
msgid "Phone number"
msgstr "Telefono numeris "
#: install.php:198 policy.php:7
msgid "Who we are"
msgstr "Kas mes esam "
#: policy.php:9
msgid "Contact"
msgstr "Kontaktai "
#: policy.php:17
msgid "What personal data we collect and why"
msgstr ""
#: policy.php:19
msgid "If you access our websites, the following information will be saved: IP-address, Date, Time, Browser queries, \n"
"\tGeneral information about your browser, operating system and all search queries on the sites. \n"
"\tThis user data will be used for anonym user statistics to recognize trends and improve our content.\n"
"\t"
msgstr ""
#: policy.php:23
msgid "How we protect your data"
msgstr "Kaip mes apsaugoskim tavo duomenis "
#: policy.php:24
msgid "In collaboration with our hosting provider we try our best to protect our \n"
"\tdatabases against access from third parties, losses, misuse or forgery.\n"
"\t"
msgstr ""
#: policy.php:27
msgid "Third party that receive your personal data"
msgstr ""
#: policy.php:29
msgid "Cookies"
msgstr ""
#: policy.php:30
msgid "This site uses cookies small text files that are placed on your machine to help the site provide a better user experience. \n"
"\tIn general, cookies are used to retain user preferences, store information for things like shopping carts, \n"
"\tand provide anonymised tracking data to third party applications like Google Analytics. \n"
"\tAs a rule, cookies will make your browsing experience better. However, you may prefer to disable cookies on this site and on others. \n"
"\tThe most effective way to do this is to disable cookies in your browser. We suggest consulting the Help section of your browser \n"
"\tor taking a look at the About Cookies website which offers guidance for all modern browsers"
msgstr ""
#: install.php:187
msgid "Since you are collecting personal information, the GDPR needs you to have a privacy policy. Enter the details below."
msgstr ""
#: install.php:198
msgid "Some info about yourself"
msgstr ""
#: policy.php:18
msgid "General"
msgstr ""

BIN
locale/lt_LT/flag.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 B

View File

@ -0,0 +1,30 @@
(function (factory) {
if (typeof define === 'function' && define.amd) {
define(['jquery'], factory);
} else if (typeof module === 'object' && typeof module.exports === 'object') {
factory(require('jquery'));
} else {
factory(jQuery);
}
}(function (jQuery) {
//Lithuanian
jQuery.timeago.settings.strings = {
prefixAgo: "prieš",
prefixFromNow: null,
suffixAgo: null,
suffixFromNow: "nuo dabar",
seconds: "%d sek.",
minute: "min.",
minutes: "%d min.",
hour: "val.",
hours: "%d val.",
day: "1 d.",
days: "%d d.",
month: "mėn.",
months: "%d mėn.",
year: "metus",
years: "%d metus",
wordSeparator: " ",
numbers: []
};
}));

Binary file not shown.

View File

@ -0,0 +1,667 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: POEditor.com\n"
"Project-Id-Version: Server status\n"
"Language: nb\n"
#: 404.php:12
msgid "Page Not Found"
msgstr "Siden eksisterer ikke"
#: 404.php:13
msgid "Sorry, but the page you were trying to view does not exist."
msgstr "Beklager, men siden du prøver å aksessere eksisterer ikke"
#: admin/dashboard.php:22 admin/dashboard.php:26 template.php:115
msgid "Dashboard"
msgstr "Dashbord"
#: admin/dashboard.php:27
msgid "Welcome"
msgstr "Velkommen"
#: admin/dashboard.php:39
msgid "New incident"
msgstr "Ny hendelse"
#: admin/dashboard.php:72 install.php:48 install.php:163
msgid "Title"
msgstr "Tittel"
#: admin/dashboard.php:72
msgid "Time"
msgstr "Tid"
#: admin/dashboard.php:77
msgid "Here goes your text..."
msgstr "Her går teksten din"
#: admin/dashboard.php:80 classes/incident.php:183
msgid "Posted by"
msgstr "Postet av"
#: admin/dashboard.php:80 classes/incident.php:185
msgid "Ending"
msgstr "Slutt"
#: admin/dashboard.php:80
msgid "End time"
msgstr "Slutt tid"
#: admin/dashboard.php:99 admin/new-user.php:53
msgid "Submit"
msgstr "Send"
#: admin/login-form.php:2 admin/login-form.php:5 admin/login-form.php:27
msgid "Login"
msgstr "Brukernavn"
#: admin/login-form.php:11
msgid "Please login to continue."
msgstr "Vennligst logg inn for å fortsette"
#: admin/login-form.php:15 admin/login-form.php:16 admin/lost-password.php:46
#: admin/lost-password.php:48 admin/new-user.php:24 admin/settings.php:72
#: classes/user.php:120 classes/user.php:404 install.php:169 install.php:210
msgid "Email"
msgstr "E-post"
#: admin/login-form.php:19 admin/login-form.php:20 admin/new-user.php:27
#: classes/user.php:123 classes/user.php:417 install.php:182 install.php:213
msgid "Password"
msgstr "Passord"
#: admin/login-form.php:22
msgid "Forgotten password?"
msgstr "Glemt passord"
#: admin/login-form.php:23
msgid "Remember me"
msgstr "Husk meg"
#: admin/lost-password.php:2 admin/lost-password.php:5
msgid "Lost password"
msgstr "Mistet passord"
#: admin/lost-password.php:16
msgid "Go back"
msgstr "Gå tilbake"
#: admin/lost-password.php:20
msgid "Password changed successfully!"
msgstr "Passord endret"
#: admin/lost-password.php:21 admin/lost-password.php:35
msgid "Go back to login page"
msgstr "Gå tilbake til påloggingssiden"
#: admin/lost-password.php:30
msgid "Go back to start"
msgstr "Gå tilbake til start"
#: admin/lost-password.php:34
msgid "Email with password reset link has been sent!"
msgstr "E-post med passord reset lenke er blitt sendt!"
#: admin/lost-password.php:50
msgid "Submit request"
msgstr "Send forespørsel"
#: admin/lost-password.php:57
msgid "Reset password for %s (%s)"
msgstr "Reset passord for %s (%s)"
#: admin/lost-password.php:60 admin/lost-password.php:61 classes/user.php:421
#: classes/user.php:422
msgid "New password"
msgstr "Nytt pasord"
#: admin/lost-password.php:62 admin/lost-password.php:63 classes/user.php:423
#: classes/user.php:424
msgid "Repeat password"
msgstr "Gjennta passord"
#: admin/lost-password.php:64 classes/user.php:425
msgid "Change password"
msgstr "Endre passord"
#: admin/new-user.php:7
msgid "New user"
msgstr "Ny bruker"
#: admin/new-user.php:19 admin/settings.php:39 admin/settings.php:72
#: classes/user.php:114 classes/user.php:322 classes/user.php:326
#: classes/user.php:327 classes/user.php:488 install.php:158 install.php:168
#: install.php:190 install.php:205
msgid "Name"
msgstr "Navn"
#: admin/new-user.php:20 admin/settings.php:72 classes/user.php:117
#: classes/user.php:323 classes/user.php:329 classes/user.php:330
#: classes/user.php:491 install.php:206
msgid "Surname"
msgstr "Fornavn"
#: admin/new-user.php:23 admin/settings.php:72 classes/user.php:349
#: install.php:209
msgid "Username"
msgstr "Brukernavn"
#: admin/new-user.php:29
msgid "Permission"
msgstr "Rettigheter"
#: admin/settings.php:12 template.php:117
msgid "Settings"
msgstr "Innstillinger"
#: admin/settings.php:23
msgid "Services"
msgstr "Tjenester"
#: admin/settings.php:29
msgid "Add service"
msgstr "Lett til tjenester"
#: admin/settings.php:38 admin/settings.php:72
msgid "ID"
msgstr "ID"
#: admin/settings.php:42
msgid "Delete"
msgstr "Slett"
#: admin/settings.php:67
msgid "Users"
msgstr "Bruker"
#: admin/settings.php:68
msgid "Add new user"
msgstr "Legg til ny bruker"
#: admin/settings.php:72 classes/user.php:372
msgid "Role"
msgstr "Rolle"
#: admin/user.php:45 admin/user.php:54 install.php:181 install.php:202
msgid "User"
msgstr "Bruker"
#: admin/user.php:52
msgid "User settings"
msgstr "Bruker instillinger"
#: classes/constellation.php:36 template.php:4
msgid "Planned maintenance"
msgstr "Planlagt vedlikehold"
#: classes/constellation.php:42
msgid "Back"
msgstr "Tilbake"
#: classes/constellation.php:44
msgid "Past incidents"
msgstr "Tidligere hendelser"
#: classes/constellation.php:48
msgid "No incidents"
msgstr "Ingen hendelser"
#: classes/constellation.php:61
msgid "Load more"
msgstr "Vis flere"
#: classes/constellation.php:101
msgid "No services"
msgstr "Ingen tjenester"
#: classes/incident.php:87
msgid "Please enter title"
msgstr "Vennligst oppgi tittel"
#: classes/incident.php:90
msgid "Title too long! Character limit is 50"
msgstr "Tittel er for lang. Maks 50 tegn"
#: classes/incident.php:96
msgid "Please enter text"
msgstr "Vennligst skriv tekst"
#: classes/incident.php:102
msgid "Please set start and end time! Use ISO 8601 format."
msgstr "Vennligst sett start og slutt tid! Benytt ISO 8601 formatet."
#: classes/incident.php:107
msgid "Please select at least one service"
msgstr "Vennligst velg mist en tjeneste"
#: classes/incident.php:127
msgid "Start date format is not recognized. Please use ISO 8601 format."
msgstr "Start dato format er ikke gyldig. Vennligst benytt ISO 8601 formatet."
#: classes/incident.php:133
msgid "End date format is not recognized. Please use ISO 8601 format."
msgstr "Slutt dato format er ikke gyldig. Vennligst benytt ISO 8601 formatet."
#: classes/incident.php:185
msgid "Ended"
msgstr "Sluttet"
#: classes/service.php:63
msgid "Service name is too long! Character limit is 50"
msgstr "Tjeneste navn er for langt. Maks 50 tegn"
#: classes/service.php:66
msgid "Please enter name!"
msgstr "Vennligst oppgi navn!"
#: classes/service.php:81 classes/service.php:123 classes/user.php:97
#: classes/user.php:199
msgid "You don't have the permission to do that!"
msgstr "Du har ikke rettighter til å gjøre det!"
#: classes/user.php:164
msgid "Please mind the following character limits: "
msgstr "Vennligst oppretthold følgende tegn begrensning:"
#: classes/user.php:185
msgid "User account created"
msgstr "Bruker konto opprettet"
#: classes/user.php:186
msgid "Hi %s!<br>Your account has been created. You can login with your email address at <a href=\"%s\">%s</a> with password %s - please change it as soon as possible."
msgstr "Hei %s!<br> Din konto er opprettet. Du kan logge inn med e-postadressen din på <a href=\"%s\">%s</a> med passord %s - vennligst endre det så snart som mulig."
#: classes/user.php:180
msgid "Username or email already used"
msgstr "Brukernavn eller e-post er allerede brukt"
#: classes/user.php:244
msgid "Your account has been disabled. Please contact administrator."
msgstr "Din konto er blitt deaktivert. Vennligst kontkat administrator."
#: classes/user.php:233 classes/user.php:256
msgid "Wrong email or password"
msgstr "Feil e-post eller passord"
#: classes/user.php:299
msgid "Invalid token detected, please login again!"
msgstr "Ugyldig token oppdaget, prøv igjen."
#: classes/user.php:314
msgid "Profile picture"
msgstr "Profil bilde"
#: classes/user.php:379
msgid "Change role"
msgstr "Endre rolle"
#: classes/user.php:394
msgid "Change email"
msgstr "Endre e-post"
#: classes/user.php:419 classes/user.php:420
msgid "Old password"
msgstr "Gammelt passord"
#: classes/user.php:526
msgid "Passwords do not match!"
msgstr "Passord stemmer ikke!"
#: classes/user.php:534
msgid "Cannot change password of other users!"
msgstr "Kan ikke endre passord for andre brukere!"
#: classes/user.php:567
msgid "Wrong password!"
msgstr "Feilt passord!"
#: classes/user.php:595 classes/user.php:695
msgid "Invalid token detected, please retry your request from start!"
msgstr "Ugyldig token oppdaget, vennligst prøv igjen fra start!"
#: classes/user.php:623
msgid "Reset password"
msgstr "Reset passord"
#: classes/user.php:659
msgid "Email change"
msgstr "E-post endre"
#: classes/incident.php:54 classes/user.php:736
msgid "You don't have permission to do that!"
msgstr "Du har ikke rettigheter til å gjøre det"
#: template.php:4
msgid "Major outage"
msgstr "Større brudd"
#: template.php:4
msgid "Minor outage"
msgstr "Mindre brudd"
#: template.php:4
msgid "Operational"
msgstr "Operative"
#: template.php:7
msgid "Some systems are experiencing major outages"
msgstr "Noen systemer opplever støtte brudd"
#: template.php:7
msgid "Some systems are experiencing minor outages"
msgstr "Noen systemer opplever mindre brudd"
#: template.php:7
msgid "Some systems are under maintenance"
msgstr "Noen systemer er under vedlikehold"
#: template.php:8
msgid "Our systems are experiencing major outages."
msgstr "Våre systemer opplever større brudd"
#: template.php:8
msgid "Our systems are experiencing minor outages"
msgstr "Våre systemer opplever mindre brudd"
#: template.php:8
msgid "Our systems are under maintenance"
msgstr "Våre systemer er under veldikehold"
#: template.php:8
msgid "All systems operational"
msgstr "Alle systemer operative"
#: template.php:9
msgid "Super admin"
msgstr "Super admin"
#: template.php:9
msgid "Admin"
msgstr "Admin"
#: template.php:53
msgid "Service Status"
msgstr "Tjeneste Status"
#: template.php:106
msgid "Toggle navigation"
msgstr "Veksel navigering"
#: template.php:116
msgid "User (%s)"
msgstr "Bruker (%s)"
#: template.php:118
msgid "Logout"
msgstr "Logg av"
#: index.php:27
msgid "Current status"
msgstr "Nåværende status"
#: install.php:4
msgid "Status page"
msgstr "Status side"
#: install.php:139
msgid "Install"
msgstr "Installer"
#: install.php:141
msgid "Installation"
msgstr "Installasjon"
#: install.php:26
msgid "Connection failed: %s\n"
msgstr "Tilkobling feilet: %s\n"
#: install.php:31
msgid "Please set valid url!"
msgstr "Vennligst sett gyldig url!"
#: install.php:98
msgid "Error while creating database. Please check permission for your account or MYSQL version.<br>Error: %s"
msgstr "Feil ved oppretting av database. Sjekk rettigheter for din konto eller MYSQL versjon. <br>Error: %s"
#: install.php:154
msgid "Website details"
msgstr "Website detaljer"
#: install.php:40 install.php:159
msgid "Url"
msgstr "Url"
#: install.php:166
msgid "Also an email address for mailer would be nice :)"
msgstr "Også en e-postadresse for mailer ville være fint. :-)"
#: install.php:173
msgid "Database connection"
msgstr "Database tilkobling"
#: install.php:174
msgid "We need database connection to be able to create tables. Please check that your account has the permission needed to do that."
msgstr "Vi trenger databaseforbindelse for å kunne lage tabeller. Kontroller at kontoen din har tillatelse til å gjøre det."
#: install.php:177
msgid "Server"
msgstr "Server"
#: install.php:178
msgid "Database"
msgstr "Database"
#: install.php:203
msgid "And finally, we need info to create a new user. You don't have to provide it, but then... No status page admin..."
msgstr "Og til slutt trenger vi informasjon for å opprette en ny bruker. Du trenger ikke å gi det, men så ... Ingen status side admin ..."
#: install.php:216
msgid "Run install!"
msgstr "Kjør installering"
#: classes/user.php:127
msgid "Rank"
msgstr "Rang"
#: classes/user.php:624
msgid "Hi %s!<br>Below you will find link to change your password. The link is valid for 24hrs. If you didn't request this, feel free to ignore it. <br><br><a href=\"%s\">RESET PASSWORD</a><br><br>If the link doesn't work, copy &amp; paste it into your browser: <br>%s"
msgstr "Hei %s!<br>Nedenfor finner du lenke for å endre passordet ditt. Koblingen er gyldig i 24 timer. Hvis du ikke ba om dette, kan du overse den.<br><br><a href=\"%s\">RESET PASSORD</a><br><br>Hvis koblingen ikke virker, kopier & amp; lim den inn i nettleseren din: <br>%s"
#: classes/user.php:660
msgid "Hi %s!<br>Below you will find link to change your email. The link is valid for 24hrs. If you didn't request this, feel free to ignore it. <br><br><a href=\"%s\">CHANGE EMAIL</a><br><br>If the link doesn't work, copy &amp; paste it into your browser: <br>%s"
msgstr "Hei%s!<br>Nedenfor finner du lenke for å endre din e-post. Koblingen er gyldig i 24 timer. Hvis du ikke ba om dette, kan du overse den.<br><br><a href=\"%s\">ENDRE E-POST</a><br><br>Hvis koblingen ikke virker, kopier & amp; lim den inn i nettleseren din: <br>%s"
#: template.php:9
msgid "Editor"
msgstr "Editor"
#: install.php:36
msgid "Server name"
msgstr "Server navn"
#: install.php:44
msgid "Mailer name"
msgstr "Mailer navn"
#: install.php:52
msgid "Mailer email"
msgstr "Mailer e-post"
#: install.php:56
msgid "Database server"
msgstr "Database server"
#: install.php:60
msgid "Database name"
msgstr "Database navn"
#: install.php:64
msgid "Database user"
msgstr "Database bruker"
#: install.php:69
msgid "Database password"
msgstr "Database passord"
#: template.php:147
msgid "Toggle Dropdown"
msgstr "Veksle nedtrekksmeny"
#: template.php:156
msgid "Help with translation!"
msgstr "Hjelp med oversettelse!"
#: classes/user.php:439
msgid "Deactivate user"
msgstr "Deaktiver bruker"
#: classes/user.php:441
msgid "Activate user"
msgstr "Aktiver bruker"
#: install.php:73
msgid "Please enter"
msgstr "Vennligst skriv"
#: install.php:150
msgid "We will ask you some basic questions about your website. Most of the settings can be later edited in the config.php file."
msgstr "Vi vil stille deg noen grunnleggende spørsmål om nettstedet ditt. De fleste innstillingene kan senere redigeres i config.php-filen."
#: install.php:155
msgid "We need a name for your status page (shown behind page title after the dash) and a url of your server status installation (i.e. <a href='#'>https://example.com/status</a> - without the trailing slash), so we can mail users link for forgotten password etc..."
msgstr "Vi trenger et navn på statussiden din (vist bak sidetittel etter bindestrek) og en URL for serverstatusinstallasjonen din (dvs. <a href='#'> https://example.com/status </a> - uten den etterfølgende skråstrek), så vi kan sende brukere link for glemt passord osv..."
#: install.php:161
msgid "A title that you want to be shown on the top of the page."
msgstr "En tittel du ønsker skal vises øverst på siden."
#: api/status.php:24
msgid "Service does not exist!"
msgstr "Tjenesten eksisterer ikke"
#: classes/user.php:220
msgid "Please fill in your email and password!"
msgstr "Vennligst fyll ut e-post og passord!"
#: classes/user.php:336
msgid "Change name"
msgstr "Endre navn"
#: classes/user.php:356
msgid "Change username"
msgstr "Endre brukernavn"
#: classes/user.php:463
msgid "This username is already taken."
msgstr "Ditt brukernavn er allerede brukt."
#: classes/user.php:470
msgid "Cannot change username of other users!"
msgstr "Kan ikke endre brukernavn for andre brukere!"
#: classes/user.php:504
msgid "Cannot change names of other users!"
msgstr "Kan ikke endre navnet for andre brukere!"
#: classes/user.php:667
msgid "Confirmation email sent!"
msgstr "Bekreftelses e-post er sent!"
#: install.php:186 policy.php:6
msgid "Privacy Policy"
msgstr "Personvernerklæring"
#: install.php:190
msgid "Company name"
msgstr "Firma navn"
#: install.php:191
msgid "Address"
msgstr "Adresse"
#: install.php:191
msgid "Full address"
msgstr "Full adresse"
#: install.php:194
msgid "E-Mail"
msgstr "E-post"
#: install.php:195
msgid "Phone"
msgstr "Telefon"
#: install.php:195
msgid "Phone number"
msgstr "Telefon nummer"
#: install.php:198 policy.php:7
msgid "Who we are"
msgstr "Hvem er vi"
#: policy.php:9
msgid "Contact"
msgstr "Kontakt"
#: policy.php:17
msgid "What personal data we collect and why"
msgstr "Hvilke personlige data vi innhenter og hvorfor"
#: policy.php:19
msgid "If you access our websites, the following information will be saved: IP-address, Date, Time, Browser queries, \n"
"\tGeneral information about your browser, operating system and all search queries on the sites. \n"
"\tThis user data will be used for anonym user statistics to recognize trends and improve our content.\n"
"\t"
msgstr "Hvis du får tilgang til våre nettsteder, blir følgende informasjon lagret: IP-adresse, dato, klokkeslett, nettleserforespørsler,\n"
"Generell informasjon om nettleseren, operativsystemet og alle søk på nettstedene.\n"
"Disse brukerdataene blir brukt til anonym brukerstatistikk for å gjenkjenne trender og forbedre innholdet."
#: policy.php:23
msgid "How we protect your data"
msgstr "Hvordan beskytter vi dine data"
#: policy.php:24
msgid "In collaboration with our hosting provider we try our best to protect our \n"
"\tdatabases against access from third parties, losses, misuse or forgery.\n"
"\t"
msgstr "I samarbeid med vår hosting leverandør prøver vi vårt beste for å beskytte vår\n"
"databaser mot tilgang fra tredjeparter, tap, misbruk eller forfalskning."
#: policy.php:27
msgid "Third party that receive your personal data"
msgstr "Tredjepart som vil motta dine personlige data"
#: policy.php:29
msgid "Cookies"
msgstr "Informasjonskapsler"
#: policy.php:30
msgid "This site uses cookies small text files that are placed on your machine to help the site provide a better user experience. \n"
"\tIn general, cookies are used to retain user preferences, store information for things like shopping carts, \n"
"\tand provide anonymised tracking data to third party applications like Google Analytics. \n"
"\tAs a rule, cookies will make your browsing experience better. However, you may prefer to disable cookies on this site and on others. \n"
"\tThe most effective way to do this is to disable cookies in your browser. We suggest consulting the Help section of your browser \n"
"\tor taking a look at the About Cookies website which offers guidance for all modern browsers"
msgstr "Dette nettstedet bruker informasjonskapsler - små tekstfiler som er plassert på maskinen din for å hjelpe nettstedet å gi en bedre brukeropplevelse.\n"
"Generelt brukes informasjonskapsler for å beholde brukerinnstillinger, lagre informasjon for ting som handlekurver,\n"
"og gi anonymisert sporingsdata til tredjepartsprogrammer som Google Analytics.\n"
"Informasjonskapslene vil som regel gjøre surfingopplevelsen din bedre. Du kan imidlertid foretrekke å deaktivere informasjonskapsler på dette nettstedet og andre.\n"
"Den mest effektive måten å gjøre dette på er å deaktivere informasjonskapsler i nettleseren din. Vi foreslår at du konsulterer Hjelp-delen av nettleseren din\n"
"eller ta en titt på Om Cookies nettsiden som gir veiledning for alle moderne nettlesere"
#: install.php:187
msgid "Since you are collecting personal information, the GDPR needs you to have a privacy policy. Enter the details below."
msgstr "Siden du samler inn personlig informasjon, må en i følge GDPR ha en personvernpolicy. Skriv inn detaljene nedenfor."
#: install.php:198
msgid "Some info about yourself"
msgstr "Litt info om deg selv"
#: policy.php:18
msgid "General"
msgstr "Generelt"

BIN
locale/nb_NO/flag.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 699 B

View File

@ -0,0 +1,30 @@
(function (factory) {
if (typeof define === 'function' && define.amd) {
define(['jquery'], factory);
} else if (typeof module === 'object' && typeof module.exports === 'object') {
factory(require('jquery'));
} else {
factory(jQuery);
}
}(function (jQuery) {
// Norsk
jQuery.timeago.settings.strings = {
prefixAgo: null,
prefixFromNow: null,
suffixAgo: "siden",
suffixFromNow: "fra nå",
seconds: "mindre en ett minutt",
minute: "ca ett minutt",
minutes: "%d minutter",
hour: "ca en time",
hours: "ca %d timer",
day: "en dag",
days: "%d dager",
month: "ca en måned",
months: "%d måneder",
year: "ca ett år",
years: "%d år",
wordSeparator: " ",
numbers: []
};
}));

View File

@ -7,15 +7,15 @@ msgstr ""
"Project-Id-Version: Server status\n"
"Language: nl\n"
#: 404.php:7
#: 404.php:12
msgid "Page Not Found"
msgstr "Pagina niet gevonden"
#: 404.php:8
#: 404.php:13
msgid "Sorry, but the page you were trying to view does not exist."
msgstr "Sorry, de pagina die je probeert te bekijken bestaat niet."
#: admin/dashboard.php:22 admin/dashboard.php:26 template.php:106
#: admin/dashboard.php:22 admin/dashboard.php:26 template.php:115
msgid "Dashboard"
msgstr "Dashboard"
@ -27,7 +27,7 @@ msgstr "Welkom"
msgid "New incident"
msgstr "Nieuw incident"
#: admin/dashboard.php:72
#: admin/dashboard.php:72 install.php:48 install.php:163
msgid "Title"
msgstr "Titel"
@ -35,23 +35,23 @@ msgstr "Titel"
msgid "Time"
msgstr "Tijd"
#: admin/dashboard.php:75
#: admin/dashboard.php:77
msgid "Here goes your text..."
msgstr "Plaats hier je tekst..."
#: admin/dashboard.php:78 classes/incident.php:177
#: admin/dashboard.php:80 classes/incident.php:183
msgid "Posted by"
msgstr "Gepost door"
#: admin/dashboard.php:78 classes/incident.php:179
#: admin/dashboard.php:80 classes/incident.php:185
msgid "Ending"
msgstr "Einde"
#: admin/dashboard.php:78
#: admin/dashboard.php:80
msgid "End time"
msgstr "Eindtijd"
#: admin/dashboard.php:96 admin/new-user.php:53
#: admin/dashboard.php:99 admin/new-user.php:53
msgid "Submit"
msgstr "Verzenden"
@ -64,13 +64,13 @@ msgid "Please login to continue."
msgstr "Meld u aan om verder te gaan."
#: admin/login-form.php:15 admin/login-form.php:16 admin/lost-password.php:46
#: admin/lost-password.php:48 admin/new-user.php:24 admin/settings.php:69
#: classes/user.php:125 classes/user.php:375 install.php:150 install.php:175
#: admin/lost-password.php:48 admin/new-user.php:24 admin/settings.php:72
#: classes/user.php:120 classes/user.php:404 install.php:169 install.php:210
msgid "Email"
msgstr "E-mail"
#: admin/login-form.php:19 admin/login-form.php:20 admin/new-user.php:27
#: classes/user.php:128 classes/user.php:357 install.php:163 install.php:178
#: classes/user.php:123 classes/user.php:417 install.php:182 install.php:213
msgid "Password"
msgstr "Wachtwoord"
@ -114,17 +114,17 @@ msgstr "Aanvraag verzenden"
msgid "Reset password for %s (%s)"
msgstr "Wachtwoord opnieuw instellen voor %s (%s)"
#: admin/lost-password.php:60 admin/lost-password.php:61 classes/user.php:361
#: classes/user.php:362
#: admin/lost-password.php:60 admin/lost-password.php:61 classes/user.php:421
#: classes/user.php:422
msgid "New password"
msgstr "Nieuw wachtwoord"
#: admin/lost-password.php:62 admin/lost-password.php:63 classes/user.php:363
#: classes/user.php:364
#: admin/lost-password.php:62 admin/lost-password.php:63 classes/user.php:423
#: classes/user.php:424
msgid "Repeat password"
msgstr "Herhaal wachtwoord"
#: admin/lost-password.php:64 classes/user.php:365
#: admin/lost-password.php:64 classes/user.php:425
msgid "Change password"
msgstr "Wachtwoord veranderen"
@ -132,18 +132,21 @@ msgstr "Wachtwoord veranderen"
msgid "New user"
msgstr "Nieuwe gebruiker"
#: admin/new-user.php:19 admin/settings.php:38 admin/settings.php:69
#: classes/user.php:119 install.php:144 install.php:149 install.php:170
#: admin/new-user.php:19 admin/settings.php:39 admin/settings.php:72
#: classes/user.php:114 classes/user.php:322 classes/user.php:326
#: classes/user.php:327 classes/user.php:488 install.php:158 install.php:168
#: install.php:190 install.php:205
msgid "Name"
msgstr "Naam"
#: admin/new-user.php:20 admin/settings.php:69 classes/user.php:122
#: install.php:171
#: admin/new-user.php:20 admin/settings.php:72 classes/user.php:117
#: classes/user.php:323 classes/user.php:329 classes/user.php:330
#: classes/user.php:491 install.php:206
msgid "Surname"
msgstr "Achternaam"
#: admin/new-user.php:23 admin/settings.php:69 classes/user.php:317
#: install.php:174
#: admin/new-user.php:23 admin/settings.php:72 classes/user.php:349
#: install.php:209
msgid "Username"
msgstr "Gebruikersnaam"
@ -151,7 +154,7 @@ msgstr "Gebruikersnaam"
msgid "Permission"
msgstr "Toestemming"
#: admin/settings.php:12 template.php:108
#: admin/settings.php:12 template.php:117
msgid "Settings"
msgstr "Instellingen"
@ -163,35 +166,35 @@ msgstr "Diensten"
msgid "Add service"
msgstr "Dienst toevoegen"
#: admin/settings.php:37 admin/settings.php:69 classes/user.php:313
#: admin/settings.php:38 admin/settings.php:72
msgid "ID"
msgstr "ID"
#: admin/settings.php:41
#: admin/settings.php:42
msgid "Delete"
msgstr "Verwijderen"
#: admin/settings.php:65
#: admin/settings.php:67
msgid "Users"
msgstr "Gebruikers"
#: admin/settings.php:66
#: admin/settings.php:68
msgid "Add new user"
msgstr "Voeg nieuwe gebruiker toe"
#: admin/settings.php:69 classes/user.php:329
#: admin/settings.php:72 classes/user.php:372
msgid "Role"
msgstr "Rol"
#: admin/user.php:35 install.php:162 install.php:167
#: admin/user.php:45 admin/user.php:54 install.php:181 install.php:202
msgid "User"
msgstr "Gebruiker"
#: admin/user.php:39
#: admin/user.php:52
msgid "User settings"
msgstr "Gebruikers instellingen"
#: classes/constellation.php:36 config.php:40
#: classes/constellation.php:36 template.php:4
msgid "Planned maintenance"
msgstr "Gepland onderhoud"
@ -207,43 +210,43 @@ msgstr "Afgelopen incidenten"
msgid "No incidents"
msgstr "Geen incidenten"
#: classes/constellation.php:62
#: classes/constellation.php:61
msgid "Load more"
msgstr "Meer laden"
#: classes/constellation.php:100
#: classes/constellation.php:101
msgid "No services"
msgstr "Geen diensten"
#: classes/incident.php:83
#: classes/incident.php:87
msgid "Please enter title"
msgstr "Voer alstublieft een titel in"
#: classes/incident.php:86
#: classes/incident.php:90
msgid "Title too long! Character limit is 50"
msgstr "De titel is te lang! Tekenlimiet is 50"
#: classes/incident.php:92
#: classes/incident.php:96
msgid "Please enter text"
msgstr "Voer alstublieft tekst in"
#: classes/incident.php:98
#: classes/incident.php:102
msgid "Please set start and end time! Use ISO 8601 format."
msgstr "Gelieve een start en eind tijd in te geven! Gebruik het ISO 8601 formaat."
#: classes/incident.php:103
#: classes/incident.php:107
msgid "Please select at least one service"
msgstr "Gelieve tenminste 1 dienst te selecteren"
#: classes/incident.php:121
#: classes/incident.php:127
msgid "Start date format is not recognized. Please use ISO 8601 format."
msgstr "De formaat van de start tijd word niet herkent. Gebruik het ISO 8601 formaat."
#: classes/incident.php:127
#: classes/incident.php:133
msgid "End date format is not recognized. Please use ISO 8601 format."
msgstr "De formaat van de eind tijd word niet herkent. Gebruik het ISO 8601 formaat."
#: classes/incident.php:179
#: classes/incident.php:185
msgid "Ended"
msgstr "Geëindigd"
@ -255,128 +258,128 @@ msgstr "De dienst naam is te lang! Maximum aantal tekens is 50"
msgid "Please enter name!"
msgstr "Gelieve een naam in te vullen!"
#: classes/service.php:81 classes/service.php:123 classes/user.php:102
#: classes/user.php:204
#: classes/service.php:81 classes/service.php:123 classes/user.php:97
#: classes/user.php:199
msgid "You don't have the permission to do that!"
msgstr "U hebt niet de toestemming om dat te doen!"
#: classes/user.php:165
#: classes/user.php:164
msgid "Please mind the following character limits: "
msgstr "Gelieve rekening te houden met de tekenlimiet:_"
#: classes/user.php:182
#: classes/user.php:185
msgid "User account created"
msgstr "Gebruikersaccount aangemaakt"
#: classes/user.php:183
#: classes/user.php:186
msgid "Hi %s!<br>Your account has been created. You can login with your email address at <a href=\"%s\">%s</a> with password %s - please change it as soon as possible."
msgstr "Hey %s!<br>Uw account is aangemaakt. U kunt nu met uw e-mail adres inloggen op <a href=\"%s\">%s</a> met het wachtwoord %s - Gelieve dit wachtwoord zo snel mogelijk te veranderen."
#: classes/user.php:196
#: classes/user.php:180
msgid "Username or email already used"
msgstr "Gebruikersnaam of e-mail is al gebruikt."
#: classes/user.php:236
#: classes/user.php:244
msgid "Your account has been disabled. Please contact administrator."
msgstr "Uw account was uitgeschakelt. Gelieve contact op te nemen met een Administrator."
#: classes/user.php:248 classes/user.php:264
#: classes/user.php:233 classes/user.php:256
msgid "Wrong email or password"
msgstr "Fout e-mail adres of wachtwoord"
#: classes/user.php:295
#: classes/user.php:299
msgid "Invalid token detected, please login again!"
msgstr "Ongeldig token gedetecteerd, gelieve opnieuw in te loggen!"
#: classes/user.php:309
#: classes/user.php:314
msgid "Profile picture"
msgstr "Profiel afbeelding"
#: classes/user.php:334
#: classes/user.php:379
msgid "Change role"
msgstr "Verander rol"
#: classes/user.php:349
#: classes/user.php:394
msgid "Change email"
msgstr "Verander e-mail"
#: classes/user.php:359 classes/user.php:360
#: classes/user.php:419 classes/user.php:420
msgid "Old password"
msgstr "Oud wachtwoord"
#: classes/user.php:398
#: classes/user.php:526
msgid "Passwords do not match!"
msgstr "Wachtwoorden komen niet overeen!"
#: classes/user.php:404
#: classes/user.php:534
msgid "Cannot change password of other users!"
msgstr "Kan het wachtwoord van andere gebruikers niet veranderen!"
#: classes/user.php:434
#: classes/user.php:567
msgid "Wrong password!"
msgstr "Fout wachtwoord!"
#: classes/user.php:460 classes/user.php:551
#: classes/user.php:595 classes/user.php:695
msgid "Invalid token detected, please retry your request from start!"
msgstr "Ongeldig token gedetecteerd, gelieve opnieuw te beginnen!"
#: classes/user.php:490
#: classes/user.php:623
msgid "Reset password"
msgstr "Wachtwoord opnieuw instellen"
#: classes/user.php:515
#: classes/user.php:659
msgid "Email change"
msgstr "E-mail wijzigen"
#: classes/incident.php:50 classes/user.php:594
#: classes/incident.php:54 classes/user.php:736
msgid "You don't have permission to do that!"
msgstr "Je hebt niet de toestemming om dat te doen!"
#: config.php:40
#: template.php:4
msgid "Major outage"
msgstr "Grote storing"
#: config.php:40
#: template.php:4
msgid "Minor outage"
msgstr "Kleine storing"
#: config.php:40
#: template.php:4
msgid "Operational"
msgstr "Operationeel"
#: config.php:43
#: template.php:7
msgid "Some systems are experiencing major outages"
msgstr "Sommige systemen ondervinden grote storingen"
#: config.php:43
#: template.php:7
msgid "Some systems are experiencing minor outages"
msgstr "Sommige systemen ondervinden kleine storingen"
#: config.php:43
#: template.php:7
msgid "Some systems are under maintenance"
msgstr "Sommige systemen zijn in onderhoud"
#: config.php:44
#: template.php:8
msgid "Our systems are experiencing major outages."
msgstr "Onze systemen ondervinden grote storingen"
#: config.php:44
#: template.php:8
msgid "Our systems are experiencing minor outages"
msgstr "Onze systemen ondervinden kleine storingen"
#: config.php:44
#: template.php:8
msgid "Our systems are under maintenance"
msgstr "Onze systemen zijn in onderhoud"
#: config.php:44
#: template.php:8
msgid "All systems operational"
msgstr "Alle systemen zijn operationeel"
#: config.php:45
#: template.php:9
msgid "Super admin"
msgstr "Super admin"
#: config.php:45
#: template.php:9
msgid "Admin"
msgstr "Admin"
@ -384,15 +387,15 @@ msgstr "Admin"
msgid "Service Status"
msgstr "Service status"
#: template.php:97
#: template.php:106
msgid "Toggle navigation"
msgstr "Navigatie omschakelen"
#: template.php:107
#: template.php:116
msgid "User (%s)"
msgstr "Gebruiker (%s)"
#: template.php:109
#: template.php:118
msgid "Logout"
msgstr "Uitloggen"
@ -404,15 +407,15 @@ msgstr "Huidige status"
msgid "Status page"
msgstr "Status pagina"
#: install.php:127
#: install.php:139
msgid "Install"
msgstr "Installeren"
#: install.php:129
#: install.php:141
msgid "Installation"
msgstr "Installatie"
#: config.php:33 install.php:26
#: install.php:26
msgid "Connection failed: %s\n"
""
msgstr "Verbinding mislukt: %s"
@ -421,63 +424,59 @@ msgstr "Verbinding mislukt: %s"
msgid "Please set valid url!"
msgstr "Stel een geldige url in!"
#: install.php:93
#: install.php:98
msgid "Error while creating database. Please check permission for your account or MYSQL version.<br>Error: %s"
msgstr "Error bij het aanmaken van de database. Gelieve de rechten van uw account na te kijken of uw MySQL versie. <br> Error: %s"
#: install.php:140
#: install.php:154
msgid "Website details"
msgstr "Website details"
#: install.php:141
msgid "We need a name for your status page and a url, so we can mail users link for forgotten password etc."
msgstr "We hebben een naam nodig voor uw status pagina en een URL zodat we gebruikers een e-mail kunnen sturen als ze hun wachtwoord zijn vergeten etc."
#: install.php:40 install.php:145
#: install.php:40 install.php:159
msgid "Url"
msgstr "url"
#: install.php:147
#: install.php:166
msgid "Also an email address for mailer would be nice :)"
msgstr "Een e-mailadres voor de mailer zou ook nice zijn :)"
#: install.php:154
#: install.php:173
msgid "Database connection"
msgstr "Database verbinding"
#: install.php:155
#: install.php:174
msgid "We need database connection to be able to create tables. Please check that your account has the permission needed to do that."
msgstr "We hebben een database verbinding nodig om tabellen te kunnen maken. Gelieve na te kijken of uw account hiervoor de toestemming heeft."
#: install.php:158
#: install.php:177
msgid "Server"
msgstr "Server"
#: install.php:159
#: install.php:178
msgid "Database"
msgstr "Database"
#: install.php:168
#: install.php:203
msgid "And finally, we need info to create a new user. You don't have to provide it, but then... No status page admin..."
msgstr "En tot slot hebben we info nodig om een nieuwe gebruiker te maken. U hoeft dit niet te verstrekken, maar dan zult u geen status pagina admin hebben..."
#: install.php:181
#: install.php:216
msgid "Run install!"
msgstr "Installatie uitvoeren"
#: classes/user.php:132
#: classes/user.php:127
msgid "Rank"
msgstr "Rank"
#: classes/user.php:491
#: classes/user.php:624
msgid "Hi %s!<br>Below you will find link to change your password. The link is valid for 24hrs. If you didn't request this, feel free to ignore it. <br><br><a href=\"%s\">RESET PASSWORD</a><br><br>If the link doesn't work, copy &amp; paste it into your browser: <br>%s"
msgstr "Hey %s<br>Hieronder vind u de link om uw wachtwoord te veranderen. De link is bruikbaar voor 24 uur. Als u dit niet heeft aangevraagd kunt u dit negeren. <br><br><a href=\"%s\">WACHTWOORD OPNIEUW INSTELLEN</a><br><br>Als de link niet werkt copy &amp; paste dit dan in uw browser: <br>%s"
#: classes/user.php:516
#: classes/user.php:660
msgid "Hi %s!<br>Below you will find link to change your email. The link is valid for 24hrs. If you didn't request this, feel free to ignore it. <br><br><a href=\"%s\">CHANGE EMAIL</a><br><br>If the link doesn't work, copy &amp; paste it into your browser: <br>%s"
msgstr "Hey %s<br>Hieronder vind u de link om uw e-mailadres te veranderen. De link is bruikbaar voor 24 uur. Als u dit niet heeft aangevraagd kunt u dit negeren. <br><br><a href=\"%s\">EMAIL VERANDEREN</a><br><br>Als de link niet werkt copy &amp; paste dit dan in uw browser: <br>%s"
#: config.php:45
#: template.php:9
msgid "Editor"
msgstr "Editor"
@ -489,35 +488,178 @@ msgstr "Server naam"
msgid "Mailer name"
msgstr "Mailer naam"
#: install.php:48
#: install.php:52
msgid "Mailer email"
msgstr "Mailer e-mail"
#: install.php:52
#: install.php:56
msgid "Database server"
msgstr "Database server"
#: install.php:56
#: install.php:60
msgid "Database name"
msgstr "Database naam"
#: install.php:60
#: install.php:64
msgid "Database user"
msgstr "Database gebruiker"
#: install.php:65
#: install.php:69
msgid "Database password"
msgstr "Database wachtwoord"
#: install.php:69
msgid "Please set"
msgstr "Stel alstublieft in"
#: template.php:138
#: template.php:147
msgid "Toggle Dropdown"
msgstr "Dropdown omschakelen"
#: template.php:147
#: template.php:156
msgid "Help with translation!"
msgstr "Help met vertalen!"
#: classes/user.php:439
msgid "Deactivate user"
msgstr "Deactiveer gebruiker"
#: classes/user.php:441
msgid "Activate user"
msgstr "Activeer gebruiker"
#: install.php:73
msgid "Please enter"
msgstr "Gelieve in te vullen"
#: install.php:150
msgid "We will ask you some basic questions about your website. Most of the settings can be later edited in the config.php file."
msgstr "We zullen je enkele basis vragen stellen over je website. De meeste van deze instellingen kun je later aanpassen in het bestand config.php"
#: install.php:155
msgid "We need a name for your status page (shown behind page title after the dash) and a url of your server status installation (i.e. <a href='#'>https://example.com/status</a> - without the trailing slash), so we can mail users link for forgotten password etc..."
msgstr "We hebben een naam voor je status pagina nodig (word weergegeven na de pagina titel achter de dash) en een url van je server status installatie (bv: <a href='#'>https://example.com/status</a> - zonder de slash), zo kunnen we gebruikers een link sturen wanneer ze hun wachtwoord zijn vergeten etc..."
#: install.php:161
msgid "A title that you want to be shown on the top of the page."
msgstr "Een titel die weergegeven zal worden aan de bovenkant van je pagina."
#: api/status.php:24
msgid "Service does not exist!"
msgstr "Services bestaat niet!"
#: classes/user.php:220
msgid "Please fill in your email and password!"
msgstr "Gelieve uw e-mail adres en wachtwoord in te vullen!"
#: classes/user.php:336
msgid "Change name"
msgstr "Wijzig naam"
#: classes/user.php:356
msgid "Change username"
msgstr "Wijzig gebruikersnaam"
#: classes/user.php:463
msgid "This username is already taken."
msgstr "Gebruikersnaam is al in gebruik."
#: classes/user.php:470
msgid "Cannot change username of other users!"
msgstr "U kunt geen gebruikersnaam van andere wijzigen!"
#: classes/user.php:504
msgid "Cannot change names of other users!"
msgstr "U kunt geen namen van anderen wijzigen!"
#: classes/user.php:667
msgid "Confirmation email sent!"
msgstr "Bevestigingsmail verzonden!"
#: install.php:186 policy.php:6
msgid "Privacy Policy"
msgstr "Privacy Beleid"
#: install.php:190
msgid "Company name"
msgstr "Bedrijfsnaam"
#: install.php:191
msgid "Address"
msgstr "Adres"
#: install.php:191
msgid "Full address"
msgstr "Volledig adres"
#: install.php:194
msgid "E-Mail"
msgstr "E-mail"
#: install.php:195
msgid "Phone"
msgstr "Telefoon"
#: install.php:195
msgid "Phone number"
msgstr "Telefoon nummer"
#: install.php:198 policy.php:7
msgid "Who we are"
msgstr "Wie we zijn"
#: policy.php:9
msgid "Contact"
msgstr "Contact"
#: policy.php:17
msgid "What personal data we collect and why"
msgstr "Welke persoonlijke data we verzamelen en waarom"
#: policy.php:19
msgid "If you access our websites, the following information will be saved: IP-address, Date, Time, Browser queries, \n"
"\tGeneral information about your browser, operating system and all search queries on the sites. \n"
"\tThis user data will be used for anonym user statistics to recognize trends and improve our content.\n"
"\t"
msgstr "Als u onze websites bezoekt, wordt de volgende informatie opgeslagen: IP-adres, Datum, Tijd, Browserquery's, Algemene informatie over uw browser, besturingssysteem en alle zoekopdrachten op de sites.\n"
"Deze gebruikersgegevens worden gebruikt voor anonieme gebruikersstatistieken om trends te herkennen en onze inhoud te verbeteren."
#: policy.php:23
msgid "How we protect your data"
msgstr "Hoe we uw data beschermen"
#: policy.php:24
msgid "In collaboration with our hosting provider we try our best to protect our \n"
"\tdatabases against access from third parties, losses, misuse or forgery.\n"
"\t"
msgstr "In samenwerking met onze hostingprovider doen we ons best om onze databases te beschermen tegen toegang van derden, verlies, misbruik of valsheid in geschrifte."
#: policy.php:27
msgid "Third party that receive your personal data"
msgstr "Derde partij die uw persoonlijke gegevens ontvangen"
#: policy.php:29
msgid "Cookies"
msgstr "Koekjes"
#: policy.php:30
msgid "This site uses cookies small text files that are placed on your machine to help the site provide a better user experience. \n"
"\tIn general, cookies are used to retain user preferences, store information for things like shopping carts, \n"
"\tand provide anonymised tracking data to third party applications like Google Analytics. \n"
"\tAs a rule, cookies will make your browsing experience better. However, you may prefer to disable cookies on this site and on others. \n"
"\tThe most effective way to do this is to disable cookies in your browser. We suggest consulting the Help section of your browser \n"
"\tor taking a look at the About Cookies website which offers guidance for all modern browsers"
msgstr "Deze site maakt gebruik van cookies: kleine tekstbestanden die op uw computer worden geplaatst om de site een betere gebruikerservaring te bieden.\n"
"In het algemeen worden cookies gebruikt om gebruikersvoorkeuren te behouden, informatie op te slaan voor zaken als winkelwagentjes, en geanonimiseerde track gegevens te leveren aan applicaties van derden, zoals Google Analytics.\n"
"Cookies zullen uw surfervaring in de regel verbeteren. U kunt echter de voorkeur geven aan het uitschakelen van cookies op deze site en op anderen.\n"
"De meest effectieve manier om dit te doen, is door cookies in uw browser uit te schakelen. We raden u aan de Help-sectie van uw browser te raadplegen\n"
"of kijk eens naar de About Cookies-website die richtlijnen biedt voor alle moderne browsers"
#: install.php:187
msgid "Since you are collecting personal information, the GDPR needs you to have a privacy policy. Enter the details below."
msgstr "Aangezien u persoonlijke gegevens verzamelt, moet u volgens de GDPR een privacybeleid hebben. Vul de onderstaande gegevens in."
#: install.php:198
msgid "Some info about yourself"
msgstr "Informatie over u zelf"
#: policy.php:18
msgid "General"
msgstr "Algemeen"

Binary file not shown.

View File

@ -0,0 +1,666 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: POEditor.com\n"
"Project-Id-Version: Server status\n"
"Language: pl\n"
#: 404.php:12
msgid "Page Not Found"
msgstr "Strona nie została znaleziona"
#: 404.php:13
msgid "Sorry, but the page you were trying to view does not exist."
msgstr "Przepraszamy, ale strona, którą próbujesz wyświetlić, nie istnieje."
#: admin/dashboard.php:22 admin/dashboard.php:26 template.php:115
msgid "Dashboard"
msgstr "Panel"
#: admin/dashboard.php:27
msgid "Welcome"
msgstr "Witamy"
#: admin/dashboard.php:39
msgid "New incident"
msgstr "Nowy incydent"
#: admin/dashboard.php:72 install.php:48 install.php:163
msgid "Title"
msgstr "Tytuł"
#: admin/dashboard.php:72
msgid "Time"
msgstr "Czas"
#: admin/dashboard.php:77
msgid "Here goes your text..."
msgstr "Tutaj wpisz wiadomość..."
#: admin/dashboard.php:80 classes/incident.php:183
msgid "Posted by"
msgstr "Wysłane przez"
#: admin/dashboard.php:80 classes/incident.php:185
msgid "Ending"
msgstr "Zakończono"
#: admin/dashboard.php:80
msgid "End time"
msgstr "Koniec czasu"
#: admin/dashboard.php:99 admin/new-user.php:53
msgid "Submit"
msgstr "Zatwierdź"
#: admin/login-form.php:2 admin/login-form.php:5 admin/login-form.php:27
msgid "Login"
msgstr "Zaloguj się"
#: admin/login-form.php:11
msgid "Please login to continue."
msgstr "Proszę się zalogować, aby kontynuować."
#: admin/login-form.php:15 admin/login-form.php:16 admin/lost-password.php:46
#: admin/lost-password.php:48 admin/new-user.php:24 admin/settings.php:72
#: classes/user.php:120 classes/user.php:404 install.php:169 install.php:210
msgid "Email"
msgstr "E-mail"
#: admin/login-form.php:19 admin/login-form.php:20 admin/new-user.php:27
#: classes/user.php:123 classes/user.php:417 install.php:182 install.php:213
msgid "Password"
msgstr "Hasło"
#: admin/login-form.php:22
msgid "Forgotten password?"
msgstr "Zapomniane hasło?"
#: admin/login-form.php:23
msgid "Remember me"
msgstr "Zapamiętaj mnie"
#: admin/lost-password.php:2 admin/lost-password.php:5
msgid "Lost password"
msgstr "Utracone hasło"
#: admin/lost-password.php:16
msgid "Go back"
msgstr "Wróć"
#: admin/lost-password.php:20
msgid "Password changed successfully!"
msgstr "Hasło zostało zmienione pomyślnie!"
#: admin/lost-password.php:21 admin/lost-password.php:35
msgid "Go back to login page"
msgstr "Wróć do strony logowania"
#: admin/lost-password.php:30
msgid "Go back to start"
msgstr "Wróć, aby rozpocząć"
#: admin/lost-password.php:34
msgid "Email with password reset link has been sent!"
msgstr "E-mail z linkiem do zmiany hasła został wysłany!"
#: admin/lost-password.php:50
msgid "Submit request"
msgstr "Wyślij zapytanie"
#: admin/lost-password.php:57
msgid "Reset password for %s (%s)"
msgstr "Zresetuj hasło dla %s (%s)"
#: admin/lost-password.php:60 admin/lost-password.php:61 classes/user.php:421
#: classes/user.php:422
msgid "New password"
msgstr "Nowe hasło"
#: admin/lost-password.php:62 admin/lost-password.php:63 classes/user.php:423
#: classes/user.php:424
msgid "Repeat password"
msgstr "Powtórz hasło"
#: admin/lost-password.php:64 classes/user.php:425
msgid "Change password"
msgstr "Zmień hasło"
#: admin/new-user.php:7
msgid "New user"
msgstr "Nowy użytkownik"
#: admin/new-user.php:19 admin/settings.php:39 admin/settings.php:72
#: classes/user.php:114 classes/user.php:322 classes/user.php:326
#: classes/user.php:327 classes/user.php:488 install.php:158 install.php:168
#: install.php:190 install.php:205
msgid "Name"
msgstr "Imie"
#: admin/new-user.php:20 admin/settings.php:72 classes/user.php:117
#: classes/user.php:323 classes/user.php:329 classes/user.php:330
#: classes/user.php:491 install.php:206
msgid "Surname"
msgstr "Nazwisko"
#: admin/new-user.php:23 admin/settings.php:72 classes/user.php:349
#: install.php:209
msgid "Username"
msgstr "Nazwa użytkownika"
#: admin/new-user.php:29
msgid "Permission"
msgstr "Uprawnienia"
#: admin/settings.php:12 template.php:117
msgid "Settings"
msgstr "Ustawienia"
#: admin/settings.php:23
msgid "Services"
msgstr "Usługi"
#: admin/settings.php:29
msgid "Add service"
msgstr "Dodał usługę"
#: admin/settings.php:38 admin/settings.php:72
msgid "ID"
msgstr "ID"
#: admin/settings.php:42
msgid "Delete"
msgstr "Usuń"
#: admin/settings.php:67
msgid "Users"
msgstr "Użytkownicy"
#: admin/settings.php:68
msgid "Add new user"
msgstr "Dodaj nowego użytkownika"
#: admin/settings.php:72 classes/user.php:372
msgid "Role"
msgstr "Rola"
#: admin/user.php:45 admin/user.php:54 install.php:181 install.php:202
msgid "User"
msgstr "Użytkownik"
#: admin/user.php:52
msgid "User settings"
msgstr "Ustawienia użytkownika"
#: classes/constellation.php:36 template.php:4
msgid "Planned maintenance"
msgstr "Planowana konserwacja"
#: classes/constellation.php:42
msgid "Back"
msgstr "Powrót"
#: classes/constellation.php:44
msgid "Past incidents"
msgstr "Poprzednie incydenty"
#: classes/constellation.php:48
msgid "No incidents"
msgstr "Brak incydentów"
#: classes/constellation.php:61
msgid "Load more"
msgstr "Załaduj wiecej"
#: classes/constellation.php:101
msgid "No services"
msgstr "Brak usług"
#: classes/incident.php:87
msgid "Please enter title"
msgstr "Proszę podać tytuł"
#: classes/incident.php:90
msgid "Title too long! Character limit is 50"
msgstr "Tytuł jest zbyt długi! Limit znaków to 50"
#: classes/incident.php:96
msgid "Please enter text"
msgstr "Wpisz tekst"
#: classes/incident.php:102
msgid "Please set start and end time! Use ISO 8601 format."
msgstr "Ustaw czas rozpoczęcia i zakończenia! Użyj formatu ISO 8601."
#: classes/incident.php:107
msgid "Please select at least one service"
msgstr "Wybierz co najmniej jedną usługę\n"
""
#: classes/incident.php:127
msgid "Start date format is not recognized. Please use ISO 8601 format."
msgstr "Format daty rozpoczęcia nie został rozpoznany. Użyj formatu ISO 8601."
#: classes/incident.php:133
msgid "End date format is not recognized. Please use ISO 8601 format."
msgstr "Format daty zakończenia nie został rozpoznany. Użyj formatu ISO 8601."
#: classes/incident.php:185
msgid "Ended"
msgstr "Zakończono"
#: classes/service.php:63
msgid "Service name is too long! Character limit is 50"
msgstr "Nazwa usługi jest za długa! Limit znaków to 50"
#: classes/service.php:66
msgid "Please enter name!"
msgstr "Proszę podać nazwe!"
#: classes/service.php:81 classes/service.php:123 classes/user.php:97
#: classes/user.php:199
msgid "You don't have the permission to do that!"
msgstr "Nie masz wystarczających uprawnień!"
#: classes/user.php:164
msgid "Please mind the following character limits: "
msgstr "Pamiętaj o limitach znaków: ␣"
#: classes/user.php:185
msgid "User account created"
msgstr "Utworzono konto użytkownika"
#: classes/user.php:186
msgid "Hi %s!<br>Your account has been created. You can login with your email address at <a href=\"%s\">%s</a> with password %s - please change it as soon as possible."
msgstr "Witaj, %s!<br>Twoje konto zostało utworzone. Możesz zalogować się za pomocą swojego adresu e-mail na stronie <a href=\"%s\">%s</a> z hasłem%s - zmień je tak szybko, jak to możliwe."
#: classes/user.php:180
msgid "Username or email already used"
msgstr "Nazwa użytkownika lub adres e-mail już istnieje"
#: classes/user.php:244
msgid "Your account has been disabled. Please contact administrator."
msgstr "Twoje konto zostało wyłączone. Skontaktuj się z administratorem."
#: classes/user.php:233 classes/user.php:256
msgid "Wrong email or password"
msgstr "Błędny e-mail lub hasło"
#: classes/user.php:299
msgid "Invalid token detected, please login again!"
msgstr "Wykryto nieprawidłowy token, spróbuj ponownie!"
#: classes/user.php:314
msgid "Profile picture"
msgstr "Zdjęcie profilu"
#: classes/user.php:379
msgid "Change role"
msgstr "Zmień role"
#: classes/user.php:394
msgid "Change email"
msgstr "Zmień adres e-mail"
#: classes/user.php:419 classes/user.php:420
msgid "Old password"
msgstr "Stare hasło"
#: classes/user.php:526
msgid "Passwords do not match!"
msgstr "Hasła nie pasują do siebie!"
#: classes/user.php:534
msgid "Cannot change password of other users!"
msgstr "Nie możesz zmieniać hasła innym użytkownika!"
#: classes/user.php:567
msgid "Wrong password!"
msgstr "Złe hasło!"
#: classes/user.php:595 classes/user.php:695
msgid "Invalid token detected, please retry your request from start!"
msgstr "Wykryto nieprawidłowy token, spróbuj ponownie!"
#: classes/user.php:623
msgid "Reset password"
msgstr "Zresetuj hasło"
#: classes/user.php:659
msgid "Email change"
msgstr "Zmiana adresu e-mail"
#: classes/incident.php:54 classes/user.php:736
msgid "You don't have permission to do that!"
msgstr "Nie masz do tego uprawnień!"
#: template.php:4
msgid "Major outage"
msgstr "Poważna przerwa?"
#: template.php:4
msgid "Minor outage"
msgstr "Niewielkie awarie"
#: template.php:4
msgid "Operational"
msgstr "Działa"
#: template.php:7
msgid "Some systems are experiencing major outages"
msgstr "Niektóre systemy mają poważne awarie"
#: template.php:7
msgid "Some systems are experiencing minor outages"
msgstr "Niektóre systemy mają niewielkie awarie"
#: template.php:7
msgid "Some systems are under maintenance"
msgstr "Niektóre systemy są w trakcie konserwacji"
#: template.php:8
msgid "Our systems are experiencing major outages."
msgstr "Nasze systemy mają poważne awarie"
#: template.php:8
msgid "Our systems are experiencing minor outages"
msgstr "Nasze systemy mają niewielkie awarie"
#: template.php:8
msgid "Our systems are under maintenance"
msgstr "Nasze systemy są w trakcie konserwacji"
#: template.php:8
msgid "All systems operational"
msgstr "Wszystkie systemy działają"
#: template.php:9
msgid "Super admin"
msgstr "Super admin"
#: template.php:9
msgid "Admin"
msgstr "Administrator"
#: template.php:53
msgid "Service Status"
msgstr "Status usługi"
#: template.php:106
msgid "Toggle navigation"
msgstr "Zmień nawigację"
#: template.php:116
msgid "User (%s)"
msgstr "Użytkownik (%s) "
#: template.php:118
msgid "Logout"
msgstr "Wyloguj się"
#: index.php:27
msgid "Current status"
msgstr "Aktualny stan"
#: install.php:4
msgid "Status page"
msgstr "Strona statusów"
#: install.php:139
msgid "Install"
msgstr "Instaluj"
#: install.php:141
msgid "Installation"
msgstr "Instalacja"
#: install.php:26
msgid "Connection failed: %s\n"
""
msgstr "Utracono połączenie: %s"
#: install.php:31
msgid "Please set valid url!"
msgstr "Ustaw prawidłowy adres URL!"
#: install.php:98
msgid "Error while creating database. Please check permission for your account or MYSQL version.<br>Error: %s"
msgstr "Błąd podczas tworzenia bazy danych. Sprawdź uprawnienia do konta lub wersje MYSQL. <br>Błąd:%s"
#: install.php:154
msgid "Website details"
msgstr "Szczegóły strony"
#: install.php:40 install.php:159
msgid "Url"
msgstr "Url"
#: install.php:166
msgid "Also an email address for mailer would be nice :)"
msgstr "Również adres e-mail dla powiadomień byłby miły :)"
#: install.php:173
msgid "Database connection"
msgstr "Utracono połączenie z bazą danych"
#: install.php:174
msgid "We need database connection to be able to create tables. Please check that your account has the permission needed to do that."
msgstr "Potrzebujemy połączenia z bazą danych. Sprawdź, czy Twoje konto ma odpowiednie uprawnienia do tworzenia tabeli."
#: install.php:177
msgid "Server"
msgstr "Serwer"
#: install.php:178
msgid "Database"
msgstr "Baza danych"
#: install.php:203
msgid "And finally, we need info to create a new user. You don't have to provide it, but then... No status page admin..."
msgstr "Na koniec potrzebujemy informacji, aby utworzyć nowego użytkownika. Nie musisz tego dostarczać, ale nie ma administratora strony..."
#: install.php:216
msgid "Run install!"
msgstr "Uruchom instalację!"
#: classes/user.php:127
msgid "Rank"
msgstr "Ranga"
#: classes/user.php:624
msgid "Hi %s!<br>Below you will find link to change your password. The link is valid for 24hrs. If you didn't request this, feel free to ignore it. <br><br><a href=\"%s\">RESET PASSWORD</a><br><br>If the link doesn't work, copy &amp; paste it into your browser: <br>%s"
msgstr "Witaj %s! <br>Poniżej znajduje się link do zmiany hasła. Link jest ważny przez 24 godziny. Jeśli nie poprosiłeś o to, możesz to zignorować.<br><br><a href=\"%s\"> ZMIEŃ HASŁO</a><br><br>Jeśli link nie działa, skopiuj &amp; I wklej go do przeglądarki: <br>%s"
#: classes/user.php:660
msgid "Hi %s!<br>Below you will find link to change your email. The link is valid for 24hrs. If you didn't request this, feel free to ignore it. <br><br><a href=\"%s\">CHANGE EMAIL</a><br><br>If the link doesn't work, copy &amp; paste it into your browser: <br>%s"
msgstr "Witaj %s! <br>Poniżej znajduje się link do zmiany adresu e-mail. Link jest ważny przez 24 godziny. Jeśli nie poprosiłeś o to, możesz to zignorować.<br><br> <a href=\"%s\"> ZMIEŃ E-MAIL</a><br><br>Jeśli link nie działa, skopiuj &amp; i wklej go do przeglądarki: <br>%s"
#: template.php:9
msgid "Editor"
msgstr "Edytor"
#: install.php:36
msgid "Server name"
msgstr "Nazwa serwera"
#: install.php:44
msgid "Mailer name"
msgstr "Nazwa Mailera"
#: install.php:52
msgid "Mailer email"
msgstr "Adres e-mail Mailera"
#: install.php:56
msgid "Database server"
msgstr "Serwer bazy danych"
#: install.php:60
msgid "Database name"
msgstr "Nazwa bazy danych"
#: install.php:64
msgid "Database user"
msgstr "Użytkownik bazy danych"
#: install.php:69
msgid "Database password"
msgstr "Hasło bazy danych"
#: template.php:147
msgid "Toggle Dropdown"
msgstr "Rozwiń"
#: template.php:156
msgid "Help with translation!"
msgstr "Pomóż w tłumaczeniu!"
#: classes/user.php:439
msgid "Deactivate user"
msgstr "Dezaktywuj użytkownika"
#: classes/user.php:441
msgid "Activate user"
msgstr "Aktywuj użytkownika\n"
""
#: install.php:73
msgid "Please enter"
msgstr "Proszę wpisać"
#: install.php:150
msgid "We will ask you some basic questions about your website. Most of the settings can be later edited in the config.php file."
msgstr "Zadamy Ci kilka podstawowych pytań na temat Twojej strony. Większość ustawień można później edytować w pliku config.php."
#: install.php:155
msgid "We need a name for your status page (shown behind page title after the dash) and a url of your server status installation (i.e. <a href='#'>https://example.com/status</a> - without the trailing slash), so we can mail users link for forgotten password etc..."
msgstr "Potrzebujemy nazwy strony statusu (wyświetlanej za tytułem strony po myślniku) i adresu URL instalacji twojego serwera (np. <a href='#'> https://example.com/status </a> - bez ukośnika na końcu), dzięki czemu możemy wysłać użytkownikom link do zapomnianego hasła itp. ..."
#: install.php:161
msgid "A title that you want to be shown on the top of the page."
msgstr "Tytuł, który chcesz wyświetlać na górze strony."
#: api/status.php:24
msgid "Service does not exist!"
msgstr "Usługa nie istnieje!"
#: classes/user.php:220
msgid "Please fill in your email and password!"
msgstr "Proszę podać swój adres e-mail oraz hasło!"
#: classes/user.php:336
msgid "Change name"
msgstr "Zmień nazwę"
#: classes/user.php:356
msgid "Change username"
msgstr "Zmień nazwę użytkownika"
#: classes/user.php:463
msgid "This username is already taken."
msgstr "Ta nazwa użytkownika jest już zajęta."
#: classes/user.php:470
msgid "Cannot change username of other users!"
msgstr "Nie można zmieniać nazwy użytkownika innym użytkownikom!"
#: classes/user.php:504
msgid "Cannot change names of other users!"
msgstr "Nie można zmienić imion innych użytkowników!"
#: classes/user.php:667
msgid "Confirmation email sent!"
msgstr "Wysłano e-mail potwierdzający!"
#: install.php:186 policy.php:6
msgid "Privacy Policy"
msgstr "Polityka prywatności"
#: install.php:190
msgid "Company name"
msgstr "Nazwa firmy"
#: install.php:191
msgid "Address"
msgstr "Adres"
#: install.php:191
msgid "Full address"
msgstr "Pełny adres"
#: install.php:194
msgid "E-Mail"
msgstr "E-mail"
#: install.php:195
msgid "Phone"
msgstr "Telefon"
#: install.php:195
msgid "Phone number"
msgstr "Numer telefonu"
#: install.php:198 policy.php:7
msgid "Who we are"
msgstr "O nas"
#: policy.php:9
msgid "Contact"
msgstr "Kontakt"
#: policy.php:17
msgid "What personal data we collect and why"
msgstr "Jakie dane osobowe zbieramy i dlaczego"
#: policy.php:19
msgid "If you access our websites, the following information will be saved: IP-address, Date, Time, Browser queries, \n"
"\tGeneral information about your browser, operating system and all search queries on the sites. \n"
"\tThis user data will be used for anonym user statistics to recognize trends and improve our content.\n"
"\t"
msgstr "Jeśli uzyskasz dostęp do naszych stron internetowych, zapisane zostaną następujące informacje: adres IP, data, godzina, zapytania przeglądarki,\n"
"Ogólne informacje o przeglądarce, systemie operacyjnym i wszystkich wyszukiwanych hasłach w witrynach.\n"
"Te dane użytkownika będą wykorzystywane do statystyk anonimowych użytkowników w celu rozpoznawania trendów i ulepszania naszych treści."
#: policy.php:23
msgid "How we protect your data"
msgstr "Jak chronimy Twoje dane"
#: policy.php:24
msgid "In collaboration with our hosting provider we try our best to protect our \n"
"\tdatabases against access from third parties, losses, misuse or forgery.\n"
"\t"
msgstr "We współpracy z naszym dostawcą hostingu dokładamy wszelkich starań, aby chronić nasze bazy danych przed dostępem osób trzecich, stratami, niewłaściwym wykorzystaniem lub fałszowaniem."
#: policy.php:27
msgid "Third party that receive your personal data"
msgstr "Osoba trzecia, która otrzymuje Twoje dane osobowe"
#: policy.php:29
msgid "Cookies"
msgstr "Ciasteczka"
#: policy.php:30
msgid "This site uses cookies small text files that are placed on your machine to help the site provide a better user experience. \n"
"\tIn general, cookies are used to retain user preferences, store information for things like shopping carts, \n"
"\tand provide anonymised tracking data to third party applications like Google Analytics. \n"
"\tAs a rule, cookies will make your browsing experience better. However, you may prefer to disable cookies on this site and on others. \n"
"\tThe most effective way to do this is to disable cookies in your browser. We suggest consulting the Help section of your browser \n"
"\tor taking a look at the About Cookies website which offers guidance for all modern browsers"
msgstr "Ta strona wykorzystuje pliki cookie - małe pliki tekstowe, które umieszczane są na Twoim komputerze, aby pomóc witrynie poprawić komfort użytkowania.\n"
"Zasadniczo pliki cookie służą do zachowania preferencji użytkownika, przechowywania informacji o takich rzeczach, jak koszyki na zakupy i zapewniać anonimowe dane śledzenia do aplikacji innych firm, takich jak Google Analytics.\n"
"Z zasady, ciasteczka sprawią, że twoje wrażenia z przeglądania będą lepsze. Możesz jednak lepiej wyłączyć pliki cookie na tej stronie i na innych. Najskuteczniejszym sposobem na to jest wyłączenie plików cookie w przeglądarce. Sugerujemy skorzystanie z sekcji Pomoc przeglądarki lub przeglądając stronę About Cookies, która zawiera wskazówki dla wszystkich nowoczesnych przeglądarek."
#: install.php:187
msgid "Since you are collecting personal information, the GDPR needs you to have a privacy policy. Enter the details below."
msgstr "Z racji iż zbierasz dane osobowe, RBP wymaga posiadania polityki prywatności. Wprowadź szczegóły poniżej."
#: install.php:198
msgid "Some info about yourself"
msgstr "Informacje o tobie"
#: policy.php:18
msgid "General"
msgstr "Ogólne"

BIN
locale/pl_PL/flag.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 B

View File

@ -0,0 +1,39 @@
(function (factory) {
if (typeof define === 'function' && define.amd) {
define(['jquery'], factory);
} else if (typeof module === 'object' && typeof module.exports === 'object') {
factory(require('jquery'));
} else {
factory(jQuery);
}
}(function (jQuery) {
// Polish
function numpf(n, s, t) {
// s - 2-4, 22-24, 32-34 ...
// t - 5-21, 25-31, ...
var n10 = n % 10;
if ( (n10 > 1) && (n10 < 5) && ( (n > 20) || (n < 10) ) ) {
return s;
} else {
return t;
}
}
jQuery.timeago.settings.strings = {
prefixAgo: null,
prefixFromNow: "za",
suffixAgo: "temu",
suffixFromNow: null,
seconds: "mniej niż minutę",
minute: "minutę",
minutes: function(value) { return numpf(value, "%d minuty", "%d minut"); },
hour: "godzinę",
hours: function(value) { return numpf(value, "%d godziny", "%d godzin"); },
day: "dzień",
days: "%d dni",
month: "miesiąc",
months: function(value) { return numpf(value, "%d miesiące", "%d miesięcy"); },
year: "rok",
years: function(value) { return numpf(value, "%d lata", "%d lat"); }
};
}));

Binary file not shown.

View File

@ -0,0 +1,668 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: POEditor.com\n"
"Project-Id-Version: Server status\n"
"Language: pt-br\n"
#: 404.php:12
msgid "Page Not Found"
msgstr "Página não encontrada"
#: 404.php:13
msgid "Sorry, but the page you were trying to view does not exist."
msgstr "Desculpe, mas a página que você está tentando acessar, não existe"
#: admin/dashboard.php:22 admin/dashboard.php:26 template.php:115
msgid "Dashboard"
msgstr "Painel"
#: admin/dashboard.php:27
msgid "Welcome"
msgstr "Bem vindo"
#: admin/dashboard.php:39
msgid "New incident"
msgstr "Novo Incidente"
#: admin/dashboard.php:72 install.php:48 install.php:163
msgid "Title"
msgstr "Título"
#: admin/dashboard.php:72
msgid "Time"
msgstr "Tempo"
#: admin/dashboard.php:77
msgid "Here goes your text..."
msgstr "Escreva aqui seu texto..."
#: admin/dashboard.php:80 classes/incident.php:183
msgid "Posted by"
msgstr "Enviado por"
#: admin/dashboard.php:80 classes/incident.php:185
msgid "Ending"
msgstr "Terminando"
#: admin/dashboard.php:80
msgid "End time"
msgstr "Horário de término"
#: admin/dashboard.php:99 admin/new-user.php:53
msgid "Submit"
msgstr "Enviar"
#: admin/login-form.php:2 admin/login-form.php:5 admin/login-form.php:27
msgid "Login"
msgstr "Login"
#: admin/login-form.php:11
msgid "Please login to continue."
msgstr "Por Favor, faça login para continuar"
#: admin/login-form.php:15 admin/login-form.php:16 admin/lost-password.php:46
#: admin/lost-password.php:48 admin/new-user.php:24 admin/settings.php:72
#: classes/user.php:120 classes/user.php:404 install.php:169 install.php:210
msgid "Email"
msgstr "Email"
#: admin/login-form.php:19 admin/login-form.php:20 admin/new-user.php:27
#: classes/user.php:123 classes/user.php:417 install.php:182 install.php:213
msgid "Password"
msgstr "Senha"
#: admin/login-form.php:22
msgid "Forgotten password?"
msgstr "Esqueceu a senha?"
#: admin/login-form.php:23
msgid "Remember me"
msgstr "Lembar-me"
#: admin/lost-password.php:2 admin/lost-password.php:5
msgid "Lost password"
msgstr "Esqueceu a senha"
#: admin/lost-password.php:16
msgid "Go back"
msgstr "Voltar"
#: admin/lost-password.php:20
msgid "Password changed successfully!"
msgstr "Senha alterada com sucesso!"
#: admin/lost-password.php:21 admin/lost-password.php:35
msgid "Go back to login page"
msgstr "Voltar à página de login"
#: admin/lost-password.php:30
msgid "Go back to start"
msgstr "Voltar ao ínicio"
#: admin/lost-password.php:34
msgid "Email with password reset link has been sent!"
msgstr "Um email com o link para resetar a senha foi enviado!"
#: admin/lost-password.php:50
msgid "Submit request"
msgstr "Enviar pedido"
#: admin/lost-password.php:57
msgid "Reset password for %s (%s)"
msgstr "Resetar senha para %s (%s)"
#: admin/lost-password.php:60 admin/lost-password.php:61 classes/user.php:421
#: classes/user.php:422
msgid "New password"
msgstr "Nova senha"
#: admin/lost-password.php:62 admin/lost-password.php:63 classes/user.php:423
#: classes/user.php:424
msgid "Repeat password"
msgstr "Repetir senha"
#: admin/lost-password.php:64 classes/user.php:425
msgid "Change password"
msgstr "Alterar senha"
#: admin/new-user.php:7
msgid "New user"
msgstr "Novo usuário"
#: admin/new-user.php:19 admin/settings.php:39 admin/settings.php:72
#: classes/user.php:114 classes/user.php:322 classes/user.php:326
#: classes/user.php:327 classes/user.php:488 install.php:158 install.php:168
#: install.php:190 install.php:205
msgid "Name"
msgstr "Nome"
#: admin/new-user.php:20 admin/settings.php:72 classes/user.php:117
#: classes/user.php:323 classes/user.php:329 classes/user.php:330
#: classes/user.php:491 install.php:206
msgid "Surname"
msgstr "Sobrenome"
#: admin/new-user.php:23 admin/settings.php:72 classes/user.php:349
#: install.php:209
msgid "Username"
msgstr "Nome de usuário"
#: admin/new-user.php:29
msgid "Permission"
msgstr "Permissão"
#: admin/settings.php:12 template.php:117
msgid "Settings"
msgstr "Configurações"
#: admin/settings.php:23
msgid "Services"
msgstr "Serviços"
#: admin/settings.php:29
msgid "Add service"
msgstr "Adicionar serviço"
#: admin/settings.php:38 admin/settings.php:72
msgid "ID"
msgstr "ID"
#: admin/settings.php:42
msgid "Delete"
msgstr "Deletar"
#: admin/settings.php:67
msgid "Users"
msgstr "Usuários"
#: admin/settings.php:68
msgid "Add new user"
msgstr "Adicionar novo usuário"
#: admin/settings.php:72 classes/user.php:372
msgid "Role"
msgstr "Função"
#: admin/user.php:45 admin/user.php:54 install.php:181 install.php:202
msgid "User"
msgstr "Usuário"
#: admin/user.php:52
msgid "User settings"
msgstr "Configurações do usuário"
#: classes/constellation.php:36 template.php:4
msgid "Planned maintenance"
msgstr "Manutenção planejada"
#: classes/constellation.php:42
msgid "Back"
msgstr "Voltar"
#: classes/constellation.php:44
msgid "Past incidents"
msgstr "Incidentes anteriores"
#: classes/constellation.php:48
msgid "No incidents"
msgstr "Nenhum incidente"
#: classes/constellation.php:61
msgid "Load more"
msgstr "Carregar mais"
#: classes/constellation.php:101
msgid "No services"
msgstr "Sem serviços"
#: classes/incident.php:87
msgid "Please enter title"
msgstr "Por favor insira um título"
#: classes/incident.php:90
msgid "Title too long! Character limit is 50"
msgstr "Título muito longo! Limite de caracteres é 50"
#: classes/incident.php:96
msgid "Please enter text"
msgstr "Por favor, inserir texto"
#: classes/incident.php:102
msgid "Please set start and end time! Use ISO 8601 format."
msgstr "Por favor, inserir horário de início e de fim! Utilize o formato ISO 8601"
#: classes/incident.php:107
msgid "Please select at least one service"
msgstr "Por favor, selecione pelo menos um serviço"
#: classes/incident.php:127
msgid "Start date format is not recognized. Please use ISO 8601 format."
msgstr "O Formato da data de inicio não foi reconhecido"
#: classes/incident.php:133
msgid "End date format is not recognized. Please use ISO 8601 format."
msgstr "O Formato da data de fim não foi reconhecdo"
#: classes/incident.php:185
msgid "Ended"
msgstr "Terminado"
#: classes/service.php:63
msgid "Service name is too long! Character limit is 50"
msgstr "Nome do serviço é muito longo, o limite é de 50 caracteres"
#: classes/service.php:66
msgid "Please enter name!"
msgstr "Insira um nome!"
#: classes/service.php:81 classes/service.php:123 classes/user.php:97
#: classes/user.php:199
msgid "You don't have the permission to do that!"
msgstr "Você não tem permissão para fazer isso!"
#: classes/user.php:164
msgid "Please mind the following character limits: "
msgstr "Por favor, lembre que o limite de caractéres é:"
#: classes/user.php:185
msgid "User account created"
msgstr "Conta de usuário criada"
#: classes/user.php:186
msgid "Hi %s!<br>Your account has been created. You can login with your email address at <a href=\"%s\">%s</a> with password %s - please change it as soon as possible."
msgstr "Olá %s!<br> Sua conta foi criada. Você pode logar com seu email em<a href=\"%s\">%s</a> com a senha %s - lembre-se de mudar o mais rápido possível"
#: classes/user.php:180
msgid "Username or email already used"
msgstr "Nome de usuário ou email já estão em uso"
#: classes/user.php:244
msgid "Your account has been disabled. Please contact administrator."
msgstr "Sua conta foi desativada. Por favor contate um administrador"
#: classes/user.php:233 classes/user.php:256
msgid "Wrong email or password"
msgstr "Email ou senha erradas"
#: classes/user.php:299
msgid "Invalid token detected, please login again!"
msgstr "Token inválido detectado, faça login novamente!"
#: classes/user.php:314
msgid "Profile picture"
msgstr "Foto de perfil"
#: classes/user.php:379
msgid "Change role"
msgstr "Mudar função"
#: classes/user.php:394
msgid "Change email"
msgstr "Mudar email"
#: classes/user.php:419 classes/user.php:420
msgid "Old password"
msgstr "Senha antiga"
#: classes/user.php:526
msgid "Passwords do not match!"
msgstr "As senhas nao são iguais!"
#: classes/user.php:534
msgid "Cannot change password of other users!"
msgstr "Não é possível mudar a senha de outros usuários"
#: classes/user.php:567
msgid "Wrong password!"
msgstr "Senha incorreta!"
#: classes/user.php:595 classes/user.php:695
msgid "Invalid token detected, please retry your request from start!"
msgstr "Token inválido detectado, por favor retorne o pedido ao começo"
#: classes/user.php:623
msgid "Reset password"
msgstr "Resetar senha"
#: classes/user.php:659
msgid "Email change"
msgstr "Mudar email"
#: classes/incident.php:54 classes/user.php:736
msgid "You don't have permission to do that!"
msgstr "Você não tem permissão para fazer isso!"
#: template.php:4
msgid "Major outage"
msgstr "Major outage"
#: template.php:4
msgid "Minor outage"
msgstr "Minor outage"
#: template.php:4
msgid "Operational"
msgstr "Operacional"
#: template.php:7
msgid "Some systems are experiencing major outages"
msgstr "Alguns sistemas estão passando por major outages"
#: template.php:7
msgid "Some systems are experiencing minor outages"
msgstr "Alguns sistemas estão passando por minor outages"
#: template.php:7
msgid "Some systems are under maintenance"
msgstr "Alguns sistemas estão passando por manutenções"
#: template.php:8
msgid "Our systems are experiencing major outages."
msgstr "Nossos sistemas estão passando por major outages"
#: template.php:8
msgid "Our systems are experiencing minor outages"
msgstr "Nossos sistemas estão passando por minor outages"
#: template.php:8
msgid "Our systems are under maintenance"
msgstr "Nossos sistemas estão passando por manutenções"
#: template.php:8
msgid "All systems operational"
msgstr "Todos sistemas operacionais"
#: template.php:9
msgid "Super admin"
msgstr "Super admin"
#: template.php:9
msgid "Admin"
msgstr "Admin"
#: template.php:53
msgid "Service Status"
msgstr "Status do Serviço"
#: template.php:106
msgid "Toggle navigation"
msgstr "Mudar navegação"
#: template.php:116
msgid "User (%s)"
msgstr "Usuário (%s)"
#: template.php:118
msgid "Logout"
msgstr "Logout"
#: index.php:27
msgid "Current status"
msgstr "Status atual"
#: install.php:4
msgid "Status page"
msgstr "Página de status"
#: install.php:139
msgid "Install"
msgstr "Instalar"
#: install.php:141
msgid "Installation"
msgstr "Instalação"
#: install.php:26
msgid "Connection failed: %s\n"
""
msgstr "Conexão falhou: %s"
#: install.php:31
msgid "Please set valid url!"
msgstr "Insira uma url válida!"
#: install.php:98
msgid "Error while creating database. Please check permission for your account or MYSQL version.<br>Error: %s"
msgstr "Erro na criação da base de dados. Verifique suas permissões ou a versão do MYSQL.<br>Erro: %s"
#: install.php:154
msgid "Website details"
msgstr "Detalhes do site"
#: install.php:40 install.php:159
msgid "Url"
msgstr "Url"
#: install.php:166
msgid "Also an email address for mailer would be nice :)"
msgstr "Um endereço de email seria legal :)"
#: install.php:173
msgid "Database connection"
msgstr "Conexão à base de dados"
#: install.php:174
msgid "We need database connection to be able to create tables. Please check that your account has the permission needed to do that."
msgstr "Nós precisamos de uma conexão a base de dados para podermos criar tabelas. Verifique se sua conta tem as permissões nescessárias para isso"
#: install.php:177
msgid "Server"
msgstr "Servidor"
#: install.php:178
msgid "Database"
msgstr "Base de dados"
#: install.php:203
msgid "And finally, we need info to create a new user. You don't have to provide it, but then... No status page admin..."
msgstr "E finalmente, precisamos de informações para criar um novo usuário. Você não precisa fornecer, porém... Sem administrador da página de status =("
#: install.php:216
msgid "Run install!"
msgstr "Rodar instalação"
#: classes/user.php:127
msgid "Rank"
msgstr "Ranking"
#: classes/user.php:624
msgid "Hi %s!<br>Below you will find link to change your password. The link is valid for 24hrs. If you didn't request this, feel free to ignore it. <br><br><a href=\"%s\">RESET PASSWORD</a><br><br>If the link doesn't work, copy &amp; paste it into your browser: <br>%s"
msgstr "Olá %s!<br> Abaixo você encontrará o link para alterar sua senha. O link é válido por 24hrs. Se você não pediu isso, apenas ignore <br><br> <a href=\"%s\">RESETAR SENHA</a><br><br> se o link não funcionar, copie e cole no seu navegador: <br> %s\n"
""
#: classes/user.php:660
msgid "Hi %s!<br>Below you will find link to change your email. The link is valid for 24hrs. If you didn't request this, feel free to ignore it. <br><br><a href=\"%s\">CHANGE EMAIL</a><br><br>If the link doesn't work, copy &amp; paste it into your browser: <br>%s"
msgstr "Olá %s!<br> Abaixo você encontrará o link para alterar seu email. O link é válido por 24hrs. Se você não pediu isso, apenas ignore <br><br> <a href=\"%s\">MUDAR EMAIL</a><br><br> se o link não funcionar, copie e cole no seu navegador: <br> %s\n"
""
#: template.php:9
msgid "Editor"
msgstr "Editor"
#: install.php:36
msgid "Server name"
msgstr "Nome do servidor"
#: install.php:44
msgid "Mailer name"
msgstr "Nome do enviador de email"
#: install.php:52
msgid "Mailer email"
msgstr "Email do enviador de email"
#: install.php:56
msgid "Database server"
msgstr "Servidor da base de dados"
#: install.php:60
msgid "Database name"
msgstr "Nome da base de dados"
#: install.php:64
msgid "Database user"
msgstr "Usuário da base de dados"
#: install.php:69
msgid "Database password"
msgstr "Senha da base de dados"
#: template.php:147
msgid "Toggle Dropdown"
msgstr "Toggle Dropdown"
#: template.php:156
msgid "Help with translation!"
msgstr "Ajude a traduzir!"
#: classes/user.php:439
msgid "Deactivate user"
msgstr "Desativar usuário"
#: classes/user.php:441
msgid "Activate user"
msgstr "Ativar usuário"
#: install.php:73
msgid "Please enter"
msgstr "Por favor insira"
#: install.php:150
msgid "We will ask you some basic questions about your website. Most of the settings can be later edited in the config.php file."
msgstr "Vamos começar, responda um pouco sobre seu site, edite depois no config.php"
#: install.php:155
msgid "We need a name for your status page (shown behind page title after the dash) and a url of your server status installation (i.e. <a href='#'>https://example.com/status</a> - without the trailing slash), so we can mail users link for forgotten password etc..."
msgstr "Nós precisamos de um nome para sua página de status e um url para a instalação da página de status como: http://example.com/status, para então podermos enviar email para os usuários que esqueceram a senha etc..."
#: install.php:161
msgid "A title that you want to be shown on the top of the page."
msgstr "O Título que será mostrado no topo da página"
#: api/status.php:24
msgid "Service does not exist!"
msgstr "Serviço inexistente!"
#: classes/user.php:220
msgid "Please fill in your email and password!"
msgstr "Insira seu email e senha!"
#: classes/user.php:336
msgid "Change name"
msgstr "Mudar nome"
#: classes/user.php:356
msgid "Change username"
msgstr "Mudar nome de usuário"
#: classes/user.php:463
msgid "This username is already taken."
msgstr "Esse nome de usuário já existe!"
#: classes/user.php:470
msgid "Cannot change username of other users!"
msgstr "Impossível mudar o nome de usuário de outras pessoas!"
#: classes/user.php:504
msgid "Cannot change names of other users!"
msgstr "Impossível mudar o nome de outros usuários!"
#: classes/user.php:667
msgid "Confirmation email sent!"
msgstr "Email de confirmação enviado!"
#: install.php:186 policy.php:6
msgid "Privacy Policy"
msgstr "Politica de Privacidade"
#: install.php:190
msgid "Company name"
msgstr "Nome da Companhia"
#: install.php:191
msgid "Address"
msgstr "Endereço"
#: install.php:191
msgid "Full address"
msgstr "Endereço completo"
#: install.php:194
msgid "E-Mail"
msgstr "Email"
#: install.php:195
msgid "Phone"
msgstr "Telefone"
#: install.php:195
msgid "Phone number"
msgstr "Número de telefone"
#: install.php:198 policy.php:7
msgid "Who we are"
msgstr "Quem nós somos"
#: policy.php:9
msgid "Contact"
msgstr "Contato"
#: policy.php:17
msgid "What personal data we collect and why"
msgstr "Quais dados pessoais nos coletamos e por que?"
#: policy.php:19
msgid "If you access our websites, the following information will be saved: IP-address, Date, Time, Browser queries, \n"
"\tGeneral information about your browser, operating system and all search queries on the sites. \n"
"\tThis user data will be used for anonym user statistics to recognize trends and improve our content.\n"
"\t"
msgstr "Acessando nosso site, as seguintes informações salvas:\n"
"endereço de IP, Data, horario, Pesquisas, informações gerais sobre seu navegador, sistema operacional e todas as ações no site.\n"
"Esses dados de usuário serão salvos para estatísticas anônimas para otimizar e melhorar nossos sistemas."
#: policy.php:23
msgid "How we protect your data"
msgstr "Como nós protegemos seus dados"
#: policy.php:24
msgid "In collaboration with our hosting provider we try our best to protect our \n"
"\tdatabases against access from third parties, losses, misuse or forgery.\n"
"\t"
msgstr "Em colaboração com nosso provedor de host nós damos nosso melhor para proteger nossa base de dados contra acessos de terceiros, perdas ou mau uso"
#: policy.php:27
msgid "Third party that receive your personal data"
msgstr "Terceiros que recebem seus dados pessoais"
#: policy.php:29
msgid "Cookies"
msgstr "Cookies"
#: policy.php:30
msgid "This site uses cookies small text files that are placed on your machine to help the site provide a better user experience. \n"
"\tIn general, cookies are used to retain user preferences, store information for things like shopping carts, \n"
"\tand provide anonymised tracking data to third party applications like Google Analytics. \n"
"\tAs a rule, cookies will make your browsing experience better. However, you may prefer to disable cookies on this site and on others. \n"
"\tThe most effective way to do this is to disable cookies in your browser. We suggest consulting the Help section of your browser \n"
"\tor taking a look at the About Cookies website which offers guidance for all modern browsers"
msgstr "Esse site usa cookies - pequenos arquivos de texto que ficam em sua máquina para otimizar a sua experiência no site.\n"
"Os cookies em geral guardam informações para coisas como carrinhos de compras, e para enviar arquivos para aplicações como o Google Analytics.\n"
"Como regra, os cookies devem fazer sua navegação melhor.\n"
"Porém caso você queira, pode desabilitar os cookies neste site e nos outros.\n"
"A maneira mais efetiva de fazer isso, é desabilitar no seu navegador."
#: install.php:187
msgid "Since you are collecting personal information, the GDPR needs you to have a privacy policy. Enter the details below."
msgstr "Você coletando dados pessoais, a GDPR obriga você a ter uma politica de privacidade. Insira os dados abaixo"
#: install.php:198
msgid "Some info about yourself"
msgstr "Algumas informações sobre você"
#: policy.php:18
msgid "General"
msgstr "Geral"

BIN
locale/pt_BR/flag.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -0,0 +1,28 @@
(function (factory) {
if (typeof define === 'function' && define.amd) {
define(['jquery'], factory);
} else if (typeof module === 'object' && typeof module.exports === 'object') {
factory(require('jquery'));
} else {
factory(jQuery);
}
}(function (jQuery) {
// Brazilian Portuguese
jQuery.timeago.settings.strings = {
prefixAgo: "há",
prefixFromNow: "em",
suffixAgo: null,
suffixFromNow: null,
seconds: "alguns segundos",
minute: "um minuto",
minutes: "%d minutos",
hour: "uma hora",
hours: "%d horas",
day: "um dia",
days: "%d dias",
month: "um mês",
months: "%d meses",
year: "um ano",
years: "%d anos"
};
}));

Binary file not shown.

View File

@ -0,0 +1,694 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: POEditor.com\n"
"Project-Id-Version: Server status\n"
"Language: sk\n"
#: 404.php:12
msgid "Page Not Found"
msgstr "Stránka sa nenašla"
#: 404.php:13
msgid "Sorry, but the page you were trying to view does not exist."
msgstr "Ľutujeme, ale stránka, ktorú ste sa pokúšali zobraziť, neexistuje"
#: admin/dashboard.php:22 admin/dashboard.php:26 template.php:115
msgid "Dashboard"
msgstr "Nástenka"
#: admin/dashboard.php:27
msgid "Welcome"
msgstr "Vitajte"
#: admin/dashboard.php:39
msgid "New incident"
msgstr "Nová udalosť"
#: admin/dashboard.php:72 install.php:48 install.php:163
msgid "Title"
msgstr "Názov"
#: admin/dashboard.php:72
msgid "Time"
msgstr "Čas"
#: admin/dashboard.php:77
msgid "Here goes your text..."
msgstr "Sem napíšte svoj text ..."
#: admin/dashboard.php:80 classes/incident.php:183
msgid "Posted by"
msgstr "Zverejnil"
#: admin/dashboard.php:80 classes/incident.php:185
msgid "Ending"
msgstr "Končí"
#: admin/dashboard.php:80
msgid "End time"
msgstr "Čas ukončenia\n"
""
#: admin/dashboard.php:99 admin/new-user.php:53
msgid "Submit"
msgstr "Odoslať"
#: admin/login-form.php:2 admin/login-form.php:5 admin/login-form.php:27
msgid "Login"
msgstr "Prihlásiť sa"
#: admin/login-form.php:11
msgid "Please login to continue."
msgstr "Prosím prihláste sa pre pokračovanie."
#: admin/login-form.php:15 admin/login-form.php:16 admin/lost-password.php:46
#: admin/lost-password.php:48 admin/new-user.php:24 admin/settings.php:72
#: classes/user.php:120 classes/user.php:404 install.php:169 install.php:210
msgid "Email"
msgstr "Email"
#: admin/login-form.php:19 admin/login-form.php:20 admin/new-user.php:27
#: classes/user.php:123 classes/user.php:417 install.php:182 install.php:213
msgid "Password"
msgstr "Heslo"
#: admin/login-form.php:22
msgid "Forgotten password?"
msgstr "Zabudnuté heslo?"
#: admin/login-form.php:23
msgid "Remember me"
msgstr "Zpamätaj si ma"
#: admin/lost-password.php:2 admin/lost-password.php:5
msgid "Lost password"
msgstr "Stratené heslo"
#: admin/lost-password.php:16
msgid "Go back"
msgstr "Vráť sa"
#: admin/lost-password.php:20
msgid "Password changed successfully!"
msgstr "Heslo úspešne zmenené!"
#: admin/lost-password.php:21 admin/lost-password.php:35
msgid "Go back to login page"
msgstr "Vráťte sa na prihlasovaciu stránku"
#: admin/lost-password.php:30
msgid "Go back to start"
msgstr "Vráťte sa späť na začiatok"
#: admin/lost-password.php:34
msgid "Email with password reset link has been sent!"
msgstr "E-mail s odkazom na obnovenie hesla bol odoslaný!"
#: admin/lost-password.php:50
msgid "Submit request"
msgstr "Odoslať žiadosť"
#: admin/lost-password.php:57
msgid "Reset password for %s (%s)"
msgstr "Obnovenie hesla pre %s (%s)"
#: admin/lost-password.php:60 admin/lost-password.php:61 classes/user.php:421
#: classes/user.php:422
msgid "New password"
msgstr "Nové heslo"
#: admin/lost-password.php:62 admin/lost-password.php:63 classes/user.php:423
#: classes/user.php:424
msgid "Repeat password"
msgstr "Zopakujte heslo"
#: admin/lost-password.php:64 classes/user.php:425
msgid "Change password"
msgstr "Zmeniť heslo"
#: admin/new-user.php:7
msgid "New user"
msgstr "Nový užívateľ"
#: admin/new-user.php:19 admin/settings.php:39 admin/settings.php:72
#: classes/user.php:114 classes/user.php:322 classes/user.php:326
#: classes/user.php:327 classes/user.php:488 install.php:158 install.php:168
#: install.php:190 install.php:205
msgid "Name"
msgstr "Meno"
#: admin/new-user.php:20 admin/settings.php:72 classes/user.php:117
#: classes/user.php:323 classes/user.php:329 classes/user.php:330
#: classes/user.php:491 install.php:206
msgid "Surname"
msgstr "Priezvisko"
#: admin/new-user.php:23 admin/settings.php:72 classes/user.php:349
#: install.php:209
msgid "Username"
msgstr "Užívateľské meno"
#: admin/new-user.php:29
msgid "Permission"
msgstr "Oprávnenie\n"
""
#: admin/settings.php:12 template.php:117
msgid "Settings"
msgstr "Nastavenia"
#: admin/settings.php:23
msgid "Services"
msgstr "Služby"
#: admin/settings.php:29
msgid "Add service"
msgstr "Pridaj službu\n"
""
#: admin/settings.php:38 admin/settings.php:72
msgid "ID"
msgstr "ID"
#: admin/settings.php:42
msgid "Delete"
msgstr "Vymazať"
#: admin/settings.php:67
msgid "Users"
msgstr "Užívatelia"
#: admin/settings.php:68
msgid "Add new user"
msgstr "Pridať nového používateľa"
#: admin/settings.php:72 classes/user.php:372
msgid "Role"
msgstr "Rola"
#: admin/user.php:45 admin/user.php:54 install.php:181 install.php:202
msgid "User"
msgstr "Užívateľ"
#: admin/user.php:52
msgid "User settings"
msgstr "Používateľské nastavenia"
#: classes/constellation.php:36 template.php:4
msgid "Planned maintenance"
msgstr "Plánovaná údržba"
#: classes/constellation.php:42
msgid "Back"
msgstr "Späť"
#: classes/constellation.php:44
msgid "Past incidents"
msgstr "História udalostí"
#: classes/constellation.php:48
msgid "No incidents"
msgstr "Žiadne udalosti"
#: classes/constellation.php:61
msgid "Load more"
msgstr "Načítať viac"
#: classes/constellation.php:101
msgid "No services"
msgstr "Žiadne služby"
#: classes/incident.php:87
msgid "Please enter title"
msgstr "Prosím zadajte názov"
#: classes/incident.php:90
msgid "Title too long! Character limit is 50"
msgstr "Nadpis je príliš dlhý! Maximálny počet znakov je 50"
#: classes/incident.php:96
msgid "Please enter text"
msgstr "Prosím zadajte text"
#: classes/incident.php:102
msgid "Please set start and end time! Use ISO 8601 format."
msgstr "Prosím nastavte čas začiatku a konca! Použite formát ISO 8601."
#: classes/incident.php:107
msgid "Please select at least one service"
msgstr "Prosím vyberte aspoň jednu službu"
#: classes/incident.php:127
msgid "Start date format is not recognized. Please use ISO 8601 format."
msgstr "Formát dátumu začiatku sa nedá rozpoznať. Prosím použite formát ISO 8601"
#: classes/incident.php:133
msgid "End date format is not recognized. Please use ISO 8601 format."
msgstr "Formát dátumu ukončenia sa nedá rozpoznať. Prosím použite formát ISO 8601"
#: classes/incident.php:185
msgid "Ended"
msgstr "Ukončený"
#: classes/service.php:63
msgid "Service name is too long! Character limit is 50"
msgstr "Názov služby je príliš dlhý! Maximálny počet znakov je 50"
#: classes/service.php:66
msgid "Please enter name!"
msgstr "Prosím zadajte meno!"
#: classes/service.php:81 classes/service.php:123 classes/user.php:97
#: classes/user.php:199
msgid "You don't have the permission to do that!"
msgstr "Nemáte na to povolenie!"
#: classes/user.php:164
msgid "Please mind the following character limits: "
msgstr "Nezabudnite prosím na limity týchto znakov:␣"
#: classes/user.php:185
msgid "User account created"
msgstr "Užívateľský účet bol vytvorený"
#: classes/user.php:186
msgid "Hi %s!<br>Your account has been created. You can login with your email address at <a href=\"%s\">%s</a> with password %s - please change it as soon as possible."
msgstr "Ahoj %s!<br> Váš účet bol vytvorený. Môžete sa prihlásiť pomocou svojej e-mailovej adresy na adrese <a href=\"%s\">%s</a> s heslom %s - prosím, zmeňte ho čo najskôr."
#: classes/user.php:180
msgid "Username or email already used"
msgstr "Používateľské meno alebo e-mail sa už používa"
#: classes/user.php:244
msgid "Your account has been disabled. Please contact administrator."
msgstr "Váš účet bol zablokovaný. Kontaktujte správcu."
#: classes/user.php:233 classes/user.php:256
msgid "Wrong email or password"
msgstr "Nesprávny e-mail alebo heslo."
#: classes/user.php:299
msgid "Invalid token detected, please login again!"
msgstr "Neplatný token, prihláste sa prosím znovu!"
#: classes/user.php:314
msgid "Profile picture"
msgstr "Profilový obrázok"
#: classes/user.php:379
msgid "Change role"
msgstr "Zmena role"
#: classes/user.php:394
msgid "Change email"
msgstr "Zmeniť e-mail"
#: classes/user.php:419 classes/user.php:420
msgid "Old password"
msgstr "Staré heslo"
#: classes/user.php:526
msgid "Passwords do not match!"
msgstr "Heslá sa nezhodujú!"
#: classes/user.php:534
msgid "Cannot change password of other users!"
msgstr "Nemôžete zmeniť heslo iných používateľov!"
#: classes/user.php:567
msgid "Wrong password!"
msgstr "Zlé heslo!"
#: classes/user.php:595 classes/user.php:695
msgid "Invalid token detected, please retry your request from start!"
msgstr "Zistil sa neplatný token, zopakujte svoju požiadavku od začiatku!"
#: classes/user.php:623
msgid "Reset password"
msgstr "Obnoviť heslo"
#: classes/user.php:659
msgid "Email change"
msgstr "Zmena e-mailu"
#: classes/incident.php:54 classes/user.php:736
msgid "You don't have permission to do that!"
msgstr "Nemáte k tomu oprávnenie!"
#: template.php:4
msgid "Major outage"
msgstr "Veľký výpadok"
#: template.php:4
msgid "Minor outage"
msgstr "Menší výpadok"
#: template.php:4
msgid "Operational"
msgstr "Funkčný\n"
""
#: template.php:7
msgid "Some systems are experiencing major outages"
msgstr "Niektoré systémy majú závažné výpadky"
#: template.php:7
msgid "Some systems are experiencing minor outages"
msgstr "Niektoré systémy majú menšie výpadky"
#: template.php:7
msgid "Some systems are under maintenance"
msgstr "Niektoré systémy sú v údržbe"
#: template.php:8
msgid "Our systems are experiencing major outages."
msgstr "Naše systémy majú závažné výpadky."
#: template.php:8
msgid "Our systems are experiencing minor outages"
msgstr "Naše systémy majú menšie výpadky"
#: template.php:8
msgid "Our systems are under maintenance"
msgstr "Naše systémy sú v údržbe"
#: template.php:8
msgid "All systems operational"
msgstr "Všetky systémy sú funkčné\n"
""
#: template.php:9
msgid "Super admin"
msgstr "Super admin"
#: template.php:9
msgid "Admin"
msgstr "Admin"
#: template.php:53
msgid "Service Status"
msgstr "Stav služieb"
#: template.php:106
msgid "Toggle navigation"
msgstr "Prepnúť navigáciu"
#: template.php:116
msgid "User (%s)"
msgstr "Používateľ (%s)"
#: template.php:118
msgid "Logout"
msgstr "Odhlásiť sa"
#: index.php:27
msgid "Current status"
msgstr "Momentálna situácia"
#: install.php:4
msgid "Status page"
msgstr "Stavová stránka"
#: install.php:139
msgid "Install"
msgstr "Inštalovať"
#: install.php:141
msgid "Installation"
msgstr "Inštalácia"
#: install.php:26
msgid "Connection failed: %s\n"
""
msgstr "Spojenie zlyhalo: %s"
#: install.php:31
msgid "Please set valid url!"
msgstr "Prosím zadajte platnú adresu url!"
#: install.php:98
msgid "Error while creating database. Please check permission for your account or MYSQL version.<br>Error: %s"
msgstr "Chyba pri vytváraní databázy. Skontrolujte povolenie pre svoj účet alebo verziu MYSQL.<br>Chyba: %s"
#: install.php:154
msgid "Website details"
msgstr "Podrobnosti o webe"
#: install.php:40 install.php:159
msgid "Url"
msgstr "Url"
#: install.php:166
msgid "Also an email address for mailer would be nice :)"
msgstr "Tiež emailová adresa pre mailovací skript by bodla :)"
#: install.php:173
msgid "Database connection"
msgstr "Pripojenie k databáze"
#: install.php:174
msgid "We need database connection to be able to create tables. Please check that your account has the permission needed to do that."
msgstr "Potrebujeme aby databázové spojenie mohlo vytvárať tabuľky. Prosím skontrolujte že k tomu máte oprávnenie."
#: install.php:177
msgid "Server"
msgstr "Server"
#: install.php:178
msgid "Database"
msgstr "Databáza"
#: install.php:203
msgid "And finally, we need info to create a new user. You don't have to provide it, but then... No status page admin..."
msgstr "A nakoniec potrebujeme info pre vytvorenie užívateľov. Nemusíte nám ho dať, ale ako potom vleziete do administrácie?"
#: install.php:216
msgid "Run install!"
msgstr "Spustiť inštaláciu!"
#: classes/user.php:127
msgid "Rank"
msgstr "Hodnosť"
#: classes/user.php:624
msgid "Hi %s!<br>Below you will find link to change your password. The link is valid for 24hrs. If you didn't request this, feel free to ignore it. <br><br><a href=\"%s\">RESET PASSWORD</a><br><br>If the link doesn't work, copy &amp; paste it into your browser: <br>%s"
msgstr "Zdravíme, %s!<br>Nižšie nájdete odkaz na zmenu hesla. Odkaz je platný 24 hodín. Ak ste o resetovanie hesla nepožiadali, správu môžete ignorovať. <br><br><a href=\"%s\">ZRESETOVAT HESLO</a><br><br>Ak odkaz nefunguje, skopírujte ho do svojho prehliadača: <br>%s"
#: classes/user.php:660
msgid "Hi %s!<br>Below you will find link to change your email. The link is valid for 24hrs. If you didn't request this, feel free to ignore it. <br><br><a href=\"%s\">CHANGE EMAIL</a><br><br>If the link doesn't work, copy &amp; paste it into your browser: <br>%s"
msgstr "Zdravíme, %s!<br>Nižšie nájdete odkaz pre zmenu emailu. Odkaz je platný 24 hodín. Ak ste o resetovanie hesla nepožiadali, správu môžete ignorovať. <br><br><a href=\"%s\">ZRESETOVAT HESLO</a><br><br>Ak odkaz nefunguje, skopírujte ho do svojho prehliadača: <br>%s"
#: template.php:9
msgid "Editor"
msgstr "Editor"
#: install.php:36
msgid "Server name"
msgstr "Názov servera"
#: install.php:44
msgid "Mailer name"
msgstr "Meno mailra"
#: install.php:52
msgid "Mailer email"
msgstr "Email mailra"
#: install.php:56
msgid "Database server"
msgstr "Databázový server"
#: install.php:60
msgid "Database name"
msgstr "Názov databázy"
#: install.php:64
msgid "Database user"
msgstr "Používateľ databázy"
#: install.php:69
msgid "Database password"
msgstr "Heslo databázy"
#: template.php:147
msgid "Toggle Dropdown"
msgstr "Prepínanie rozbaľovacieho okna"
#: template.php:156
msgid "Help with translation!"
msgstr "Pomoc s prekladom!"
#: classes/user.php:439
msgid "Deactivate user"
msgstr "Deaktivovať používateľa"
#: classes/user.php:441
msgid "Activate user"
msgstr "Aktivovať používateľa"
#: install.php:73
msgid "Please enter"
msgstr "Prosím vložte"
#: install.php:150
msgid "We will ask you some basic questions about your website. Most of the settings can be later edited in the config.php file."
msgstr "Budeme sa vás pýtať na pár základných otázok o vašom webe. Väčšinu nastavení možno potom zmeniť v súbore config.php"
#: install.php:155
msgid "We need a name for your status page (shown behind page title after the dash) and a url of your server status installation (i.e. <a href='#'>https://example.com/status</a> - without the trailing slash), so we can mail users link for forgotten password etc..."
msgstr "Potrebujeme názov pre vašu status stránku (zobrazený za pomlčkou) a odkaz na umiestnenie webu (napr. <a href='#'>https://example.com/status</a> - bez lomítka na konci), aby sme mohli používateľom poslať odkaz pre obnovenie hesla atď."
#: install.php:161
msgid "A title that you want to be shown on the top of the page."
msgstr "Názov ktorý chcete mať zobrazený na vrchu stránky."
#: api/status.php:24
#, fuzzy
msgid "Service does not exist!"
msgstr "Služba neexistuje!"
#: classes/user.php:220
#, fuzzy
msgid "Please fill in your email and password!"
msgstr "Vyplňte prosím email a heslo!"
#: classes/user.php:336
#, fuzzy
msgid "Change name"
msgstr "Zmeniť meno"
#: classes/user.php:356
#, fuzzy
msgid "Change username"
msgstr "Zmeniť prezývku"
#: classes/user.php:463
#, fuzzy
msgid "This username is already taken."
msgstr "Táto prezývka je už používaná."
#: classes/user.php:470
#, fuzzy
msgid "Cannot change username of other users!"
msgstr "Nemôžete meniť prezývky ostatných!"
#: classes/user.php:504
#, fuzzy
msgid "Cannot change names of other users!"
msgstr "Nemôžete meniť mená ostatných!"
#: classes/user.php:667
#, fuzzy
msgid "Confirmation email sent!"
msgstr "Potvrdzovací email bol odoslaný!"
#: install.php:186 policy.php:6
#, fuzzy
msgid "Privacy Policy"
msgstr "Ochrana súkromia"
#: install.php:190
#, fuzzy
msgid "Company name"
msgstr "Názov spoločnosti"
#: install.php:191
#, fuzzy
msgid "Address"
msgstr "Adresa"
#: install.php:191
#, fuzzy
msgid "Full address"
msgstr "Celá adresa"
#: install.php:194
#, fuzzy
msgid "E-Mail"
msgstr "E-Mail"
#: install.php:195
#, fuzzy
msgid "Phone"
msgstr "Telefón"
#: install.php:195
#, fuzzy
msgid "Phone number"
msgstr "Telefónne číslo"
#: install.php:198 policy.php:7
#, fuzzy
msgid "Who we are"
msgstr "Kto sme"
#: policy.php:9
#, fuzzy
msgid "Contact"
msgstr "Kontakt"
#: policy.php:17
#, fuzzy
msgid "What personal data we collect and why"
msgstr "Aké dáta zbierame a prečo"
#: policy.php:19
#, fuzzy
msgid "If you access our websites, the following information will be saved: IP-address, Date, Time, Browser queries, \n"
"\tGeneral information about your browser, operating system and all search queries on the sites. \n"
"\tThis user data will be used for anonym user statistics to recognize trends and improve our content.\n"
"\t"
msgstr "Pri prístupe na náš web bude uložené nasledujúce: IP adresa, dátum, čas, otázka, všeobecné informácie o Vašom prehliadači, operačný systém a vaše vyhľadávanie. Tieto užívateľské dáta sú využité pre anonymné používateľské štatistiky pre rozoznanie trendov a zlepšenie obsahu."
#: policy.php:23
#, fuzzy
msgid "How we protect your data"
msgstr "Ako chránime vaše dáta"
#: policy.php:24
#, fuzzy
msgid "In collaboration with our hosting provider we try our best to protect our \n"
"\tdatabases against access from third parties, losses, misuse or forgery.\n"
"\t"
msgstr "Spolu s naším poskytovateľom hostingu sa snažíme, aby naše databázy boli čo najlepšie zabezpečené proti neoprávnenému prístupu tretích strán, strát, zneužitia alebo falšovania."
#: policy.php:27
#, fuzzy
msgid "Third party that receive your personal data"
msgstr "Tretie strany, ktorým poskytujeme vaše dáta"
#: policy.php:29
#, fuzzy
msgid "Cookies"
msgstr "Cookies"
#: policy.php:30
#, fuzzy
msgid "This site uses cookies small text files that are placed on your machine to help the site provide a better user experience. \n"
"\tIn general, cookies are used to retain user preferences, store information for things like shopping carts, \n"
"\tand provide anonymised tracking data to third party applications like Google Analytics. \n"
"\tAs a rule, cookies will make your browsing experience better. However, you may prefer to disable cookies on this site and on others. \n"
"\tThe most effective way to do this is to disable cookies in your browser. We suggest consulting the Help section of your browser \n"
"\tor taking a look at the About Cookies website which offers guidance for all modern browsers"
msgstr "Tieto stránky používajú súbory cookie - malé textové súbory, ktoré sú umiestnené na vašom počítači a pomáhajú nám tak poskytovať lepšie užívateľské prostredie.\n"
"Všeobecne platí, že súbory cookie slúžia na uchovanie užívateľských nastavení, ukladanie informácií o veciach, ako sú nákupné vozíky,\n"
"a poskytujú anonymné dáta pre sledovacie aplikácie tretích strán, ako je Google Analytics.\n"
"Súbory cookie spravidla zlepšujú funkcionalitu stránok. Môžete však uprednostňovať vypnutie súborov cookie na tejto i ostattních stránkach.\n"
"Najúčinnejší spôsob, ako to urobiť, je zakázať cookies vo vašom prehliadači. Navrhujeme využiť vstavanú sekciu Pomocník v prehliadači\n"
"alebo sa pozrieť na webovú stránku \"About Cookies\", ktorá ponúka pokyny pre všetky moderné prehliadače"
#: install.php:187
msgid "Since you are collecting personal information, the GDPR needs you to have a privacy policy. Enter the details below."
msgstr "Keďže zhromažďujete osobné údaje, GDPR vyžaduje, aby ste mali zásady ochrany osobných údajov. Zadajte podrobnosti nižšie."
#: install.php:198
msgid "Some info about yourself"
msgstr "Niektoré informácie o sebe"
#: policy.php:18
msgid "General"
msgstr "Všeobecný"

BIN
locale/sk_SK/flag.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

View File

@ -0,0 +1,34 @@
(function (factory) {
if (typeof define === 'function' && define.amd) {
define(['jquery'], factory);
} else if (typeof module === 'object' && typeof module.exports === 'object') {
factory(require('jquery'));
} else {
factory(jQuery);
}
}(function (jQuery) {
// Slovak
(function() {
function f(n, d, a) {
return a[d>=0 ? 0 : a.length===2 || n<5 ? 1 : 2];
}
jQuery.timeago.settings.strings = {
prefixAgo: 'pred',
prefixFromNow: 'o',
suffixAgo: null,
suffixFromNow: null,
seconds: function(n, d) {return f(n, d, ['menej ako minútou', 'menej ako minútu']);},
minute: function(n, d) {return f(n, d, ['minútou', 'minútu']);},
minutes: function(n, d) {return f(n, d, ['%d minútami', '%d minúty', '%d minút']);},
hour: function(n, d) {return f(n, d, ['hodinou', 'hodinu']);},
hours: function(n, d) {return f(n, d, ['%d hodinami', '%d hodiny', '%d hodín']);},
day: function(n, d) {return f(n, d, ['%d dňom', '%d deň']);},
days: function(n, d) {return f(n, d, ['%d dňami', '%d dni', '%d dní']);},
month: function(n, d) {return f(n, d, ['%d mesiacom', '%d mesiac']);},
months: function(n, d) {return f(n, d, ['%d mesiacmi', '%d mesiace', '%d mesiacov']);},
year: function(n, d) {return f(n, d, ['%d rokom', '%d rok']);},
years: function(n, d) {return f(n, d, ['%d rokmi', '%d roky', '%d rokov']);}
};
})();
}));

Binary file not shown.

View File

@ -0,0 +1,660 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: POEditor.com\n"
"Project-Id-Version: Server status\n"
"Language: sr\n"
#: 404.php:12
msgid "Page Not Found"
msgstr "Stranica nije pronađena"
#: 404.php:13
msgid "Sorry, but the page you were trying to view does not exist."
msgstr "Izvinjavamo se, ali stranica kojoj ste želeli da pristupite ne postoji."
#: admin/dashboard.php:22 admin/dashboard.php:26 template.php:115
msgid "Dashboard"
msgstr "Kontrolna ploča"
#: admin/dashboard.php:27
msgid "Welcome"
msgstr "Dobro došli"
#: admin/dashboard.php:39
msgid "New incident"
msgstr "Nova nezgoda"
#: admin/dashboard.php:72 install.php:48 install.php:163
msgid "Title"
msgstr "Naslov"
#: admin/dashboard.php:72
msgid "Time"
msgstr "Vreme"
#: admin/dashboard.php:77
msgid "Here goes your text..."
msgstr "Ovde se nalazi vaš tekst"
#: admin/dashboard.php:80 classes/incident.php:183
msgid "Posted by"
msgstr "Postavljeno od strane"
#: admin/dashboard.php:80 classes/incident.php:185
msgid "Ending"
msgstr "Završetak"
#: admin/dashboard.php:80
msgid "End time"
msgstr "Završno vreme"
#: admin/dashboard.php:99 admin/new-user.php:53
msgid "Submit"
msgstr "Postavi"
#: admin/login-form.php:2 admin/login-form.php:5 admin/login-form.php:27
msgid "Login"
msgstr "Prijava"
#: admin/login-form.php:11
msgid "Please login to continue."
msgstr "Molimo prijavite se kako bi nastavili"
#: admin/login-form.php:15 admin/login-form.php:16 admin/lost-password.php:46
#: admin/lost-password.php:48 admin/new-user.php:24 admin/settings.php:72
#: classes/user.php:120 classes/user.php:404 install.php:169 install.php:210
msgid "Email"
msgstr "Email"
#: admin/login-form.php:19 admin/login-form.php:20 admin/new-user.php:27
#: classes/user.php:123 classes/user.php:417 install.php:182 install.php:213
msgid "Password"
msgstr "Šifra"
#: admin/login-form.php:22
msgid "Forgotten password?"
msgstr "Zaboravljena šifra ?"
#: admin/login-form.php:23
msgid "Remember me"
msgstr "Zapamti lozinku"
#: admin/lost-password.php:2 admin/lost-password.php:5
msgid "Lost password"
msgstr "Zaboravljena šifra"
#: admin/lost-password.php:16
msgid "Go back"
msgstr "Vrati nazad"
#: admin/lost-password.php:20
msgid "Password changed successfully!"
msgstr "Šifra je uspešno promenjena!"
#: admin/lost-password.php:21 admin/lost-password.php:35
msgid "Go back to login page"
msgstr "Vrati se nazad na stranicu za prijavu"
#: admin/lost-password.php:30
msgid "Go back to start"
msgstr "Vrati se na početak"
#: admin/lost-password.php:34
msgid "Email with password reset link has been sent!"
msgstr "Email sa šifrom za resetovanje je poslan"
#: admin/lost-password.php:50
msgid "Submit request"
msgstr "Pošaljite zahtev"
#: admin/lost-password.php:57
msgid "Reset password for %s (%s)"
msgstr "Resetuj šifru %s (%s)"
#: admin/lost-password.php:60 admin/lost-password.php:61 classes/user.php:421
#: classes/user.php:422
msgid "New password"
msgstr "Nova šifra"
#: admin/lost-password.php:62 admin/lost-password.php:63 classes/user.php:423
#: classes/user.php:424
msgid "Repeat password"
msgstr "Ponovite šifru"
#: admin/lost-password.php:64 classes/user.php:425
msgid "Change password"
msgstr "Promenite šifru"
#: admin/new-user.php:7
msgid "New user"
msgstr "Novi korisnik"
#: admin/new-user.php:19 admin/settings.php:39 admin/settings.php:72
#: classes/user.php:114 classes/user.php:322 classes/user.php:326
#: classes/user.php:327 classes/user.php:488 install.php:158 install.php:168
#: install.php:190 install.php:205
msgid "Name"
msgstr "Ime"
#: admin/new-user.php:20 admin/settings.php:72 classes/user.php:117
#: classes/user.php:323 classes/user.php:329 classes/user.php:330
#: classes/user.php:491 install.php:206
msgid "Surname"
msgstr "Prezime"
#: admin/new-user.php:23 admin/settings.php:72 classes/user.php:349
#: install.php:209
msgid "Username"
msgstr "Korisničko ime"
#: admin/new-user.php:29
msgid "Permission"
msgstr "Permisija"
#: admin/settings.php:12 template.php:117
msgid "Settings"
msgstr "Podešavanja"
#: admin/settings.php:23
msgid "Services"
msgstr "Usluge"
#: admin/settings.php:29
msgid "Add service"
msgstr "Dodaj usluge"
#: admin/settings.php:38 admin/settings.php:72
msgid "ID"
msgstr "ID"
#: admin/settings.php:42
msgid "Delete"
msgstr "Izbriši"
#: admin/settings.php:67
msgid "Users"
msgstr "Корисници"
#: admin/settings.php:68
msgid "Add new user"
msgstr "Dodaj novog korisnika"
#: admin/settings.php:72 classes/user.php:372
msgid "Role"
msgstr "Hijerarhija"
#: admin/user.php:45 admin/user.php:54 install.php:181 install.php:202
msgid "User"
msgstr "Korisnik"
#: admin/user.php:52
msgid "User settings"
msgstr "Korisnička podešavanja"
#: classes/constellation.php:36 template.php:4
msgid "Planned maintenance"
msgstr "Planirano održavanje"
#: classes/constellation.php:42
msgid "Back"
msgstr "Nazad"
#: classes/constellation.php:44
msgid "Past incidents"
msgstr "Prošli incidenti"
#: classes/constellation.php:48
msgid "No incidents"
msgstr "Nema incidenata"
#: classes/constellation.php:61
msgid "Load more"
msgstr "Učitaj više"
#: classes/constellation.php:101
msgid "No services"
msgstr "Nema usluga"
#: classes/incident.php:87
msgid "Please enter title"
msgstr "Molimo unesite naslov"
#: classes/incident.php:90
msgid "Title too long! Character limit is 50"
msgstr "Naslov je previše dugačak! Limit karaktera je 50"
#: classes/incident.php:96
msgid "Please enter text"
msgstr "Molimo unesite tekst"
#: classes/incident.php:102
msgid "Please set start and end time! Use ISO 8601 format."
msgstr "Molimo podesite početno i završno vreme! Koristite ISO 8601 format"
#: classes/incident.php:107
msgid "Please select at least one service"
msgstr "Molimo izaberite najmanje jednu uslugu"
#: classes/incident.php:127
msgid "Start date format is not recognized. Please use ISO 8601 format."
msgstr "Format početnog vremena nije prepoznat. Molimo koristite ISO 8604 format."
#: classes/incident.php:133
msgid "End date format is not recognized. Please use ISO 8601 format."
msgstr "Format završnog vremena nije prepoznat. Molimo koristite ISO 8604 format."
#: classes/incident.php:185
msgid "Ended"
msgstr "Završeno"
#: classes/service.php:63
msgid "Service name is too long! Character limit is 50"
msgstr "Име услуге је предуго! Граница карактера је 50"
#: classes/service.php:66
msgid "Please enter name!"
msgstr "Molimo unesite ime!"
#: classes/service.php:81 classes/service.php:123 classes/user.php:97
#: classes/user.php:199
msgid "You don't have the permission to do that!"
msgstr "Nemate dozvolu da obavite tu radnju!"
#: classes/user.php:164
msgid "Please mind the following character limits: "
msgstr "Molimo obratite pažnju na limit karaktera:"
#: classes/user.php:185
msgid "User account created"
msgstr "Korisnički nalog je kreiran"
#: classes/user.php:186
msgid "Hi %s!<br>Your account has been created. You can login with your email address at <a href=\"%s\">%s</a> with password %s - please change it as soon as possible."
msgstr "Pozdrav %s!<br>Vaš nalog je kreiran. Možete se prijaviti sa vašom email adresom na <a href=\"%s\">%s</a>sa šifrom %s - molimo da je promenite što je pre moguće."
#: classes/user.php:180
msgid "Username or email already used"
msgstr "Korisničko ime ili email je već u upotrebi"
#: classes/user.php:244
msgid "Your account has been disabled. Please contact administrator."
msgstr "Vaš nalog je blokiran. Molimo kontaktirajte administratora"
#: classes/user.php:233 classes/user.php:256
msgid "Wrong email or password"
msgstr "Email ili šifra su pogrešni"
#: classes/user.php:299
msgid "Invalid token detected, please login again!"
msgstr "Detektovan je pogrešan token, molimo prijavite se ponovo!"
#: classes/user.php:314
msgid "Profile picture"
msgstr "Profilna slika"
#: classes/user.php:379
msgid "Change role"
msgstr "Promenite hijerahiju"
#: classes/user.php:394
msgid "Change email"
msgstr "Promenite email"
#: classes/user.php:419 classes/user.php:420
msgid "Old password"
msgstr "Stara šifra"
#: classes/user.php:526
msgid "Passwords do not match!"
msgstr "Šifre se ne poklapaju"
#: classes/user.php:534
msgid "Cannot change password of other users!"
msgstr "Ne možete menjati šifre drugih korisnika"
#: classes/user.php:567
msgid "Wrong password!"
msgstr "Pogrešna šifra!"
#: classes/user.php:595 classes/user.php:695
msgid "Invalid token detected, please retry your request from start!"
msgstr "Detektovan je pogrešan token, molimo pokrenite vaš zahtev do početka!"
#: classes/user.php:623
msgid "Reset password"
msgstr "Resetuj šifru"
#: classes/user.php:659
msgid "Email change"
msgstr "Promena email adrese"
#: classes/incident.php:54 classes/user.php:736
msgid "You don't have permission to do that!"
msgstr "Nemate dozvolu da obavite tu radnju!"
#: template.php:4
msgid "Major outage"
msgstr "Važna zastara"
#: template.php:4
msgid "Minor outage"
msgstr "Nebitna zastara"
#: template.php:4
msgid "Operational"
msgstr "Operativni"
#: template.php:7
msgid "Some systems are experiencing major outages"
msgstr "Neki sistemi iskušavaju velike zastare"
#: template.php:7
msgid "Some systems are experiencing minor outages"
msgstr "Neki sistemi iskušavaju nebitne zastare"
#: template.php:7
msgid "Some systems are under maintenance"
msgstr "Neki sistemi su pod održavanjem"
#: template.php:8
msgid "Our systems are experiencing major outages."
msgstr "Naši sistemi iskušavaju velike zastare"
#: template.php:8
msgid "Our systems are experiencing minor outages"
msgstr "Naši sistemi iskušavaju nebitne zastare"
#: template.php:8
msgid "Our systems are under maintenance"
msgstr " Naši sistemi su pod održavanjem"
#: template.php:8
msgid "All systems operational"
msgstr "Svi sistemi funkionišu"
#: template.php:9
msgid "Super admin"
msgstr "Super admin"
#: template.php:9
msgid "Admin"
msgstr "Admin"
#: template.php:53
msgid "Service Status"
msgstr "Status usluga"
#: template.php:106
msgid "Toggle navigation"
msgstr "Uključi navigaciju"
#: template.php:116
msgid "User (%s)"
msgstr "Korisnik (%s)"
#: template.php:118
msgid "Logout"
msgstr "Odjavite se"
#: index.php:27
msgid "Current status"
msgstr "Trenutni status"
#: install.php:4
msgid "Status page"
msgstr "Status stranice"
#: install.php:139
msgid "Install"
msgstr "Instaliraj"
#: install.php:141
msgid "Installation"
msgstr "Instalacija"
#: install.php:26
msgid "Connection failed: %s\n"
""
msgstr "Konekcija neuspešna: %s"
#: install.php:31
msgid "Please set valid url!"
msgstr "Molimo podesite validan url!"
#: install.php:98
msgid "Error while creating database. Please check permission for your account or MYSQL version.<br>Error: %s"
msgstr "Greška tokom kreiranja databaze. Molimo proverite dozvole vašeg naloga ili MYSQL verzije. <br>Greška: %s"
#: install.php:154
msgid "Website details"
msgstr "Detalji veb stranice"
#: install.php:40 install.php:159
msgid "Url"
msgstr "Url"
#: install.php:166
msgid "Also an email address for mailer would be nice :)"
msgstr "Email adresa za pošiljaoca bi bila odlična :)"
#: install.php:173
msgid "Database connection"
msgstr "Konekcija databaze"
#: install.php:174
msgid "We need database connection to be able to create tables. Please check that your account has the permission needed to do that."
msgstr "Potrebna nam je konekcija ka databazi kako bi mogli da kreiramo tabele. Molimo proverite da li vaš nalog ima dozvolu za obavljane takve radnje."
#: install.php:177
msgid "Server"
msgstr "Server"
#: install.php:178
msgid "Database"
msgstr "Databaza"
#: install.php:203
msgid "And finally, we need info to create a new user. You don't have to provide it, but then... No status page admin..."
msgstr "I konačno, potrebne su nam informacije kako bi kreirali novi korisnički nalog. Ne morate nam ih dali, ali onda...Nema statusa o stranici za admine."
#: install.php:216
msgid "Run install!"
msgstr "Pokrenite instalaciju!"
#: classes/user.php:127
msgid "Rank"
msgstr "Rank"
#: classes/user.php:624
msgid "Hi %s!<br>Below you will find link to change your password. The link is valid for 24hrs. If you didn't request this, feel free to ignore it. <br><br><a href=\"%s\">RESET PASSWORD</a><br><br>If the link doesn't work, copy &amp; paste it into your browser: <br>%s"
msgstr "Pozdrav %s!<br> Ispod možeš naći link kako bi promenio svoju šifru. Ovaj link je dostupan narednih 24 sata. Ako niste ovo zahtevali, molimo ignorišite poruku. <br><br><a href=\"%s\">RESET PASSWORD</a><br><br>Ako link nije u funkciji, kopirajte &amp; prelepite u vaš pretraživač: <br>%s"
#: classes/user.php:660
msgid "Hi %s!<br>Below you will find link to change your email. The link is valid for 24hrs. If you didn't request this, feel free to ignore it. <br><br><a href=\"%s\">CHANGE EMAIL</a><br><br>If the link doesn't work, copy &amp; paste it into your browser: <br>%s"
msgstr "Pozdrav %s!<br> Ispod možeš naći link kako bi promenio svoj emaI. Ovaj link je dostupan narednih 24 sata. Ako niste ovo zahtevali, molimo ignorišite poruku. <br><br><a href=\"%s\">RESET EMAIL</a><br><br>Ako link nije u funkciji, kopirajte &amp; prelepite u vaš pretraživač: <br>%s"
#: template.php:9
msgid "Editor"
msgstr "Editor"
#: install.php:36
msgid "Server name"
msgstr "Ime servera"
#: install.php:44
msgid "Mailer name"
msgstr "Ime pošiljaoca"
#: install.php:52
msgid "Mailer email"
msgstr "Email pošiljaoca"
#: install.php:56
msgid "Database server"
msgstr "Server databaze"
#: install.php:60
msgid "Database name"
msgstr "Ime databaze"
#: install.php:64
msgid "Database user"
msgstr "Korisnik databaze"
#: install.php:69
msgid "Database password"
msgstr "Šifra databaze"
#: template.php:147
msgid "Toggle Dropdown"
msgstr "Uključite padajuću listu"
#: template.php:156
msgid "Help with translation!"
msgstr "Pomoć pri prevođenju!"
#: classes/user.php:439
msgid "Deactivate user"
msgstr "Deaktivirajte korisnika"
#: classes/user.php:441
msgid "Activate user"
msgstr "Aktivirajte korisnika"
#: install.php:73
msgid "Please enter"
msgstr "Molimo unesite"
#: install.php:150
msgid "We will ask you some basic questions about your website. Most of the settings can be later edited in the config.php file."
msgstr "Pitaćemo vas neka osnovna pitanja u vezi vašeg sajta. Većina podešavanje može biti kasnije promenjenja u fajlu pod nazivom config.php"
#: install.php:155
msgid "We need a name for your status page (shown behind page title after the dash) and a url of your server status installation (i.e. <a href='#'>https://example.com/status</a> - without the trailing slash), so we can mail users link for forgotten password etc..."
msgstr "Potrebno nam je ime vaše statusne stranice (pokazano je izma naslova posle daske) i url vašeg statusa instalacije servera(i.e. <a href=\"#\">https://example.com/status</a> - without the trailing slash), tako da bi smo mogli da kontaktiramo korisnike koji su zaboravili šifru"
#: install.php:161
msgid "A title that you want to be shown on the top of the page."
msgstr ""
#: api/status.php:24
msgid "Service does not exist!"
msgstr ""
#: classes/user.php:220
msgid "Please fill in your email and password!"
msgstr ""
#: classes/user.php:336
msgid "Change name"
msgstr ""
#: classes/user.php:356
msgid "Change username"
msgstr ""
#: classes/user.php:463
msgid "This username is already taken."
msgstr ""
#: classes/user.php:470
msgid "Cannot change username of other users!"
msgstr ""
#: classes/user.php:504
msgid "Cannot change names of other users!"
msgstr ""
#: classes/user.php:667
msgid "Confirmation email sent!"
msgstr ""
#: install.php:186 policy.php:6
msgid "Privacy Policy"
msgstr ""
#: install.php:190
msgid "Company name"
msgstr ""
#: install.php:191
msgid "Address"
msgstr ""
#: install.php:191
msgid "Full address"
msgstr ""
#: install.php:194
msgid "E-Mail"
msgstr ""
#: install.php:195
msgid "Phone"
msgstr ""
#: install.php:195
msgid "Phone number"
msgstr ""
#: install.php:198 policy.php:7
msgid "Who we are"
msgstr ""
#: policy.php:9
msgid "Contact"
msgstr ""
#: policy.php:17
msgid "What personal data we collect and why"
msgstr ""
#: policy.php:19
msgid "If you access our websites, the following information will be saved: IP-address, Date, Time, Browser queries, \n"
"\tGeneral information about your browser, operating system and all search queries on the sites. \n"
"\tThis user data will be used for anonym user statistics to recognize trends and improve our content.\n"
"\t"
msgstr ""
#: policy.php:23
msgid "How we protect your data"
msgstr ""
#: policy.php:24
msgid "In collaboration with our hosting provider we try our best to protect our \n"
"\tdatabases against access from third parties, losses, misuse or forgery.\n"
"\t"
msgstr ""
#: policy.php:27
msgid "Third party that receive your personal data"
msgstr ""
#: policy.php:29
msgid "Cookies"
msgstr ""
#: policy.php:30
msgid "This site uses cookies small text files that are placed on your machine to help the site provide a better user experience. \n"
"\tIn general, cookies are used to retain user preferences, store information for things like shopping carts, \n"
"\tand provide anonymised tracking data to third party applications like Google Analytics. \n"
"\tAs a rule, cookies will make your browsing experience better. However, you may prefer to disable cookies on this site and on others. \n"
"\tThe most effective way to do this is to disable cookies in your browser. We suggest consulting the Help section of your browser \n"
"\tor taking a look at the About Cookies website which offers guidance for all modern browsers"
msgstr ""
#: install.php:187
msgid "Since you are collecting personal information, the GDPR needs you to have a privacy policy. Enter the details below."
msgstr ""
#: install.php:198
msgid "Some info about yourself"
msgstr ""
#: policy.php:18
msgid "General"
msgstr ""

BIN
locale/sr_RS/flag.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

View File

@ -0,0 +1,54 @@
(function (factory) {
if (typeof define === 'function' && define.amd) {
define(['jquery'], factory);
} else if (typeof module === 'object' && typeof module.exports === 'object') {
factory(require('jquery'));
} else {
factory(jQuery);
}
}(function (jQuery) {
// Serbian
var numpf = function (n, f, s, t) {
var n10;
n10 = n % 10;
if (n10 === 1 && (n === 1 || n > 20)) {
return f;
} else if (n10 > 1 && n10 < 5 && (n > 20 || n < 10)) {
return s;
} else {
return t;
}
};
jQuery.timeago.settings.strings = {
prefixAgo: "пре",
prefixFromNow: "за",
suffixAgo: null,
suffixFromNow: null,
second: "секунд",
seconds: function (value) {
return numpf(value, "%d секунд", "%d секунде", "%d секунди");
},
minute: "један минут",
minutes: function (value) {
return numpf(value, "%d минут", "%d минута", "%d минута");
},
hour: "један сат",
hours: function (value) {
return numpf(value, "%d сат", "%d сата", "%d сати");
},
day: "један дан",
days: function (value) {
return numpf(value, "%d дан", "%d дана", "%d дана");
},
month: "месец дана",
months: function (value) {
return numpf(value, "%d месец", "%d месеца", "%d месеци");
},
year: "годину дана",
years: function (value) {
return numpf(value, "%d годину", "%d године", "%d година");
},
wordSeparator: " "
};
}));

View File

@ -15,9 +15,9 @@ msgstr "Sayfa Bulunamadı"
msgid "Sorry, but the page you were trying to view does not exist."
msgstr "Üzgünüz, ama görmek istediğiniz sayfa mevcut değil."
#: admin/dashboard.php:22 admin/dashboard.php:26 template.php:106
#: admin/dashboard.php:22 admin/dashboard.php:26 template.php:115
msgid "Dashboard"
msgstr "Panel"
msgstr "Başlangıç"
#: admin/dashboard.php:27
msgid "Welcome"
@ -25,9 +25,9 @@ msgstr "Hoşgeldiniz"
#: admin/dashboard.php:39
msgid "New incident"
msgstr "Yeni durum"
msgstr "Yeni durum güncellemesi"
#: admin/dashboard.php:72 install.php:48 install.php:157
#: admin/dashboard.php:72 install.php:48 install.php:163
msgid "Title"
msgstr "Başlık"
@ -35,23 +35,23 @@ msgstr "Başlık"
msgid "Time"
msgstr "Zaman"
#: admin/dashboard.php:75
#: admin/dashboard.php:77
msgid "Here goes your text..."
msgstr "Buraya yazınız gelecek..."
msgstr "Yazdığınız yazı burada görünecek"
#: admin/dashboard.php:78 classes/incident.php:177
#: admin/dashboard.php:80 classes/incident.php:183
msgid "Posted by"
msgstr "Tarafından"
msgstr "Tarafından Paylaşıldı"
#: admin/dashboard.php:78 classes/incident.php:179
#: admin/dashboard.php:80 classes/incident.php:185
msgid "Ending"
msgstr "Sonlanma"
msgstr "Bitiş"
#: admin/dashboard.php:78
#: admin/dashboard.php:80
msgid "End time"
msgstr "Sonlanma zamanı"
msgstr "Bitiş Saati"
#: admin/dashboard.php:96 admin/new-user.php:53
#: admin/dashboard.php:99 admin/new-user.php:53
msgid "Submit"
msgstr "Gönder"
@ -64,27 +64,27 @@ msgid "Please login to continue."
msgstr "Lütfen devam etmek için giriş yapınız."
#: admin/login-form.php:15 admin/login-form.php:16 admin/lost-password.php:46
#: admin/lost-password.php:48 admin/new-user.php:24 admin/settings.php:69
#: classes/user.php:125 classes/user.php:375 install.php:163 install.php:188
#: admin/lost-password.php:48 admin/new-user.php:24 admin/settings.php:72
#: classes/user.php:120 classes/user.php:404 install.php:169 install.php:210
msgid "Email"
msgstr "E-posta"
msgstr "Elektronik Posta"
#: admin/login-form.php:19 admin/login-form.php:20 admin/new-user.php:27
#: classes/user.php:128 classes/user.php:357 install.php:176 install.php:191
#: classes/user.php:123 classes/user.php:417 install.php:182 install.php:213
msgid "Password"
msgstr "Parola"
msgstr "Şifre"
#: admin/login-form.php:22
msgid "Forgotten password?"
msgstr "Parolanızı mı unuttunuz?"
msgstr "Unutulan Şifreyi Geri Getirme"
#: admin/login-form.php:23
msgid "Remember me"
msgstr "Beni hatırla"
msgstr "Giriş Bilgilerini Hatırla"
#: admin/lost-password.php:2 admin/lost-password.php:5
msgid "Lost password"
msgstr "Kayıp Parola"
msgstr "Unutulan Şifre"
#: admin/lost-password.php:16
msgid "Go back"
@ -104,7 +104,7 @@ msgstr "Başa dön"
#: admin/lost-password.php:34
msgid "Email with password reset link has been sent!"
msgstr "Parola sıfırlama linkini içeren e-posta gönderildi!"
msgstr "Şifre sıfırlama linkini içeren e-posta gönderildi!"
#: admin/lost-password.php:50
msgid "Submit request"
@ -114,36 +114,39 @@ msgstr "İsteği gönder"
msgid "Reset password for %s (%s)"
msgstr "%s (%s) için parolayı sıfırla"
#: admin/lost-password.php:60 admin/lost-password.php:61 classes/user.php:361
#: classes/user.php:362
#: admin/lost-password.php:60 admin/lost-password.php:61 classes/user.php:421
#: classes/user.php:422
msgid "New password"
msgstr "Yeni parola"
msgstr "Yeni şifre"
#: admin/lost-password.php:62 admin/lost-password.php:63 classes/user.php:363
#: classes/user.php:364
#: admin/lost-password.php:62 admin/lost-password.php:63 classes/user.php:423
#: classes/user.php:424
msgid "Repeat password"
msgstr "Parola tekrarla"
msgstr "Şifreyi tekrarla"
#: admin/lost-password.php:64 classes/user.php:365
#: admin/lost-password.php:64 classes/user.php:425
msgid "Change password"
msgstr "Parolayı değiştir"
msgstr "Şifreyi değiştir"
#: admin/new-user.php:7
msgid "New user"
msgstr "Yeni kullanıcı"
#: admin/new-user.php:19 admin/settings.php:38 admin/settings.php:69
#: classes/user.php:119 install.php:152 install.php:162 install.php:183
#: admin/new-user.php:19 admin/settings.php:39 admin/settings.php:72
#: classes/user.php:114 classes/user.php:322 classes/user.php:326
#: classes/user.php:327 classes/user.php:488 install.php:158 install.php:168
#: install.php:190 install.php:205
msgid "Name"
msgstr "İsim"
#: admin/new-user.php:20 admin/settings.php:69 classes/user.php:122
#: install.php:184
#: admin/new-user.php:20 admin/settings.php:72 classes/user.php:117
#: classes/user.php:323 classes/user.php:329 classes/user.php:330
#: classes/user.php:491 install.php:206
msgid "Surname"
msgstr "Soyisim"
#: admin/new-user.php:23 admin/settings.php:69 classes/user.php:317
#: install.php:187
#: admin/new-user.php:23 admin/settings.php:72 classes/user.php:349
#: install.php:209
msgid "Username"
msgstr "Kullanıcı Adı"
@ -151,7 +154,7 @@ msgstr "Kullanıcı Adı"
msgid "Permission"
msgstr "Yetki"
#: admin/settings.php:12 template.php:108
#: admin/settings.php:12 template.php:117
msgid "Settings"
msgstr "Ayarlar"
@ -163,37 +166,37 @@ msgstr "Servisler"
msgid "Add service"
msgstr "Servis ekle"
#: admin/settings.php:37 admin/settings.php:69 classes/user.php:313
#: admin/settings.php:38 admin/settings.php:72
msgid "ID"
msgstr "ID"
msgstr "Kimlik Tanımlayıcı"
#: admin/settings.php:41
#: admin/settings.php:42
msgid "Delete"
msgstr "Sil"
#: admin/settings.php:65
#: admin/settings.php:67
msgid "Users"
msgstr "Kullanıcılar"
#: admin/settings.php:66
#: admin/settings.php:68
msgid "Add new user"
msgstr "Yeni kullanıcı ekle"
#: admin/settings.php:69 classes/user.php:329
#: admin/settings.php:72 classes/user.php:372
msgid "Role"
msgstr "Rol"
#: admin/user.php:35 install.php:175 install.php:180
#: admin/user.php:45 admin/user.php:54 install.php:181 install.php:202
msgid "User"
msgstr "Kullanıcı"
#: admin/user.php:39
#: admin/user.php:52
msgid "User settings"
msgstr "Kullanıcı ayarları"
#: classes/constellation.php:36
#: classes/constellation.php:36 template.php:4
msgid "Planned maintenance"
msgstr "Planlı bakım"
msgstr "Önceden Planlanmış Bakım Çalışması"
#: classes/constellation.php:42
msgid "Back"
@ -201,214 +204,213 @@ msgstr "Geri"
#: classes/constellation.php:44
msgid "Past incidents"
msgstr "Geçmiş durumlar"
msgstr "Geçmiş durum güncellemeleri"
#: classes/constellation.php:48
msgid "No incidents"
msgstr "Durum yok"
msgstr "Ufukta herhangi bir olay yok."
#: classes/constellation.php:62
#: classes/constellation.php:61
msgid "Load more"
msgstr "Dahası"
msgstr "Daha fazla Yükle"
#: classes/constellation.php:100
#: classes/constellation.php:101
msgid "No services"
msgstr "Servis yok"
#: classes/incident.php:83
#: classes/incident.php:87
msgid "Please enter title"
msgstr "Lütfen başlık girin"
#: classes/incident.php:86
#: classes/incident.php:90
msgid "Title too long! Character limit is 50"
msgstr "Başlık çok uzun! Limit 50 karakterdir"
msgstr "Başlık çok uzun! Lütfen karakter limiti olan 50'yi geçmeyin"
#: classes/incident.php:92
#: classes/incident.php:96
msgid "Please enter text"
msgstr "Lütfen metin girin"
#: classes/incident.php:98
#: classes/incident.php:102
msgid "Please set start and end time! Use ISO 8601 format."
msgstr "Lütfen başlama ve sonlanma zamanı girin! ISO 8601 formatı kullanın."
msgstr "Lütfen başlangıç ve bitiş zamanı girin! ISO 8601 formatı kullanın."
#: classes/incident.php:103
#: classes/incident.php:107
msgid "Please select at least one service"
msgstr "Lütfen en az 1 servis seçin"
#: classes/incident.php:121
msgid "Start date format is not recognized. Please use ISO 8601 format."
msgstr "Başlama tarihi formatı uyumsuz. Lütfen ISO 8601 formatı kullanın."
#: classes/incident.php:127
msgid "End date format is not recognized. Please use ISO 8601 format."
msgstr "Sonlanma tarihi formatı uyumsuz. Lütfen ISO 8601 formatı kullanın."
msgid "Start date format is not recognized. Please use ISO 8601 format."
msgstr "Başlangıç tarihi formatı ISO 8601 standartına uygun değil. Lütfen ISO 8601 formatı kullanın."
#: classes/incident.php:179
#: classes/incident.php:133
msgid "End date format is not recognized. Please use ISO 8601 format."
msgstr "Bitiş tarihi formatı ISO 8601 standartına uygun değil. Lütfen ISO 8601 formatı kullanın."
#: classes/incident.php:185
msgid "Ended"
msgstr "Sonlandı"
msgstr "Bitti."
#: classes/service.php:63
msgid "Service name is too long! Character limit is 50"
msgstr "Servis adı çok uzun! Limit 50 karakterdir."
msgstr "Servis adı çok uzun! Lütfen karakter limiti olan 50'yi geçmeyin."
#: classes/service.php:66
msgid "Please enter name!"
msgstr "Lütfen isim girin!"
msgstr "Lütfen bir isim girin!"
#: classes/service.php:81 classes/service.php:123 classes/user.php:102
#: classes/user.php:204
#: classes/service.php:81 classes/service.php:123 classes/user.php:97
#: classes/user.php:199
msgid "You don't have the permission to do that!"
msgstr "Bunu yapmaya yetkiniz yok!"
#: classes/user.php:165
#: classes/user.php:164
msgid "Please mind the following character limits: "
msgstr "Lütfen dikkat, kalan karakter limiti: "
msgstr "Kalan karakter limiti: "
#: classes/user.php:182
#: classes/user.php:185
msgid "User account created"
msgstr "Kullanıcı hesabı oluşturuldu"
#: classes/user.php:183
#: classes/user.php:186
msgid "Hi %s!<br>Your account has been created. You can login with your email address at <a href=\"%s\">%s</a> with password %s - please change it as soon as possible."
msgstr "Merhaba %s!<br>Hesabınız oluşturuldu. <a href=\"%s\">%s</a> adresinden e-posta adresiniz ve %s parolanızla giriş yapabilirsiniz - lütfen en yakın zamanda parolanızı değiştirin."
msgstr "Merhaba %s!<br>Hesabınız oluşturuldu. <a href=\"%s\">%s</a> adresinden e-posta adresiniz ve %s şifrenizle giriş yapabilirsiniz - lütfen en yakın zamanda şifrenizi değiştirin."
#: classes/user.php:196
#: classes/user.php:180
msgid "Username or email already used"
msgstr "Kullanıcı adı veya e-posta zaten var"
#: classes/user.php:236
#: classes/user.php:244
msgid "Your account has been disabled. Please contact administrator."
msgstr "Hesabınız etkin değil. Lütfen yöneticiyle iletişime geçin."
#: classes/user.php:248 classes/user.php:264
#: classes/user.php:233 classes/user.php:256
msgid "Wrong email or password"
msgstr "Hatalı e-posta veya parola"
msgstr "Şifre veya elektronik posta adresi hatalı."
#: classes/user.php:295
#: classes/user.php:299
msgid "Invalid token detected, please login again!"
msgstr "Geçersiz gösterge tespit edildi, lütfen tekrar giriş yapın!"
msgstr "Oturum anahtarı geçersiz, lütfen tekrar giriş yapın!"
#: classes/user.php:309
#: classes/user.php:314
msgid "Profile picture"
msgstr "Profil resmi"
#: classes/user.php:334
#: classes/user.php:379
msgid "Change role"
msgstr "Rol değiştir"
#: classes/user.php:349
#: classes/user.php:394
msgid "Change email"
msgstr "Parola değiştir"
msgstr "E-Posta adresini güncelle"
#: classes/user.php:359 classes/user.php:360
#: classes/user.php:419 classes/user.php:420
msgid "Old password"
msgstr "Eski parola"
msgstr "Eski Şifre"
#: classes/user.php:412
#: classes/user.php:526
msgid "Passwords do not match!"
msgstr "Parolalar eşleşmiyor!"
msgstr "Şifreler eşleşmiyor!"
#: classes/user.php:418
#: classes/user.php:534
msgid "Cannot change password of other users!"
msgstr "Diğer kullanıcıların parolası değiştirilemez!"
msgstr "Sadece kendi şifrenizi değiştirebilirsiniz."
#: classes/user.php:448
#: classes/user.php:567
msgid "Wrong password!"
msgstr "Parola yanlış!"
msgstr "Yanlış şifre!"
#: classes/user.php:474 classes/user.php:565
#: classes/user.php:595 classes/user.php:695
msgid "Invalid token detected, please retry your request from start!"
msgstr "Geçersiz gösterge tespit edildi, lütfen isteğinizi baştan deneyin!"
#: classes/user.php:504
msgstr "Oturum anahtarı geçersiz, lütfen isteğinizi tekrar deneyin"
#: classes/user.php:623
msgid "Reset password"
msgstr "Parola Sıfırla"
msgstr "Şifre Sıfırlama"
#: classes/user.php:529
#: classes/user.php:659
msgid "Email change"
msgstr "E-posta değiştir"
msgstr "E-Posta adresini değiştir"
#: classes/incident.php:50 classes/user.php:608
#: classes/incident.php:54 classes/user.php:736
msgid "You don't have permission to do that!"
msgstr "Bunu yapmaya yetkiniz yok!"
#: config.php:40
#: template.php:4
msgid "Major outage"
msgstr "Önemli aksaklık"
msgstr "Kapsamlı Arıza"
#: config.php:40
#: template.php:4
msgid "Minor outage"
msgstr "Küçük aksaklık"
msgstr "Ufak Arıza"
#: config.php:40
#: template.php:4
msgid "Operational"
msgstr "Çalışıyor"
msgstr "Çalışır Durumda"
#: config.php:43
#: template.php:7
msgid "Some systems are experiencing major outages"
msgstr "Bazı sistemler ciddi aksaklıklar yaşıyor"
msgstr "Bazı sistemlerde ciddi arızalar var."
#: config.php:43
#: template.php:7
msgid "Some systems are experiencing minor outages"
msgstr "Bazı sistemler küçük aksaklıklar yaşıyor"
msgstr "Bazı sistemlerde ufak arızalar var."
#: config.php:43
#: template.php:7
msgid "Some systems are under maintenance"
msgstr "Bazı sistemler bakımda"
msgstr "Bazı sistemlerde bakım çalışması yürütülüyor."
#: config.php:44
#: template.php:8
msgid "Our systems are experiencing major outages."
msgstr "Sistemlerimiz ciddi aksaklıklar yaşıyor"
msgstr "Sistemlerimizde ciddi arızalar yaşanıyor."
#: config.php:44
#: template.php:8
msgid "Our systems are experiencing minor outages"
msgstr "Sistemlerimiz küçük aksaklıklar yaşıyor"
msgstr "Sistemlerimizde küçük arızalar var."
#: config.php:44
#: template.php:8
msgid "Our systems are under maintenance"
msgstr "Sistemlerimiz bakımda"
msgstr "Sistemlerimizde bakım çalışması yürütülüyor."
#: config.php:44
#: template.php:8
msgid "All systems operational"
msgstr "Tüm sistemler çalışıyor"
msgstr "Tüm sistemler çalışır halde."
#: config.php:45
#: template.php:9
msgid "Super admin"
msgstr "Süper Yönetici"
msgstr "Sistem Yöneticisi"
#: config.php:45
#: template.php:9
msgid "Admin"
msgstr "Yönetici"
#: template.php:53
msgid "Service Status"
msgstr "Servis Durumu"
msgstr "Sistem Durumu"
#: template.php:97
#: template.php:106
msgid "Toggle navigation"
msgstr "Menü Aç / Kapat"
msgstr "Menüyi Görüntüle / Gizle"
#: template.php:107
#: template.php:116
msgid "User (%s)"
msgstr "Kullanıcı (%s)"
#: template.php:109
#: template.php:118
msgid "Logout"
msgstr "Çıkış"
#: index.php:27
msgid "Current status"
msgstr "Şu anki durum"
msgstr "Güncel Durum"
#: install.php:4
msgid "Status page"
msgstr "Durum sayfası"
#: install.php:133
#: install.php:139
msgid "Install"
msgstr "Kur"
#: install.php:135
#: install.php:141
msgid "Installation"
msgstr "Kurulum"
@ -419,63 +421,63 @@ msgstr "Bağlantı başarısız oldu: %s"
#: install.php:31
msgid "Please set valid url!"
msgstr "Lütfen geçerli URL girin!"
msgstr "Lütfen geçerli bir URL girin!"
#: install.php:98
msgid "Error while creating database. Please check permission for your account or MYSQL version.<br>Error: %s"
msgstr "Veritabanı oluştururken hata oluştu. Lütfen yetkinizi veya MYSQL sürümünüzü kontrol edin.<br>Hata: %s"
msgstr "Veritabanı oluştururken hata oluştu. Lütfen hesabınızın veritabanı yetkilerini ve MYSQL sürümünüzü kontrol edin.<br>Hata: %s"
#: install.php:148
#: install.php:154
msgid "Website details"
msgstr "Web site detayları"
#: install.php:40 install.php:153
#: install.php:40 install.php:159
msgid "Url"
msgstr "URL"
#: install.php:160
#: install.php:166
msgid "Also an email address for mailer would be nice :)"
msgstr "Ayrıca e-postalar için bir e-posta adresi güzel olur :)"
msgstr "Ayrıca e-postalar için bir e-posta adresi güzel olabilir :)"
#: install.php:167
#: install.php:173
msgid "Database connection"
msgstr "Veritabanı bağlantıı"
msgstr "Veritabanı bağlantısı"
#: install.php:168
#: install.php:174
msgid "We need database connection to be able to create tables. Please check that your account has the permission needed to do that."
msgstr "Tabloları oluşturabilmek için veritabanı bağlantısına ihtiyaç var. Lütfen hesabınızın bunu yapmaya yetkili olduğunu kontrol edin."
msgstr "Tabloları oluşturabilmek için veritabanı bağlantısına ihtiyacımız var. Lütfen hesabınızın bunu yapmaya yetkili olup olmadığını kontrol edin."
#: install.php:171
#: install.php:177
msgid "Server"
msgstr "Sunucu"
#: install.php:172
#: install.php:178
msgid "Database"
msgstr "Veritabanı"
#: install.php:181
#: install.php:203
msgid "And finally, we need info to create a new user. You don't have to provide it, but then... No status page admin..."
msgstr "Ve nihayet, yeni bir kullanıcı oluşturmak için bilgiye ihtiyacımız var. Bunu sağlamak zorunda değilsiniz, ancak yapmazsanız... Durum sayfasının yöneticisi olmaz..."
msgstr "Ve nihayet, yeni bir kullanıcı oluşturmak için bazı bilgilere ihtiyacımız var. Bunu sağlamak zorunda değilsiniz, ancak yapmazsanız... Durum sayfasının yöneticisi olmaz..."
#: install.php:194
#: install.php:216
msgid "Run install!"
msgstr "Kurulumu başlat!"
#: classes/user.php:132
#: classes/user.php:127
msgid "Rank"
msgstr "Seviye"
#: classes/user.php:505
#: classes/user.php:624
msgid "Hi %s!<br>Below you will find link to change your password. The link is valid for 24hrs. If you didn't request this, feel free to ignore it. <br><br><a href=\"%s\">RESET PASSWORD</a><br><br>If the link doesn't work, copy &amp; paste it into your browser: <br>%s"
msgstr "Merhaba %s!<br>Parolanızı sıfırlamanız için gereken link aşağıdadır. Link 24 saat boyunca geçerlidir. Eğer bunu siz istemediyseniz görmezden gelebilirsiniz. <br><br><a href=\"%s\">PAROLAYI SIFIRLA</a><br><br>Link çalışmazsa, linki kopyalayıp tarayıcınıza yapıştırabilirsiniz: <br>%s"
msgstr "Merhaba %s!<br>Şifrenizi sıfırlamanız için gereken link aşağıda. Link 24 saat boyunca geçerlidir. Eğer bunu siz talep etmediyseniz görmezden gelebilirsiniz. <br><br><a href=\"%s\">ŞİFRENİZİ SIFIRLAYIN</a><br><br>Link çalışmazsa, linki kopyalayıp tarayıcınıza yapıştırabilirsiniz: <br>%s"
#: classes/user.php:530
#: classes/user.php:660
msgid "Hi %s!<br>Below you will find link to change your email. The link is valid for 24hrs. If you didn't request this, feel free to ignore it. <br><br><a href=\"%s\">CHANGE EMAIL</a><br><br>If the link doesn't work, copy &amp; paste it into your browser: <br>%s"
msgstr "Merhaba %s!<br>E-posta adresinizi değiştirmek için gereken link aşağıdadır. Link 24 saat boyunca geçerlidir. Eğer bunu siz istemediyseniz görmezden gelebilirsiniz. <br><br><a href=\"%s\">E-POSTA ADRESİNİ DEĞİŞTİR</a><br><br>Link çalışmazsa, linki kopyalayıp tarayıcınıza yapıştırabilirsiniz: <br>%s"
msgstr "Merhaba %s!<br>E-posta adresinizi güncellemek için link aşağıda. Link 24 saat boyunca geçerlidir. Eğer bunu siz talep etmediyseniz görmezden gelebilirsiniz. <br><br><a href=\"%s\">E-POSTA ADRESİNİ DEĞİŞTİRİN</a><br><br>Link çalışmazsa, linki kopyalayıp tarayıcınıza yapıştırabilirsiniz: <br>%s"
#: config.php:45
#: template.php:9
msgid "Editor"
msgstr "Editör"
msgstr "Düzenleyici"
#: install.php:36
msgid "Server name"
@ -483,11 +485,11 @@ msgstr "Sunucu adı"
#: install.php:44
msgid "Mailer name"
msgstr "E-posta gönderici adı"
msgstr "E-Posta Sistemi için Gönderici Adı"
#: install.php:52
msgid "Mailer email"
msgstr "Gönderici e-posta adresi"
msgstr "E-Posta Sistemi için Gönderici Adresi"
#: install.php:56
msgid "Database server"
@ -503,21 +505,21 @@ msgstr "Veritabanı kullanıcı adı"
#: install.php:69
msgid "Database password"
msgstr "Veritabanı parolası"
#: template.php:138
msgid "Toggle Dropdown"
msgstr "Açılır menü arasında geçiş yap"
msgstr "Veritabanı şifresi"
#: template.php:147
msgid "Help with translation!"
msgstr "Çeviriye yardım et!"
msgid "Toggle Dropdown"
msgstr "Açılır Kapanır Menü"
#: classes/user.php:389
#: template.php:156
msgid "Help with translation!"
msgstr "Çeviren Yiğit Kerem Oktay"
#: classes/user.php:439
msgid "Deactivate user"
msgstr "Kullanıcıyı devre dışı bırak"
#: classes/user.php:391
#: classes/user.php:441
msgid "Activate user"
msgstr "Kullanıcıyı etkinleştir"
@ -525,15 +527,142 @@ msgstr "Kullanıcıyı etkinleştir"
msgid "Please enter"
msgstr "Lütfen girin"
#: install.php:144
#: install.php:150
msgid "We will ask you some basic questions about your website. Most of the settings can be later edited in the config.php file."
msgstr "Siteniz hakkında siz birkaç basit soru soracağız. Ayarların çoğu daha sonra config.php dosyasından düzenlenebilir."
#: install.php:149
msgid "We need a name for your status page (shown behind page title after the dash) and a url of your server status installation (i.e. <a href='#'>https://example.com/status</a> - without the trailing slash), so we can mail users link for forgotten password etc..."
msgstr "Durum sayfası için bir isime (sayfa başlığının altında görünür) ve sunucu durumu kurulumunuzun web adresine ihtiyacımız var. (örn: <a href='#'>https://example.com/status</a> - adresin sonuna yatay çizgi koymayın), parolamı unuttum vb mailler için."
msgstr "Siteniz hakkında siz birkaç basit soru soracağız. Ayarların çoğu kurulumdan sonra da config.php dosyasından düzenlenebilir."
#: install.php:155
msgid "We need a name for your status page (shown behind page title after the dash) and a url of your server status installation (i.e. <a href='#'>https://example.com/status</a> - without the trailing slash), so we can mail users link for forgotten password etc..."
msgstr "Durum sayfası için bir başlığa ve kurulumunuzun web adresine ihtiyacımız var. (örn: <a href='theskyfallen.com'>https://status.theskyfallen.com</a> (adresin sonuna yatay çizgi koymayın)"
#: install.php:161
msgid "A title that you want to be shown on the top of the page."
msgstr "Sayfanın üstünde görünmesini istediğiniz başlık."
#: api/status.php:24
msgid "Service does not exist!"
msgstr "Servis mevcut değil!"
#: classes/user.php:220
msgid "Please fill in your email and password!"
msgstr "Lütfen E-Posta ve şifrenizi girin!"
#: classes/user.php:336
msgid "Change name"
msgstr "Ad değiştir"
#: classes/user.php:356
msgid "Change username"
msgstr "Kullanıcı adını değiştir"
#: classes/user.php:463
msgid "This username is already taken."
msgstr "Bu kullanıcı adı alınmış"
#: classes/user.php:470
msgid "Cannot change username of other users!"
msgstr "Sadece kendi kullanıcı adınızı değiştirebilirsiniz."
#: classes/user.php:504
msgid "Cannot change names of other users!"
msgstr "Sadece kendi adınızı güncelleyebilirsiniz."
#: classes/user.php:667
msgid "Confirmation email sent!"
msgstr "Doğrulama e-postası gönderildi!"
#: install.php:186 policy.php:6
msgid "Privacy Policy"
msgstr "Gizlilik Politikasını Görüntüleyin"
#: install.php:190
msgid "Company name"
msgstr "Şirket adı"
#: install.php:191
msgid "Address"
msgstr "Adres"
#: install.php:191
msgid "Full address"
msgstr "Tam adres"
#: install.php:194
msgid "E-Mail"
msgstr "Eposta"
#: install.php:195
msgid "Phone"
msgstr "Telefon"
#: install.php:195
msgid "Phone number"
msgstr "Telefon numarası"
#: install.php:198 policy.php:7
msgid "Who we are"
msgstr "Biz kimiz"
#: policy.php:9
msgid "Contact"
msgstr "İletişim"
#: policy.php:17
msgid "What personal data we collect and why"
msgstr "Hangi kişisel verileri neden topluyoruz"
#: policy.php:19
msgid "If you access our websites, the following information will be saved: IP-address, Date, Time, Browser queries, \n"
"\tGeneral information about your browser, operating system and all search queries on the sites. \n"
"\tThis user data will be used for anonym user statistics to recognize trends and improve our content.\n"
"\t"
msgstr "Web sitemize erişirseniz, aşağıdaki bilgileriniz kaydedilir:\n"
"IP adresi, Tarih, Saat, Tarayıcı sorguları,\n"
"tarayıcınız, işletim sisteminiz ve sitelerdeki tüm arama sorguları hakkında genel bilgiler.\n"
"Bu kullanıcı verileri, anonim kullanıcı istatistikleri, eğilimleri anlamak ve içeriğimizi iyileştirmek için kullanılacaktır."
#: policy.php:23
msgid "How we protect your data"
msgstr "Bilgilerinizi nasıl koruyoruz"
#: policy.php:24
msgid "In collaboration with our hosting provider we try our best to protect our \n"
"\tdatabases against access from third parties, losses, misuse or forgery.\n"
"\t"
msgstr "Barındırma sağlayıcımızla işbirliği yaparak, veritabanlarına erişimi üçüncü şahıslara, kayıplara, yanlış kullanımlara ve sahteciliğe karşı korumak için elimizden geleni yapıyoruz."
#: policy.php:27
msgid "Third party that receive your personal data"
msgstr "Kişisel verilerinizi alan üçüncü taraf"
#: policy.php:29
msgid "Cookies"
msgstr "Çerezler"
#: policy.php:30
msgid "This site uses cookies small text files that are placed on your machine to help the site provide a better user experience. \n"
"\tIn general, cookies are used to retain user preferences, store information for things like shopping carts, \n"
"\tand provide anonymised tracking data to third party applications like Google Analytics. \n"
"\tAs a rule, cookies will make your browsing experience better. However, you may prefer to disable cookies on this site and on others. \n"
"\tThe most effective way to do this is to disable cookies in your browser. We suggest consulting the Help section of your browser \n"
"\tor taking a look at the About Cookies website which offers guidance for all modern browsers"
msgstr "Bu site, daha iyi bir kullanıcı deneyimi sunulmasına yardımcı olmak için bilgisayarınıza yerleştirilen küçük metin dosyalarına benzetebileceğimiz çerezlerikullanır.\n"
"\n"
"Genel olarak, çerezler kullanıcı tercihlerini saklamak, alışveriş sepeti gibi şeyler için bilgi depolamak ve Google Analytics gibi üçüncü taraf uygulamalara anonimleştirilmiş izleme verileri sağlamak için kullanılır.\n"
"\n"
"Kural olarak, çerezler tarama deneyiminizi daha iyi hale getirir. Ancak, bu sitede ve diğerlerinde çerezleri devre dışı bırakmayı tercih edebilirsiniz.\n"
"\n"
"Bunu yapmanın en etkili yolu tarayıcınızdaki çerezleri devre dışı bırakmaktır. Tarayıcınızın yardım bölümüne bakmanızı veya tüm modern tarayıcılar için rehberlik sunan About Cookies web sitesine göz atmanızı öneririz."
#: install.php:187
msgid "Since you are collecting personal information, the GDPR needs you to have a privacy policy. Enter the details below."
msgstr "Kişisel bilgileri topladığınızdan beri, KVKK'ya uygun bir gizlilik politikasına sahip olmanız gerekir. Aşağıdaki bilgileri girin."
#: install.php:198
msgid "Some info about yourself"
msgstr "Kendiniz hakkında bazı bilgiler"
#: policy.php:18
msgid "General"
msgstr "Genel"

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More