Commit Graph

39 Commits

Author SHA1 Message Date
Jon Murphy
4941ce0031 services.cgi: avoid experimental warnings
- add single line to code: no warnings 'experimental';
- corrects this issue:
    https://lists.ipfire.org/pipermail/development/2022-December/015113.html

Signed-off-by: Jon Murphy <jon.murphy@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-02-09 16:39:34 +00:00
Robin Roevens
e47370a167 services.cgi: translate "Addon"
* Translate string "Addon" in services.cgi
* Added EN/NL translations
* Correct existing plural DE translation for singular "Add-on"
* Fix usage of the incorrect strings "addon(s)" to correct
  hyphenated "add-on(s)" also in other translation strings for
  EN/NL/DE

Signed-off-by: Robin Roevens <robin.roevens@disroot.org>
2022-11-21 11:19:08 +00:00
Robin Roevens
8ed997102e services.cgi: add link to addon config if ui exists for it
* If a cgi file exists with the same name as an addon, the
  displayed service will be a link to that cgi file.

Signed-off-by: Robin Roevens <robin.roevens@disroot.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
2022-10-29 08:56:48 +00:00
Robin Roevens
4f205b5442 services.cgi: add restart action and restrict action usage
* Add restart action to services.
* Only display available actions for a service:
  Start when service is stopped or Stop and Restart when a service
  is running.

Signed-off-by: Robin Roevens <robin.roevens@disroot.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
2022-10-29 08:56:48 +00:00
Robin Roevens
207ca1141c services.cgi: minor cosmetics
* Singular 'Service' instead of plural 'Services' as column header of
  services table
* Sort list of services

Signed-off-by: Robin Roevens <robin.roevens@disroot.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
2022-10-29 08:56:48 +00:00
Robin Roevens
2b9b31b71d services.cgi: Fix status/actions on services with name != addon name
* addonctrl's new functionality to control explicit addon services was
  implemented.
* Change 'Addon' column header to 'Addon Service' to be clear that
  it's not addons but services listed here.
* Services not matching the name of the addon now display the addon
  name between parentheses, so the user knows where the service comes
  from.
* When no valid runlevel symlink is found by addonctrl for a service,
  the 'enable on boot' checkbox is replaced by a small exclamation point
  with alt-text "No valid runlevel symlink was found for the initscript of
  this service." to inform user why a service can't be enabled.
* Added German and Dutch translation for above message.

Fixes: Bug#12935
Signed-off-by: Robin Roevens <robin.roevens@disroot.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
2022-10-29 08:56:48 +00:00
Robin Roevens
5cc18f9c12 pakfire: Replace getmetadata duplicate code
- Use getmetadata function in services.cgi to determine installed
  addon services to display. Removing code duplication and intel that
  should only be known by pakfire itself.
- Removed hardcoded exclusions:
  - squid should show up correctly using the new metadata info
  - mdadm is part of core and will never show up here
  - alsa, unknown if this problem still exists, but if it is, this
    should be handled somewhere else.

Signed-off-by: Robin Roevens <robin.roevens@disroot.org>
2022-07-28 13:44:29 +00:00
Matthias Fischer
8aab72f01b services.cgi: Add link to DNS settings
This just came to my view...

I know its not *actually* a link to a "DNS-Proxyserver", but I find it
nice that I can change to the page containing some of the main DNS settings
in just one click. I thought it could be useful.

JM2C

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-07-27 07:09:48 +00:00
Stefan Schantl
f6340997aa services.cgi: Redesign isautorun() because shell globbing cannot used anymore.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2021-06-17 20:11:37 +00:00
Michael Tremer
150fadab40 services.cgi: Use new perl system functions
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-10 14:55:52 +01:00
Stefan Schantl
31c46c0758 services.cgi: Use new system methods
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2021-06-10 14:30:55 +01:00
Jonatan Schlag
8186b37230 Hardcode theme to ipfire
This disables the theme support and makes it impossible to use any other
themes than the ipfire default theme.

The only intention of this patch is to hardcode the theme to ipfire.
To change any cgi we have is an ugly way, but the only way to do this
fast. The colour handling needs certainly to be improved as well, but
this will and should be done in other patches.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-04-08 10:11:34 +00:00
Adolf Belka
d978558809 Fix for bug 12539
The installer recognises cups and cups-filters both as cups and puts
two instances of cups in the add-on services table.
Based on input from Michael Tremer this patch replaces the command
returning the second element between hyphens with one that takes
what comes after "meta-" using Perl code rather than a shell command.
The second find command was changed as per Michael's suggestion.

