diff --git a/.gitignore b/.gitignore index 7a2d3c3..e5a692f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ Links.txt config/config.php config/DMRNetwork.txt -notes.txt \ No newline at end of file +notes.txt +custom.php diff --git a/index.php b/index.php index aa7e8d3..cd91f8d 100644 --- a/index.php +++ b/index.php @@ -177,6 +177,23 @@ if (!defined("SHOWCPU") AND !defined("SHOWDISK") AND !defined("SHOWRPTINFO") AND define("SHOWLH", "on"); define("SHOWLOCALTX", "on"); } +if (defined("SHOWCUSTOM")) { + print "
\n"; + print "
"; + echo _("Custom Info"); + print "
\n"; + print "
\n"; + $custom = 'custom.php'; + if (file_exists($custom)) { + include $custom; + } else { + print "
"; + echo _("File custom.php not found! Did you forget to create it?"); + print "
\n"; + } + print "
\n"; + print "
\n"; +} if (defined("SHOWCPU")) { include "include/sysinfo_ajax.php"; showLapTime("sysinfo"); diff --git a/locale/da_DK/LC_MESSAGES/messages.po b/locale/da_DK/LC_MESSAGES/messages.po index d69b16b..2a0f3f6 100644 --- a/locale/da_DK/LC_MESSAGES/messages.po +++ b/locale/da_DK/LC_MESSAGES/messages.po @@ -17,6 +17,14 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +#: index.php:183 +msgid "Custom Info" +msgstr "Custom info" + +#: index.php:191 +msgid "File custom.php not found! Did you forget to create it?" +msgstr "File custom.php not found! Did you forget to create it?" + #: include/sysinfo_ajax.php:3 msgid "System Info" msgstr "System Information" diff --git a/locale/de_DE/LC_MESSAGES/messages.mo b/locale/de_DE/LC_MESSAGES/messages.mo index a0fa186..4c2993f 100644 Binary files a/locale/de_DE/LC_MESSAGES/messages.mo and b/locale/de_DE/LC_MESSAGES/messages.mo differ diff --git a/locale/de_DE/LC_MESSAGES/messages.po b/locale/de_DE/LC_MESSAGES/messages.po index e73bf59..fd61277 100644 --- a/locale/de_DE/LC_MESSAGES/messages.po +++ b/locale/de_DE/LC_MESSAGES/messages.po @@ -17,6 +17,14 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +#: index.php:183 +msgid "Custom Info" +msgstr "Benutzerdefinierte Informationen" + +#: index.php:191 +msgid "File custom.php not found! Did you forget to create it?" +msgstr "Datei custom.php nicht gefunden. Hast du vergessen, diese anzulegen?" + #: include/sysinfo_ajax.php:3 msgid "System Info" msgstr "System Informationen" diff --git a/locale/en_GB/LC_MESSAGES/messages.mo b/locale/en_GB/LC_MESSAGES/messages.mo index 13ae363..5ff70bc 100644 Binary files a/locale/en_GB/LC_MESSAGES/messages.mo and b/locale/en_GB/LC_MESSAGES/messages.mo differ diff --git a/locale/en_GB/LC_MESSAGES/messages.po b/locale/en_GB/LC_MESSAGES/messages.po index ebab6ed..f58d40f 100644 --- a/locale/en_GB/LC_MESSAGES/messages.po +++ b/locale/en_GB/LC_MESSAGES/messages.po @@ -17,6 +17,14 @@ msgstr "" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" +#: index.php:183 +msgid "Custom Info" +msgstr "Custom info" + +#: index.php:191 +msgid "File custom.php not found! Did you forget to create it?" +msgstr "File custom.php not found! Did you forget to create it?" + #: include/sysinfo_ajax.php:3 msgid "System Info" msgstr "" diff --git a/locale/en_US/LC_MESSAGES/messages.mo b/locale/en_US/LC_MESSAGES/messages.mo index 13ae363..5ff70bc 100644 Binary files a/locale/en_US/LC_MESSAGES/messages.mo and b/locale/en_US/LC_MESSAGES/messages.mo differ diff --git a/locale/en_US/LC_MESSAGES/messages.po b/locale/en_US/LC_MESSAGES/messages.po index ebab6ed..f58d40f 100644 --- a/locale/en_US/LC_MESSAGES/messages.po +++ b/locale/en_US/LC_MESSAGES/messages.po @@ -17,6 +17,14 @@ msgstr "" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" +#: index.php:183 +msgid "Custom Info" +msgstr "Custom info" + +#: index.php:191 +msgid "File custom.php not found! Did you forget to create it?" +msgstr "File custom.php not found! Did you forget to create it?" + #: include/sysinfo_ajax.php:3 msgid "System Info" msgstr "" diff --git a/locale/es_ES/LC_MESSAGES/messages.po b/locale/es_ES/LC_MESSAGES/messages.po index 85e75b9..7e5557b 100644 --- a/locale/es_ES/LC_MESSAGES/messages.po +++ b/locale/es_ES/LC_MESSAGES/messages.po @@ -18,6 +18,14 @@ msgstr "" "X-Generator: Poedit 1.8.12\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +#: index.php:183 +msgid "Custom Info" +msgstr "Custom info" + +#: index.php:191 +msgid "File custom.php not found! Did you forget to create it?" +msgstr "File custom.php not found! Did you forget to create it?" + #: include/sysinfo_ajax.php:3 msgid "System Info" msgstr "Información de Sistema" diff --git a/locale/fr_FR/LC_MESSAGES/messages.po b/locale/fr_FR/LC_MESSAGES/messages.po index 3854dad..743be3e 100644 --- a/locale/fr_FR/LC_MESSAGES/messages.po +++ b/locale/fr_FR/LC_MESSAGES/messages.po @@ -18,6 +18,14 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "Language: fr\n" +#: index.php:183 +msgid "Custom Info" +msgstr "Custom info" + +#: index.php:191 +msgid "File custom.php not found! Did you forget to create it?" +msgstr "File custom.php not found! Did you forget to create it?" + #: include/sysinfo_ajax.php:3 msgid "System Info" msgstr "Informations sur le système" diff --git a/locale/pl_PL/LC_MESSAGES/messages.po b/locale/pl_PL/LC_MESSAGES/messages.po index d43af7b..ea12e18 100644 --- a/locale/pl_PL/LC_MESSAGES/messages.po +++ b/locale/pl_PL/LC_MESSAGES/messages.po @@ -16,6 +16,14 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Language-Team: pl\n" +#: index.php:183 +msgid "Custom Info" +msgstr "Custom info" + +#: index.php:191 +msgid "File custom.php not found! Did you forget to create it?" +msgstr "File custom.php not found! Did you forget to create it?" + #: include/sysinfo_ajax.php:3 msgid "System Info" msgstr "Informacja systemu" diff --git a/locale/pt_PT/LC_MESSAGES/messages.po b/locale/pt_PT/LC_MESSAGES/messages.po index f41cbca..9a0adef 100644 --- a/locale/pt_PT/LC_MESSAGES/messages.po +++ b/locale/pt_PT/LC_MESSAGES/messages.po @@ -17,6 +17,14 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +#: index.php:183 +msgid "Custom Info" +msgstr "Custom info" + +#: index.php:191 +msgid "File custom.php not found! Did you forget to create it?" +msgstr "File custom.php not found! Did you forget to create it?" + #: include/sysinfo_ajax.php:3 msgid "System Info" msgstr "Informação do sistema" diff --git a/locale/ru_RU/LC_MESSAGES/messages.po b/locale/ru_RU/LC_MESSAGES/messages.po index f0350b0..13773ae 100644 --- a/locale/ru_RU/LC_MESSAGES/messages.po +++ b/locale/ru_RU/LC_MESSAGES/messages.po @@ -17,6 +17,14 @@ msgstr "" "Language-Team: ru\n" "X-Generator: Poedit 1.8.12\n" +#: index.php:183 +msgid "Custom Info" +msgstr "Custom info" + +#: index.php:191 +msgid "File custom.php not found! Did you forget to create it?" +msgstr "File custom.php not found! Did you forget to create it?" + #: include/sysinfo_ajax.php:3 msgid "System Info" msgstr "Информация о системе" diff --git a/locale/sv_SE/LC_MESSAGES/messages.po b/locale/sv_SE/LC_MESSAGES/messages.po index d15e3f9..f67aa21 100644 --- a/locale/sv_SE/LC_MESSAGES/messages.po +++ b/locale/sv_SE/LC_MESSAGES/messages.po @@ -16,6 +16,14 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Language-Team: sv\n" +#: index.php:183 +msgid "Custom Info" +msgstr "Custom info" + +#: index.php:191 +msgid "File custom.php not found! Did you forget to create it?" +msgstr "File custom.php not found! Did you forget to create it?" + #: include/sysinfo_ajax.php:3 msgid "System Info" msgstr "System information" diff --git a/messages.pot b/messages.pot index 2f26e41..28cf9fd 100644 --- a/messages.pot +++ b/messages.pot @@ -17,6 +17,10 @@ msgstr "" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" +#: include/index.php:183 +msgid "Custom Info" +msgstr "" + #: include/sysinfo_ajax.php:3 msgid "System Info" msgstr "" diff --git a/setup.php b/setup.php index a9f67e7..607b966 100644 --- a/setup.php +++ b/setup.php @@ -271,6 +271,10 @@ foreach ($files as $file) { " name="REFRESHAFTER" class="form-control" placeholder="60" aria-describedby="REFRESHAFTER" required data-fv-notempty-message="Value is required"> +
+ +
>
+
>