Mobile_Chat_v3.0_Xhtml1.0

Started on the old forum in June 2012 · view the original in the archive · old links redirect here

20 replies · 2,681 views · started 14 years ago · 3 min read

TL;DR · summary of 20 replies
  • Back button can allow renitent users to re-enter rooms after being kicked.
  • Session_destroy() should be added to booted.php to prevent such behavior.
  • Flood protection needs to be implemented for commands like blah/username and trash/username.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

10 participants
Ghost Senior · 366 posts #1

ok so i admit v2 was a little bit of a flop, i made quite a few errors/mistakes due to me not sleeping for a few days etc.

so im gonna try and make up for it now with a very early release of v3 there was too many errors in v2 not to do this, ive gone over this copy a number of times and its alot better to use than v2.

without further a due.

================ 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.

  1. 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.

as always likes/thanks appreciated, hope you enjoy.

Demo: Xhtml v3

<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>
djshaon Junior · 19 posts #2

Thanks for this release Would u plz tell how to login as admin mood ?

Ghost Senior · 366 posts #3

djshaon wrote: Thanks for this release Would u plz tell how to login as admin mood ?

all info is inside script.

to add yourself as owner, open ownernames.txt file located in text folder, change name ghost to your required name and save, then register with that name and youll be owner with all tools, to make other ppl admin/mod etc.

full install guide.

  1. Upload all files apart from the (DOCUMENTS) folder

  2. CHMOD all .txt files inside the text folder to 777 (0777)

  3. CHMOD members folder to 777 (0777)

  4. (DO NOT DELETE THE .txt FILE FROM INSIDE MEMBERS FOLDER) (this file fixes an error that would appear when clicking on a * with no username attached.)

  5. Add your name to the ownernames.txt file (replacing the name ghost)

  6. change config.php to your sites needs (located in config folder)

  7. REMEMBER to upload the .htacces file that comes with the script. (it creates protection for your .txt files and other things 🙂 )

<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>
djshaon Junior · 19 posts #4

U r absolutely great ..... 🙂 we love u really.... Go ahead , god will help you .

Ghost Senior · 366 posts #5

your welcome. and thank you.

<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>
razib Developer · 132 posts #6

Ghost u r just awesome 🙂

🦸 Buying mobile traffic, PM me with your traffic details

Ghost Senior · 366 posts #7

razib wrote: Ghost u r just awesome :)

thank you. sorry about the whole mess up of v2, hope this version makes up for it.

<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>
VCollinzo Junior · 24 posts #8

you're the man...just keep up da good work...we got ur back buddy! 🙂

Ghost Senior · 366 posts #10

VCollinzo wrote: you're the man...just keep up da good work...we got ur back buddy! :)

mobidev wrote: Thx mate was bit busy elsewere thx for the new version

your welcome guys. this is a pretty decent copy so shouldnt be many "if any" problems. with any luck. fingers crossed anyway, as im working on my own thing right now im really hoping this is good enough lol.

<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>
Ghost Senior · 366 posts #12

darreldejello wrote: where i can find the sql ?

there is no sql file. it is a flat file script.

just read the installation.txt file that comes in the documents folder for instructions on how to install. installing this script is alot simplier than installing a sql database.

<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>
modfiles Developer · 200 posts #13

pc users still able to bypass the 500 max char input in text field site staff owner/admin should also have an option to delete some shout or delete a chat post 1by1 instead of deleting it all in staff panel word filter should be implemented (everyone cursing each other lol) multiple smilies input should be limited also otherwise anyone can post all the available smilies at once for (pc users) able to bypass 500 max character input maybe chat/shout flood control too

Ghost Senior · 366 posts #14

modfiles wrote: pc users still able to bypass the 500 max char input in text field site staff owner/admin should also have an option to delete some shout or delete a chat post 1by1 instead of deleting it all in staff panel word filter should be implemented (everyone cursing each other lol) multiple smilies input should be limited also otherwise anyone can post all the available smilies at once for (pc users) able to bypass 500 max character input

i only ever made a fix for the username bypass problem. http://coding-talk.com/f16/mobile-chat-register-username-fix-18610/

never did the 500 max char on posts, as i havent made another release of this script. as im currently working on my own version and much improved on chat script.

word filter is there just need to add all words you want to be filtered into sensuuri.txt 1 word per line/row

example sht fck bastard slg etc without the * off course.

all other things you mentioned i will look into and prob put into my version of a chat script. as im not sure how much more work ill actually be putting into this mobile-chat if my own chat script takes off.

demo of my chat project scripting.uk.to

edited p.s. what pc browsers are bypassing the 500 limit. as i use opera 12, ie 8 and firefox something.(cant remember) but can only do max 500 chars. only browser i know that can bypass this is Opera Mini (mobile) users.

<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>
Visitors Newbie · 2 posts #16