Tested in my ipfire test bed system and only results in one cups
entry.
Signed-off-by: Adolf Belka <ahb.ipfire@gmail.com>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-12-10 12:59:42 +00:00
Stefan Schantl
0d8cc90f4d services.cgi: Show status of suricata instead of snort
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2019-02-15 12:18:45 +01:00
Michael Tremer
9625be6f24 webinterface: Replace dnsmasq with unbound
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-08-06 19:30:14 +01:00
Alexander Marx
39d435690f BUG10797: Fix addontable in services.cgi when using squid-accounting addon
When squid-accounting addon is installed, it shows up under services.cgi
as "squid" service which is wrong.
2015-04-13 08:36:00 +02:00
Alf Høgemark
df26152135 services.cgi: htmlcleanup, change html tags from uppercase to lowercase 2014-02-15 15:51:27 +01:00
Alexander Marx
a9d40c03db Layout changes services.cgi 2014-01-09 14:50:04 +01:00
Alexander Marx
91a81810e8 fifteen-theme: made services.cgi tables themeable 2014-01-07 11:34:32 +01:00
Joern-Ingo Weigert
62a13aec4c services.cgi: Fix for depreciate-warning in httpd/error_log
This patch fixes the depreciate warning in /var/log/httpd/error_log
not to use a hash as reference

So I changed:
[...]
print %link->{$key}
[...]

To:
[...]
print $link{link}
[...]

which solves the warning and should be good in future.

Joern-Ingo Weigert <jiweigert@ipfire.org>
2013-04-24 17:27:44 +02:00
Arne Fitzenreiter
b431bfce48 Merge remote-tracking branch 'origin/master' into kernel-update 2012-07-21 23:54:31 +02:00
Michael Tremer
24c82ed212 services.cgi: Fix wrong memory usage display. 2012-07-19 22:12:05 +02:00
Michael Tremer
70e8a248c7 strongswan: Fix running check in services.cgi.
Pluto does not exist anymore. Check for charon.
2012-07-15 21:04:05 +02:00
Arne Fitzenreiter
bbd544ea81 services.cgi: blacklist mdadm (no good idea to stop it with webif). 2011-04-18 20:53:41 +02:00
Arne Fitzenreiter
7fb1b9f680 Fix addon service pid/memory display if the addon name has numbers. 2011-02-10 19:49:23 +01:00
Christian Schmidt
26906d9823 Some more stderr fixes for the CGIs. 2010-12-15 18:45:59 +01:00
Arne Fitzenreiter
63249c6777 Removed unsupported ipsec debug options and modp768. 2010-05-15 13:30:19 +02:00
Jan Paul Tuecking
533f1e1187 Fixed bug 617 - added links for services on services.cgi. 2010-04-18 22:41:01 +02:00
Maniacikarus
2d281532a6 2nd step for 2.3 tuning 2008-09-27 18:32:54 +02:00
Maniacikarus
4e481c3a51 Started optimising 2.3 for less disk io
Moving rrd files permanently to a ramdisk (backup next step)
Remove creation of temp png files for graphs (create at access)
Deleted some old cgi
2008-09-26 23:22:32 +02:00
Christian Schmidt
bf660619ef Added include file for squidclam and corrected install routine
fixed some line in services cgi
2008-04-09 18:16:45 +02:00
maniacikarus
773362c5bf Added memory and cpu util graphs for services
Changed collectd config


git-svn-id: http://svn.ipfire.org/svn/ipfire/branches/2.1/trunk@1266 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2008-03-13 19:29:35 +00:00
arne_f
08efdb4f26 fix service.cgi hangs if the initscript of an addon dosn't close output
improved sanedloop and sane initscript


git-svn-id: http://svn.ipfire.org/svn/ipfire/branches/2.1/trunk@1251 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2008-03-05 17:08:22 +00:00
maniacikarus
2032b6f95a Merge Services and Addonservices into a new cgi
git-svn-id: http://svn.ipfire.org/svn/ipfire/branches/2.1/trunk@1245 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2008-03-02 19:27:50 +00:00
ms
70df830214 Ein Paar Dateien fuer die GPLv3 angepasst.
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@853 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-08-29 13:25:32 +00:00
maniacikarus
f2fdd0c1e9 Quasi fast alle cgis von den fixen header farben befreit
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@560 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-05-17 16:54:15 +00:00
ms
78331e3019 Großes Update:
Hinzugefügt:
  * L7-Protokolle
Geändert:
  * XAMPP 1.5.1 --> 1.5.3
  * Sämtliche "IPCops" durch "IPFire" im Webinterface ersetzt
  * Einige Fixes, wegen Errors im Webinterface. (Im Forum zu finden.)


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@148 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2006-05-31 10:09:27 +00:00
ms
ac1cfefab2 SMP-Config angepasst.. CGIs usw. wurden im Windoof-Format gespeichert... muss noch alles korrigiert werden...
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@67 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2006-02-21 20:38:06 +00:00
ipfire
cd1a292722 git-svn-id: http://svn.ipfire.org/svn/ipfire/IPFire/source@16 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8 2006-02-15 21:15:54 +00:00