tazpanel rev 24

Add live.cgi aka all Live systems tools
author Christophe Lincoln <pankso@slitaz.org>
date Tue Apr 05 01:47:08 2011 +0200 (2011-04-05)
parents 2274e489400c
children 79c49d85215d
files live.cgi styles/default/header.html
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/live.cgi	Tue Apr 05 01:47:08 2011 +0200
     1.3 @@ -0,0 +1,42 @@
     1.4 +#!/bin/sh
     1.5 +#
     1.6 +# CGI interface for SliTaz Live systems using Tazlito and TazUSB.
     1.7 +#
     1.8 +echo "Content-Type: text/html"
     1.9 +echo ""
    1.10 +
    1.11 +# Common functions from libtazpanel
    1.12 +. lib/libtazpanel
    1.13 +get_config
    1.14 +
    1.15 +# Include gettext helper script.
    1.16 +. /usr/bin/gettext.sh
    1.17 +
    1.18 +# Export package name for gettext.
    1.19 +TEXTDOMAIN='tazpanel-live'
    1.20 +export TEXTDOMAIN
    1.21 +
    1.22 +#
    1.23 +# Commands
    1.24 +#
    1.25 +
    1.26 +case "$QUERY_STRING" in
    1.27 +	gen-distro)
    1.28 +		echo "" ;;
    1.29 +	*)
    1.30 +		#
    1.31 +		# Default xHTML content
    1.32 +		#
    1.33 +		xhtml_header
    1.34 +		cat << EOT
    1.35 +<div id="wrapper">
    1.36 +	<h2>`gettext "SliTaz Live"`</h2>
    1.37 +	<p>`gettext "Create and manage Live CD or USB SliTaz systems"`<p>
    1.38 +</div>
    1.39 +
    1.40 +EOT
    1.41 +		;;
    1.42 +esac
    1.43 +
    1.44 +xhtml_footer
    1.45 +exit 0
     2.1 --- a/styles/default/header.html	Tue Apr 05 01:42:16 2011 +0200
     2.2 +++ b/styles/default/header.html	Tue Apr 05 01:47:08 2011 +0200
     2.3 @@ -15,6 +15,7 @@
     2.4  	<div id="menu">
     2.5  		<a href="./">Panel</a>
     2.6  		<a href="pkgs.cgi">Packages</a>
     2.7 +		<a href="live.cgi">Live</a>
     2.8  		<a href="index.cgi?boot">Boot</a>
     2.9  		<a href="index.cgi?users">Users</a>
    2.10  		<a href="index.cgi?network">Network</a>