mobilechat_v1.2 help

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

34 replies · 3,152 views · started 20 years ago · 1 min read

3 participants
Guest #1

i've got mobilechat_v1.2. anyone please tell me how do i login as admin in that chat. That chat is 100% russian. So even i cant read the discription of that codings. But it is a cool chat, i have half translated it to english. But i dont know to login it as administrator. I can login only as a chat user.

here is a sample coding

file profile.php

<?php //посылаем заголовки header ("Content-type:text/vnd.wap.wml; charset=utf-8"); //вывод в браузер print "<?xml version=\"1.0\" encoding=\"utf-8\"?>";

print '<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"'. ' "http://www.wapforum.org/DTD/wml_1.1.xml">'. '<wml><head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>'; //включаем конфигурационный файл include "./ini.php"; //авторизация $login = autorize(); //продолжаем вывод в браузер print '<card title="Профиль">'. ' '; //если пуст ид пользователя if(empty($id)) print "Логин пуст! "; if($login) { if(empty($action)) { print 'Имя: '. '<input type="text" name="name" value="'.$login['name'].'"/> '. 'Новый пароль: '. '<input type="text" name="newpass" value="'.$login['pass'].'"/> '. 'Пол: '. '<select name="sex" title="Пол" value="'.$login['sex'].'">'. '<option value="m">М</option>'. '<option value="zh">Ж</option></select> '. 'Дата рождения: '. '<input size="2" name="bday" maxlength="2" value="'.$login['bday'].'" format="*N"/>-<input size="2" name="bmonth" maxlength="2" value="'.$login['bmonth'].'" format="*N"/>-<input size="4" name="byear" maxlength="4" value="'.$login['byear'].'" format="*N"/> '. 'Место жительства: '. '<input type="text" name="live" value="'.$login['live'].'"/> '. 'Модель мобилы: '. '<input type="text" name="mobile" value="'.$login['mobile'].'"/> '. 'e-mail: '. '<input type="text" name="email" value="'.$login['email'].'"/> '. 'WAP-сайт: '. '<input type="text" name="wapurl" value="'.$login['wapsite'].'"/> '. 'WEB-сайт: '. '<input type="text" name="weburl" value="'.$login['website'].'"/> '. 'ICQ: '. '<input name="icq" value="'.$login['icq'].'" format="*N"/> '. 'О себе: '. '<input type="text" name="about" value="'.$login['about'].'"/> '. '<anchor>Изменить<go href="profile.php?id='.$id.'&amp;pass='.$pass.'" method="post">'. '<postfield name="action" value="edit"/>'. '<postfield name="name" value="$(name)"/>'. '<postfield name="newpass" value="$(newpass)"/>'. '<postfield name="sex" value="$(sex)"/>'. '<postfield name="bday" value="$(bday)"/>'. '<postfield name="bmonth" value="$(bmonth)"/>'. '<postfield name="byear" value="$(byear)"/>'. '<postfield name="live" value="$(live)"/>'. '<postfield name="mobile" value="$(mobile)"/>'. '<postfield name="email" value="$(email)"/>'. '<postfield name="wapurl" value="$(wapurl)"/>'. '<postfield name="weburl" value="$(weburl)"/>'. '<postfield name="icq" value="$(icq)"/>'. '<postfield name="about" value="$(about)"/></go></anchor> '; //иначе } else { //запрос в базу данных if(@mysql_query("update ".$px.$utable." set name='$name',pass='$newpass',sex='$sex',bday='$bday',bmonth='$bmonth',byear='$byear',live='$live',mobile='$mobile',email='$email',wapsite='$wapurl',website='$weburl',icq='$icq',about='$about' where id='$id';")) print "Ваш профиль изменен! "; //ссылка на прихожую print "<a href="enter.php?id=$id&pass=$newpass">Прихожая</a>"; } if(!$action) print "<anchor>Назад<prev/></anchor> "; } else { print "Ошибка авторизации!"; } //конец страницы print ' '. '</card>'. '</wml>'; //разрыв соединения с бд @mysql_close(); ?>

