         /**
           * @Author Ghost (Xhtml Creator, Wml Major Updater) - (Fully Taken Over)
           * @PreviousAuthor Deviance Aka Wappy - (Retired Wml Creator/Updater) - (Gone)
           * @Copyright 2012 - Mobile Chat Xhtml
           * @Version xhtml v3 (3.0)
           * @Description Flat File Xhtml Chat With Sessions And Encrypted Passwords
           * @Description (Should Be Working On All Servers)
           * @HTMLVersion Xhtml 1.0 Transitional EN
           */

================================================================
|      ( I WILL TRY TO KEEP NEW VERSIONS/CHANGES TO TOP OF THE PAGE )     |
================================================================
================
   CHANGES IN v3 (3.0)
================
1. New time and date setup/look. now using gmdate() rather than date()
   BOTH time settings and date setting are using gmdate() this is to get
   the best/most accurate time possible when changing the time manually
   from config.php
   now looks like: >>  Sunday 10th of June 2012 - 11:35 AM

2. Rewrite of old times files. All 7 Files Have Been Updated.
   old files used gmdate and was very un-accurate.
   now has 104 different timezones
   using gmdate() rather than date()
   Can Modify These Pages Heavily From Within config.php
   may change this to css modifying at later release.
   (Possibly Can Be Out By 1 Hour, Depending On Daylight Saving Or Not)

3. Rooms.php
   Made Sure Everything Is Visable To The Correct People This Time

4. Ban.php Fixed.
   Should No Longer Get Cannot Modify Header Error Warnings.
   should now ban/boot users properly.

5. IPBan.php
   Should No Longer Get Cannot Modify Header Error Warnings.
   should now ban/boot users properly.
   (although i dont like this tool very much its still there)

6. Staffroom Folder Fully Fixed.
   When Doing Version 2, I Used Room1 Folder As A Base For All
   Other Rooms, So I Only Had Minor Tweaks To Do Then, I Failed
   To Forget, That In Version 1 I Put Special Precautions In Place,
   To Stop Non Staff Members Entering Any Part Of Staffroom From
   Simply Inputing The Staffroom Address Into Url. These Precautions
   Have Now Once Again Been Recoded Into The Script, And The Error
   On My Part Will Never Happen Again.

7. Added protection to config.php file from direct url access.

8. Removed even more useless/not needed code.

9. (NEW) Created A Version Checker For The Script. (Location: main/rooms.php)
   Owner Will Be Alerted When Entering The rooms.php File If
   A New Version Is Available With A Download Location.
   Some Example:::
----------------------------------------------------------
   There is a new version released
   download @ SomeAddress.com
   Your Version: xhtml v3 (3.0)
   New Version: xhtml v3 (3.1)
----------------------------------------------------------
   From Time To Time. you may get a php error warning saying something like
------------------------------------------------------------------------
Warning: file_get_contents() [function.file-get-contents]:
php_network_getaddresses: getaddrinfo failed: Name or service not known
in /home/ghost/public_html/main/rooms.php on line 190 
Warning: file_get_contents(http://mobile-chat.uk.to/xhtmlversion.php)
[function.file-get-contents]: failed to open stream:
php_network_getaddresses: getaddrinfo failed: Name or service not known
in /home/ghost/public_html/main/rooms.php on line 190
Warning: file_get_contents() [function.file-get-contents]:
php_network_getaddresses: getaddrinfo failed: Name or service not known
in /home/ghost/public_html/main/rooms.php on line 191
Warning: file_get_contents(http://mobile-chat.uk.to/xhtmldownloadlink.php)
[function.file-get-contents]: failed to open stream:
php_network_getaddresses: getaddrinfo failed: Name or service not known
in /home/ghost/public_html/main/rooms.php on line 191.
------------------------------------------------------------------------
   This will be Due to The Server The Checks Go to
   maybe down/slow for some reason. you can either stick it out
   (as it will only appear on rooms.php)
   or you can comment out the whole version check function from start to end.
   you can easily find it in rooms.php it is heavily commented for you.
   this function was originally gonna be put half in rooms and half in config.
   but when in config i noticed when error testing the warning would spam over every single
   file, by putting it all in rooms.php,
   if the error did appear it would be limited to 1 room.

10. Minor Edit in css file.
    removed all bold options from all links.
    added the hover function for links for ppl that use pc / mouse cursors etc.
    and set bold to it to make it distinctive.

================
   CHANGES IN v2
================
1. improved ways of securing posts.
   changed to htmlentities & stripslahes.
   (this cleaned up alot of space now im not using
   htmlspecialchars, stripslashes, and an array at same time.)

2. Removed All avatar related stuff from config.php
   and created new file avatarinfo.php in main folder.

3. fixed some holes in guestbook

4. used preg_replace to remove unwanted symbols from username

5. Changed $_SERVER['PHP_SELF'] to $_SERVER['SCRIPT_NAME']
   and Added htmlentities protection ontop of it for extra precaution
   (will/should return only the file name regardless of, if it was typed, not typed, 
   or anything was appended to it. And Protect it Using htmlentites)

6. ontop of the changes to php self i also recoded the "npages" code properly
   with correct quotes. although they still worked previously, theyve just
   been basically updated..

7. Added Visitor Count To Index.php
   Example: =>  Site Visited 312 Times

8. Added small BBCodes Option

9. Upgraded Who's Online Code To Check The "Whole" Script For Users.
   (All Files Within A Rooms Folder Has Had Online Checking Code Added
   To It, So Whatever File You Enter In Rooms 1 Folder, Will Show You As
   Participating In Room1's Chat Regardless If Searching Through The Smileys
   File Or Sending Pm/Checking Profiles Etc.)
   *** I Noticed If I Was In Smileys Page For More Than 1 Min, The Script Would ***
   *** No Longer Show Me Online Although I Was, This Is Why This Was Upgraded ***
   *** Previously Only Chatroom & Private Room Counted Who's In Room. ***

10. Stripped All Small Tags From All Staff Tools (In All Rooms)
    (Missed These When Stripped Whole Script in v1 From Using Them)

11. Removed So Much Useless Code That Zipfile Is Roughly 300kb Smaller Than V1 :)

================
   CHANGES IN v1
================
(NEW)
1. Rewrote from wml to xhtml

(NEW)
2. uses sessions to stay logged in

3. recoded staffroom folder / staff only files etc.
   (due to sessions being added, entering these pages as a non)
   (staff member was possible by entering address in url, so had to)
   (put measures in place to stop this activity.)

4. ripped out all password checks throughout all files except login/registeration etc.
   (due to sessions now checking for validation after these pages.)
   (this had to be done. php checks was conflicting with session checks)
   (and showing both logged in and logged out signs at same time.)

5. rewrote ALOT of the code/files to perform better.


6. fix all $_REQUEST variables to their respective/proper $_GET/$_POST variables.


7. Finally fixed an on going error in rss new feeds.
   (may still have issues with 1 rss feed, (latest published stories))


8. removed jump boxes in avatar/smiley pages. still have: Prev | Next links.
   (these was causing some conflictions for the time being so removed for now)
   

(NEW)
9. Dark Skin Smiley Pack. (great for black or white backgrounds)
   (replaced old mini pack due to white outlines appearing around smileys when)
   (using dark skins such as black.)


10. has a stylesheet for using css.


11. basically the whole script has been changed. obviously.
    and there is too much for me to list in full here.
    so im sure youll notice everything thats been done (So Far)
    when you go through the script yourself.
    
=====================

Copyright: http://www.copyrightdeposit.com/rep10/0029675.htm

Use: its ok to use this script but our copyright lines/link/headers must
NOT be removed.