Index: openacs-4/packages/chat-includelet/chat-includelet.info
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/chat-includelet/chat-includelet.info,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/chat-includelet/chat-includelet.info 13 Aug 2008 23:48:28 -0000 1.1
@@ -0,0 +1,24 @@
+
+
+
+
+ Chat Includelet
+ Chat Includelets
+ f
+ f
+
+
+ OpenACS
+ 2008-08-11
+ OpenACS
+
+
+
+
+
+
+
+
+
+
+
Index: openacs-4/packages/chat-includelet/catalog/chat-includelet.ca_ES.ISO-8859-1.xml
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/chat-includelet/catalog/chat-includelet.ca_ES.ISO-8859-1.xml,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/chat-includelet/catalog/chat-includelet.ca_ES.ISO-8859-1.xml 13 Aug 2008 23:48:28 -0000 1.1
@@ -0,0 +1,8 @@
+
+
+
+ Afegeix una sala de xat
+ Administraci� de xat
+ Administra xat
+ Xat
+
Index: openacs-4/packages/chat-includelet/catalog/chat-includelet.de_DE.ISO-8859-1.xml
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/chat-includelet/catalog/chat-includelet.de_DE.ISO-8859-1.xml,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/chat-includelet/catalog/chat-includelet.de_DE.ISO-8859-1.xml 13 Aug 2008 23:48:28 -0000 1.1
@@ -0,0 +1,10 @@
+
+
+
+ Add a chat room
+ Chat administration
+ HTML mode
+ Manage chat
+ Chat
+ Rooms Administration
+
Index: openacs-4/packages/chat-includelet/catalog/chat-includelet.en_US.ISO-8859-1.xml
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/chat-includelet/catalog/chat-includelet.en_US.ISO-8859-1.xml,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/chat-includelet/catalog/chat-includelet.en_US.ISO-8859-1.xml 13 Aug 2008 23:48:28 -0000 1.1
@@ -0,0 +1,12 @@
+
+
+
+ Add a chat room
+ Chat administration
+ Displays chat administration includelet
+ Displays chat includelet
+ HTML mode
+ Manage chat
+ Chat
+ Rooms Administration
+
Index: openacs-4/packages/chat-includelet/catalog/chat-includelet.es_ES.ISO-8859-1.xml
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/chat-includelet/catalog/chat-includelet.es_ES.ISO-8859-1.xml,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/chat-includelet/catalog/chat-includelet.es_ES.ISO-8859-1.xml 13 Aug 2008 23:48:28 -0000 1.1
@@ -0,0 +1,10 @@
+
+
+
+ A�adir una sala
+ Administraci�n de chat
+ Modo HTML
+ Gestionar sala
+ Chat
+ Administraci�n de salas
+
Index: openacs-4/packages/chat-includelet/catalog/chat-includelet.pt_BR.ISO-8859-1.xml
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/chat-includelet/catalog/chat-includelet.pt_BR.ISO-8859-1.xml,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/chat-includelet/catalog/chat-includelet.pt_BR.ISO-8859-1.xml 13 Aug 2008 23:48:28 -0000 1.1
@@ -0,0 +1,10 @@
+
+
+
+ Adicionar uma sala de chat
+ Administra��o do chat
+ Modo HTML
+ Gerenciar chat
+ Chat
+ Administra��o das Salas
+
Index: openacs-4/packages/chat-includelet/lib/chat-admin-includelet.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/chat-includelet/lib/chat-admin-includelet.adp,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/chat-includelet/lib/chat-admin-includelet.adp 13 Aug 2008 23:48:28 -0000 1.1
@@ -0,0 +1,4 @@
+
Index: openacs-4/packages/chat-includelet/lib/chat-admin-includelet.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/chat-includelet/lib/chat-admin-includelet.tcl,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/chat-includelet/lib/chat-admin-includelet.tcl 13 Aug 2008 23:48:28 -0000 1.1
@@ -0,0 +1,3 @@
+set user_id [ad_conn user_id]
+set url [site_node::get_url_from_object_id -object_id $package_id]
+ad_return_template
Index: openacs-4/packages/chat-includelet/lib/chat-includelet-oracle.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/chat-includelet/lib/chat-includelet-oracle.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/chat-includelet/lib/chat-includelet-oracle.xql 13 Aug 2008 23:48:28 -0000 1.1
@@ -0,0 +1,28 @@
+
+
+
+oracle8.1.6
+
+
+
+ select rm.room_id,
+ rm.pretty_name as pretty_name,
+ rm.description as description,
+ rm.moderated_p,
+ rm.active_p,
+ rm.archive_p,
+ acs_permission.permission_p(room_id, :user_id, 'chat_room_admin') as admin_p,
+ acs_permission.permission_p(room_id, :user_id, 'chat_read') as user_p,
+ (select site_node.url(site_nodes.node_id)
+ from site_nodes
+ where site_nodes.object_id = obj.context_id) as base_url
+ from chat_rooms rm,
+ acs_objects obj
+ where rm.room_id = obj.object_id
+ and obj.context_id = :package_id
+ order by rm.pretty_name
+
+
+
+
+
Index: openacs-4/packages/chat-includelet/lib/chat-includelet-postgresql.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/chat-includelet/lib/chat-includelet-postgresql.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/chat-includelet/lib/chat-includelet-postgresql.xql 13 Aug 2008 23:48:28 -0000 1.1
@@ -0,0 +1,28 @@
+
+
+
+postgresql7.1
+
+
+
+ select rm.room_id,
+ rm.pretty_name as pretty_name,
+ rm.description as description,
+ rm.moderated_p,
+ rm.active_p,
+ rm.archive_p,
+ acs_permission__permission_p(room_id, :user_id, 'chat_room_admin') as admin_p,
+ acs_permission__permission_p(room_id, :user_id, 'chat_read') as user_p,
+ (select site_node__url(site_nodes.node_id)
+ from site_nodes
+ where site_nodes.object_id = obj.context_id) as base_url
+ from chat_rooms rm,
+ acs_objects obj
+ where rm.room_id = obj.object_id
+ and obj.context_id = :package_id
+ order by rm.pretty_name
+
+
+
+
+
Index: openacs-4/packages/chat-includelet/lib/chat-includelet.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/chat-includelet/lib/chat-includelet.adp,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/chat-includelet/lib/chat-includelet.adp 13 Aug 2008 23:48:28 -0000 1.1
@@ -0,0 +1,27 @@
+
+#chat.There_are_no_rooms_available#
+
+
+
+
Index: openacs-4/packages/chat-includelet/lib/chat-includelet.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/chat-includelet/lib/chat-includelet.tcl,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/chat-includelet/lib/chat-includelet.tcl 13 Aug 2008 23:48:28 -0000 1.1
@@ -0,0 +1,17 @@
+set chat_url "[ad_conn package_url]/chat/"
+
+set context [list]
+set user_id [ad_conn user_id]
+set room_create_p [ad_permission_p $user_id chat_room_create]
+set default_mode [ad_parameter DefaultClient chat "ajax"]
+set num_rooms 0
+
+db_multirow -extend { can_see_p } rooms rooms_list {} {
+ set can_see_p 0
+ if {($active_p eq "t" && $user_p eq "t") || ($admin_p eq "t")} {
+ set can_see_p 1
+ set num_rooms [expr $num_rooms + 1]
+ }
+}
+
+ad_return_template
Index: openacs-4/packages/chat-includelet/tcl/apm-callback-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/chat-includelet/tcl/apm-callback-procs.tcl,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/chat-includelet/tcl/apm-callback-procs.tcl 13 Aug 2008 23:48:28 -0000 1.1
@@ -0,0 +1,42 @@
+ad_library {
+
+ Chat Includelet Install library
+
+ Procedures that deal with installing, instantiating, mounting.
+
+ @creation-date 2008-08-13
+ @author Don Baccus
+ @cvs-id
+}
+
+namespace eval chat_includelet::install {}
+
+ad_proc -private chat_includelet::install::package_install {} {
+ Package installation callback proc
+} {
+
+ # Admin includelet
+ layout::includelet::new \
+ -name chat_admin_includelet \
+ -description #chat-includelet.admin_description# \
+ -title #chat-includelet.admin_pretty_name# \
+ -application chat \
+ -template /packages/chat-includelet/lib/chat-admin-includelet \
+ -required_privilege admin
+
+ # User includelet
+ layout::includelet::new \
+ -name chat_includelet \
+ -description #chat-includelet.description# \
+ -title #chat-includelet.pretty_name# \
+ -application chat \
+ -template /packages/chat-includelet/lib/chat-includelet
+}
+
+ad_proc -private chat_includelet::install::package_uninstall {} {
+ Package uninstallation callback proc
+} {
+ layout::includelet::delete -name chat_includelet
+ layout::includelet::delete -name chat_admin_includelet
+}
+