Add jeta to hatchery.
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 15 Dec 2008 22:35:18 +0000 (15:35 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 15 Dec 2008 22:35:18 +0000 (15:35 -0700)
44 files changed:
jeta/COPYING [new file with mode: 0644]
jeta/README [new file with mode: 0644]
jeta/config/.htaccess [new file with mode: 0644]
jeta/config/conf.xml [new file with mode: 0644]
jeta/config/prefs.php.dist [new file with mode: 0644]
jeta/docs/CHANGES [new file with mode: 0644]
jeta/docs/CREDITS [new file with mode: 0644]
jeta/docs/INSTALL [new file with mode: 0644]
jeta/docs/RELEASE_NOTES [new file with mode: 0644]
jeta/index.php [new file with mode: 0644]
jeta/jar/SSHTermApplet-jdk1.3.1-dependencies-signed.jar [new file with mode: 0644]
jeta/jar/SSHTermApplet-jdkbug-workaround-signed.jar [new file with mode: 0644]
jeta/jar/SSHTermApplet-signed.jar [new file with mode: 0644]
jeta/jar/jta.conf [new file with mode: 0644]
jeta/jar/jta26.jar [new file with mode: 0755]
jeta/lib/.htaccess [new file with mode: 0644]
jeta/lib/Applet.php [new file with mode: 0644]
jeta/lib/Applet/jta.php [new file with mode: 0644]
jeta/lib/Applet/sshtools.php [new file with mode: 0644]
jeta/lib/Jeta.php [new file with mode: 0644]
jeta/lib/base.php [new file with mode: 0644]
jeta/lib/version.php [new file with mode: 0644]
jeta/locale/cs_CZ/LC_MESSAGES/jeta.mo [new file with mode: 0644]
jeta/locale/de_DE/LC_MESSAGES/jeta.mo [new file with mode: 0644]
jeta/locale/en_US/help.xml [new file with mode: 0644]
jeta/locale/es_ES/LC_MESSAGES/jeta.mo [new file with mode: 0644]
jeta/locale/es_ES/help.xml [new file with mode: 0644]
jeta/locale/fi_FI/LC_MESSAGES/jeta.mo [new file with mode: 0644]
jeta/locale/ro_RO/LC_MESSAGES/jeta.mo [new file with mode: 0644]
jeta/locale/zh_TW/LC_MESSAGES/jeta.mo [new file with mode: 0644]
jeta/main.php [new file with mode: 0644]
jeta/po/README [new file with mode: 0644]
jeta/po/cs_CZ.po [new file with mode: 0644]
jeta/po/de_DE.po [new file with mode: 0644]
jeta/po/es_ES.po [new file with mode: 0644]
jeta/po/fi_FI.po [new file with mode: 0644]
jeta/po/jeta.pot [new file with mode: 0644]
jeta/po/ro_RO.po [new file with mode: 0644]
jeta/po/zh_TW.po [new file with mode: 0644]
jeta/templates/common-header.inc [new file with mode: 0644]
jeta/templates/main.html [new file with mode: 0644]
jeta/test.php [new file with mode: 0644]
jeta/themes/graphics/favicon.ico [new file with mode: 0644]
jeta/themes/graphics/jeta.png [new file with mode: 0644]

diff --git a/jeta/COPYING b/jeta/COPYING
new file mode 100644 (file)
index 0000000..5a965fb
--- /dev/null
@@ -0,0 +1,280 @@
+                   GNU GENERAL PUBLIC LICENSE
+                      Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+     59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                           Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Library General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+\f
+                   GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+\f
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+\f
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+\f
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+                           NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+                    END OF TERMS AND CONDITIONS
diff --git a/jeta/README b/jeta/README
new file mode 100644 (file)
index 0000000..e18c48c
--- /dev/null
@@ -0,0 +1,83 @@
+What is Jeta?
+=============
+
+:Contact: dev@lists.horde.org
+
+.. contents:: Contents
+.. section-numbering::
+
+Jeta is a Horde wrapper around various Java SSH applets.  Currently, Jeta
+supports the SSHTerm applet from the `SSHTools Project`_ and the `JTA`_ applet
+(for non-commercial use only).
+
+This software is OSI Certified Open Source Software.  OSI Certified is a
+certification mark of the `Open Source Initiative`_.
+
+.. _`SSHTools Project`: http://sourceforge.net/projects/sshtools
+.. _`JTA`: http://javassh.org/
+.. _`Open Source Initiative`: http://www.opensource.org/
+
+
+Obtaining Jeta
+--------------
+
+Further information on Jeta and the latest version can be obtained at:
+
+  http://www.horde.org/jeta/
+
+
+Documentation
+-------------
+
+The following documentation is available in the Jeta distribution:
+
+:README_:          This file
+:COPYING_:         Copyright and license information
+:`docs/CHANGES`_:  Changes by release
+:`docs/CREDITS`_:  Project developers
+:`docs/INSTALL`_:  Installation instructions and notes
+
+
+Installation
+------------
+
+Instructions for installing Jeta can be found in the file INSTALL_ in the
+``docs/`` directory of the Jeta distribution.
+
+
+Assistance
+----------
+
+If you encounter problems with Jeta, help is available!
+
+The Horde Frequently Asked Questions List (FAQ), available on the Web at
+
+  http://www.horde.org/faq/
+
+The Horde Project runs a number of mailing lists, for individual applications
+and for issues relating to the project as a whole.  Information, archives, and
+subscription information can be found at
+
+  http://www.horde.org/mail/
+
+Lastly, Horde developers, contributors and users also make occasional
+appearances on IRC, on the channel #horde on the freenode Network
+(irc.freenode.net).
+
+
+Licensing
+---------
+
+For licensing and copyright information, please see the file COPYING_ in the
+Jeta distribution.
+
+Thanks,
+
+The Jeta Team
+
+.. _README: ?f=README.html
+.. _COPYING: http://www.horde.org/licenses/gpl.php
+.. _docs/CHANGES: ?f=CHANGES.html
+.. _docs/CREDITS: ?f=CREDITS.html
+.. _INSTALL:
+.. _docs/INSTALL: ?f=INSTALL.html
diff --git a/jeta/config/.htaccess b/jeta/config/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/jeta/config/conf.xml b/jeta/config/conf.xml
new file mode 100644 (file)
index 0000000..2015413
--- /dev/null
@@ -0,0 +1,19 @@
+<?xml version="1.0"?>
+<configuration>
+ <configsection name="jeta" desc="Base jeta settings">
+  <configheader>Authentication Settings</configheader>
+  <configstring name="hordeauth" desc="If you want the full username@realm to
+  be used to connect then set this to 'full'; otherwise set this to 'true' and
+  just the username will be used to connect">true</configstring>
+ </configsection>
+
+ <configsection name="menu" desc="Menu settings">
+  <configheader>Menu Settings</configheader>
+  <configmultienum name="apps" desc="Select any applications that should be
+  linked in Jeta's menu">
+   <values>
+    <configspecial name="list-horde-apps" />
+   </values>
+  </configmultienum>
+ </configsection>
+</configuration>
diff --git a/jeta/config/prefs.php.dist b/jeta/config/prefs.php.dist
new file mode 100644 (file)
index 0000000..0e42b6a
--- /dev/null
@@ -0,0 +1,227 @@
+<?php
+/**
+ * See horde/config/prefs.php for documentation on the structure of this file.
+ */
+
+$prefGroups['base'] = array(
+    'column' => _("General Options"),
+    'label' => _("Base Settings"),
+    'desc' => _("Change your base settings."),
+    'members' => array('host', 'port', 'sshdriver')
+);
+
+$prefGroups['sshtools'] = array(
+    'column' => _("Applet Options"),
+    'label' => _("SSHTools Options"),
+    'desc' => _("Options that control the behavior of the SSHTools applet."),
+    'members' => array('sshtools_auth', 'sshtools_connect_immediately',
+                       'sshtools_connect_dialog',
+                       'sshtools_disable_hostkey_verify',
+                       'sshtools_show_toolbar', 'sshtools_show_menubar',
+                       'sshtools_show_statusbar', 'sshtools_show_scrollbar',
+                       'sshtools_autohide')
+);
+
+$prefGroups['jta'] = array(
+    'column' => _("Applet Options"),
+    'label' => _("JTA Options"),
+    'desc' => _("Options that control the behavior of the JTA applet."),
+    'members' => array('jta_detach', 'jta_detach_fullscreen',
+                       'jta_detach_title', 'jta_detach_immediately',
+                       'jta_detach_start', 'jta_detach_stop',
+                       'jta_detach_menubar', 'jta_detach_disconnect',
+                       'jta_disconnect')
+);
+
+//
+$_prefs['host'] = array(
+    'value' => '',
+    'locked' => false,
+    'shared' => false,
+    'type' => 'text',
+    'desc' => _("The default server name to connect to.")
+);
+
+//
+$_prefs['port'] = array(
+    'value' => 22,
+    'locked' => false,
+    'shared' => false,
+    'type' => 'number',
+    'desc' => _("The default port to connect to.")
+);
+
+//
+$_prefs['sshdriver'] = array(
+    'value' => 'sshtools',
+    'locked' => false,
+    'shared' => false,
+    'type' => 'enum',
+    'enum' => array('sshtools' => _("SSHTools"),
+                    'jta' => _("JTA (non-commerical use only)")),
+    'desc' => _("SSH application to use:")
+);
+
+//
+$_prefs['sshtools_auth'] = array(
+    'value' => 'password',
+    'locked' => false,
+    'shared' => false,
+    'type' => 'enum',
+    'enum' => array('password' => _("password"),
+                    'publickey' => _("publickey")),
+    'desc' => _("Authentication method:")
+);
+
+//
+$_prefs['sshtools_connect_immediately'] = array(
+    'value' => 1,
+    'locked' => false,
+    'shared' => false,
+    'type' => 'checkbox',
+    'desc' => _("Connect immediately when the user loads the page?")
+);
+
+//
+$_prefs['sshtools_connect_dialog'] = array(
+    'value' => 1,
+    'locked' => false,
+    'shared' => false,
+    'type' => 'checkbox',
+    'desc' => _("Show the connection dialog?")
+);
+
+//
+$_prefs['sshtools_disable_hostkey_verify'] = array(
+    'value' => 0,
+    'locked' => false,
+    'shared' => false,
+    'type' => 'checkbox',
+    'desc' => _("Disable the hostkey verification?")
+);
+
+//
+$_prefs['sshtools_show_toolbar'] = array(
+    'value' => 1,
+    'locked' => false,
+    'shared' => false,
+    'type' => 'checkbox',
+    'desc' => _("Enable the toolbar?")
+);
+
+//
+$_prefs['sshtools_show_menubar'] = array(
+    'value' => 1,
+    'locked' => false,
+    'shared' => false,
+    'type' => 'checkbox',
+    'desc' => _("Enable the menubar?")
+);
+
+//
+$_prefs['sshtools_show_statusbar'] = array(
+    'value' => 1,
+    'locked' => false,
+    'shared' => false,
+    'type' => 'checkbox',
+    'desc' => _("Enable the statusbar?")
+);
+
+//
+$_prefs['sshtools_show_scrollbar'] = array(
+    'value' => 1,
+    'locked' => false,
+    'shared' => false,
+    'type' => 'checkbox',
+    'desc' => _("Enable the scrollbar?")
+);
+
+//
+$_prefs['sshtools_autohide'] = array(
+    'value' => 0,
+    'locked' => false,
+    'shared' => false,
+    'type' => 'checkbox',
+    'desc' => _("Enable auto-hiding of the tool bar, menu bar, status bar and scroll bar?")
+);
+
+//
+$_prefs['jta_detach'] = array(
+    'value' => 0,
+    'locked' => false,
+    'shared' => false,
+    'type' => 'checkbox',
+    'desc' => _("Detach the actual terminal display and its components from the browser window and run in a separate window?")
+);
+
+//
+$_prefs['jta_detach_fullscreen'] = array(
+    'value' => 0,
+    'locked' => false,
+    'shared' => false,
+    'type' => 'checkbox',
+    'desc' => _("Make the detached window fill the entire screen?")
+);
+
+//
+$_prefs['jta_detach_title'] = array(
+    'value' => _("SSH Terminal"),
+    'locked' => false,
+    'shared' => false,
+    'type' => 'text',
+    'desc' => _("The window title of the detached applet.")
+);
+
+//
+$_prefs['jta_detach_immediately'] = array(
+    'value' => 0,
+    'locked' => false,
+    'shared' => false,
+    'type' => 'checkbox',
+    'desc' => _("If selected, applet will detach immediately from page on load. If not selected, user will need to press start button before applet becomes detached.")
+);
+
+//
+$_prefs['jta_detach_start'] = array(
+    'value' => _("Connect"),
+    'locked' => false,
+    'shared' => false,
+    'type' => 'text',
+    'desc' => _("The text to use for the start button.")
+);
+
+//
+$_prefs['jta_detach_stop'] = array(
+    'value' => _("Disconnect"),
+    'locked' => false,
+    'shared' => false,
+    'type' => 'text',
+    'desc' => _("The text to use for the disconnect button.")
+);
+
+//
+$_prefs['jta_detach_menubar'] = array(
+    'value' => 1,
+    'locked' => false,
+    'shared' => false,
+    'type' => 'checkbox',
+    'desc' => _("Show the menubar in the detached applet?")
+);
+
+//
+$_prefs['jta_detach_disconnect'] = array(
+    'value' => 1,
+    'locked' => false,
+    'shared' => false,
+    'type' => 'checkbox',
+    'desc' => _("Close the detached window if the SSH session is lost?")
+);
+
+//
+$_prefs['jta_disconnect'] = array(
+    'value' => 1,
+    'locked' => false,
+    'shared' => false,
+    'type' => 'checkbox',
+    'desc' => _("Close the SSH session if you leave the page?")
+);
diff --git a/jeta/docs/CHANGES b/jeta/docs/CHANGES
new file mode 100644 (file)
index 0000000..0b43c57
--- /dev/null
@@ -0,0 +1,31 @@
+--------
+v2.0-cvs
+--------
+
+
+----
+v1.0
+----
+
+[mms] Move configuration of applets to preferences.
+[jan] Add JTA applet (http://javassh.org/).
+[mms] Use Jeta_Applet:: to generate code necessary to load applets.
+
+
+--------
+v1.0-RC1
+--------
+
+[mms] Convert to Horde_Template::.
+[jan] Add Czech translation (Pavel Chytil <pavel@chytil.tk>).
+[jan] Add Spanish translation (Manuel Perez Ayala <mperaya@alcazaba.unex.es>).
+[jan] Add German translation.
+[max] Add support for configuring full/bare Auth name as username.
+[jan] Add Finnish translation (Petteri Karttunen <pkarttun@siba.fi>).
+[jan] Replace applet with SSHTerm from SSHTools (www.sshtools.com).
+[jan] Add Romanian translation (Eugen Hoanca <eugenh@urban-grafx.ro>).
+[ejr] Add gettext support and traditional chinese translation
+[ejr] Add horde-style configuration files (not yet used)
+[ejr] Made directories/files to match horde module layout
+[ejr] Added documentation files
+[ejr] Added .htaccess files to deny access to config, lib, and templates.
diff --git a/jeta/docs/CREDITS b/jeta/docs/CREDITS
new file mode 100644 (file)
index 0000000..462aa1d
--- /dev/null
@@ -0,0 +1,27 @@
+=======================
+ Jeta Development Team
+=======================
+
+
+Core Developers
+===============
+
+- Eric Rostetter <eric.rostetter@physics.utexas.edu>
+  Original design
+- Jan Schneider <jan@horde.org>
+  Integration of SSHTools and JTA applets
+- Michael Slusarz <slusarz@horde.org>
+  General coding
+
+
+Localization
+============
+
+=====================   ======================================================
+Chinese (Traditional)   Jonathan Chen
+Czech                   Pavel Chytil <pavel@chytil.tk>.
+Finnish                 Petteri Karttunen <pkarttun@siba.fi>
+German                  Jan Schneider <jan@horde.org>
+Romanian                Eugen Hoanca
+Spanish                 Manuel Perez Ayala <mperaya@alcazaba.unex.es>
+=====================   ======================================================
diff --git a/jeta/docs/INSTALL b/jeta/docs/INSTALL
new file mode 100644 (file)
index 0000000..78d3245
--- /dev/null
@@ -0,0 +1,232 @@
+=================
+ Installing Jeta
+=================
+
+:Contact: dev@lists.horde.org
+
+.. contents:: Contents
+.. section-numbering::
+
+This document contains instructions for installing Jeta on your system.
+
+Jeta is based on a java SSH client.  It allows shell access to your
+web server, or to another machine if used with a port relay daemon
+(not provided).
+
+For information on the capabilities and features of Jeta, see the file
+README_ in the top-level directory of the Jeta distribution.
+
+
+Obtaining Jeta
+==============
+
+Jeta can be obtained from the Horde website and FTP server, at
+
+   http://www.horde.org/jeta/
+
+   ftp://ftp.horde.org/jeta/
+
+Or use the mirror closest to you:
+
+   http://www.horde.org/mirrors.php
+
+Bleeding-edge development versions of Jeta are available via CVS; see the
+file `horde/docs/HACKING`_ in the Horde distribution, or the website
+http://www.horde.org/source/, for information on accessing the Horde CVS
+repository.
+
+
+Prerequisites
+=============
+
+To function properly, Jeta **REQUIRES** the following:
+
+1. A working Horde installation.
+
+   Jeta runs within the `Horde Application Framework`_, a set of common tools
+   for Web applications written in PHP.  You must install Horde before
+   before installing Jeta.
+
+   .. Important:: Jeta requires at least version 4.0 of the Horde Framework -
+                  earlier versions of Horde will **not** work.
+
+   The Horde Framework can be obtained from the Horde website and FTP server,
+   at
+
+      http://www.horde.org/horde/
+
+      ftp://ftp.horde.org/pub/horde/
+
+   Many of Jeta's prerequisites are also Horde prerequisites.
+
+   .. Important:: Be sure to have completed all of the steps in the
+                  `horde/docs/INSTALL`_ file for the Horde Framework before
+                  installing Jeta.
+
+   .. _`Horde Application Framework`: http://www.horde.org/horde/
+
+
+2. A running, working SSH server on the web server, supporting SSH version 1
+   protocol. Jeta requires SSH version 1 protocol at this time.  If you have an
+   SSH version 2 server, it must provide SSH version 1 failover.
+
+3. A relayd server installed, running, and working on the web server IF AND
+   ONLY IF you want to relay to a secondary machine.
+
+
+Installing Jeta
+===============
+
+Jeta is written in PHP, and must be installed in a web-accessible directory.
+The precise location of this directory will differ from system to system.
+Conventionally, Jeta is installed directly underneath Horde in the web
+server's document tree.
+
+Since Jeta is written in PHP, there is no compilation necessary; simply
+expand the distribution where you want it to reside and rename the root
+directory of the distribution to whatever you wish to appear in the URL.  For
+example, with the Apache web server's default document root of
+``/usr/local/apache/htdocs``, you would type::
+
+   cd /usr/local/apache/htdocs/horde
+   tar zxvf /path/to/jeta-1.x.tar.gz
+   mv jeta-1.x jeta
+
+and would then find Jeta at the URL::
+
+   http://your-server/horde/jeta/
+
+
+Configuring Jeta
+================
+
+1. Configuring Horde for Jeta
+
+   a. Register the application
+
+      In ``horde/config/registry.php``, find the ``applications['jeta']``
+      stanza.  The default settings here should be okay, but you can change
+      them if desired.  If you have changed the location of Jeta relative to
+      Horde, either in the URL, in the filesystem or both, you must update the
+      ``fileroot`` and ``webroot`` settings to their correct values.
+
+2. Configuring Jeta
+
+   To configure Jeta, change to the ``config/`` directory of the installed
+   distribution, and make copies of all of the configuration ``dist`` files
+   without the ``dist`` suffix::
+
+      cd config/
+      for foo in *.dist; do cp $foo `basename $foo .dist`; done
+
+   Or on Windows::
+
+      copy *.dist *.
+
+   Documentation on the format and purpose of those files can be found in each
+   file.  You may edit these files if you wish to customize Jeta's
+   appearance and behavior.  With one exceptions (``backends.php``) the
+   defaults will be correct for most sites.
+
+   You must be sure to configure an appropriate backend in ``backends.php``.
+
+   You must login to Horde as a Horde Administrator to finish the
+   configuration of Jeta.  Use the Horde ``Administration`` menu item to get
+   to the administration page, and then click on the ``Configuration`` icon to
+   get the configuration page.  Select ``File Manager`` from the selection
+   list of applications.  Fill in or change any configuration values as
+   needed.  When done click on ``Generate File Manager Configuration`` to
+   generate Jeta configuration directory or file, it will not be able to
+   write the file.  In this case, go back to ``Configuration`` and choose one
+   of the other methods to create the configuration file
+   ``jeta/config/conf.php``.
+
+   Note for international users: Jeta uses GNU gettext to provide local
+   translations of text displayed by applications; the translations are found
+   in the po/ directory.  If a translation is not yet available for your
+   locale (and you wish to create one), see the ``horde/po/README`` file, or
+   if you're having trouble using a provided translation, please see the
+   `horde/docs/TRANSLATIONS`_ file for instructions.
+
+3. Securing Jeta
+
+   Review the guidelines for security contained in `horde/docs/SECURITY`_.
+
+4. Tuning Jeta (Performance)
+
+   See `horde/docs/PERFORMANCE`_.
+
+5. Additional Notes (relaying SSH connections)
+
+   .. Important:: The Horde Project cannot provide support for configuration
+                  of a relay daemon.
+
+   Since Java only allows you to connect back to the web server from which
+   the applet was downloaded, if you wish to connect to another machine you
+   must use a "transparent redirection" application of some sort.  The standard
+   unix tool for this use is the xinetd server.  If you are not running xinetd,
+   there are many other redirections tools you can use, some of which can be
+   downloaded from the web site at http://www.javassh.org/.  The "relayd" and
+   "mrealyd" applications available there are C applications and should be
+   fairly portable.
+
+   To configure xinetd, use a configuration similar to the following::
+
+      # default: off
+      # description: The relayd deamon redirects ssh connections on port "relayd" \
+      #              (relayd must be defined in /etc/services) on this host to \
+      #              the ssh server on host 10.0.0.2 on port 22.
+      service relayd
+      {
+          disabl           = no
+          flags            = REUSE
+          socket_type      = stream
+          wait             = no
+          user             = root
+          server           = /usr/sbin/sshd
+          log_on_success   += HOST DURATION
+          log_on_failure   += HOST
+          bind             = 10.0.0.1
+          redirect         = 10.0.0.2 22
+      }
+
+   The above accpets connections from the java applet to the web server with
+   the IP address 10.0.0.1 (on the port "relayd" as defined in /etc/services)
+   and then redirects those connections to a second server at IP address
+   10.0.0.2 on port 22.
+
+
+Obtaining Support
+=================
+
+If you encounter problems with Jeta, help is available!
+
+The Horde Frequently Asked Questions List (FAQ), available on the Web at
+
+  http://www.horde.org/faq/
+
+The Horde Project runs a number of mailing lists, for individual applications
+and for issues relating to the project as a whole.  Information, archives, and
+subscription information can be found at
+
+  http://www.horde.org/mail/
+
+Lastly, Horde developers, contributors and users may also be found on IRC,
+on the channel #horde on the Freenode Network (irc.freenode.net).
+
+Please keep in mind that Jeta is free software written by volunteers.
+For information on reasonable support expectations, please read
+
+  http://www.horde.org/support.php
+
+Thanks for using Jeta!
+
+The Jeta Team
+
+
+.. _README: ?f=README.html
+.. _`horde/docs/INSTALL`: ../../horde/docs/?f=INSTALL.html
+.. _`horde/docs/HACKING`: ../../horde/docs/?f=HACKING.html
+.. _`horde/docs/TRANSLATIONS`: ../../horde/docs/?f=TRANSLATIONS.html
+.. _`horde/docs/SECURITY`: ../../horde/docs/?f=SECURITY.html
+.. _`horde/docs/PERFORMANCE`: ../../horde/docs/?f=PERFORMANCE.html
diff --git a/jeta/docs/RELEASE_NOTES b/jeta/docs/RELEASE_NOTES
new file mode 100644 (file)
index 0000000..7d2a6e6
--- /dev/null
@@ -0,0 +1,43 @@
+<?php
+/**
+ * Release focus. Possible values:
+ * 0 - N/A
+ * 1 - Initial freshmeat announcement
+ * 2 - Documentation
+ * 3 - Code cleanup
+ * 4 - Minor feature enhancements
+ * 5 - Major feature enhancements
+ * 6 - Minor bugfixes
+ * 7 - Major bugfixes
+ * 8 - Minor security fixes
+ * 9 - Major security fixes
+ */
+$this->notes['fm']['focus'] = 1;
+
+/* Mailing list release notes. */
+$this->notes['ml']['changes'] = <<<ML
+The Horde Team is pleased to announce the second release candidate of the Jeta
+SSH Module version H3 (1.0-RC2).
+
+Jeta is the Horde wrapper around various Java SSH applets.  It allows users
+to login via a terminal window to the server on which the Horde application is
+running.
+
+This is a preview version that should not be used on production systems.
+This version is considered feature complete but a few bugs may still exist
+in the code.
+
+We encourage widespread testing and feedback via the mailing lists or our bug
+tracking system.  Updated translations are very welcome, though some strings
+will still change before the final release.
+ML;
+
+/* Freshmeat release notes. */
+$this->notes['fm']['changes'] = <<<FM
+Added the JTA applet (http://javassh.org/). Move configuration of applets to preferences.
+FM;
+
+$this->notes['name'] = 'Jeta';
+$this->notes['list'] = 'dev';
+$this->notes['fm']['project'] = 'jeta';
+$this->notes['fm']['branch'] = 'Default';
diff --git a/jeta/index.php b/jeta/index.php
new file mode 100644 (file)
index 0000000..340a35a
--- /dev/null
@@ -0,0 +1,20 @@
+<?php
+/**
+ * Copyright 2002-2008 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file COPYING for license information (GPL). If you
+ * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
+ *
+ * @author Eric Rostetter <eric.rostetter@physics.utexas.edu>
+ */
+
+define('JETA_BASE', dirname(__FILE__));
+$jeta_configured = (is_readable(JETA_BASE . '/config/conf.php') &&
+                    is_readable(JETA_BASE . '/config/prefs.php'));
+
+if (!$jeta_configured) {
+    require JETA_BASE . '/../lib/Test.php';
+    Horde_Test::configFilesMissing('Jeta', JETA_BASE, array('conf.php'));
+}
+
+require JETA_BASE . '/main.php';
diff --git a/jeta/jar/SSHTermApplet-jdk1.3.1-dependencies-signed.jar b/jeta/jar/SSHTermApplet-jdk1.3.1-dependencies-signed.jar
new file mode 100644 (file)
index 0000000..1b87615
Binary files /dev/null and b/jeta/jar/SSHTermApplet-jdk1.3.1-dependencies-signed.jar differ
diff --git a/jeta/jar/SSHTermApplet-jdkbug-workaround-signed.jar b/jeta/jar/SSHTermApplet-jdkbug-workaround-signed.jar
new file mode 100644 (file)
index 0000000..3045e07
Binary files /dev/null and b/jeta/jar/SSHTermApplet-jdkbug-workaround-signed.jar differ
diff --git a/jeta/jar/SSHTermApplet-signed.jar b/jeta/jar/SSHTermApplet-signed.jar
new file mode 100644 (file)
index 0000000..1598429
Binary files /dev/null and b/jeta/jar/SSHTermApplet-signed.jar differ
diff --git a/jeta/jar/jta.conf b/jeta/jar/jta.conf
new file mode 100644 (file)
index 0000000..9bb00e2
--- /dev/null
@@ -0,0 +1 @@
+SSH.user =
diff --git a/jeta/jar/jta26.jar b/jeta/jar/jta26.jar
new file mode 100755 (executable)
index 0000000..7ed0d2b
Binary files /dev/null and b/jeta/jar/jta26.jar differ
diff --git a/jeta/lib/.htaccess b/jeta/lib/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/jeta/lib/Applet.php b/jeta/lib/Applet.php
new file mode 100644 (file)
index 0000000..0cb09ea
--- /dev/null
@@ -0,0 +1,74 @@
+<?php
+/**
+ * Jeta_Applet:: defines an API to interact with different java applets.
+ *
+ * Copyright 2006-2008 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file LICENSE for license information (GPL).  If you
+ * did not receive this file, see http://www.horde.org/licenses/gpl.php.
+ *
+ * @author  Michael Slusarz <slusarz@curecanti.org>
+ * @package Jeta
+ */
+class Jeta_Applet
+{
+    /**
+     * Parameters used by the class.
+     *
+     * @var array
+     */
+    protected $_params = array();
+
+    /**
+     * Attempts to return a concrete Jeta_Applet instance based on $driver.
+     *
+     * @param string $driver  The type of concrete Jeta_Applet subclass to
+     *                        return.
+     * @param array $params   A hash containing any additional configuration or
+     *                        connection parameters a subclass might need.
+     *
+     * @return mixed  The newly created concrete Jeta_Applet instance, or
+     *                false on error.
+     */
+    static public function factory($driver, $params = array())
+    {
+        $class = 'Jeta_Applet_' . basename($driver);
+        return class_exists($class)
+            ? new $class($params)
+            : false;
+    }
+
+    /**
+     * Constructor.
+     */
+    public function __construct($params = array())
+    {
+        $this->_params = array_merge($this->_params, $params);
+    }
+
+    /**
+     * Generate the HTML code used to load the applet.
+     *
+     * @return string  The HTML needed to load the applet.
+     */
+    abstract public function generateAppletCode()
+    {
+    }
+
+    /**
+     * Generate the HTML param tags.
+     *
+     * @param array $params  An array of parameter names and values.
+     *
+     * @return string  The parameters in HTML code.
+     */
+    protected function _generateParamTags($params = array())
+    {
+        $out = '';
+        foreach ($params as $key => $val) {
+            $out .= '<param name="' . $key . '" value="' . $val . '" />';
+        }
+        return $out;
+    }
+
+}
diff --git a/jeta/lib/Applet/jta.php b/jeta/lib/Applet/jta.php
new file mode 100644 (file)
index 0000000..01c231e
--- /dev/null
@@ -0,0 +1,102 @@
+<?php
+/**
+ * Jeta_Applet_jta:: provides a driver for the JTA Java Applet.
+ *
+ * JTA applet (v2.6) located at:
+ *    http://javassh.org/
+ * JTA is released under the GPL license for non-commercial customers.
+ *
+ * Copyright 2006-2008 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file LICENSE for license information (GPL).  If you
+ * did not receive this file, see http://www.horde.org/licenses/gpl.php.
+ *
+ * @author  Jan Schneider <jan@horde.org>
+ * @package Jeta
+ */
+class Jeta_Applet_jta extends Jeta_Applet
+{
+    /**
+     * Jeta configuration parameters.
+     *
+     * @var array
+     */
+    protected $_jtaParams = array(
+        'Socket.host' => array(
+            'pref' => 'host',
+            'bool' => false
+        ),
+        'Socket.port' => array(
+            'pref' => 'port',
+            'bool' => false,
+        ),
+        'Applet.detach' => array(
+            'pref' => 'jta_detach',
+            'bool' => true
+        ),
+        'Applet.detach.fullscreen' => array(
+            'pref' => 'jta_detach_fullscreen',
+            'bool' => true
+        ),
+        'Applet.detach.title' => array(
+            'pref' => 'jta_detach_title',
+            'bool' => false
+        ),
+        'Applet.detach.immediately' => array(
+            'pref' => 'jta_detach_immediately',
+            'bool' => true
+        ),
+        'Applet.detach.startText' => array(
+            'pref' => 'jta_detach_start',
+            'bool' => false
+        ),
+        'Applet.detach.stopText' => array(
+            'pref' => 'jta_detach_stop',
+            'bool' => false
+        ),
+        'Applet.detach.menuBar' => array(
+            'pref' => 'jta_detach_menubar',
+            'bool' => true
+        ),
+        'Applet.disconnect.closeWindow' => array(
+            'pref' => 'jta_detach_disconnect',
+            'bool' => true
+        ),
+        'Applet.disconnect' => array(
+            'pref' => 'jta_disconnect',
+            'bool' => true
+        )
+    );
+
+    /**
+     * Generate the HTML code used to load the applet.
+     *
+     * @return string  The HTML needed to load the applet.
+     */
+    public function generateAppletCode()
+    {
+        $params = array(
+            'config' => 'jta.conf',
+            'plugins' => 'Status,Socket,SSH,Terminal',
+            'SSH.user' => (empty($GLOBALS['conf']['user']['hordeauth']) || ($GLOBALS['conf']['user']['hordeauth'] === 'full')) ? Auth::getAuth() : Auth::getBareAuth()
+        );
+
+        foreach ($this->_jtaParams as $key => $val) {
+            $prefval = $GLOBALS['prefs']->getValue($val['pref']);
+            $params[$key] = ($val['bool']) ? (($prefval) ? 'true' : 'false') : $prefval;
+        }
+
+        if (!empty($params['Applet.detach']) &&
+            empty($params['Applet.detach.immediately'])) {
+            $height = 75;
+            $width = 100;
+        } else {
+            $height = 500;
+            $width = 600;
+        }
+
+        return '<applet code="de.mud.jta.Applet" width="' . $width . '" height="' . $height . '" codebase="jar" archive="jta26.jar">' .
+            $this->_generateParamTags($params) . '</applet>';
+    }
+
+}
diff --git a/jeta/lib/Applet/sshtools.php b/jeta/lib/Applet/sshtools.php
new file mode 100644 (file)
index 0000000..0816546
--- /dev/null
@@ -0,0 +1,92 @@
+<?php
+/**
+ * Jeta_Applet_sshtools:: provides a driver for the SSHTools Java Applet.
+ *
+ * SSHTools applet (v0.2.2) located at:
+ *    http://sourceforge.net/projects/sshtools/
+ * SSHTools is released under the GPL license.
+ *
+ * Copyright 2006-2008 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file LICENSE for license information (GPL).  If you
+ * did not receive this file, see http://www.horde.org/licenses/gpl.php.
+ *
+ * @author  Michael Slusarz <slusarz@curecanti.org>
+ * @package Jeta
+ */
+class Jeta_Applet_sshtools extends Jeta_Applet
+{
+    /**
+     * SSHTools parameters.
+     *
+     * @var array
+     */
+    protected $_sshtoolsParams = array(
+        'sshapps.connection.host' => array(
+            'pref' => 'host',
+            'bool' => false
+        ),
+        'sshapps.connection.port' => array(
+            'pref' => 'port',
+            'bool' => false
+        ),
+        'sshapps.connection.authenticationMethod' => array(
+            'pref' => 'sshtools_auth',
+            'bool' => false
+        ),
+        'sshapps.connection.connectImmediately' => array(
+            'pref' => 'sshtools_connect_immediately',
+            'bool' => true
+        ),
+        'sshapps.connection.showConnectionDialog' => array(
+            'pref' => 'sshtools_connect_dialog',
+            'bool' => true
+        ),
+        'sshapps.connection.disableHostKeyVerification' => array(
+            'pref' => 'sshtools_disable_hostkey_verify',
+            'bool' => true
+        ),
+        'sshapps.ui.toolBar' => array(
+            'pref' => 'sshtools_show_toolbar',
+            'bool' => true
+        ),
+        'sshapps.ui.menuBar' => array(
+            'pref' => 'sshtools_show_menubar',
+            'bool' => true
+        ),
+        'sshapps.ui.statusBar' => array(
+            'pref' => 'sshtools_show_statusbar',
+            'bool' => true
+        ),
+        'sshapps.ui.scrollBar' => array(
+            'pref' => 'sshtools_show_scrollBar',
+            'bool' => true
+        ),
+        'sshapps.ui.autoHide' => array(
+            'pref' => 'sshtools_autohide',
+            'bool' => true
+        )
+    );
+
+    /**
+     * Generate the HTML code used to load the applet.
+     *
+     * @return string  The HTML needed to load the applet.
+     */
+    public function generateAppletCode()
+    {
+        $params = array(
+            'sshapps.connection.userName' => (empty($GLOBALS['conf']['user']['hordeauth']) || ($GLOBALS['conf']['user']['hordeauth'] === 'full')) ? Auth::getAuth() : Auth::getBareAuth()
+        );
+
+        foreach ($this->_sshtoolsParams as $key => $val) {
+            $prefval = $GLOBALS['prefs']->getValue($val['pref']);
+            $params[$key] = ($val['bool']) ? (($prefval) ? 'true' : 'false') : $prefval;
+        }
+
+        return '<applet code="com.sshtools.sshterm.SshTermApplet" width="600" height="500" codebase="jar" archive="SSHTermApplet-signed.jar,SSHTermApplet-jdkbug-workaround-signed.jar,SSHTermApplet-jdk1.3.1-dependencies-signed.jar">' .
+               $this->_generateParamTags($params) .
+               '</applet>';
+    }
+
+}
diff --git a/jeta/lib/Jeta.php b/jeta/lib/Jeta.php
new file mode 100644 (file)
index 0000000..55c4f93
--- /dev/null
@@ -0,0 +1,29 @@
+<?php
+/**
+ * Copyright 2006-2008 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file LICENSE for license information (GPL).  If you
+ * did not receive this file, see http://www.horde.org/licenses/gpl.php.
+ *
+ * @author  Michael Slusarz <slusarz@curecanti.org>
+ * @package Jeta
+ */
+class Jeta {
+
+    /**
+     * Build Jeta's list of menu items.
+     */
+    function getMenu($returnType = 'object')
+    {
+        global $registry, $conf;
+
+        require_once 'Horde/Menu.php';
+        $menu = new Menu();
+
+        /* Jeta Home. */
+        $menu->addArray(array('url' => Horde::applicationUrl('main.php'), 'text' => _("_Shell"), 'icon' => 'jeta.png', 'class' => (basename($_SERVER['PHP_SELF']) == 'main.php' || basename($_SERVER['PHP_SELF']) == 'index.php') ? 'current' : ''));
+
+        return ($returnType == 'object') ? $menu : $menu->render();
+    }
+
+}
diff --git a/jeta/lib/base.php b/jeta/lib/base.php
new file mode 100644 (file)
index 0000000..05779a9
--- /dev/null
@@ -0,0 +1,47 @@
+<?php
+/**
+ * Jeta base inclusion file.
+ *
+ * This file brings in all of the dependencies that every web ssh script
+ * will need, and sets up objects that all scripts use.
+ *
+ * Copyright 2002-2008 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file COPYING for license information (GPL). If you
+ * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
+ */
+
+// Check for a prior definition of HORDE_BASE (perhaps by an
+// auto_prepend_file definition for site customization).
+if (!defined('HORDE_BASE')) {
+    define('HORDE_BASE', dirname(__FILE__) . '/../..');
+}
+
+// Find the base file path of Jeta.
+if (!defined('JETA_BASE')) {
+    define('JETA_BASE', dirname(__FILE__) . '/..');
+}
+
+// Load the Horde Framework core, and set up inclusion paths.
+require_once HORDE_BASE . '/lib/core.php';
+require_once 'Horde/Autoloader.php';
+Horde_Autoloader::addClassPattern('/^Jeta_/', JETA_BASE . '/lib/');
+
+// Registry.
+$registry = &Registry::singleton();
+if (is_a(($pushed = $registry->pushApp('jeta', !defined('AUTH_HANDLER'))), 'PEAR_Error')) {
+    if ($pushed->getCode() == 'permission_denied') {
+        Horde::authenticationFailureRedirect();
+    }
+    Horde::fatal($pushed, __FILE__, __LINE__, false);
+}
+
+$conf = &$GLOBALS['conf'];
+define('JETA_TEMPLATES', $registry->get('templates'));
+
+// Notification system.
+$notification = &Notification::singleton();
+$notification->attach('status');
+
+// Includes.
+require_once JETA_BASE . '/lib/Jeta.php';
diff --git a/jeta/lib/version.php b/jeta/lib/version.php
new file mode 100644 (file)
index 0000000..ff719df
--- /dev/null
@@ -0,0 +1 @@
+<?php define('JETA_VERSION', 'H4 (2.0-cvs)') ?>
diff --git a/jeta/locale/cs_CZ/LC_MESSAGES/jeta.mo b/jeta/locale/cs_CZ/LC_MESSAGES/jeta.mo
new file mode 100644 (file)
index 0000000..576120e
Binary files /dev/null and b/jeta/locale/cs_CZ/LC_MESSAGES/jeta.mo differ
diff --git a/jeta/locale/de_DE/LC_MESSAGES/jeta.mo b/jeta/locale/de_DE/LC_MESSAGES/jeta.mo
new file mode 100644 (file)
index 0000000..b13e75b
Binary files /dev/null and b/jeta/locale/de_DE/LC_MESSAGES/jeta.mo differ
diff --git a/jeta/locale/en_US/help.xml b/jeta/locale/en_US/help.xml
new file mode 100644 (file)
index 0000000..bdbb090
--- /dev/null
@@ -0,0 +1,13 @@
+<?xml version='1.0'?>
+<!-- $Horde: jeta/locale/en_US/help.xml,v 1.1 2002/10/02 20:55:46 chuck Exp $ -->
+<help>
+
+<entry id="Overview">
+    <title>Overview</title>
+    <heading>Introduction</heading>
+    <para>
+    The SSH app provides a Java SSH applet that you can use to access your shell account.
+    </para>
+</entry>
+
+</help>
diff --git a/jeta/locale/es_ES/LC_MESSAGES/jeta.mo b/jeta/locale/es_ES/LC_MESSAGES/jeta.mo
new file mode 100644 (file)
index 0000000..13becca
Binary files /dev/null and b/jeta/locale/es_ES/LC_MESSAGES/jeta.mo differ
diff --git a/jeta/locale/es_ES/help.xml b/jeta/locale/es_ES/help.xml
new file mode 100644 (file)
index 0000000..6146a73
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version='1.0'?>
+<!-- $Horde: jeta/locale/es_ES/help.xml,v 1.1 2008/03/21 00:28:27 jan Exp $ -->
+<help>
+
+<entry id="Overview">
+    <title>Introducción</title>
+    <heading>Introducción</heading>
+    <para>La aplicación SSH proporciona un applet JAVA SSH que se puede utilizar para acceder a su cuenta de consola.</para>
+</entry>
+
+</help>
diff --git a/jeta/locale/fi_FI/LC_MESSAGES/jeta.mo b/jeta/locale/fi_FI/LC_MESSAGES/jeta.mo
new file mode 100644 (file)
index 0000000..c08893c
Binary files /dev/null and b/jeta/locale/fi_FI/LC_MESSAGES/jeta.mo differ
diff --git a/jeta/locale/ro_RO/LC_MESSAGES/jeta.mo b/jeta/locale/ro_RO/LC_MESSAGES/jeta.mo
new file mode 100644 (file)
index 0000000..2720245
Binary files /dev/null and b/jeta/locale/ro_RO/LC_MESSAGES/jeta.mo differ
diff --git a/jeta/locale/zh_TW/LC_MESSAGES/jeta.mo b/jeta/locale/zh_TW/LC_MESSAGES/jeta.mo
new file mode 100644 (file)
index 0000000..b115be3
Binary files /dev/null and b/jeta/locale/zh_TW/LC_MESSAGES/jeta.mo differ
diff --git a/jeta/main.php b/jeta/main.php
new file mode 100644 (file)
index 0000000..05a04c8
--- /dev/null
@@ -0,0 +1,22 @@
+<?php
+/**
+ * Copyright 2002-2008 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file COPYING for license information (GPL). If you
+ * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
+ *
+ * @author Eric Rostetter <eric.rostetter@physics.utexas.edu>
+ */
+
+require_once dirname(__FILE__) . '/lib/base.php';
+
+$applet = Jeta_Applet::factory($prefs->getValue('sshdriver'));
+
+$template = new Horde_Template();
+$template->set('menu', Jeta::getMenu('string'));
+$template->set('notification', $notification->notify(array('listeners' => 'status')));
+$template->set('applet', $applet->generateAppletCode());
+
+require JETA_TEMPLATES . '/common-header.inc';
+echo $template->fetch(JETA_TEMPLATES . '/main.html');
+require $registry->get('templates', 'horde') . '/common-footer.inc';
diff --git a/jeta/po/README b/jeta/po/README
new file mode 100644 (file)
index 0000000..a4356a9
--- /dev/null
@@ -0,0 +1 @@
+see horde/po/README
\ No newline at end of file
diff --git a/jeta/po/cs_CZ.po b/jeta/po/cs_CZ.po
new file mode 100644 (file)
index 0000000..9e96f70
--- /dev/null
@@ -0,0 +1,18 @@
+# Czech translations for Jeta package.
+# Copyright (C) 2004 Horde Project
+# This file is distributed under the same license as the Horde package.
+# Pavel Chytil <pavel@chytil.tk>, 2004.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Jeta\n"
+"Report-Msgid-Bugs-To: dev@lists.horde.org\n"
+"POT-Creation-Date: 2005-01-03 15:02+0100\n"
+"PO-Revision-Date: 2004-11-25 09:19-0800\n"
+"Last-Translator: Pavel Chytil <pavel@chytil.tk>\n"
+"Language-Team: Czech <i18n@lists.horde.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-2\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%"
+"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
diff --git a/jeta/po/de_DE.po b/jeta/po/de_DE.po
new file mode 100644 (file)
index 0000000..f2ea408
--- /dev/null
@@ -0,0 +1,177 @@
+# German translations for Jeta.
+# Copyright (C) 2003-2008 Horde Project
+# This file is distributed under the same license as the Jeta package.
+# Jan Schneider, 2003-2008.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Jeta H3 (1.0)\n"
+"Report-Msgid-Bugs-To: dev@lists.horde.org\n"
+"POT-Creation-Date: 2008-04-01 14:58+0200\n"
+"PO-Revision-Date: 2008-04-01 14:59+0200\n"
+"Last-Translator: Jan Schneider <jan@horde.org>\n"
+"Language-Team: i18n@lists.horde.org\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#: config/prefs.php.dist:16 config/prefs.php.dist:28
+msgid "Applet Options"
+msgstr "Applet Einstellungen"
+
+#: config/prefs.php.dist:75
+msgid "Authentication method:"
+msgstr "Authentifizierungsmethode:"
+
+#: config/prefs.php.dist:10
+msgid "Base Settings"
+msgstr "Grundlegende Einstellungen"
+
+#: config/prefs.php.dist:11
+msgid "Change your base settings."
+msgstr "Ändern Sie Ihre grundlegenden Einstellungen."
+
+#: config/prefs.php.dist:228
+msgid "Close the SSH session if you leave the page?"
+msgstr "SSH-Session beenden, wenn die Seite verlassen wird?"
+
+#: config/prefs.php.dist:219
+msgid "Close the detached window if the SSH session is lost?"
+msgstr ""
+"Das losgelöste Fenster schließen, wenn die SSH-Session unterbrochen wird?"
+
+#: config/prefs.php.dist:188
+msgid "Connect"
+msgstr "Verbinden"
+
+#: config/prefs.php.dist:84
+msgid "Connect immediately when the user loads the page?"
+msgstr "Sofort verbinden, wenn die Seite aufgerufen wird?"
+
+#: config/prefs.php.dist:156
+msgid ""
+"Detach the actual terminal display and its components from the browser "
+"window and run in a separate window?"
+msgstr ""
+"Das Terminal vom Browserfenster lösen und in einem eigenen Fenster anzeigen?"
+
+#: config/prefs.php.dist:102
+msgid "Disable the hostkey verification?"
+msgstr "Hostkey-Überprüfung deaktivieren?"
+
+#: config/prefs.php.dist:197
+msgid "Disconnect"
+msgstr "Trennen"
+
+#: config/prefs.php.dist:147
+msgid ""
+"Enable auto-hiding of the tool bar, menu bar, status bar and scroll bar?"
+msgstr ""
+"Werkzeugleiste, Menüleiste, Statusleiste und Bildlaufleiste automatisch "
+"ausblenden?"
+
+#: config/prefs.php.dist:120
+msgid "Enable the menubar?"
+msgstr "Menüleiste aktivieren?"
+
+#: config/prefs.php.dist:138
+msgid "Enable the scrollbar?"
+msgstr "Bildlaufleiste aktivieren?"
+
+#: config/prefs.php.dist:129
+msgid "Enable the statusbar?"
+msgstr "Statusleiste aktivieren?"
+
+#: config/prefs.php.dist:111
+msgid "Enable the toolbar?"
+msgstr "Werkzeugleiste aktivieren?"
+
+#: config/prefs.php.dist:9
+msgid "General Options"
+msgstr "Allgemeine Einstellungen"
+
+#: config/prefs.php.dist:183
+msgid ""
+"If selected, applet will detach immediately from page on load. If not "
+"selected, user will need to press start button before applet becomes "
+"detached."
+msgstr ""
+"Applet sofort beim Laden der Seite lösen? Anderenfalls muss der Start-Knopf "
+"gedrückt werden, bevor das Applet gelöst wird."
+
+#: config/prefs.php.dist:63
+msgid "JTA (non-commerical use only)"
+msgstr "JTA (nur zur nicht-kommerziellen Benutzung)"
+
+#: config/prefs.php.dist:29
+msgid "JTA Options"
+msgstr "JTA Einstellungen"
+
+#: config/prefs.php.dist:165
+msgid "Make the detached window fill the entire screen?"
+msgstr "Losgelöstes Fenster im Vollbildmodus anzeigen?"
+
+#: config/prefs.php.dist:30
+msgid "Options that control the behavior of the JTA applet."
+msgstr "Einstellungen die das Verhalten des JTA-Applets beeinflussen."
+
+#: config/prefs.php.dist:18
+msgid "Options that control the behavior of the SSHTools applet."
+msgstr "Einstellungen die das Verhalten des SSHTools-Applets beeinflussen."
+
+#: config/prefs.php.dist:170
+msgid "SSH Terminal"
+msgstr "SSH-Terminal"
+
+#: config/prefs.php.dist:64
+msgid "SSH application to use:"
+msgstr "SSH-Anwendung benutzen:"
+
+#: config/prefs.php.dist:62
+msgid "SSHTools"
+msgstr "SSHTools"
+
+#: config/prefs.php.dist:17
+msgid "SSHTools Options"
+msgstr "SSHTools Einstellungen"
+
+#: config/prefs.php.dist:93
+msgid "Show the connection dialog?"
+msgstr "Verbindungsdialog anzeigen?"
+
+#: config/prefs.php.dist:210
+msgid "Show the menubar in the detached applet?"
+msgstr "Die Menüleiste im losgelösten Applet anzeigen?"
+
+#: config/prefs.php.dist:53
+msgid "The default port to connect to."
+msgstr "Der Standardport für die Verbindungen."
+
+#: config/prefs.php.dist:44
+msgid "The default server name to connect to."
+msgstr "Der Standard-Servername für die Verbindungen."
+
+#: config/prefs.php.dist:201
+msgid "The text to use for the disconnect button."
+msgstr "Der Text für den Trennen-Knopf."
+
+#: config/prefs.php.dist:192
+msgid "The text to use for the start button."
+msgstr "Der Text für den Start-Knopf."
+
+#: config/prefs.php.dist:174
+msgid "The window title of the detached applet."
+msgstr "Fenstertitel des losgelösten Applets."
+
+#: lib/Jeta.php:20
+msgid "_Shell"
+msgstr "_Shell"
+
+#: config/prefs.php.dist:73
+msgid "password"
+msgstr "Passwort"
+
+#: config/prefs.php.dist:74
+msgid "publickey"
+msgstr "Öffentlicher Schlüssel"
diff --git a/jeta/po/es_ES.po b/jeta/po/es_ES.po
new file mode 100644 (file)
index 0000000..4054487
--- /dev/null
@@ -0,0 +1,179 @@
+# Spanish translations for jeta package
+# Traducciones al español para el paquete jeta.
+# Copyright (C) 2008 Horde Project
+# This file is distributed under the same license as the jeta package.
+# Automatically generated, 2008.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Jeta 1.1-cvs\n"
+"Report-Msgid-Bugs-To: dev@lists.horde.org\n"
+"POT-Creation-Date: 2008-03-18 11:35+0100\n"
+"PO-Revision-Date: 2008-03-18 11:35+0100\n"
+"Last-Translator: Manuel P. Ayala <mayala@unex.es>\n"
+"Language-Team: i18n@lists.horde.org\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#: config/.bak/prefs.php.dist:16 config/.bak/prefs.php.dist:28
+msgid "Applet Options"
+msgstr "Opciones del applet"
+
+#: config/.bak/prefs.php.dist:75
+msgid "Authentication method:"
+msgstr "Método de autentificación:"
+
+#: config/.bak/prefs.php.dist:10
+msgid "Base Settings"
+msgstr "Opciones básicas"
+
+#: config/.bak/prefs.php.dist:11
+msgid "Change your base settings."
+msgstr "Cambia sus opciones básicas."
+
+#: config/.bak/prefs.php.dist:228
+msgid "Close the SSH session if you leave the page?"
+msgstr "¿Cerrar sesión SSH al abandonar la página?"
+
+#: config/.bak/prefs.php.dist:219
+msgid "Close the detached window if the SSH session is lost?"
+msgstr "¿Cerrar la ventana separada si se pierde la sesión SSH?"
+
+#: config/.bak/prefs.php.dist:188
+msgid "Connect"
+msgstr "Conectar"
+
+#: config/.bak/prefs.php.dist:84
+msgid "Connect immediately when the user loads the page?"
+msgstr "¿Conectar inmediatamente cuando el usuario cargue la página?"
+
+#: config/.bak/prefs.php.dist:156
+msgid ""
+"Detach the actual terminal display and its components from the browser "
+"window and run in a separate window?"
+msgstr ""
+"¿Separar la visualización del terminal actual y sus componentes de la "
+"ventana del navegador y ejecutarlo en una ventana separada?"
+
+#: config/.bak/prefs.php.dist:102
+msgid "Disable the hostkey verification?"
+msgstr "¿Desactivar la comprobación de clave del servidor?"
+
+#: config/.bak/prefs.php.dist:197
+msgid "Disconnect"
+msgstr "Desconectar"
+
+#: config/.bak/prefs.php.dist:147
+msgid ""
+"Enable auto-hiding of the tool bar, menu bar, status bar and scroll bar?"
+msgstr ""
+"¿Activar la ocultación automática de las barras de herramientas, de menú, de "
+"estado y de desplazamiento?"
+
+#: config/.bak/prefs.php.dist:120
+msgid "Enable the menubar?"
+msgstr "¿Activar la barra de menú?"
+
+#: config/.bak/prefs.php.dist:138
+msgid "Enable the scrollbar?"
+msgstr "¿Activar la barra de desplazamiento?"
+
+#: config/.bak/prefs.php.dist:129
+msgid "Enable the statusbar?"
+msgstr "¿Activar la barra de estado?"
+
+#: config/.bak/prefs.php.dist:111
+msgid "Enable the toolbar?"
+msgstr "¿Activar la barra de herramientas?"
+
+#: config/.bak/prefs.php.dist:9
+msgid "General Options"
+msgstr "Opciones generales"
+
+#: config/.bak/prefs.php.dist:183
+msgid ""
+"If selected, applet will detach immediately from page on load. If not "
+"selected, user will need to press start button before applet becomes "
+"detached."
+msgstr ""
+"Si se selecciona, el applet se separará inmediatamente de la página al "
+"cargarse. Si no se selecciona, el usuario tendrá que pulsar el botón iniciar "
+"antes de que el applet se separe."
+
+#: config/.bak/prefs.php.dist:63
+msgid "JTA (non-commerical use only)"
+msgstr "JTA (sólo para uso no comercial)"
+
+#: config/.bak/prefs.php.dist:29
+msgid "JTA Options"
+msgstr "Opciones JTA"
+
+#: config/.bak/prefs.php.dist:165
+msgid "Make the detached window fill the entire screen?"
+msgstr "¿Ampliar la ventana separada a toda la pantalla?"
+
+#: config/.bak/prefs.php.dist:30
+msgid "Options that control the behavior of the JTA applet."
+msgstr "Opciones que controlan el comportamiento del applet JTA."
+
+#: config/.bak/prefs.php.dist:18
+msgid "Options that control the behavior of the SSHTools applet."
+msgstr "Opciones que controlan el comportamiento del applet SSHTools."
+
+#: config/.bak/prefs.php.dist:170
+msgid "SSH Terminal"
+msgstr "Terminal SSH"
+
+#: config/.bak/prefs.php.dist:64
+msgid "SSH application to use:"
+msgstr "Aplicación SSH a utilizar:"
+
+#: config/.bak/prefs.php.dist:62
+msgid "SSHTools"
+msgstr "SSHTools"
+
+#: config/.bak/prefs.php.dist:17
+msgid "SSHTools Options"
+msgstr "Opciones de SSHTools"
+
+#: config/.bak/prefs.php.dist:93
+msgid "Show the connection dialog?"
+msgstr "¿Mostrar el cuadro de diálogo de conexión?"
+
+#: config/.bak/prefs.php.dist:210
+msgid "Show the menubar in the detached applet?"
+msgstr "¿Mostrar la barra de menú en el applet separado?"
+
+#: config/.bak/prefs.php.dist:53
+msgid "The default port to connect to."
+msgstr "Puerto al que conectarse por omisión."
+
+#: config/.bak/prefs.php.dist:44
+msgid "The default server name to connect to."
+msgstr "Nombre del servidor al que conectarse por omisión."
+
+#: config/.bak/prefs.php.dist:201
+msgid "The text to use for the disconnect button."
+msgstr "Texto utilizado en el botón de desconexión."
+
+#: config/.bak/prefs.php.dist:192
+msgid "The text to use for the start button."
+msgstr "Texto utilizado en el botón de inicio."
+
+#: config/.bak/prefs.php.dist:174
+msgid "The window title of the detached applet."
+msgstr "Título de la ventana del applet separado."
+
+#: lib/Jeta.php:20
+msgid "_Shell"
+msgstr "_Consola"
+
+#: config/.bak/prefs.php.dist:73
+msgid "password"
+msgstr "contraseña"
+
+#: config/.bak/prefs.php.dist:74
+msgid "publickey"
+msgstr "clave pública"
diff --git a/jeta/po/fi_FI.po b/jeta/po/fi_FI.po
new file mode 100644 (file)
index 0000000..0d4614e
--- /dev/null
@@ -0,0 +1,15 @@
+# Jeta Finnish translation
+# Copyright (C) 2003 Petteri Karttunen.
+# Petteri Karttunen <pkarttun@siba.fi>, 2003.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Jeta \n"
+"Report-Msgid-Bugs-To: dev@lists.horde.org\n"
+"POT-Creation-Date: 2005-01-03 15:02+0100\n"
+"PO-Revision-Date: 2003-06-10 13:08+0200\n"
+"Last-Translator: Petteri Karttunen <pkarttun@siba.fi>\n"
+"Language-Team: Finnish <dev@lists.horde.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=iso-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
diff --git a/jeta/po/jeta.pot b/jeta/po/jeta.pot
new file mode 100644 (file)
index 0000000..54c5269
--- /dev/null
@@ -0,0 +1,171 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Horde Project
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: dev@lists.horde.org\n"
+"POT-Creation-Date: 2008-04-01 14:58+0200\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=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: config/prefs.php.dist:16 config/prefs.php.dist:28
+msgid "Applet Options"
+msgstr ""
+
+#: config/prefs.php.dist:75
+msgid "Authentication method:"
+msgstr ""
+
+#: config/prefs.php.dist:10
+msgid "Base Settings"
+msgstr ""
+
+#: config/prefs.php.dist:11
+msgid "Change your base settings."
+msgstr ""
+
+#: config/prefs.php.dist:228
+msgid "Close the SSH session if you leave the page?"
+msgstr ""
+
+#: config/prefs.php.dist:219
+msgid "Close the detached window if the SSH session is lost?"
+msgstr ""
+
+#: config/prefs.php.dist:188
+msgid "Connect"
+msgstr ""
+
+#: config/prefs.php.dist:84
+msgid "Connect immediately when the user loads the page?"
+msgstr ""
+
+#: config/prefs.php.dist:156
+msgid ""
+"Detach the actual terminal display and its components from the browser "
+"window and run in a separate window?"
+msgstr ""
+
+#: config/prefs.php.dist:102
+msgid "Disable the hostkey verification?"
+msgstr ""
+
+#: config/prefs.php.dist:197
+msgid "Disconnect"
+msgstr ""
+
+#: config/prefs.php.dist:147
+msgid ""
+"Enable auto-hiding of the tool bar, menu bar, status bar and scroll bar?"
+msgstr ""
+
+#: config/prefs.php.dist:120
+msgid "Enable the menubar?"
+msgstr ""
+
+#: config/prefs.php.dist:138
+msgid "Enable the scrollbar?"
+msgstr ""
+
+#: config/prefs.php.dist:129
+msgid "Enable the statusbar?"
+msgstr ""
+
+#: config/prefs.php.dist:111
+msgid "Enable the toolbar?"
+msgstr ""
+
+#: config/prefs.php.dist:9
+msgid "General Options"
+msgstr ""
+
+#: config/prefs.php.dist:183
+msgid ""
+"If selected, applet will detach immediately from page on load. If not "
+"selected, user will need to press start button before applet becomes "
+"detached."
+msgstr ""
+
+#: config/prefs.php.dist:63
+msgid "JTA (non-commerical use only)"
+msgstr ""
+
+#: config/prefs.php.dist:29
+msgid "JTA Options"
+msgstr ""
+
+#: config/prefs.php.dist:165
+msgid "Make the detached window fill the entire screen?"
+msgstr ""
+
+#: config/prefs.php.dist:30
+msgid "Options that control the behavior of the JTA applet."
+msgstr ""
+
+#: config/prefs.php.dist:18
+msgid "Options that control the behavior of the SSHTools applet."
+msgstr ""
+
+#: config/prefs.php.dist:170
+msgid "SSH Terminal"
+msgstr ""
+
+#: config/prefs.php.dist:64
+msgid "SSH application to use:"
+msgstr ""
+
+#: config/prefs.php.dist:62
+msgid "SSHTools"
+msgstr ""
+
+#: config/prefs.php.dist:17
+msgid "SSHTools Options"
+msgstr ""
+
+#: config/prefs.php.dist:93
+msgid "Show the connection dialog?"
+msgstr ""
+
+#: config/prefs.php.dist:210
+msgid "Show the menubar in the detached applet?"
+msgstr ""
+
+#: config/prefs.php.dist:53
+msgid "The default port to connect to."
+msgstr ""
+
+#: config/prefs.php.dist:44
+msgid "The default server name to connect to."
+msgstr ""
+
+#: config/prefs.php.dist:201
+msgid "The text to use for the disconnect button."
+msgstr ""
+
+#: config/prefs.php.dist:192
+msgid "The text to use for the start button."
+msgstr ""
+
+#: config/prefs.php.dist:174
+msgid "The window title of the detached applet."
+msgstr ""
+
+#: lib/Jeta.php:20
+msgid "_Shell"
+msgstr ""
+
+#: config/prefs.php.dist:73
+msgid "password"
+msgstr ""
+
+#: config/prefs.php.dist:74
+msgid "publickey"
+msgstr ""
diff --git a/jeta/po/ro_RO.po b/jeta/po/ro_RO.po
new file mode 100644 (file)
index 0000000..67c7bac
--- /dev/null
@@ -0,0 +1,16 @@
+# Romanian translations for Jeta package.
+# Copyright (C) 2003 Horde Project
+# This file is distributed under the same license as the Jeta package.
+# Eugen Hoanca <eugenh@urban-grafx.ro>, 2003.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Jeta 0.0.1\n"
+"Report-Msgid-Bugs-To: dev@lists.horde.org\n"
+"POT-Creation-Date: 2005-01-03 15:02+0100\n"
+"PO-Revision-Date: 2003-03-25 10:16+0200\n"
+"Last-Translator: Eugen Hoanca <eugenh@urban-grafx.ro>\n"
+"Language-Team: Romanian <i18n@lists.horde.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
diff --git a/jeta/po/zh_TW.po b/jeta/po/zh_TW.po
new file mode 100644 (file)
index 0000000..7330e1e
--- /dev/null
@@ -0,0 +1,16 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Jeta\n"
+"Report-Msgid-Bugs-To: dev@lists.horde.org\n"
+"POT-Creation-Date: 2005-01-03 15:02+0100\n"
+"PO-Revision-Date: 2003-03-20 16:34-0600\n"
+"Last-Translator: Jonathan Chen <ccchen@physics.utexas.edu>\n"
+"Language-Team: Traditional Chinese <ccchen@physics.utexas.edu>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=Big5\n"
+"Content-Transfer-Encoding: 8bit\n"
diff --git a/jeta/templates/common-header.inc b/jeta/templates/common-header.inc
new file mode 100644 (file)
index 0000000..c4bdaa1
--- /dev/null
@@ -0,0 +1,15 @@
+<?php
+if (isset($language)) {
+    header('Content-type: text/html; charset=' . NLS::getCharset());
+    header('Vary: Accept-Language');
+}
+?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<?php echo !empty($language) ? '<html lang="' . strtr($language, '_', '-') . '">' : '<html>' ?>
+<head>
+<title><?php echo htmlspecialchars($registry->get('name')) ?></title>
+<link href="<?php echo $GLOBALS['registry']->getImageDir()?>/favicon.ico" rel="SHORTCUT ICON" />
+<?php echo Horde::stylesheetLink('horde') ?>
+</head>
+
+<body>
diff --git a/jeta/templates/main.html b/jeta/templates/main.html
new file mode 100644 (file)
index 0000000..80d38a7
--- /dev/null
@@ -0,0 +1,9 @@
+<div id="menu">
+ <tag:menu />
+</div>
+
+<tag:notification />
+
+<p>
+ <tag:applet />
+</p>
diff --git a/jeta/test.php b/jeta/test.php
new file mode 100644 (file)
index 0000000..94d88e1
--- /dev/null
@@ -0,0 +1,69 @@
+<?php
+/**
+ * Copyright 2006-2008 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file COPYING for license information (GPL). If you
+ * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
+ *
+ * @author Michael Slusarz <slusarz@horde.org>
+ */
+
+/* Include Horde's core.php file. */
+include_once '../lib/core.php';
+
+/* We should have loaded the String class, from the Horde_Util
+   package, in core.php. If String:: isn't defined, then we're not
+   finding some critical libraries. */
+if (!class_exists('String')) {
+    echo '<br /><h2 style="color:red">The Horde_Util package was not found. If PHP\'s error_reporting setting is high enough and display_errors is on, there should be error messages printed above that may help you in debugging the problem. If you are simply missing these files, then you need to get the <a href="http://cvs.horde.org/cvs.php/framework">framework</a> module from <a href="http://www.horde.org/source/">Horde CVS</a>, and install the packages in it with the install-packages.php script.</h2>';
+    exit;
+}
+
+/* Initialize the Horde_Test:: class. */
+if (!is_readable('../lib/Test.php')) {
+    echo 'ERROR: You must install Horde before running this script.';
+    exit;
+}
+require_once '../lib/Test.php';
+$horde_test = new Horde_Test;
+
+/* Jeta version. */
+$module = 'Jeta';
+require_once './lib/version.php';
+$module_version = JETA_VERSION;
+
+/* Jeta configuration files. */
+$file_list = array(
+    'config/conf.php' => 'The file <code>./config/conf.php</code> appears to be missing. You probably just forgot to generate it using the Horde config system - see docs/INSTALL for details. While you do that, take a look at the settings and make sure they are appropriate for your site.',
+);
+
+require TEST_TEMPLATES . 'header.inc';
+require TEST_TEMPLATES . 'version.inc';
+
+?>
+<h1>Other Horde Applications</h1>
+<ul>
+    <?php echo $horde_test->requiredAppCheck(array()) ?>
+</ul>
+<?php
+
+/* Display PHP Version information. */
+$php_info = $horde_test->getPhpVersionInformation();
+require TEST_TEMPLATES . 'php_version.inc';
+
+/* PEAR */
+$pear_list = array();
+
+?>
+<h1>Jeta Configuration Files</h1>
+<ul>
+    <?php echo $horde_test->requiredFileCheck($file_list) ?>
+</ul>
+
+<h1>PEAR Modules</h1>
+<ul>
+    <?php echo $horde_test->PEARModuleCheck($pear_list) ?>
+</ul>
+
+<?php
+require TEST_TEMPLATES . 'footer.inc';
diff --git a/jeta/themes/graphics/favicon.ico b/jeta/themes/graphics/favicon.ico
new file mode 100644 (file)
index 0000000..43e7d6f
Binary files /dev/null and b/jeta/themes/graphics/favicon.ico differ
diff --git a/jeta/themes/graphics/jeta.png b/jeta/themes/graphics/jeta.png
new file mode 100644 (file)
index 0000000..888cb31
Binary files /dev/null and b/jeta/themes/graphics/jeta.png differ