please give me a quick reply ! thanks

mobix #2

Use PhpMyAdmin. Open database and table 'chat_user' find your ID. And then edit that row to set 'admin'=1. My english wery tereble External image (may be gone)

EDIT: Better set as 'moder'=1 to !!!!

lamar-wap #3

can someone post the english version of this script here so i download it i lost mine please....

subzero Super moderator Fellow · 3,954 posts #5

god dam it lmao one here

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

wapkralj Developer · 237 posts #6

sub-zero do yo know how to stop hacking mobiilichat,by taking nick,write on pm if you know please bro

subzero Super moderator Fellow · 3,954 posts #7
<?php
header("Content-type: text/vnd.wap.wml");
header("display_errors=0");
echo "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
\"http://www.wapforum.org/DTD/wml_1.1.xml\">";

echo "<wml>";
echo "<card title=\"Creating account..\">";
echo "

";

 $swe_from = array("","","","","","","$","&"); 
$swe_to = array("", "", "", "", "", "","[usd]","[and]"); 

for ($t=0; $t<count($swe_from); $t++) 
{ 
$nimi = str_replace ($swe_from[$t], $swe_to[$t], $nimi); 
$salasana = str_replace ($swe_from[$t], $swe_to[$t], $salasana); 
} 

$nimi = strtolower($nimi);
$salasana = strtolower($salasana);
$salsan=file('sals.txt');
$salnim=file('nims.txt');
$salasanapieni=$salasana;
for ($u=0; $u<count($salnim); $u++) 
{ if (rtrim($salnim[$u])==$nimi){$nimi='';}}

if ($salasana !='' && $nimi !='') {

 $tiedsal = fopen('sals.txt', 'a');
$salasana = crypt($salasana,'password');
 $lissal=$salasana.'
';

$check = fopen('$nimi.txt', 'a');
$salasana = check($salasana,'password');
 $lissal=$salasana.'
';
   fputs($tiedsal, $lissal);
  fclose($tiedsal);

$tiednim= fopen('nims.txt', 'a');
 $lisnim=$nimi.'
';
   fputs($tiednim, $lisnim);
  fclose($tiednim);}

if ($nimi !='') {echo "[size="1"]You are now a registered member![/size]
";
echo "[size="1"][b]Username: [/b][/size]".$nimi."
";
echo "[size="1"][b]Password: [/b][/size]".$salasanapieni."
";
echo "[size="1"]<anchor>[Enter chat]\n";
echo "<go method=\"post\" href=\"login.php\">\n";
echo "<postfield name=\"nimi\" value=\"$(nimi)\"/>\n";
echo "<postfield name=\"salasana\" value=\"$(salasana)\"/>\n";
echo "</go>\n";
echo "</anchor>[/size]
\n";
echo "[size="1"]<a href=\"home.php\">[Back]</a>[/size]";}

if ($check=='') {echo "[size="1"]hacking attmet[/size]
[size="1"]Please use another name;-)[/size]
";        
if ($nimi =='') {echo "[size="1"]Username is in use.[/size]
[size="1"]Please use another name;-)[/size]
";
echo "[size="1"]<a href=\"luonti.wml\">[Back]</a>[/size]";}
echo "</p>";
echo "</card>";
echo "</wml>";
?>

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

Guest #8

Thank you very much mobix ......... ! Also i want to know, how do i change the selection words of service options menu in mobile browser. what is the file name that command included ! please help me mobix ! External image (may be gone)

also thanx to sub-zero fo giving the mobilichat script !

mobix #9

Also i want to know, how do i change the selection words of service options menu in mobile browser. what is the file name that command included !

Sorry but i don't anderstand that quest !!! Explande me like i was litle child becouse my english not so well or i don't anderstand your problem External image (may be gone)

wapkralj Developer · 237 posts #10

