Help With This Code

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

    Help With This Code

    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><?php
    $r=rand(0,100000);
    //Ї®б« Ň�¬ Â§Â ĐˆÂ®Â«Â®ŃžĐ„Đ�
    header ("Content-type:text/vnd.wap.wml; charset=utf-8");
    //ўлў®¤ д ©«  wml
    print &#39;<?xml version="1.0" encoding="utf-8"?>&#39;;
    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();
    if($search) {
    $query_users = @mysql_query("select * from `".$px.$utable."` where login=&#39;".$dblogin."&#39;;");
    $data = @mysql_fetch_array($query_users);
    } else {
    $query_users = @mysql_query("select * from `".$px.$utable."` where id=&#39;$dbid&#39;;");
    $data = @mysql_fetch_array($query_users);
    }
    print &#39;<card title="&#39;.$data[&#39;login&#39;].&#39;">&#39;.
    &#39;

    &#39;;
    if($login) {
    //¤ ­­л� ® Ї®«м§®ў в�«�
    $moder=$login[&#39;moder&#39;];
    $admin=$login[&#39;admin&#39;];
    $from=$login[&#39;email&#39;];
    //�й� ¤ ­­л�
    $user_moder=$data[&#39;moder&#39;];
    $to=$data[&#39;email&#39;];
    $photo=$data[&#39;photo&#39;];
    $status=$data[&#39;status&#39;];
    //�б«� нв® ­� Ї®�бЄ
    if(!$search) print &#39;<input name="msg&#39;.$r.&#39;"/>
    &#39;.
    &#39;<select name="private" title="&#39;.$lang[&#39;privat&#39;].&#39;">&#39;.
    &#39;<option value="&#39;.$login[&#39;id&#39;].&#39;.&#39;.$data[&#39;id&#39;].&#39;">privat</option>&#39;.
    &#39;</select>
    &#39;.

    &#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;<postfield name="translit" value="$(translit)"/></go></anchor>
    &#39;;
    //Ї®«
    //ăáâ ­ ˘«¨˘ Ą¬ ŕ §¬Ąŕ čŕ¨äâ 
    if($login[&#39;fsize&#39;] == "small") { $fsize1 = ""; $fsize2 = ""; }
    elseif($login[&#39;fsize&#39;] == "big") { $fsize1 = "<big>"; $fsize2 = "</big>"; }
    else { $fsize1 = ""; $fsize2 = ""; }
    print $fsize1;
    if($data[&#39;sex&#39;]=="m") { $sex = "ĐĽŃƒĐ¶Ń�кой"; } else { $sex = "женŃ�кий"; }
    //ббл«Є  ­  д®в®
    if(!empty($photo)) {
    echo "<img src=\"$photo\" alt=\"\"/>
    ";
    print $lang[&#39;nick&#39;].":<a href=\"$photo\">".$data[&#39;login&#39;]."</a>
    "; } else {
    print $lang[&#39;nick&#39;].": ".$data[&#39;login&#39;]."
    "; }
    print $lang[&#39;name&#39;].": ".$data[&#39;name&#39;]."
    ";
    print $lang[&#39;birthday&#39;].": ".$data[&#39;bday&#39;]."-".$data[&#39;bmonth&#39;]."-".$data[&#39;byear&#39;]."
    ";
    print $lang[&#39;live&#39;].": ".$data[&#39;live&#39;]."
    ";
    print $lang[&#39;phone&#39;].": ".$data[&#39;mobile&#39;] ."
    ";
    print $lang[&#39;operator&#39;].": ".$data[&#39;operator&#39;] ."
    ";
    print "e-mail: <a href=\"email.php?id=$id&pass=$pass&room=$room&to=$ to&from=$from\">".$to." </a>
    ";
    print $lang[&#39;wap&#39;].": <a href=\"".$data[&#39;wapsite&#39;]."\">".$data[&#39;wapsite&#39;]."</a>
    ";
    print $lang[&#39;web&#39;].": <a href=\"".$data[&#39;website&#39;]."\">".$data[&#39;website&#39;]."</a>
    ";
    print "ICQ: ".$data[&#39;icq&#39;]."
    ";
    print $lang[&#39;posts&#39;].": ".$data[&#39;posts&#39;]."
    ";
    print $lang[&#39;about&#39;].": ".$data[&#39;about&#39;]."
    ";
    print $lang[&#39;datereg&#39;].": ".date("d-m-Y", $data[&#39;rtime&#39;])."
    ";
    if(!empty($moder)&&empty($data[&#39;admin&#39;])) print ":::
    <a href=\"moder.php?id=$id&pass=$pass&whoid=$dbid&roo m=$room&mod=kick\">".$lang[&#39;kick&#39;]."</a>
    ";
    if($moder>=2&&empty($data[&#39;admin&#39;])) print "<a href=\"moder.php?id=$id&pass=$pass&whoid=$dbid&roo m=$room&mod=kill\">".$lang[&#39;kill&#39;]."</a>
    ";
    if($moder>=3&&empty($data[&#39;admin&#39;])) print "<a href=\"moder.php?id=$id&pass=$pass&whoid=$dbid&roo m=$room&mod=agent\">browser</a>
    ";
    if(!empty($admin)) {
    if($user_moder>=1) { print ":::
    <a href=\"admin.php?id=$id&pass=$pass&whoid=".$data[&#39;id&#39;]."&room=$room&mod=delmoder\">".$lang[&#39;delmoder&#39;]."</a>
    "; }
    else {
    print ":::
    <a href=\"admin.php?id=$id&pass=$pass&whoid=".$data[&#39;id&#39;]."&room=$room&mod=makemoder\">".$lang[&#39;makemoder&#39;]."</a>
    "; }
    if($user_moder>=2) { print "<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data[&#39;id&#39;]."&room=$room&mod=delkiller\">".$lang[&#39;delkiller&#39;]."</a>
    "; }
    else {
    print "<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data[&#39;id&#39;]."&room=$room&mod=makekiller\">".$lang[&#39;makekiller&#39;]."</a>
    "; }
    if($user_moder>=3) { print "<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data[&#39;id&#39;]."&room=$room&mod=delshpion\">".$lang[&#39;delshpion&#39;]."</a>
    "; }
    else {
    print "<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data[&#39;id&#39;]."&room=$room&mod=makeshpion\">".$lang[&#39;makeshpion&#39;]."</a>
    "; }
    if($user_moder>=4) { print "<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data[&#39;id&#39;]."&room=$room&mod=deltopmoder\">".$lang[&#39;deltopmoder&#39;]."</a>
    "; }
    else {
    print "<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data[&#39;id&#39;]."&room=$room&mod=maketopmoder\">".$lang[&#39;maketopmoder&#39;]."</a>
    "; }
    print "<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data[&#39;id&#39;]."&room=$room&mod=del\">".$lang[&#39;delete&#39;]."</a>
    ";
    }
    print ":::
    <a href=\"ignor.php?id=$id&pass=$pass&room=$room&r=$r &mod=set&whoid=".$data[&#39;id&#39;]."\">".$lang[&#39;in_ignor&#39;]."</a>
    ";
    //в чат
    if($room) print "<a href=\"room.php?id=$id&pass=$pass&room=$room&r=$r\ ">".$lang[&#39;to_chat&#39;]."</a>
    ";
    else print "<a href=\"enter.php?id=$id&pass=$pass&r=$r\">".$lang[&#39;holl&#39;]."</a>
    ";
    print $fsize2;
    } else { print $lang[&#39;access_denied&#39;]; }
    //конечные теги
    print &#39;</p>&#39;.
    &#39;</card>&#39;.
    &#39;</wml>&#39;;
    //ĐˇĐ‚Đ Â°Đ Â·ĐˇĐ‚Đˇâ€ąĐ Đ†Đ Â°Đ ÂµĐ Ń˜ ĐˇĐƒĐ Ń•Đ ÂµĐ Ň‘Đ Ń‘Đ Đ…Đ ÂµĐ Đ…Đ Ń‘Đ Âµ ĐˇĐƒ базой
    @mysql_close();
    ob_end_flush();
    ?></div>

    se k610i, se k700i... where is the problem. its ochatzone script (user.php).

    #2
    you hava a problem as i i have..
    from a couple of weeks many users of my chat written in php wml (wappy)
    can&#39;t enter anymore in some pages.

    i think the trouble is in the wml header script (header ("Content-type:text/vnd.wap.wml; charset=utf-8");
    print &#39;<?xml version="1.0" encoding="utf-8"?>&#39;;
    print &#39;<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"&#39;.
    &#39; "http://www.wapforum.org/DTD/wml_1.1.xml">&#39;.)
    if you try to get a html header
    you find that script works again..(except input forms ,of course) i tried to resolve my problem
    rewriting the wappy chat in html php but it&#39;s too hard for me..
    ..i don&#39;t know how to help you..i tried to use also others wml headers but on many mobile phones don&#39;t works anymore..
    sigpicthe italian/international COMMUNITY of friendship
    http://people2000.netne.net
    WAP/WEB
    peoplemailbox@katamail.com

    Comment

    Working...
    X