Mobile_Chat_v1_Xhtml1.0 (Very New)

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

11 replies · 1,489 views · started 14 years ago · 2 min read

TL;DR · summary of 11 replies
  • arnage suggested changing deprecated $PHP_SELF variables.
  • Ghost found and fixed a syntax error in guestbook/write.php.

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

6 participants
Ghost Senior · 366 posts #1

/** * @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 1.0 * @Description Flat File Xhtml Chat With Sessions And Encrypted Passwords * @Description (Should Be Working On All Servers) * @HTMLVersion Xhtml 1.0 Transitional EN */

================ CHANGES IN v1

(NEW)

  1. Rewrote from wml to xhtml

(NEW) 2. uses sessions to stay logged in

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

  2. 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.)

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

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

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

  6. 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.)

  1. has a stylesheet for using css.

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

=====================

What You Can Do For Me: i need testers. i need comments. i need feedback. i need examples (if got an idea to improve something)

without all this there really isn't anyway i will know on what i did wrong or what needs improving on. this is still my FIRST attempt at xhtml/sessions. so im expecting there should be alot i can improve on in the future with all your help.

=======================

thanks and likes are welcome. 🙂

======================= Demo: Mobile Chat Xhtml v1

<?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!!'; } ?>
icedroplet1987 Senior · 258 posts #2

nice upgrades:) thnx to share in forum:)

Added after 9 minutes:

really nice share bhai:)

wap-ruler Developer · 143 posts #3

rep

Already said br0... nice share... 👍👏

ImPoSsIbLe iS nOthInG aS ImPoSsible ItSelF SaYs "I M POSSIBLE"

mobidev Senior · 312 posts #4

As I have mentioned before great work done mate as 1 of the only people that knows from what the script came from and how it worked always used it now its just better.

arnage Lead · 811 posts #5

I just had a quick look. 🙂 Consider this,

This is deprecated $PHP_SELF and see this about it http://coding-talk.com/f19/why-is-_server-php_self-unsafe-for-use-13998/

Change all like this

$name = $_POST['name'];

with

$name = empty($_POST['name']) ? '' : htmlentities($_POST['name'], ENT_QUOTES, 'UTF-8'); 

Should convert and validate those first, ua is user input

$user = explode ('/', $_SERVER['HTTP_USER_AGENT']);
$ip = ($_SERVER['REMOTE_ADDR']);
<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
Ghost Senior · 366 posts #6

arnage wrote: I just had a quick look. 🙂 Consider this,

This is deprecated $PHP_SELF and see this about it http://coding-talk.com/f19/why-is-_server-php_self-unsafe-for-use-13998/

Change all like this

$name = $_POST['name'];

with

$name = empty($_POST['name']) ? '' : htmlentities($_POST['name'], ENT_QUOTES, 'UTF-8'); 

Should convert and validate those first, ua is user input

$user = explode ('/', $_SERVER['HTTP_USER_AGENT']);
$ip = ($_SERVER['REMOTE_ADDR']);

thank you for your feedback and examples. i will defo look into this. ive been away for so long now its nice to have fresh eyes helping out.

<?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!!'; } ?>
arnage Lead · 811 posts #7

You are welcome. 🙂

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
mobidev Senior · 312 posts #8

Just tested the script on byethost.com hosting where the wml version never used to work on. Its working now without any problems and without having to set permissions just uploaded script to server and used ir righ away

Ghost Senior · 366 posts #9

mobidev wrote: Just tested the script on byethost.com hosting where the wml version never used to work on. Its working now without any problems and without having to set permissions just uploaded script to server and used ir righ away

great news.. did you try the wml v3 on that server to? i would of thought that would of possibly worked as that was the very last one i did and has almost same structure as this xhtml one. except the fact this is sessions also.

though to be honest i put alot more thought behind this version than i did the wml one.

<?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 #10

found syntax error.

as im now starting to work on putting new implements into the script i noticed i accidently didnt change the format from wml to html on

guestbook/write.php

end of file shows.

echo "</small>";
echo "</p>";
echo "</card>";
echo "</wml>";

it should be html.

echo "</div>";
    echo "</body>\n";
echo "</html>\n";

obviously this will be fixed by next release. but until now you can make the change yourselves simply enough..

<?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!!'; } ?>
mobidev Senior · 312 posts #11

Thx mate I will change it. I wondered why the guestbook redirected to another page if I click on a username. Byet redirect anything in wml to a hosting site or something

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