mychat.php3 3.61 KB
Newer Older
1 2
<?php
#
3
# Copyright (c) 2000-2006 University of Utah and the Flux Group.
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
# 
# {{{EMULAB-LICENSE
# 
# This file is part of the Emulab network testbed software.
# 
# This file is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at
# your option) any later version.
# 
# This file 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 Affero General Public
# License for more details.
# 
# You should have received a copy of the GNU Affero General Public License
# along with this file.  If not, see <http://www.gnu.org/licenses/>.
# 
# }}}
23 24 25 26 27 28 29 30 31 32 33
#
include("defs.php3");

if (!$CHATSUPPORT) {
    header("Location: index.php3");
    return;
}

#
# Only known and logged in users.
#
34 35 36
$this_user = CheckLoginOrDie();
$uid       = $this_user->uid();
$isadmin   = ISADMIN();
37

38
$password = $this_user->mailman_password();
39 40 41 42 43 44

PAGEHEADER("My Instant Messaging");

echo "<center><font size=+1>Your Emulab Jabber ID and Password</font>
      </center><br>\n";
echo "<center><a href=gotochat.php3><b>$uid@jabber.{$OURDOMAIN}</b></a>
Leigh Stoller's avatar
Leigh Stoller committed
45 46
      <br><b>$password</b></center><br>\n";
echo "<br>\n";
47 48 49
echo "The Emulab <a href=http://jabberd.jabberstudio.org/2/>Jabber</a>
      server is an implementation of the popular
      <a href=http://www.jabber.org/>Jabber Instant Messaging Protocol.</a>
Leigh Stoller's avatar
Leigh Stoller committed
50 51
      You can use your own Jabber client, or you can use the <b>Jeti Java
      Applet by clicking on your Jabber ID above</b>.\n";
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66

echo "<br><br>
      Once you connect to Emulab's Jabber server, you will find an initial
      set of buddy lists, one for each project you belong to. Emulab will
      maintain those buddy lists for you, adding and removing project members
      as needed. Of course you are welcome to add your own buddies and buddy
      lists; Emulab will not interfere with them.\n";

echo "<br>
      The Emulab Jabber server also supports multi user <em>chatrooms</em>.
      You are welcome to create chatrooms as needed. Simply use
      <tt>conference.emulab.net</tt> as the server hostname when prompted. ";
echo "<em>(We plan to add automatic creation of per-project chatrooms in
      the future)</em>\n";

67 68 69 70 71 72 73 74 75
echo "<br><br>\n";
echo "If you decide to use your own Jabber client (which we recommend), then
      you should check out <a href=http://gaim.sourceforge.net/>Gaim</a>, 
      a multi-protocol instant messaging (IM) client that many on the Emulab
      development team use. Should you decide to use Gaim, here are the
      relevant fields in the <b>Add Account</b> screen (you can check out
      <a href=http://www.google.com/talk/otherclients.html>Google's Gaim</a>
      tutorial to see how to get to the Add Accounts screen).\n";

76
echo "<blockquote><ul>
77 78 79 80 81 82 83 84 85
       <li><b>Protocol</b>: Jabber
       <li><b>Screen Name</b>: your Emulab user ID
       <li><b>Server</b>: jabber.${OURDOMAIN}
       <li><b>Password</b>: your Emulab jabber password (see above)
       <li><b>Protocol</b>: Jabber
       <li><b>Jabber Options</b>: 'Use TLS if available'
       <li><b>Port</b>: 5222
       <li><b>Connect server</b>: leave this field blank
       <li><b>Proxy type</b>: Use Global Proxy Settings
86 87
      </ul></blockquote>\n";

88
echo "Of course, any Jabber compatible IM client can be used. The Google
89 90 91 92
      page mentioned above has a nice list of clients, along with
      instructions on how to configure them all. We suggest you use one of
      those clients.\n";

93 94 95 96 97
#
# Standard Testbed Footer
# 
PAGEFOOTER();
?>