Download Latest Version chat_v2.20.zip (633.9 kB)
Email in envelope

Get an email when there's a new version of XYZ Chat

Home
Name Modified Size InfoDownloads / Week
xyz-chat-2.0 2015-07-04
xyz-chat-2.0-beta 2015-07-04
xyz-chat-2.0-pre-beta 2015-07-04
README-xyzChat.txt 2015-07-07 6.3 kB
xyz-chat-allversions.rar 2015-07-04 20.8 MB
Totals: 5 Items   20.8 MB 1
********************************************************************
			X Y Z     C h a t
********************************************************************

Original idea was a site to create chats
.. an user create his chat and can modify some parameters.

The chat will have different layouts to adapt functionality:

*webchat	common chat for webpage
*shoutbox	box without login

I only implement "webchat" layout
.. that is why some dir or file include "webchat" in his name.


Incomplete features:
	* Feature offline messages like an email by DB
	* User configuration is not complete, change: name, password, etc.

Missing management capabilities:
	* To change DB connection need export tables from SQLite-file with a SQLite utility
	* Manage chat users
	* Modify or create admin-user. Default administrator user is admin or jorge.

----------------------
LAST VERSION 2.20 !!!
----------------------
* Public chat = ok
* Private chats = buggy
* Login = ok
* Register = ok
* English, spanish
* Skins = ok
* Smiles = ok
* PHP + Javascript + SQLite 
* Bugs
	- Private chats dont work anymore.
	- Private chats resize & drag drop problem.
	- Web browsers javascript war ??


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Users
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Default register new user is has normal user.

Sorry, i dont make something to create admin user :(
My first idea was create admin-user when user register and users table is empty, 
but, just stay as an idea and i dont implement it.

You can see "users" table structure for default admin-user.

admin:
	user		jorge
	password	mimic99

others:
	user		admin
	password	123, 12345, mimic, mimic123, mimic88



+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Database
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Directory => data\chat-version\

Default is SQLite.

Databases files are "*.db3"

Use an SQLite utility to export database files as SQL query,
so, you import it in your database system and change $settings related to database connection.



+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Configuration
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Directory => data\
* config.php => data\
* config-webchat.php => data\chat-version\

$settings => PHP var

I not remember all the vars.
You can search in php files and look javascript files too.

Configuration was sliced in 2 files because original idea was a webpage to create chats:
* 1 configuration for system
* 1 configuration for owner of chat

config.php		system config
config-webchat.php	owner config (for layout "webchat")


-------------------
config-webchat.php
-------------------
site_mto		disable chat for maintenance
allow_smiles		enable smiles
allow_pm		enable private chats
allow_guest		enable guests login
allow_openreg		enable public register
allow_colors		enable colors list for letter
allow_mygroup		enable my-group feature (menu option, lists)
logo_login		show logo in login window
logo_register		show logo in register window
autologout		automatic logout after n-minutes in null activity
autologout_minutes	
smiles_columns		columns to group smiles (smiles list)
chat_title		webbrowser title for window chat
chat_description	login window welcome message
chat_scrollon		move chat-body bar position after append message
chat_scrollup		message append position: beginning / end .. scroll-up or scroll-down
chat_custommsg		
chat_autohidetxt	
chat_one_menu		
captcha_login		captcha in login window
captcha_register	captcha in register window
skin			skin to use, its the directory of skin => user\chatweb\SKIN_NAME
welcome_message		entry chat welcome message
-------------------
* 1 = true
* 0 = false

-------------------
config.php
-------------------
chat_maxusers		public chat maximum number of logged users
chat_maxlines		public chat cumulative messages in chat-body before start deleting old messages
chat_txtlength		public chat maximum message length
chat_msgrefresh		public chat update timer, poll in seconds
chat_intercom		public chat character for send message to a private-chat => '*' => *1 => *-#window
colors_maxcount		public chat colors list (text-color)
chat_maxtalks		private chats user can open
chat_msgwait		
chat_maxsmiles		smile maximum images in smiles list
chat_widgetch1		smile widget, character start => ':'
chat_widgetch2		smile widget, character end => ':'
caritas_size		smile picture file size limit = 5120 bytes
caritas_types		smile picture types allowed => array('.jpg','.png','.gif')
caritas_maxcount 	smile files quantity to read from dir
code_cycles		password encoding, used/not-used by encryption
code_salt1		password encoding, salt to add in text-beginning to encrypt
code_salt2		password encoding, salt to add in text-end to encrypt
code_encode		password encoding, encryption algorithm 
db-type			database connection, driver=> 'sqlite'
db-host			database connection, host 
db-user			database connection, user
db-userpass		database connection, password
db-name			database connection, sqlite chat file => 'dbchat.db3'
db-lang			database connection, sqlite language file =>'dblang.db3'
db-config		database connection, sqlite configuration file =>'dbconfig.db3'
-------------------


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
dirs
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Directory structure:

..data\
	+ 2.0\
		* chat version dir
		* configuration files
		* databases
		+ config-chatweb.php 
			* $settings for chat owner
			* settings for layout "chatweb"
	+ config.php
		* $settings for system and some defaults
	+ version.php
		* define global vars
		* include files
..includes\
	+ 2.0\ 
		* chat version dir
		* php code

..user\
	+ chatweb\
		* layout type = dir-name
		* dir for skins
		+ skin_name\
			+ colors.inc
				* list of colors = colors for letters in chat
			+ msg-chat.inc
				* message layout for public chat
			+ msg-private.inc
				* message layout for private chat
		* dir for smiles
		+ smiles\
			* pictures files for smiles
Source: README-xyzChat.txt, updated 2015-07-07