Javascript IRC WebClient

What/Why

Mein-chat_1348790633110.pngI present you MeinChat, an irc client written in javascript with a little help from the PHP backend.

The client side, written in javascript, manages the IRC protocol and the html interface. It aims to implement the complete IRC protocol client side. The server side exchanges messages between the client(HTTP) and the server (Raw data). It is also a small http server serving the static files (javascript, html) to the client and an identd server giving a unique username to the server for each client.

 

server-select.pngAs of now it does not implement the complete IRC protocol, but it is very usable. It can connect to any irc network or bouncer and so long that you know basic irc commands like /nick /join /part, you will be able to join any network and have a great time chatting!

One interesting feature is that you can make a list of servers

clients can select from a drop down on the connect screen. There is two parts to this client: the backend and the client. The whole IRC protocole is implemented client side in javascript. The backend is basically The backend also implements an identd server. The client interface is fully customizable with CSS.

Prerequisites

  • PHP 5.3
  • A modern web browser with javascript support

The back end should work on any platform where PHP can run. It can't run correctly from a webserver (apache module/cgi), it MUST be run from the command line.

How to use

Download the package. Edit config.php to your liking. Then run php server.php FROM THE COMMAND LINE and visit http://bind_ip:bind_port/ (default http://yourip:8080/).
Demo: https://alexou.net/irc/

To do

  • Admin commands (reload, disconnect, die, etc..)
  • History in the inputbox (up/down arrow)
  • Tab completion
  • Auto linking

Downloads

https://alexou.net/pub/?meinchat

Commentaires
avatar
affect vs effect
When someone experiences neurotic guilt it is often experienced with anxiety along with
shame, due to the fact that one feels like everything is going wrong and feels as if everyone is mad at them.
Our nervous systems have grown to the way in
which they have been exercised, just as a sheet of paper or a
coat, once creased or folded, tends to fall forever afterward into the same identical folds.

Or really, really long words that only your doctor or chemist would understand.

I'd have to ask around, the NPC's and the community, to find out what the item is and what I can do
with it. Such only makes a person will fatter in those long
if over pelvis, let at have your feet firmly positioned inside the floor.
avatar
demo ?
avatar
demo adres ?
avatar
It doesn't work from a web server like that.

You have to run php server.php

then navigate to your IP:PORT that you set in config.php


The webclient has an integrated http server. If you want to use it in a url like that, you will need to proxy it.


I know it's not very clear, I'll try to make better documentation eventually.
avatar
http://irc.duygusohbet.com/www
problem ?

I installed does not work why?
avatar
What it does not enter on your web site is operated cilentana

I need input for mobile phones FlashSee me Javas input
avatar
javas?z sohbet
demo error problem ?
avatar
Xosé Bmnz
Ubuntu 12.04 lts

PHP 5.2.10

Error!

root@xor:/var# php server.php

Parse error: syntax error, unexpected T_STRING in /var/server.php on line 394
root@xor:/var#

somebody help me! xD
avatar
alex
Administrateur
Hi, there was a goto which is only available in PHP 5.3. I changed the code, can you try version 0.1.3?
avatar
Xosé Bmnz
lhax@xor:~$ cd meinchat
lhax@xor:~/meinchat$ php server.php

Fatal error: Call to undefined function array_replace_recursive() in /home/lhax/meinchat/server.php on line 46
lhax@xor:~/meinchat$
avatar
alex
Administrateur
Damn, another PHP 5.3 only feature. Until I fix it what you can do is edit server.php directly for your configuration and then change line 46 to be $config = $default_config; Hopefully this is the last PHP 5.3 dependancy!
avatar
Xosé Bmnz
how to change?
only line 46

$config = array_replace_recursive($default_config, $config);

to:
$config = $default_config;
???
avatar
alex
Administrateur
Yes change only line 46 with any text editor you have.
avatar
Xosé Bmnz
lhax@xor:~$ cd meinchat-0.1.3
lhax@xor:~/meinchat-0.1.3$ php server.php

Warning: chdir(): No such file or directory (errno 2) in /home/lhax/meinchat-0.1.3/server.php on line 120
Unable to create httpd socket: Permission denied (0)
lhax@xor:~/meinchat-0.1.3$
avatar
alex
Administrateur
The chdir error doesn't matter. For the permission denied you must change the configuration on line 8 and 34. Line 8 change the port to something greater than 1024 eg 0.0.0.0:8080, and change 34 set ident to false.

Because you must be root to bind to a port lower than 1024.
avatar
Xosé Bmnz
last question. only preview www 127.0.0.1, ip public not preview.
avatar
alex
Administrateur
Change the 0.0.0.0 on line 8 to 127.0.0.1 to make it private.
If you want public access keep the 0.0.0.0 and make sure your port is allowed in your firewall.
avatar
Xosé Bmnz
how to order the list by user mode? JQuery!
avatar
Xosé Bmnz
I have xampp apache, as I do in php function without creating an Apache socket 80? I want only the client
avatar
I tried to connect and join automaticly. Auto connection works fine. but I can't find a way, that joins automaticly to a specified channel.

can anybody help me? Thanks!
avatar
Hello,
How to connect to an IRC server with password ?
avatar
I want to add emoticons to chat as would be the code?
avatar
demo http://www.ozlemsohbet.com demo http://www.sohbetpinari.com/sohbet

Warning: chdir(): No such file or directory (errno 2) in /home/lhax/meinchat-0.1.3/server.php on line 120
Unable to create httpd socket: Permission denied (0)
Connectez-vous ou postez en tant qu'invité:
Your Name Your Email


Vérification: 0875
Go to Top