new release is tagged

This commit is contained in:
lars 2006-12-15 13:48:42 +00:00
parent 25aae11576
commit 33a8c4a1bb
719 changed files with 106587 additions and 0 deletions

View file

@ -0,0 +1,29 @@
<?cs # $Id$ ?>
<style type="text/css">
input.ipnum { text-align: center }
</style>
<h1><?cs var:html_escape(Lang.Plugins.network.Title.Network) ?></h1>
<?cs call:handle_messages() ?>
<?cs call:show_help(Lang.Plugins.network.Help.Network) ?>
<?cs call:print_form_header("set_ip", "network") ?>
<p><label for="ip"><?cs var:html_escape(Lang.Plugins.network.Text.IP) ?>: </label><br/>
<input class="ipnum" type="text" tabindex="1" name="ip1" size="3" id="ip"
value="<?cs var:Data.Plugins.network.ip.oc1
?>" />.<input class="ipnum" type="text" tabindex="2" name="ip2" size="3"
value="<?cs var:Data.Plugins.network.ip.oc2
?>" />.<input class="ipnum" type="text" tabindex="3" name="ip3" size="3"
value="<?cs var:Data.Plugins.network.ip.oc3
?>" />.<input class="ipnum" type="text" tabindex="4" name="ip4" size="3"
value="<?cs var:Data.Plugins.network.ip.oc4 ?>" /></p>
<p><input type="hidden" tabindex="5" name="store" value="yes" />
<button type="submit"><?cs var:html_escape(Lang.Plugins.network.Button.Network) ?></button></p>
</form>

View file

@ -0,0 +1,49 @@
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-11-28 05:04+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: sense.lab <devel@senselab.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: utf-8\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Configure network"
msgstr ""
#: Title.Network
msgid "Network settings"
msgstr ""
#: Button.Network
msgid "Update network settings"
msgstr ""
#: Text.IP
msgid "Network address"
msgstr ""
#: WarningMessage.InvalidIP.Title
msgid "Invalid value"
msgstr ""
#: WarningMessage.InvalidIP.Text
msgid "An invalid network address (IP) was supplied. Please try again."
msgstr ""
#: SuccessMessage.IPChanged.Title
msgid "Network address changed"
msgstr ""
#: SuccessMessage.IPChanged.Text
msgid "The network address has been changed. In a few seconds you will get redirected to the new address."
msgstr ""
#: Help.Network
msgid "Change the network address of the CryptoBox server. Be aware that you may lose your connection to the server under some circumstances."
msgstr ""

View file

@ -0,0 +1,50 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-11-28 05:04+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Configure network"
msgstr ""
#: Title.Network
msgid "Network settings"
msgstr ""
#: Button.Network
msgid "Update network settings"
msgstr ""
#: Text.IP
msgid "Network address"
msgstr ""
#: WarningMessage.InvalidIP.Title
msgid "Invalid value"
msgstr ""
#: WarningMessage.InvalidIP.Text
msgid "An invalid network address (IP) was supplied. Please try again."
msgstr ""
#: SuccessMessage.IPChanged.Title
msgid "Network address changed"
msgstr ""
#: SuccessMessage.IPChanged.Text
msgid "The network address has been changed. In a few seconds you will get redirected to the new address."
msgstr ""
#: Help.Network
msgid "Change the network address of the CryptoBox server. Be aware that you may lose your connection to the server under some circumstances."
msgstr ""

View file

@ -0,0 +1,50 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-11-28 05:04+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Configure network"
msgstr ""
#: Title.Network
msgid "Network settings"
msgstr ""
#: Button.Network
msgid "Update network settings"
msgstr ""
#: Text.IP
msgid "Network address"
msgstr ""
#: WarningMessage.InvalidIP.Title
msgid "Invalid value"
msgstr ""
#: WarningMessage.InvalidIP.Text
msgid "An invalid network address (IP) was supplied. Please try again."
msgstr ""
#: SuccessMessage.IPChanged.Title
msgid "Network address changed"
msgstr ""
#: SuccessMessage.IPChanged.Text
msgid "The network address has been changed. In a few seconds you will get redirected to the new address."
msgstr ""
#: Help.Network
msgid "Change the network address of the CryptoBox server. Be aware that you may lose your connection to the server under some circumstances."
msgstr ""

View file

