mobilechat_v1.2 help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    mobilechat_v1.2 help

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


    please give me a quick reply !
    thanks

    #2
    Use PhpMyAdmin. Open database and table &#39;chat_user&#39; find your ID. And then edit that row to set &#39;admin&#39;=1. My english wery tereble

    EDIT: Better set as &#39;moder&#39;=1 to !!!!

    Comment


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

      Comment


        #4
        Sorry i don&#39;t have english version

        Comment


          #5
          god dam it lmao one here [attachment=358:attachment] [attachment=359:attachment]
          Attached Files
          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...
          _______
          Info & Tips
          php.net
          w3schools.com

          Comment


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

            Comment


              #7
              Code:
              <?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(&#39;sals.txt&#39;);
              $salnim=file(&#39;nims.txt&#39;);
              $salasanapieni=$salasana;
              for ($u=0; $u<count($salnim); $u++) 
              { if (rtrim($salnim[$u])==$nimi){$nimi=&#39;&#39;;}}
              
              
              if ($salasana !=&#39;&#39; && $nimi !=&#39;&#39;) {
              
               $tiedsal = fopen(&#39;sals.txt&#39;, &#39;a&#39;);
              $salasana = crypt($salasana,&#39;password&#39;);
               $lissal=$salasana.&#39;
              &#39;;
              
              $check = fopen(&#39;$nimi.txt&#39;, &#39;a&#39;);
              $salasana = check($salasana,&#39;password&#39;);
               $lissal=$salasana.&#39;
              &#39;;
                 fputs($tiedsal, $lissal);
                fclose($tiedsal);
              
              $tiednim= fopen(&#39;nims.txt&#39;, &#39;a&#39;);
               $lisnim=$nimi.&#39;
              &#39;;
                 fputs($tiednim, $lisnim);
                fclose($tiednim);}
              
              if ($nimi !=&#39;&#39;) {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==&#39;&#39;) {echo "[size="1"]hacking attmet[/size]
              [size="1"]Please use another name;-)[/size]
              ";        
              if ($nimi ==&#39;&#39;) {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...
              _______
              Info & Tips
              php.net
              w3schools.com

              Comment


                #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 !




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

                Comment


                  #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 ![/b]
                  Sorry but i don&#39;t anderstand that quest !!!
                  Explande me like i was litle child becouse my english not so well or i don&#39;t anderstand your problem

                  Comment


                    #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&#39;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!

                    Comment


                      #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,&#39;password&#39;);

                      Comment


                        #12
                        Sorry but i don&#39;t anderstand that quest !!!
                        Explande me like i was litle child becouse my english not so well or i don&#39;t anderstand your problem [/b]

                        ok i&#39;ll explain you it using a pic.


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

                        Comment


                          #13
                          That you can change in room.php file:
                          Code:
                          print &#39;<do type="options" name="update" label="&#39;.$lang[&#39;update&#39;].&#39;"><go href="room.php?id=&#39;.$id.&#39;&pass=&#39;.$pass.&#39;&room=&#39;.$room.&#39;&r=&#39;.$r.&#39;" method="get"/></do>&#39;.
                          &#39;<do type="options" name="say" label="&#39;.$lang[&#39;say&#39;].&#39;"><go href="#say" method="get"/></do>&#39;.
                          &#39;<do type="options" name="whowhere" label="&#39;.$lang[&#39;who_online&#39;].&#39;"><go href="online.php?id=&#39;.$id.&#39;&pass=&#39;.$pass.&#39;&room=&#39;.$room.&#39;&r=&#39;.$r.&#39;" method="get"/></do>&#39;.
                          &#39;<do type="options" name="letters" label="&#39;.$lang[&#39;letters&#39;].&#39;(&#39;.$num_in[&#39;count(*)&#39;].&#39;)"><go href="letters/inbox.php?id=&#39;.$id.&#39;&pass=&#39;.$pass.&#39;&r=&#39;.$r.&#39;" method="get"/></do>&#39;.
                          &#39;<do type="options" name="holl" label="&#39;.$lang[&#39;holl&#39;].&#39;"><go href="online.php?id=&#39;.$id.&#39;&pass=&#39;.$pass.&#39;&r=&#39;.$r.&#39;" method="get"/></do>&#39;;
                          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 &#39;chat_vict&#39;) 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 &#39;chat_vict&#39;). If you answer you get 1 point ! You can answer for quest only 1 min something like that i don&#39;t now if you anderstand that from my talking

                          Comment


                            #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 &#39;.&#39; 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 &#39;<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">&#39;.
                            &#39;<wml><head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>&#39;;
                            //?????? ???????????? ??
                            include "./ini.php";
                            //?????????
                            $login = autorize();
                            //???????? ??? ??????
                            print &#39;<card title="??????">&#39;.
                            &#39;<p align="center">&#39;;
                            //???? ??????
                            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 &#39;Ž?:
                            &#39;.
                            &#39;<input name="from&#39;.$r.&#39;" value="&#39;.$from.&#39;"/>
                            &#39;.
                            &#39;Š???:
                            &#39;.
                            &#39;<input name="send&#39;.$r.&#39;" value="&#39;.$to.&#39;"/>
                            &#39;.
                            &#39;’???:
                            &#39;.
                            &#39;<input name="subject&#39;.$rand;.&#39;/>
                            &#39;.
                            &#39;‘??????:
                            &#39;.
                            &#39;<input name="message&#39;.$rand.&#39;"/>
                            &#39;.
                            &#39;<anchor>Ž?????<go href="email.php" method="post">&#39;.
                            &#39;<postfield name="action" value="send"/>&#39;.
                            &#39;<postfield name="id" value="&#39;.$id.&#39;"/>&#39;.
                            &#39;<postfield name="pass" value="&#39;.$pass.&#39;"/>&#39;.
                            &#39;<postfield name="room" value="&#39;.$room.&#39;"/>&#39;.
                            &#39;<postfield name="to" value="$(send&#39;.$r.&#39;)"/>&#39;.
                            &#39;<postfield name="subject" value="$(subject&#39;.$r.&#39;)"/>&#39;.
                            &#39;<postfield name="message" value="$(message&#39;.$r.&#39;)"/>&#39;.
                            &#39;<postfield name="from" value="$(from&#39;.$r.&#39;)"/>&#39;.
                            &#39;</go></anchor>&#39;;
                            }
                            //? ???
                            print "
                            <a href=\"room.php?id=$id&amp;pass=$pass&amp;room=$ro om\">‚ ???</a>
                            ";
                            print &#39;</p>&#39;.
                            &#39;</card>&#39;.
                            &#39;</wml>&#39;;
                            ob_end_flush();
                            //????? ???????? ? ??
                            @mysql_close();
                            ?>

                            Comment


                              #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
                              Code:
                              $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&#39;t delete that row
                              3. Find 115 row select all to 124 row and delete it. Then copy this starting in 115 row:
                              Code:
                              &#39;<input name="msg&#39;.$r.&#39;"/>
                              &#39;;
                              if($login[&#39;admin&#39;]) print &#39;<select multiple="true" name="bold"><option value="1">&#39;.$lang[&#39;bold&#39;].&#39;</option></select>
                              &#39;;
                              if($login[&#39;moder&#39;]) print &#39;<select multiple="true" name="underline"><option value="1">&#39;.$lang[&#39;underline&#39;].&#39;</option></select>
                              &#39;;
                              print &#39;<anchor>&#39;.$lang[&#39;say&#39;].&#39;<go href="room.php?id=&#39;.$id.&#39;&pass=&#39;.$pass.&#39;&room=&#39;.$room.&#39;&r=&#39;.$r.&#39;" method="post">&#39;.
                              &#39;<postfield name="msg" value="$(msg&#39;.$r.&#39;)"/>&#39;.
                              &#39;<postfield name="bold" value="$(bold)"/>&#39;.
                              &#39;<postfield name="underline" value="$(underline)"/>&#39;.
                              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:
                              Code:
                              &#39;<anchor>&#39;.$lang[&#39;say&#39;].&#39;<go href="room.php?id=&#39;.$id.&#39;&pass=&#39;.$pass.&#39;&room=&#39;.$room.&#39;&r=&#39;.$r.&#39;&mod=&#39;.$mod.&#39;" method="post">&#39;.
                              &#39;<postfield name="private" value="$(private)"/>&#39;.
                              &#39;<postfield name="msg" value="&#39;.$data[&#39;login&#39;].&#39;, $(msg&#39;.$r.&#39;)"/>&#39;.
                              &#39;</go></anchor>
                              &#39;;
                              6. Close and save user.php, and open ini.php.
                              7. Find 42 and select to 62 row delete that selection.
                              All done ...
                              Here is sample files

                              About that email.php just replace 30 row with this:
                              Code:
                              &#39;<input name="subject&#39;.$rand.&#39;/>
                              &#39;.
                              Attached Files

                              Comment

                              Working...
                              X