release v0.3.2

This commit is contained in:
lars 2007-01-08 05:55:23 +00:00
parent 0b163061f5
commit dd557f7866
719 changed files with 100817 additions and 0 deletions

View file

@ -0,0 +1,25 @@
<?cs # $Id$ ?>
<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,35 @@
#: Name
msgid "Configure network"
msgstr ""
#: Title.Network
msgid "Network settings"
msgstr ""
#: Button.Network
msgid "Update network settings"
msgstr ""
#: Text.IP
msgid "Network 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 ""
#: 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 ""

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-12-18 11:39+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 ""
#: 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 ""
#: 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 ""

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-12-18 11:39+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 ""
#: 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 ""
#: 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 ""

View file

@ -0,0 +1,50 @@
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:39+0100\n"
"PO-Revision-Date: 2006-12-18 00:50+0100\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: Pootle 0.10.1\n"
#: Name
msgid "Configure network"
msgstr "Netzwerk einrichten"
#: Title.Network
msgid "Network settings"
msgstr "Netzwerkeinstellungen"
#: Button.Network
msgid "Update network settings"
msgstr "Netzwerkeinstellungen speichern"
#: Text.IP
msgid "Network address"
msgstr "Netzwerkadresse"
#: 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 "Konfiguriere die Netzwerkadresse des CryptoBox-Servers. Beachte bitte, dass du dabei unter Umständen die Verbindung zu dem Server verlieren kannst."
#: WarningMessage.InvalidIP.Title
msgid "Invalid value"
msgstr "Ungültige Adresseingabe"
#: WarningMessage.InvalidIP.Text
msgid "An invalid network address (IP) was supplied. Please try again."
msgstr "Es wurde eine ungültige Netzwerkadresse (IP) angegeben. Versuche es bitte erneut."
#: SuccessMessage.IPChanged.Title
msgid "Network address changed"
msgstr "Netzwerkadresse geändert"
#: SuccessMessage.IPChanged.Text
msgid "The network address has been changed. In a few seconds you will get redirected to the new address."
msgstr "Die Netzwerkadresse wurde geändert. In wenigen Sekunden wirst du zu der neuen Adresse umgeleitet."

View file

@ -0,0 +1,39 @@
#: 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"
#: 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."
#: 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."
#~ 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-12-18 11:39+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 ""
#: 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 ""
#: 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 ""

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-12-18 11:39+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 ""
#: 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 ""
#: 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 ""

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-12-18 11:39+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 ""
#: 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 ""
#: 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 ""

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-12-18 11:39+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 ""
#: 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 ""
#: 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 ""

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-12-18 11:39+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 ""
#: 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 ""
#: 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 ""

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-12-18 11:39+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 ""
#: 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 ""
#: 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 ""

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-12-18 11:39+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 ""
#: 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 ""
#: 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 ""

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-12-18 11:39+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 ""
#: 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 ""
#: 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 ""

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-12-18 11:39+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 ""
#: 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 ""
#: 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 ""

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-12-18 11:39+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 ""
#: 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 ""
#: 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 ""

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-12-18 11:39+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 ""
#: 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 ""
#: 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 ""

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-12-18 11:40+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 ""
#: 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 ""
#: 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 ""

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,2 @@
input.ipnum { text-align: center }

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 python
#
# 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"
from cryptobox.tests.base import WebInterfaceTestClass
from network import CHANGE_IP_DELAY
class unittests(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")