@ -0,0 +1,50 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-11-28 05:04+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Configure network"
msgstr ""
#: Title.Network
msgid "Network settings"
msgstr ""
#: Button.Network
msgid "Update network settings"
msgstr ""
#: Text.IP
msgid "Network address"
msgstr ""
#: WarningMessage.InvalidIP.Title
msgid "Invalid value"
msgstr ""
#: WarningMessage.InvalidIP.Text
msgid "An invalid network address (IP) was supplied. Please try again."
msgstr ""
#: SuccessMessage.IPChanged.Title
msgid "Network address changed"
msgstr ""
#: SuccessMessage.IPChanged.Text
msgid "The network address has been changed. In a few seconds you will get redirected to the new address."
msgstr ""
#: Help.Network
msgid "Change the network address of the CryptoBox server. Be aware that you may lose your connection to the server under some circumstances."
msgstr ""

View file

@ -0,0 +1,49 @@
msgid ""
msgstr ""
#: Name
msgid "Configure network"
msgstr "Configure network"
#: Title.Network
msgid "Network settings"
msgstr "Network settings"
#: Button.Network
msgid "Update network settings"
msgstr "Update network settings"
#: Text.IP
msgid "Network address"
msgstr "Network address"
#: WarningMessage.InvalidIP.Title
msgid "Invalid value"
msgstr "Invalid value"
#: WarningMessage.InvalidIP.Text
msgid "An invalid network address (IP) was supplied. Please try again."
msgstr "An invalid network address (IP) was supplied. Please try again."
#: SuccessMessage.IPChanged.Title
msgid "Network address changed"
msgstr "Network address changed"
#: SuccessMessage.IPChanged.Text
msgid ""
"The network address has been changed. In a few seconds you will get "
"redirected to the new address."
msgstr ""
"The network address has been changed. In a few seconds you will get "
"redirected to the new address."
#: Help.Network
msgid ""
"Change the network address of the CryptoBox server. Be aware that you may "
"lose your connection to the server under some circumstances."
msgstr ""
"Change the network address of the CryptoBox server. Be aware that you may "
"lose your connection to the server under some circumstances."
#~ msgid "The network address (IP) was invalid and therefore not changed."
#~ msgstr "The network address (IP) was invalid and therefore not changed."

View file

@ -0,0 +1,50 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-11-28 05:04+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Configure network"
msgstr ""
#: Title.Network
msgid "Network settings"
msgstr ""
#: Button.Network
msgid "Update network settings"
msgstr ""
#: Text.IP
msgid "Network address"
msgstr ""
#: WarningMessage.InvalidIP.Title
msgid "Invalid value"
msgstr ""
#: WarningMessage.InvalidIP.Text
msgid "An invalid network address (IP) was supplied. Please try again."
msgstr ""
#: SuccessMessage.IPChanged.Title
msgid "Network address changed"
msgstr ""
#: SuccessMessage.IPChanged.Text
msgid "The network address has been changed. In a few seconds you will get redirected to the new address."
msgstr ""
#: Help.Network
msgid "Change the network address of the CryptoBox server. Be aware that you may lose your connection to the server under some circumstances."
msgstr ""

View file

@ -0,0 +1,50 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-11-28 05:04+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Configure network"
msgstr ""
#: Title.Network
msgid "Network settings"
msgstr ""
#: Button.Network
msgid "Update network settings"
msgstr ""
#: Text.IP
msgid "Network address"
msgstr ""
#: WarningMessage.InvalidIP.Title
msgid "Invalid value"
msgstr ""
#: WarningMessage.InvalidIP.Text
msgid "An invalid network address (IP) was supplied. Please try again."
msgstr ""
#: SuccessMessage.IPChanged.Title
msgid "Network address changed"
msgstr ""
#: SuccessMessage.IPChanged.Text
msgid "The network address has been changed. In a few seconds you will get redirected to the new address."
msgstr ""
#: Help.Network
msgid "Change the network address of the CryptoBox server. Be aware that you may lose your connection to the server under some circumstances."
msgstr ""

View file

@ -0,0 +1,50 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-11-28 05:04+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Configure network"
msgstr ""
#: Title.Network
msgid "Network settings"
msgstr ""
#: Button.Network
msgid "Update network settings"
msgstr ""
#: Text.IP
msgid "Network address"
msgstr ""
#: WarningMessage.InvalidIP.Title
msgid "Invalid value"
msgstr ""
#: WarningMessage.InvalidIP.Text
msgid "An invalid network address (IP) was supplied. Please try again."
msgstr ""
#: SuccessMessage.IPChanged.Title
msgid "Network address changed"
msgstr ""
#: SuccessMessage.IPChanged.Text
msgid "The network address has been changed. In a few seconds you will get redirected to the new address."
msgstr ""
#: Help.Network
msgid "Change the network address of the CryptoBox server. Be aware that you may lose your connection to the server under some circumstances."
msgstr ""

