mychat.php3 3.1 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2005 University of Utah and the Flux Group.
# All rights reserved.
#
include("defs.php3");

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

#
# Only known and logged in users.
#
$uid = GETLOGIN();
LOGGEDINORDIE($uid);
$isadmin = ISADMIN($uid);

$query_result =
    DBQueryFatal("select mailman_password from users where uid='$uid'");

if (!mysql_num_rows($query_result)) {
    USERERROR("No such user $uid!", 1);
}
$row = mysql_fetch_array($query_result);
$password = $row['mailman_password'];

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 B. Stoller's avatar
Leigh B. Stoller committed
35
36
      <br><b>$password</b></center><br>\n";
echo "<br>\n";
37
38
39
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 B. Stoller's avatar
Leigh B. Stoller committed
40
41
      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";
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56

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";

57
58
59
60
61
62
63
64
65
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";

66
echo "<blockquote><ul>
67
68
69
70
71
72
73
74
75
       <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
76
77
      </ul></blockquote>\n";

78
echo "Of course, any Jabber compatible IM client can be used. The Google
79
80
81
82
      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";

83
84
85
86
87
#
# Standard Testbed Footer
# 
PAGEFOOTER();
?>