~ubuntu-branches/ubuntu/trusty/jwchat/trusty

« back to all changes in this revision

Viewing changes to src/config.js

  • Committer: Bazaar Package Importer
  • Author(s): Lincoln de Sousa, Lincoln de Sousa, Marcelo Jorge Vieira
  • Date: 2010-09-16 11:42:28 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20100916114228-5s5ne28n1w6wrfbl
Tags: 1.0+dfsg-1
[Lincoln de Sousa]

* Switch to dpkg-source 3.0 (quilt) format
* Migrating package from cdbs to debhelper 7.0.50~
* Changing the rule get-orig-source to generate a dfsg compatible
  package striping swf files from the orig (Closes: #591962)
* Updated Standards-Version to 3.9.1
* Removing po-debconf from the Build-Depends-Indep list.

[Marcelo Jorge Vieira]

* Fixing the default backend
* Fixing Debugger dependency
* Changing information about packaging from old maintainers to
  Debian XMPP Team.
* Removing sound support.
* Setting a port for apache VirtualHost.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * JWChat, a web based jabber client
 
3
 * Copyright (C) 2003-2004 Stefan Strigler <steve@zeank.in-berlin.de>
 
4
 *
 
5
 * This program is free software; you can redistribute it and/or
 
6
 * modify it under the terms of the GNU General Public License
 
7
 * as published by the Free Software Foundation; either version 2
 
8
 * of the License, or (at your option) any later version.
 
9
 *
 
10
 * This program is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program; if not, write to the Free Software
 
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
18
 *
 
19
 * Please visit http://jwchat.sourceforge.net for more information!
 
20
 */
 
21
 
 
22
/*
 
23
 * This is the main configuration file for the chat client itself.
 
24
 * You have to edit this before you can use jwchat on your website!
 
25
 *
 
26
 * Have a look at the README for hints and troubleshooting!
 
27
 */
 
28
 
 
29
var SITENAME = "__ApacheServerName__";
 
30
 
 
31
/* BACKENDS
 
32
 * Array of objects each describing a backend.
 
33
 *
 
34
 * Required object fields:
 
35
 * name      - human readable short identifier for this backend
 
36
 * httpbase  - base address of http service [see README for details]
 
37
 * type      - type of backend, must be 'polling' or 'binding'
 
38
 *
 
39
 * Optional object fields:
 
40
 * description     - a human readable description for this backend
 
41
 * servers_allowed - array of jabber server addresses users can connect to 
 
42
 *                   using this backend
 
43
 *
 
44
 * If BACKENDS contains more than one entry users may choose from a
 
45
 * select box which one to use when logging in.
 
46
 *
 
47
 * If 'servers_allowed' is empty or omitted user is presented an input
 
48
 * field to enter the jabber server to connect to by hand.
 
49
 * If 'servers_allowed' contains more than one element user is
 
50
 * presented a select box to choose a jabber server to connect to.
 
51
 * If 'servers_allowed' contains one single element no option is
 
52
 * presented to user.
 
53
 */
 
54
var BACKENDS = 
 
55
[
 
56
                {
 
57
                        name:"Native Binding",
 
58
                        description:"Ejabberd's native HTTP Binding backend",
 
59
                        httpbase:"/http-bind/",
 
60
                        type:"binding",
 
61
                        servers_allowed:[SITENAME]
 
62
                },
 
63
/*
 
64
                {
 
65
                        name:"Native Polling",
 
66
                        description:"Ejabberd's native HTTP Polling backend",
 
67
                        httpbase:"/http-poll/",
 
68
                        type:"polling",
 
69
                        servers_allowed:[SITENAME]
 
70
                },
 
71
                {
 
72
                        name:"Open Relay",
 
73
                        description:"HTTP Binding backend that allows connecting to any jabber server",
 
74
                        httpbase:"/JHB/",
 
75
                        type:"binding",
 
76
                        default_server: SITENAME
 
77
                },
 
78
                {
 
79
                        name:"Restricted Relay",
 
80
                        description:"This one let's you choose from a limited list of allowed servers",
 
81
                        httpbase:"/JHB/",
 
82
                        type:"binding",
 
83
                        servers_allowed:[SITENAME,'jabber.org','jwchat.org']
 
84
                }
 
85
*/
 
86
];
 
87
 
 
88
var DEFAULTRESOURCE = "jwchat";
 
89
var DEFAULTPRIORITY = "10";
 
90
 
 
91
/* DEFAULTCONFERENCEGROUP + DEFAULTCONFERENCESERVER
 
92
 * default values for joingroupchat form
 
93
 */
 
94
var DEFAULTCONFERENCEROOM = "talks";
 
95
var DEFAULTCONFERENCESERVER = "conference."+SITENAME;
 
96
 
 
97
/* debugging options */
 
98
var DEBUG = false; // turn debugging on
 
99
var DEBUG_LVL = 2; // debug-level 0..4 (4 = very noisy)
 
100
 
 
101
var USE_DEBUGJID = false; // if true only DEBUGJID gets the debugger
 
102
var DEBUGJID = "admin@"+SITENAME; // which user get's debug messages
 
103
 
 
104
 
 
105
// most probably you don't want to change anything below
 
106
 
 
107
var timerval = 2000; // poll frequency in msec
 
108
 
 
109
var stylesheet = "jwchat.css";
 
110
var THEMESDIR = "themes";
 
111
 
 
112
/* Auto-login options. Define parameters for guest user account and
 
113
 * when JWChat page is called with 'jid' parameter which is equal
 
114
 * to GUEST_ACC value then configuration below is used for autologin.
 
115
 * Sample configuration:
 
116
 * var GUEST_ACC = "guest_2";
 
117
 * var GUEST_PWD = "guestpwd";
 
118
 * Sample call:
 
119
 * http://jwchat.localhost/index.html?jid=guest_2
 
120
 * will triger auto-login for the 'guest_2' account.
 
121
 *
 
122
 * As it is possible that many people try to login at the same time
 
123
 * the auto-login function will generate random resource based on
 
124
 * algorithm: DEFAULTRESOURCE + Math.round(Math.random()*1000)
 
125
 */
 
126
var GUEST_ACC = "";
 
127
var GUEST_PWD = "";