View file

@ -0,0 +1,50 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-11-28 05:04+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Configure network"
msgstr ""
#: Title.Network
msgid "Network settings"
msgstr ""
#: Button.Network
msgid "Update network settings"
msgstr ""
#: Text.IP
msgid "Network address"
msgstr ""
#: WarningMessage.InvalidIP.Title
msgid "Invalid value"
msgstr ""
#: WarningMessage.InvalidIP.Text
msgid "An invalid network address (IP) was supplied. Please try again."
msgstr ""
#: SuccessMessage.IPChanged.Title
msgid "Network address changed"
msgstr ""
#: SuccessMessage.IPChanged.Text
msgid "The network address has been changed. In a few seconds you will get redirected to the new address."
msgstr ""
#: Help.Network
msgid "Change the network address of the CryptoBox server. Be aware that you may lose your connection to the server under some circumstances."
msgstr ""

View file

@ -0,0 +1,50 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-11-28 05:04+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Configure network"
msgstr ""
#: Title.Network
msgid "Network settings"
msgstr ""
#: Button.Network
msgid "Update network settings"
msgstr ""
#: Text.IP
msgid "Network address"
msgstr ""
#: WarningMessage.InvalidIP.Title
msgid "Invalid value"
msgstr ""
#: WarningMessage.InvalidIP.Text
msgid "An invalid network address (IP) was supplied. Please try again."
msgstr ""
#: SuccessMessage.IPChanged.Title
msgid "Network address changed"
msgstr ""
#: SuccessMessage.IPChanged.Text
msgid "The network address has been changed. In a few seconds you will get redirected to the new address."
msgstr ""
#: Help.Network
msgid "Change the network address of the CryptoBox server. Be aware that you may lose your connection to the server under some circumstances."
msgstr ""

View file

@ -0,0 +1,50 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-11-28 05:04+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Configure network"
msgstr ""
#: Title.Network
msgid "Network settings"
msgstr ""
#: Button.Network
msgid "Update network settings"
msgstr ""
#: Text.IP
msgid "Network address"
msgstr ""
#: WarningMessage.InvalidIP.Title
msgid "Invalid value"
msgstr ""
#: WarningMessage.InvalidIP.Text
msgid "An invalid network address (IP) was supplied. Please try again."
msgstr ""
#: SuccessMessage.IPChanged.Title
msgid "Network address changed"
msgstr ""
#: SuccessMessage.IPChanged.Text
msgid "The network address has been changed. In a few seconds you will get redirected to the new address."
msgstr ""
#: Help.Network
msgid "Change the network address of the CryptoBox server. Be aware that you may lose your connection to the server under some circumstances."
msgstr ""

View file

@ -0,0 +1,50 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-11-28 05:04+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Configure network"
msgstr ""
#: Title.Network
msgid "Network settings"
msgstr ""
#: Button.Network
msgid "Update network settings"
msgstr ""
#: Text.IP
msgid "Network address"
msgstr ""
#: WarningMessage.InvalidIP.Title
msgid "Invalid value"
msgstr ""
#: WarningMessage.InvalidIP.Text
msgid "An invalid network address (IP) was supplied. Please try again."
msgstr ""
#: SuccessMessage.IPChanged.Title
msgid "Network address changed"
msgstr ""
#: SuccessMessage.IPChanged.Text
msgid "The network address has been changed. In a few seconds you will get redirected to the new address."
msgstr ""
#: Help.Network
msgid "Change the network address of the CryptoBox server. Be aware that you may lose your connection to the server under some circumstances."
msgstr ""

View file

@ -0,0 +1,50 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-11-28 05:04+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Configure network"
msgstr ""
#: Title.Network
msgid "Network settings"
msgstr ""
#: Button.Network
msgid "Update network settings"
msgstr ""
#: Text.IP
msgid "Network address"
msgstr ""
#: WarningMessage.InvalidIP.Title
msgid "Invalid value"
msgstr ""
#: WarningMessage.InvalidIP.Text
msgid "An invalid network address (IP) was supplied. Please try again."
msgstr ""
#: SuccessMessage.IPChanged.Title
msgid "Network address changed"
msgstr ""
#: SuccessMessage.IPChanged.Text
msgid "The network address has been changed. In a few seconds you will get redirected to the new address."
msgstr ""
#: Help.Network
msgid "Change the network address of the CryptoBox server. Be aware that you may lose your connection to the server under some circumstances."
msgstr ""