Mobile_Chat_v3.0_Xhtml1.0 comments and questions...

Hi,

I have tried the new script, it is very good but I have some comments and questions.

My notes is that when the renitent user has been kicked, it is true the system kicks the user out, however, he can step back into the room if he uses the BACK button (it is my own experience). It would be advisable to built session_destroy() in yourbooted.php. So that the user is unable to step back from the previouses but he enters again on the front page.

I have tried blah/username and trash/username commands besides others, and I would like to discuss with you that it has to be working in this way or it is not working only for me.

If the renitent user uses blah/username command, he can flood with pre-written "blah blah bollox" sentence, he could do it more and more times and the system doesn’t protect against flood.

If the renitent user uses trash/username command, he is unable to write but the content of the room is decreasing backwards, it means it clears the content of the room. As the user is writing continuously, the system doesn’t show/write anything but the room is lost.

My question is that how I could form autologin in this case since it doesn’t work for me in the usual way.

Thank you so much for your replies and any help.

Ghost Senior · 366 posts #17

Visitors wrote: Hi,

I have tried the new script, it is very good but I have some comments and questions.

are we talking about mobile-chat xhtml v3 now? or the new demo script i posted earlier. if the mobile-chat xhtml. then..

Visitors wrote: My notes is that when the renitent user has been kicked, it is true the system kicks the user out, however, he can step back into the room if he uses the BACK button (it is my own experience). It would be advisable to built session_destroy() in yourbooted.php. So that the user is unable to step back from the previouses but he enters again on the front page.

this was a mishape. i was ment to put session_destroy in the file but just accidently missed it. not a problem to fix as you seem to know what your talking about here.

Visitors wrote: I have tried blah/username and trash/username commands besides others, and I would like to discuss with you that it has to be working in this way or it is not working only for me.

If the renitent user uses blah/username command, he can flood with pre-written "blah blah bollox" sentence, he could do it more and more times and the system doesn’t protect against flood.

there was a problem with the old wml anti-flood system that wappy put in place. it would not only stop 1 user from posting the same text but it would also stop all users from posting the same text no matter how far down in the database that text was. it didnt have to be the top text (if you know what i mean.)

example. lets say further down the database file was a text from me with the word ok. like so,

someone else -> ok ghost -> you want me to start today ghost -> your welcome mate soemone else -> cool thank you. ghost -> ok

here you see a little fake convosation earlier down post i sent out the word OK now "someone else" tries to Post OK later on. but it would not show up in post. due to it already being posted by me. (basically it was setup to have 2 room database files. 1 for main room, 1 for flood/spam) if the text that was posted was found AT ALL to be seen in the flood database the room database couldnt get written to) this is something im still looking into. as i really didnt like the setup. i might have to reput it in but dont really want to. so ive been looking into new ways but still having some issues.

on a side note, i dont very much like the blah tool. but some ppl do so it was kept in. i actually added it to my new project as it was requested. but now once again im rethinking about removing this tool.

Visitors wrote: If the renitent user uses trash/username command, he is unable to write but the content of the room is decreasing backwards, it means it clears the content of the room. As the user is writing continuously, the system doesn’t show/write anything but the room is lost.

this was a oversight in the way the posts was generated.

this can be easily fixed/rectified by replacing the code

if($admin=="7"){$uusirivi ='
';}

to

if($admin=="7"){$uusirivi ='';}

in chat.php, login.php, logout.php, changerooms.php (i believe) which will make the post not be posted at all. which is what it was originally designed for/todo (hopefully)

Visitors wrote: My question is that how I could form autologin in this case since it doesn’t work for me in the usual way.

not 100% sure what you mean by this. autologin would need you to be remembered constanlty by the script, and the script was setup to so once you had left site/logout, your session would be destroyed to stop session hijacking attempts. and you would obviously need to relog then.

Visitors wrote: Thank you so much for your replies and any help.

no prob.

<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>
sampuyung Newbie · 4 posts #18

If i want to change owner,admin and mod symbol how to do it.

Added after 3 minutes:

If i want to change a owner,admin and mod symbol. How to do that?

Ghost Senior · 366 posts #19

sampuyung wrote: If i want to change owner,admin and mod symbol how to do it.

Added after 3 minutes:

If i want to change a owner,admin and mod symbol. How to do that?

you would have to locate all the links that have these codes in them.

owner

©'.$nimi.'

admin

¹'.$nimi.'

mod

²'.$nimi.'

in all the files listed below, in all room folders.

login.php chat.php changerooms.php logout.php admintools.php ownertools.php modtools.php

and change those © ¹ ² to whatever you want. so its alot of work. if you really wanna do it.

in my new project i decided not to go and use symbols like this script and just color code the names instead.

<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>
sampuyung Newbie · 4 posts #20

Thanks Ghost.. If i combine with the chatage script how to do it.

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close