sube-zero thanx for that! but it make this error: Parse error: syntax error, unexpected $end in luonti.php on line 68 now man if you can tell me how to make that you must enter something for nick and for password,I mean that you can't register empty nick or password? like if you put empty pass or nick it says you must enter something! p.s and man,can you do something for me,create or tell me ,maybe know like that,how to add option to next and previous page,to make list pages in chat.php and prividis.php like gumslones chat,i tried but always some little bug!

wapkralj Developer · 237 posts #11

ok i found error and fixed it but now this error Fatal error: Function name must be a string in luonti.php on line 37 that is this line $salasana = check($salasana,'password');

Guest #12

Sorry but i don't anderstand that quest !!! Explande me like i was litle child becouse my english not so well or i don't anderstand your problem External image (may be gone)

ok i'll explain you it using a pic.

how do i change "who is online ?" and tell me what is the room named vict ?

Attachments: capture00011.jpg capture00012.jpg
mobix #13

That you can change in room.php file:

print '<do type="options" name="update" label="'.$lang['update'].'"><go href="room.php?id='.$id.'&pass='.$pass.'&room='.$room.'&r='.$r.'" method="get"/></do>'.
'<do type="options" name="say" label="'.$lang['say'].'"><go href="#say" method="get"/></do>'.
'<do type="options" name="whowhere" label="'.$lang['who_online'].'"><go href="online.php?id='.$id.'&pass='.$pass.'&room='.$room.'&r='.$r.'" method="get"/></do>'.
'<do type="options" name="letters" label="'.$lang['letters'].'('.$num_in['count(*)'].')"><go href="letters/inbox.php?id='.$id.'&pass='.$pass.'&r='.$r.'" method="get"/></do>'.
'<do type="options" name="holl" label="'.$lang['holl'].'"><go href="online.php?id='.$id.'&pass='.$pass.'&r='.$r.'" method="get"/></do>';

About 32 row in php file (orginal) start that code and there you can manage "service options menu" (add, remove)

Room named vict is a game something like quiz ! There (at table 'chat_vict') youu can add your quest with one answer and then wen you go to the room name vict for chating, chat ask you quest (form 'chat_vict'). If you answer you get 1 point ! You can answer for quest only 1 min External image (may be gone) something like that i don't now if you anderstand that from my talking External image (may be gone)

Guest #14

Thank you very much mobix i got it.

So i need another help from you. How do i remove the translit option in chat menu. Also i have a error in email.php file. When i try to send a email it says

Parse error: parse error, unexpected '.' in /home/asiri/public_html/asiri/wap/mchat/email.php on line 30

email.php

<?php $r = rand(0,100000); //?????? ????????? header ("Content-type:text/vnd.wap.wml; charset=utf-8"); //??? ? ????? print "<?xml version=\"1.0\" encoding=\"utf-8\"?>";

print '<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">'. '<wml><head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>'; //?????? ???????????? ?? include "./ini.php"; //????????? $login = autorize(); //???????? ??? ?????? print '<card title="??????">'. ' '; //???? ?????? if(!empty($action)&&!empty($to)&&!empty($from)) { //????????? $headers .= "From: $from\r\n"; $headers .= "Moby NET - The Best WAP! [ http://mobynet.ru ]\r\n"; //???????? $msg = convert_cyr_string($msg,"a","w"); if(mail($to,$subject,$msg,$headers)) print "‚??? ????? ??? ????????!"; } else { print 'Ž?: '. '<input name="from'.$r.'" value="'.$from.'"/> '. 'Š???: '. '<input name="send'.$r.'" value="'.$to.'"/> '. '’???: '. '<input name="subject'.$rand;.'/> '. '‘??????: '. '<input name="message'.$rand.'"/> '. '<anchor>Ž?????<go href="email.php" method="post">'. '<postfield name="action" value="send"/>'. '<postfield name="id" value="'.$id.'"/>'. '<postfield name="pass" value="'.$pass.'"/>'. '<postfield name="room" value="'.$room.'"/>'. '<postfield name="to" value="$(send'.$r.')"/>'. '<postfield name="subject" value="$(subject'.$r.')"/>'. '<postfield name="message" value="$(message'.$r.')"/>'. '<postfield name="from" value="$(from'.$r.')"/>'. '</go></anchor>'; } //? ??? print " <a href="room.php?id=$id&pass=$pass&room=$room">‚ ???</a> "; print ' '. '</card>'. '</wml>'; ob_end_flush(); //????? ???????? ? ?? @mysql_close(); ?>