View file

@ -0,0 +1,50 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-11-28 05:04+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Configure network"
msgstr ""
#: Title.Network
msgid "Network settings"
msgstr ""
#: Button.Network
msgid "Update network settings"
msgstr ""
#: Text.IP
msgid "Network address"
msgstr ""
#: WarningMessage.InvalidIP.Title
msgid "Invalid value"
msgstr ""
#: WarningMessage.InvalidIP.Text
msgid "An invalid network address (IP) was supplied. Please try again."
msgstr ""
#: SuccessMessage.IPChanged.Title
msgid "Network address changed"
msgstr ""
#: SuccessMessage.IPChanged.Text
msgid "The network address has been changed. In a few seconds you will get redirected to the new address."
msgstr ""
#: Help.Network
msgid "Change the network address of the CryptoBox server. Be aware that you may lose your connection to the server under some circumstances."
msgstr ""

View file

@ -0,0 +1,50 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-11-28 05:04+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Configure network"
msgstr ""
#: Title.Network
msgid "Network settings"
msgstr ""
#: Button.Network
msgid "Update network settings"
msgstr ""
#: Text.IP
msgid "Network address"
msgstr ""
#: WarningMessage.InvalidIP.Title
msgid "Invalid value"
msgstr ""
#: WarningMessage.InvalidIP.Text
msgid "An invalid network address (IP) was supplied. Please try again."
msgstr ""
#: SuccessMessage.IPChanged.Title
msgid "Network address changed"
msgstr ""
#: SuccessMessage.IPChanged.Text
msgid "The network address has been changed. In a few seconds you will get redirected to the new address."
msgstr ""
#: Help.Network
msgid "Change the network address of the CryptoBox server. Be aware that you may lose your connection to the server under some circumstances."
msgstr ""

View file

@ -0,0 +1,50 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-11-28 05:04+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Configure network"
msgstr ""
#: Title.Network
msgid "Network settings"
msgstr ""
#: Button.Network
msgid "Update network settings"
msgstr ""
#: Text.IP
msgid "Network address"
msgstr ""
#: WarningMessage.InvalidIP.Title
msgid "Invalid value"
msgstr ""
#: WarningMessage.InvalidIP.Text
msgid "An invalid network address (IP) was supplied. Please try again."
msgstr ""
#: SuccessMessage.IPChanged.Title
msgid "Network address changed"
msgstr ""
#: SuccessMessage.IPChanged.Text
msgid "The network address has been changed. In a few seconds you will get redirected to the new address."
msgstr ""
#: Help.Network
msgid "Change the network address of the CryptoBox server. Be aware that you may lose your connection to the server under some circumstances."
msgstr ""

View file

@ -0,0 +1,50 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-11-28 05:04+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Configure network"
msgstr ""
#: Title.Network
msgid "Network settings"
msgstr ""
#: Button.Network
msgid "Update network settings"
msgstr ""
#: Text.IP
msgid "Network address"
msgstr ""
#: WarningMessage.InvalidIP.Title
msgid "Invalid value"
msgstr ""
#: WarningMessage.InvalidIP.Text
msgid "An invalid network address (IP) was supplied. Please try again."
msgstr ""
#: SuccessMessage.IPChanged.Title
msgid "Network address changed"
msgstr ""
#: SuccessMessage.IPChanged.Text
msgid "The network address has been changed. In a few seconds you will get redirected to the new address."
msgstr ""
#: Help.Network
msgid "Change the network address of the CryptoBox server. Be aware that you may lose your connection to the server under some circumstances."
msgstr ""

View file

@ -0,0 +1,24 @@
Name = Configure network
Link = Configure network
Title.Network = Network settings
Button.Network = Update network settings
Text.IP = Network address
Help.Network = Change the network address of the CryptoBox server. Be aware that you may lose your connection to the server under some circumstances.
WarningMessage {
InvalidIP {
Title = Invalid value
Text = An invalid network address (IP) was supplied. Please try again.
}
}
SuccessMessage {
IPChanged {
Title = Network address changed
Text = The network address has been changed. In a few seconds you will get redirected to the new address.
}
}

View file

