Mobile_chat_2.0.1_wml1.1en

Started on the old forum in February 2008 · view the original in the archive · old links redirect here

27 replies · 3,553 views · started 18 years ago · 2 min read

TL;DR · summary of 27 replies
  • Ghost provided instructions for fixing an issue related to server settings by adding specific lines in the .htaccess file.
  • The multi-chat feature is almost ready but not yet released, and there are changes needed in the CONFIG.PHP file regarding time offsets.
  • Opticalpigion encountered issues with mod management and needs more information on where to make changes.

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

11 participants
Ghost Senior · 366 posts #21

something else wrote: I would 😀 ... so use to seeing swf with that avatar its confusing seeing 2 lol

will see what other avatars i got. i just use to always use this one lol.

on a brighter note. solved my parsing issue.

000webhost sticks Analytics code at end of all your scripts.

with some detective work i found this 000webhost.com Members Area which lets you disable the tracking code on your domain. so now i can see the script again i can try work with it 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!!'; } ?>
mobidev Senior · 312 posts #22

Ya I had the same thing with the analitics code the first time around like 3yrs ago so I opened a support ticket. Their reply was that I can remove it in my admin panel on 000webhost. I had their whole email pasted on wappys code forum before it closed down. Anyway it only screws up script with wml and not html or xhtml. Only problem I have ever had is on any host after a couple of days or weeks a $nimi [usd] is registered or shows up as a registered member or just logged into the chat but with no user details even in the text files I think its maybe with the hosts

Ghost Senior · 366 posts #23

mobidev wrote: Ya I had the same thing with the analitics code the first time around like 3yrs ago so I opened a support ticket. Their reply was that I can remove it in my admin panel on 000webhost. I had their whole email pasted on wappys code forum before it closed down. Anyway it only screws up script with wml and not html or xhtml. Only problem I have ever had is on any host after a couple of days or weeks a $nimi [usd] is registered or shows up as a registered member or just logged into the chat but with no user details even in the text files I think its maybe with the hosts

thats probably more to do with someone trying to force their way into the script using variables.

there is an array to try and stop such thing which puts [usd] / [and] as the users username instead of the variable they was hoping for.

 
  $swe_from = array("","","","","","","$","&"); 
$swe_to = array("", "", "", "", "", "","[usd]","[and]"); 
$nimi = str_replace ("
", "enter", $nimi);
$nimi = str_replace ("_DEMOTED", "nicetrylol", $nimi);
$nimi = str_replace (" ", "space", $nimi);
$nimi = str_replace ("", "sym", $nimi);

lol thought the code cut off. but the box is just awkward looking for small snips of text.

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

i m getting 500 Internal Server Error

🦸 Buying mobile traffic, PM me with your traffic details

Ghost Senior · 366 posts #26

razib wrote: i m getting 500 Internal Server Error

you will now, its a very old script that requires register_globals to be turned on. so its only working now on servers that provide this or provide the use of .htaccess files which ive added one to the script which will manipulate the server into putting register_globals on. this file can be put into your public_html folder, which will then turn register globals on for the server account you run. or it can be put into only the folder your running script from and only manipulate that section/folder/subfolders of the account,

if for some reason you cant do either of these options (have register_globals on, or manipulate it with .htaccess. then there maybe one final solution which i havent actually tried yet,

its seems pretty crude to do it this way but hey if it works it works right,

now i dont claim to have written this code in any way shape or form, and has already stated i aint tried it personally, but i came across this code some time back, but always found i was able to use .htaccess to do my manipulating in the past.

Ruquay K Calloway 01-Apr-2008 05:59 While we all appreciate the many helpful posts to get rid of register_globals, maybe you're one of those who just loves it. More likely, your boss says you just have to live with it because he thinks it's a great feature.

No problem, just call (below defined):

<?php register_globals(); ?>

anywhere, as often as you want. Or update your scripts!

<?php /** * function to emulate the register_globals setting in PHP * for all of those diehard fans of possibly harmful PHP settings 🙂 * @author Ruquay K Calloway * @param string $order order in which to register the globals, e.g. 'egpcs' for default */ function register_globals($order = 'egpcs') { // define a subroutine if(!function_exists('register_global_array')) { function register_global_array(array $superglobal) { foreach($superglobal as $varname => $value) { global $$varname; $$varname = $value; } } } $order = explode("\r\n", trim(chunk_split($order, 1))); foreach($order as $k) { switch(strtolower($k)) { case 'e': register_global_array($_ENV); break; case 'g': register_global_array($_GET); break; case 'p': register_global_array($_POST); break; case 'c': register_global_array($_COOKIE); break; case 's': register_global_array($_SERVER); break; } } } ?>

if this works out, then in theory all you'd need to do is add this to almost every page in script, and then change the variables in the register_global_array to match your variables in use. (theoretically speaking that is!)

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

Hello Ghost,

Thanks for your reply i have created a .htaccess file n put php_flag register_globals on but still I m getting same error a/w i am trying this script on hostgator, maybe bad luck can't use it, I m searching a normal Chat script w/o database problem 🙁

🦸 Buying mobile traffic, PM me with your traffic details

Ghost Senior · 366 posts #28

razib wrote: Hello Ghost,

Thanks for your reply i have created a .htaccess file n put php_flag register_globals on but still I m getting same error a/w i am trying this script on hostgator, maybe bad luck can't use it, I m searching a normal Chat script w/o database problem :(

its working on the host > Free Web Hosting with PHP, MySQL and cPanel, No Ads using the .htaccess file to manipulate register_globals

maybe you may consider joining them. it seems to be running the chat script fine if you (once registered with them) goto > 000webhost.com Members Area enter your new details there and turn off analytic tracking code, if its not turned off it breaks your script. other than that the server works perfect except the fact its not allowing the rss feeds to appear. ive asked the hosts about this and they would look into it. as i know the feeds are working on 6te.net

i have been told that it is also working on 6te.net but atm ive not had success. granted the rss feeds seem to work fine there but the chat script seems to keep telling me in banned lol.

anyway. i wont go on any longer. try Free Web Hosting with PHP, MySQL and cPanel, No Ads if your looking to have the chat **** working regardless of rss feeds not appearing. that file/folder can easily be hidden just by removing/commenting out the link pointing to it.

here is a demo of the script working. although this is the multi-room version. everything is set up for testers to try reg/log/chat.

DEMO: http://mobile-chat.uk.to/demos/multi-room/index.php

hope this helps.

P.S. before you do decide to change hosts. rather than using the

php_flag register_globals on

function in .htaccess

try the code from my actual .htaccess file.

# Do not remove this line, otherwise mod_rewrite rules will stop working
RewriteBase /

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>

<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>

php_value register_globals 1
DirectoryIndex index.php

<Files *.txt>
order deny,allow
deny from all
</Files>

RewriteEngine On
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^(.*)$ index.php [F,L]

this uses the

php_value register_globals 1

rather than

php_flag register_globals on
<?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!!'; } ?>

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