tazpanel view network.cgi @ rev 39

Fix TEXTDOMAIN for *.cgi
author Christophe Lincoln <pankso@slitaz.org>
date Wed Apr 06 06:09:34 2011 +0200 (2011-04-06)
parents b9065b337a97
children 167a97495e1c
line source
1 #!/bin/sh
2 #
3 # Network configuration CGI interface
4 #
5 echo "Content-Type: text/html"
6 echo ""
8 # Common functions from libtazpanel
9 . lib/libtazpanel
10 get_config
12 # Include gettext helper script.
13 . /usr/bin/gettext.sh
15 # Export package name for gettext.
16 TEXTDOMAIN='tazpanel'
17 export TEXTDOMAIN
19 #
20 # Commands
21 #
23 case "$QUERY_STRING" in
24 *)
25 #
26 # Network configuration
27 #
28 TITLE="- Network"
29 xhtml_header
30 cat << EOT
31 <div id="wrapper">
32 <h2>`gettext "Networking`</h2>
33 <p>`gettext "Manage network connection and services`</p>
34 </div>
36 `list_network_interfaces`
38 <h3>Output of: ifconfig -a</h3>
39 <pre>
40 `ifconfig -a`
41 </pre>
42 EOT
43 ;;
44 esac
46 xhtml_footer
47 exit 0