@ -0,0 +1,169 @@
#
# Copyright 2006 sense.lab e.V.
#
# This file is part of the CryptoBox.
#
# The CryptoBox 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 2 of the License, or
# (at your option) any later version.
#
# The CryptoBox 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 the CryptoBox; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
"""The network feature of the CryptoBox.
"""
__revision__ = "$Id"
import subprocess
import os
import cryptobox.plugins.base
## specify (in seconds), how long we should wait before redirecting and ip change
REDIRECT_DELAY = 10
CHANGE_IP_DELAY = 2
class network(cryptobox.plugins.base.CryptoBoxPlugin):
"""The network feature of the CryptoBox.
"""
plugin_capabilities = [ "system" ]
plugin_visibility = [ "preferences" ]
request_auth = True
rank = 30
def do_action(self, store=None, redirected="", ip1="", ip2="", ip3="", ip4=""):
"""Show a form containing the current IP - change it if requested.
"""
## if we were redirected, then we should display the default page
self.cbox.log.debug("executing network plugin")
if redirected == "1":
self.cbox.log.debug("network plugin: redirected")
return "form_network"
## request for IP change?
if store:
self.cbox.log.debug("network plugin: changing IP")
try:
for ip_in in (ip1, ip2, ip3, ip4):
if (int(ip_in) < 0) or (int(ip_in) > 255):
self.cbox.log.info("invalid IP supplied: %s" % \
str((ip1, ip2, ip3, ip4)))
raise ValueError
new_ip = "%d.%d.%d.%d" % (int(ip1), int(ip2), int(ip3), int(ip4))
except ValueError:
self.hdf["Data.Warning"] = "Plugins.network.InvalidIP"
self.__prepare_form_data()
return "form_network"
if self.__set_ip(new_ip):
self.cbox.log.info("the IP was successfully changed: %s" % new_ip)
self.hdf["Data.Success"] = "Plugins.network.IPChanged"
self.hdf["Data.Redirect.URL"] = self.__get_redirect_destination(new_ip)
self.hdf["Data.Redirect.Delay"] = REDIRECT_DELAY
return "form_network"
else:
self.cbox.log.warn("failed to change IP address to: %s" % new_ip)
self.hdf["Data.Warning"] = "Plugins.network.InvalidIP"
self.__prepare_form_data()
return "form_network"
else:
self.cbox.log.debug("network plugin: show form")
## just show the form
self.__prepare_form_data()
return "form_network"
def get_status(self):
"""The current IP is the status of this feature.
"""
return "%d.%d.%d.%d" % self.__get_current_ip()
def __get_redirect_destination(self, ip):
"""Put the new URL together.
"""
import cherrypy
req = cherrypy.request
base_parts = req.base.split(":")
dest = "%s://%s" % (base_parts[0], ip)
if len(base_parts) == 3:
dest += ":%s" % base_parts[2]
return dest
def __prepare_form_data(self):
"""Set some hdf values.
"""
(oc1, oc2, oc3, oc4) = self.__get_current_ip()
self.hdf[self.hdf_prefix + "ip.oc1"] = oc1
self.hdf[self.hdf_prefix + "ip.oc2"] = oc2
self.hdf[self.hdf_prefix + "ip.oc3"] = oc3
self.hdf[self.hdf_prefix + "ip.oc4"] = oc4
def __get_current_ip(self):
"""Retrieve the current IP.
"""
import re
import imp
## load some values from the root_action.py script
root_action_plug = imp.load_source("root_action",
os.path.join(self.plugin_dir, "root_action.py"))
## get the current IP of the network interface
proc = subprocess.Popen(
shell = False,
stdout = subprocess.PIPE,
args = [
root_action_plug.IFCONFIG_BIN,
root_action_plug.IFACE])
(stdout, stderr) = proc.communicate()
if proc.returncode != 0:
return (0,0,0,0)
## this regex matches the four numbers of the IP
match = re.search(r'inet [\w]+:(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\s', stdout)
if match:
## use the previously matched numbers
return tuple([int(e) for e in match.groups()])
else:
return (0, 0, 0, 0)
def __set_ip(self, new_ip):
"""Change the IP.
"""
import threading
## call the root_action script after some seconds - so we can deliver the page before
def delayed_ip_change():
"""A threaded function to change the IP.
"""
import time
time.sleep(CHANGE_IP_DELAY)
proc = subprocess.Popen(
shell = False,
stderr = subprocess.PIPE,
args = [
self.cbox.prefs["Programs"]["super"],
self.cbox.prefs["Programs"]["CryptoBoxRootActions"],
"plugin",
os.path.join(self.plugin_dir, "root_action.py"),
new_ip])
proc.wait()
if proc.returncode != 0:
self.cbox.log.warn("failed to change IP address: %s" % new_ip)
self.cbox.log.warn("error output: %s" % str(proc.stderr.read()))
return
thread = threading.Thread()
thread.run = delayed_ip_change
thread.setDaemon(True)
thread.start()
# TODO: how could we guess, if it failed?
return True

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View file

