:: Felipe Santiago :: scripts ::

welcome
I'm listing bellow the scripts i've been making in my free time. Feel free to use, modify, redistribute any of the codes listed here. If you find bugs, please send to: jfsso@hotmail.com. "Bugs" in my English are welcome.
scripts
ICQ Status single user - perl
ICQ Status single user - php
PHP Web Chat Server
PHP resizeImage()
Celfoto Photolog
about the author
Little is know about this guy. All the people know is that he's brazilian. Some people know him as jfsso on irc nets. His UIN is 70140038 (unknown) and is living in Japan. Name: Felipe Santiago (João Orui), e-mail: jfsso@hotmail.com
icq status - single user - perl
What is ICQ Status?
ICQ Status is a CGI Perl script that shows your ICQ status in text format. There is also a php version available.

Where/When can I use it?
There are times when you want to put your icq status without affecting you design. That's not possible using the options of indicators given by icq. This script is made for those situations... :-D Take a look on how it is used above.

Where can I get it?
You can download the latest version (1.4) clicking here. (2.43kb)

How do I install it?
Open icq.cgi in a text editor and edit the lines of configuration.
Send icq.cgi via ftp to your webspace in ascii mode and change the permission to 755 (chmod 755).
That's all! Now you only have to insert the indicator on you page.

How can I insert the text status indicator in my page?
You can insert it in you page using ssi, javascript or php include. Bellow are some examples:
ssi: <!--#include virtual="icq.cgi?ssi" -->
javascript: <script language="javascript" type="text/javascript" src="icq.cgi"></script>
javascript & ssi: <script language="javascript" type="text/javascript"><!--#include virtual="icq.cgi" --></script>
javascript & ssi 2: <script language="javascript" type="text/javascript">document.write('<!--#include virtual="icq.cgi?ssi" -->');</script>
php url include: <?php include "http://yourserver/cgi-bin/icq.cgi?ssi"?>


I found a bug!! How should I report it?
Please send informations about it via e-mail: jfsso@hotmail.com.

I've made some improves. Can I send it to you?
There's no reason to not send it! :-) Waiting your contribution!
icq status - single user - php
What is ICQ Status?
ICQ status is a PHP script that displays ICQ status in simple text format.

Where/When can I use it?
There are situations you dont want to use ICQ's standard indicators that might disturb your design, for such cases this script can be used to show the ICQ status in text formats. :-D

Where can I get it?
You can download the latest version (1.5) clicking here. (2.47kb).

How do I install it?
Open icq.php in a text editor and edit the lines of configuration.
Upload icq.php via ftp to your webspace in ascii mode.
That's all! Now you only have to insert the indicator on you page.

How can I insert the text status indicator in my page?
You can insert it in you page using ssi, javascript or php include. Bellow are some examples:
ssi: <!--#include virtual="icq.php" -->
javascript: <script language="javascript" type="text/javascript" src="icq.php?js"></script>
javascript & ssi 1: <script language="javascript" type="text/javascript"><!--#include virtual="icq.php?js" --></script>
javascript & ssi 2: <script language="javascript" type="text/javascript">document.write('<!--#include virtual="icq.php" -->');</script>
php include: <?php include "icq.php"?>
php url include: <?php include "http://yourserver/icq.php"?>


I found a bug!! How should I report it?
Please send informations about it via e-mail: jfsso@hotmail.com.

I've made some improves. Can I send it to you?
There's no reason to not send it! :-) Waiting your contribution!
php web chat server
About
A web chat server written in php. Uses socket to open a tcp port and listen for connections. It was based on codes from:
BROADCAST Chat Server 1.3 (http://www.hartwork.org)
Writing Socket Servers in PHP (http://www.zend.com/pecl/tutorials/sockets.php)

Download
Source code: http://felipesantiago.com/scripts/phpwebchatserver.phps

Installing(?) and Running the server
Create these 3 files on the same folder as phpwebchatserver.php
1 jfcwsindex.html
2 jfcwsmainform.html
3 jfcwsmainframe.html
Execute this on your server: php -q phpwebchatserver.php
Then, access the chat server from your browser.

More information
This is still under development. I have no idea when i'll have time to finish this. If you want to make improvements, feel free to use it.
PHP resizeImage()
About
A very useful image resize function. Uses PHP GD.

Download
Source code: http://felipesantiago.com/codigos/resizeimage.phps

More information
Method of use written in the source code
Celfoto Photolog
About
A system inpired in fotolog.net's system.

Demo and Download
http://felipesantiago.com/celfoto/

More information
The web page interface is written in portuguese but the administration screen is in english. The download link is on the botton of Demo page.
All the scripts available from this site are provided "as is" with no warranty of any kind.