mobix #15

Ok for removing all translit data from your script do this (all that is on orginal file that not edited) open room.php: 1. Find 78 row and change that to this

$nik=strtok($msg," "); $msg=strstr($msg," "); $msg=$nik.$msg;

2. Find 79 row and clear it to empty (delete all text but do not remove that row, becouse i will explande you like i don't delete that row External image (may be gone) 3. Find 115 row select all to 124 row and delete it. Then copy this starting in 115 row:

'<input name="msg'.$r.'"/>
';
if($login['admin']) print '<select multiple="true" name="bold"><option value="1">'.$lang['bold'].'</option></select>
';
if($login['moder']) print '<select multiple="true" name="underline"><option value="1">'.$lang['underline'].'</option></select>
';
print '<anchor>'.$lang['say'].'<go href="room.php?id='.$id.'&pass='.$pass.'&room='.$room.'&r='.$r.'" method="post">'.
'<postfield name="msg" value="$(msg'.$r.')"/>'.
'<postfield name="bold" value="$(bold)"/>'.
'<postfield name="underline" value="$(underline)"/>'.

4. Close and save room.php, and open user.php. 5. Now find 36 row and select to 42, then replace all that with this:

'<anchor>'.$lang['say'].'<go href="room.php?id='.$id.'&pass='.$pass.'&room='.$room.'&r='.$r.'&mod='.$mod.'" method="post">'.
'<postfield name="private" value="$(private)"/>'.
'<postfield name="msg" value="'.$data['login'].', $(msg'.$r.')"/>'.
'</go></anchor>
';

6. Close and save user.php, and open ini.php. 7. Find 42 and select to 62 row delete that selection. All done ... External image (may be gone) Here is sample files

About that email.php just replace 30 row with this:

'<input name="subject'.$rand.'/>
'.
Attachments: room.php user.php ini.php
Guest #16

could you please give me your email.php file. I'll replace it to my one.

Guest #18

I got this error in some chat php files. What shoud i do for this ?

Cannot modify header information - headers already sent by (output started at /home/asiri/public_html/asiri/wap/mchat/help.php:1) in /home/asiri/public_html/asiri/wap/mchat/help.php on line 3

Warning: Cannot modify header information - headers already sent by (output started at /home/asiri/public_html/asiri/wap/mchat/help.php:1) in /home/asiri/public_html/asiri/wap/mchat/help.php on line 3

Warning: Cannot modify header information - headers already sent by (output started at /home/asiri/public_html/asiri/wap/mchat/profile.php:1) in /home/asiri/public_html/asiri/wap/mchat/profile.php on line 3

Warning: Cannot modify header information - headers already sent by (output started at /home/asiri/public_html/asiri/wap/mchat/setup.php:1) in /home/asiri/public_html/asiri/wap/mchat/setup.php on line 3

mobix #19

The PHP saying that you twice send header information but in orginal script it not hapen. Mayby you edit not write? Atach your help.php file here and let me see it External image (may be gone)

Guest #20

It is here !

<?php //посылаем загововки header ("Content-type:text/vnd.wap.wml; charset=utf-8"); //начало страницы print "<?xml version=\"1.0\" encoding=\"utf-8\"?>";

print '<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"'. ' "http://www.wapforum.org/DTD/wml_1.1.xml">'. '<wml><head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>'; //включаем конфигурационный файл include "./ini.php"; //продолжаем вывод в браузер print '<card title="'.$lang['help'].'">'. '

'; //авторизируемся $login = autorize(); if($login) {//автризация выполнена switch($mod) { //режим правил case 'rules': print 'First, in a chat should not be mata! Any curses! Want bespredelit, for you there is spets a room! Secondly, do not draw much smajlov in one message! Thirdly, not fludite! It is not necessary to litter a chat with any dust! And in general, behave decently, do not look the blockhead! )'; break; //режим buyjh case 'ignor': print 'Ignor is very useful thing! If the user is in ignore its messages are not displayed. For addition in ignor, it is necessary to press on nik the user and to choose " in ignor ". For removal, it is necessary to come in "Prihozhej" into "?????-leaf" and simply to press on nik!'; break; //режим статусы case 'statusy': //печатаем страницу статусы print "Statuses are given at a set of the certain quantity of posts. The post is the message left by you in a chat. The highest status enables you to draw more advanced smajly and to be the honourable and dear user of a chat! The list of statuses: "; print "0 - Прохожий 100 - Новичок 500 - Пользователь 1000 - Продвинутый 3000 - Чаттер 5000 - Тусовщик 7000 - Почетный 10000 - Можно попросить админа дать отличительный статус "; break; //режим приват case 'privat': print 'Privat is when the message from the user is seen only by you and the one who has sent it. Others do not see it. In a chat it is realized two kinds privata. One is when near nika the user there is this symbol: [!]. The second are you can enter in privat, having pressed button " ????? ". As a result of this action you will see only privat and any other messages! For updating page privata it is necessary to press the same button.'; break; //режим транслит case 'translit': //печатаем правила транслита print "Транслит - это такая вещь, когда вы пишете на латинице, а все написанное переводится на кирилицу! Правила транслита: А а - A a Б б - B b В в - V v G g - G g Д д - D d Е е - E e Ё ё - Yo yo Ж ж - Zh zh З з - Z z И и - I i Й й - J j К к - K k Л л - L l М м - M m Н н - N n О о - O o П п - P p Р р - R r С с - S s Т т - T t У у - U u Ф ф - F f Х х - H h Ц ц - C c Ч ч - Ch ch Ш ш - Sh sh Щ щ - Shc shc ъ - '' Ы ы - Y y ь - ' Э э - Ye ye Ю ю - Yu yu Я я - Ya ya"; break; //режим помощи о викторине case 'vict': //печатаем правила транслита print 'The quiz is a place where you can oprobyvat the knowledge! progrmnym the question on which it is necessary to answer as soon as possible is by deduced. If in current of 2 minutes anybody correctly will not answer, will be asked a new question. To write answers it is necessary in Russian! If your phone does not support a writing on kirilitse, take advantage of a transliteration from a Latin in kirilitsu. Read through rules translita!'; break; //по умолчанию default: //печатаем ссылки на помощь print "<a href="help.php?id=$id&pass=$pass&mod=rules">".$lang['rules']."</a> "; print "<a href="help.php?id=$id&pass=$pass&mod=vict">".$lang['vict']."</a> "; print "<a href="help.php?id=$id&pass=$pass&mod=translit">".$lang['translit']."</a> "; print "<a href="help.php?id=$id&pass=$pass&mod=statusy">".$lang['ranks']."</a> "; print "<a href="help.php?id=$id&pass=$pass&mod=privat">".$lang['privat']."</a> "; print "<a href="help.php?id=$id&pass=$pass&mod=ignor">".$lang['ign']."</a> "; print "<a href="./sm/index.php?id=$id&pass=$pass&mod=smiles">".$lang['smiles']."</a> "; break; } if($mod) print " <a href="help.php?id=$id&pass=$pass">".$lang['help']."</a>"; print " <a href="./enter.php?id=$id&pass=$pass">".$lang['holl']."</a> "; } else { print $lang['not_loged']; } print ' '. '</card>'. '</wml>'; ob_end_flush(); //разрываем соединение с бд @mysql_close(); ?>

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