@ -0,0 +1,64 @@
#!/usr/bin/env python2.4
#
# Copyright 2006 sense.lab e.V.
#
# This file is part of the CryptoBox.
#
# The CryptoBox 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 2 of the License, or
# (at your option) any later version.
#
# The CryptoBox 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 the CryptoBox; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
__revision__ = "$Id"
#TODO: add netmask and gateway
## necessary: otherwise CryptoBoxRootActions.py will refuse to execute this script
PLUGIN_TYPE = "cryptobox"
IFCONFIG_BIN = "/sbin/ifconfig"
#TODO: put IFACE in config
IFACE = "eth0"
import subprocess
import re
import sys
import os
if __name__ == "__main__":
args = sys.argv[1:]
self_bin =sys.argv[0]
if len(args) > 1:
sys.stderr.write("%s: too many arguments (%s)\n" % (self_bin, args))
sys.exit(1)
if len(args) == 0:
sys.stderr.write("%s: no argument supplied\n" % self_bin)
sys.exit(1)
match = re.search(r'^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$', args[0])
## did we match? If yes, then: are there wrong values inside?
if not match or [e for e in match.groups() if int(e) > 255]:
sys.stderr.write("%s: illegal argument (%s)\n" % (self_bin, args[0]))
sys.exit(1)
proc = subprocess.Popen(
shell = False,
args = [IFCONFIG_BIN, IFACE, args[0]])
proc.wait()
sys.exit(proc.returncode)

View file

@ -0,0 +1,78 @@
#
# Copyright 2006 sense.lab e.V.
#
# This file is part of the CryptoBox.
#
# The CryptoBox 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 2 of the License, or
# (at your option) any later version.
#
# The CryptoBox 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 the CryptoBox; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
__revision__ = "$Id"
import cryptobox.web.testclass
from network import CHANGE_IP_DELAY
class unittests(cryptobox.web.testclass.WebInterfaceTestClass):
def test_ip_change(self):
'''Change network address.'''
## the time module is necessary for the CHANGE_IP_DELAY
import time
self.register_auth(self.url + "network")
## do not follow redirects - they would break the test otherwise
self.cmd.config("acknowledge_equiv_refresh", 0)
self.cmd.go(self.url + "network")
## extract the current IP from the network plugin output
def get_current_ip():
self.register_auth(self.url + "network")
self.cmd.go(self.url + "network")
self.cmd.find(r'Data.Status.Plugins.network=([0-9\.]*)$', "m")
return self.locals["__match__"]
orig_ip_text = get_current_ip()
orig_ip_octs = orig_ip_text.split(".")
## check, if the original IP is valid (contains four octets)
self.assertEquals(4, len(orig_ip_octs))
def set_ip((ip1, ip2, ip3, ip4)):
self.cmd.go(self.url + "network")
self.cmd.formvalue("set_ip", "ip1", str(ip1))
self.cmd.formvalue("set_ip", "ip2", str(ip2))
self.cmd.formvalue("set_ip", "ip3", str(ip3))
self.cmd.formvalue("set_ip", "ip4", str(ip4))
self.cmd.submit()
## sleep a little bit longer than the delay necessary for ip-change
time.sleep(CHANGE_IP_DELAY + 3)
set_ip([1,-2,0,1])
self.assertEquals(orig_ip_text, get_current_ip())
set_ip([1,0,0,256])
self.assertEquals(orig_ip_text, get_current_ip())
set_ip([1,"foo",0,1])
self.assertEquals(orig_ip_text, get_current_ip())
new_ip = orig_ip_octs[:]
new_ip[3] = str((int(orig_ip_octs[3]) + 128) % 256)
set_ip(new_ip)
self.assertEquals(".".join(new_ip), get_current_ip())
set_ip(orig_ip_octs)
self.assertEquals(orig_ip_text, get_current_ip())
def test_inputs(self):
"""Check various input patterns for 'network' plugin.
"""
self.register_auth(self.url + "network")
self.cmd.go(self.url + "network" + "?redirected=1")
self.cmd.notfind("problem")
self.cmd.go(self.url + "network" + "?store=1")
self.cmd.find("invalid network address")