Html To Wml

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

    Html To Wml

    hi someone who has knowledge about wml please could you be kind enough to convert this for me from xhtml to wml pleaseeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee eeeee ill be very greatful you people have soo much knowledge but i have nothing.



    <?php
    include ("config.php");
    include ("core.php");
    header("Content-type: text/html; charset=ISO-8859-1");
    echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
    echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
    echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";

    echo "<head><title>$site_name</title>";
    echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/style.css\" />";
    echo "<meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" />
    <meta http-equiv=\"Cache-Control\" content=\"no-cache\"/>
    <meta name=\"description\" content=\"Chatheaven \">
    <meta name=\"keywords\" content=\"free, community, forums, chat, wap, communicate\"></head>";
    echo "<body>";
    $bcon = connectdb();
    if (!$bcon)
    {
    echo "<p align=\"center\">";
    echo "<img src=\"../images/exit.gif\" alt=\"*\"/>
    ";
    echo "ERROR! cannot connect to database

    ";
    echo "This error happens usually when backing up the database, please be patient, The site will be up any minute

    ";
    echo "you can temperoray be in this site <a href=\"http://chatheaven.wen.ru\">$site_name</a> while $site_name is offline
    ";
    echo "THANK YOU VERY MUCH";
    echo "</p>";
    echo "</body>";
    echo "</html>";
    exit();
    }
    $brws = explode(" ",$_SERVER[HTTP_USER_AGENT] );
    $ubr = $brws[0];
    $uip = getip();
    $action = $_GET["action"];
    $sid = $_GET["sid"];
    $page = $_GET["page"];
    $who = $_GET["who"];


    $uid = getuid_sid($sid);

    cleardata();

    if(isipbanned($uip,$ubr))
    {
    if(!isshield(getuid_sid($sid)))
    {
    echo "<p align=\"center\">";
    echo "<img src=\"../images/notok.gif\" alt=\"x\"/>
    ";
    echo "This IP address is blocked
    ";
    echo "
    ";
    echo "How ever we grant a shield against IP-Ban for our great users, you can try to see if you are shielded by trying to log-in, if you kept coming to this page that means you are not shielded, so come back when the ip-ban period is over

    ";
    $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE penalty=&#39;2&#39; AND ipadd=&#39;".$uip."&#39; AND browserm=&#39;".$ubr."&#39; LIMIT 1 "));
    //echo mysql_error();
    $remain = $banto[0] - time();
    $rmsg = gettimemsg($remain);
    echo " IP: $rmsg

    ";

    echo "</p>";
    echo "

    ";
    echo "<form align=\"left\" action=\"login.php\" method=\"post\" ENCTYPE=\"multipart/form-data\">";
    echo "UserID: <input name=\"loguid\" format=\"*x\" maxlength=\"30\"/>
    ";
    echo "Password: <input type=\"password\" name=\"logpwd\" maxlength=\"30\"/>
    ";
    echo "<postfield name=\"loguid\" value=\"$(loguid)\"/>";
    echo "<postfield name=\"logpwd\" value=\"$(logpwd)\"/>";
    echo "<input type=\"submit\" value=\"Login!\"/>
    ";
    echo "</form>";

    echo "</p>";
    echo "</body>";
    echo "</html>";
    exit();
    }
    }
    if(($action != "") && ($action!="terms"))
    {
    $uid = getuid_sid($sid);
    if((islogged($sid)==false)||($uid==0))
    {
    echo "<card id=\"main\" title=\"$site_name\">";
    echo "<p align=\"center\">";
    echo "You are not logged in
    ";
    echo "Or Your session has been expired

    ";
    echo "<a href=\"index.php\">Login</a>

    ";
    echo "</p>";
    echo "</body>";
    echo "</html>";
    exit();
    }



    }
    //echo isbanned($uid);
    if(isbanned($uid))
    {
    echo "<p align=\"center\">";
    echo "<img src=\"../images/notok.gif\" alt=\"x\"/>
    ";
    echo "You are Banned
    ";
    $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE uid=&#39;".$uid."&#39; AND penalty=&#39;1&#39;"));
    $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));

    $remain = $banto[0]- time();
    $rmsg = gettimemsg($remain);
    echo "Time to finish your penalty: $rmsg

    ";
    echo "Ban Reason: $banres[0]";
    //echo "<a href=\"index.php\">Login</a>";
    echo "</p>";
    echo "</body>";
    echo "</html>";
    exit();
    }

    $res = mysql_query("UPDATE ibwf_users SET browserm=&#39;".$ubr."&#39;, ipadd=&#39;".$uip."&#39; WHERE id=&#39;".getuid_sid($sid)."&#39;");

    ?>
    <?php
    //////////////////////////////////gallery List

    if($action=="gallery")
    {
    $who = $_GET["who"];
    addonline(getuid_sid($sid),"Viewing Gallery","");
    $uid = getuid_sid($sid);



    //////ALL LISTS SCRIPT <<

    if($page=="" || $page<=0)$page=1;
    if($who!="")
    {
    $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM gallery WHERE uid=&#39;".$who."&#39;"));
    }else{
    $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM gallery"));
    }
    $num_items = $noi[0]; //changable
    $items_per_page= 5;
    $num_pages = ceil($num_items/$items_per_page);
    if(($page>$num_pages)&&$page!=1)$page= $num_pages;
    $limit_start = ($page-1)*$items_per_page;

    if($who!="")
    {
    $sql = "SELECT id, uid, file FROM gallery WHERE uid=&#39;".$who."&#39; ORDER BY id DESC LIMIT $limit_start, $items_per_page";
    }else{
    $sql = "SELECT id, uid, file FROM gallery ORDER BY id DESC LIMIT $limit_start, $items_per_page";
    }


    $items = mysql_query($sql);
    echo mysql_error();
    if(mysql_num_rows($items)>0)
    {
    while ($item = mysql_fetch_array($items))
    {
    $user = getnick_uid($item[1]);
    $ext = getext($item[2]);
    $ime = getextimg($ext);
    $lnk = "<img src=\"gallery.php?id=$item[0]\" alt=\"$user\"/>
    <a href=\"../gallery/$item[2]\">$user</a>
    ";

    if(candelvl($uid, $item[0]))
    {
    $delnk = "<a href=\"genproc.php?action=delpic&amp;sid=$sid&amp; vid=$item[0]\">[x]</a>";
    }else{
    $delnk = "";
    }
    if($who!="")
    {
    $byusr="";
    }else{
    $unick = getnick_uid($item[3]);
    $ulnk = "<a href=\"index.php?action=viewuser&amp;sid=$sid&amp; who=$item[1]\">$unick</a>";
    $byusr = "- By $ulnk";
    }
    echo "$lnk $delnk
    ";


    }
    }
    echo "</p>";
    echo "<p align=\"center\">";
    if($page>1)
    {
    $ppage = $page-1;
    echo "<a href=\"pics.php?action=$action&amp;page=$ppage&amp ;sid=$sid&amp;who=$who\">«PREV</a> ";
    }
    if($page<$num_pages)
    {
    $npage = $page+1;
    echo "<a href=\"pics.php?action=$action&amp;page=$npage&amp ;sid=$sid&amp;who=$who\">Next»</a>";
    }
    echo "
    $page/$num_pages
    ";
    if($num_pages>2)
    {
    $rets = "<form action=\"pics.php\" method=\"get\">";
    $rets .= "Jump to page<input name=\"page\" format=\"*N\" size=\"3\"/>";
    $rets .= "<input type=\"submit\" value=\"GO\"/>";
    $rets .= "<input type=\"hidden\" name=\"action\" value=\"$action\"/>";
    $rets .= "<input type=\"hidden\" name=\"who\" value=\"$who\"/>";
    $rets .= "<input type=\"hidden\" name=\"sid\" value=\"$sid\"/>";

    $rets .= "</form>";


    echo $rets;
    }
    echo "</p>";
    ////// UNTILL HERE >>
    echo "<p align=\"center\">";
    echo "<a href=\"upload.php?action=uploader&amp;sid=$sid\">" ;
    echo "Upload Gallery Pictures</a>
    ";
    if($who!="")
    {
    echo "<a href=\"index.php?action=viewuser&amp;sid=$sid&amp; who=$who\">";
    $whonick = getnick_uid($who);
    echo "$whonick&#39;s Profile</a>
    ";
    }else{
    echo "<a href=\"index.php?action=stats&amp;sid=$sid\">";
    echo "<img src=\"../images/stat.gif\" alt=\"*\"/>Site Stats</a>
    ";
    }
    echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
    echo "</p>";
    echo "</body>";
    }
    echo
    "</html>";

    ?>
    Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

    <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>


    #2
    convert it urself lol

    Comment


      #3
      please don&#39;t be rude brother. i don&#39;t know how to that is why i asked for it
      Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

      <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

      Comment


        #4
        gumslone or wizard please help me out because you people are great with wml, please help me
        Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

        <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

        Comment


          #5
          no one is here to spoon u the next thing u gona hear is am a coder dis n dat when u do get help,so hear what change the xhtml headings and ending to wml headings and endings eg the deck etc and the relevant tags (forms etc) if u cnt do that go do a tutorial cause that simply means u dnt knw what you r doing

          Comment


            #6
            that should be spoon feed.
            @flarex why dnt u just say u cnt change it rather than to say code it yourself

            Comment


              #7
              im not someone who will say im a coder brother i know im not and im not shy and yes i m very interested in learning coding but getting no help but yes i really would be greatful if one of u great coders do me this little help by converting it to wml from html coz i badly need it.
              thank you
              Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

              <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

              Comment


                #8
                could you also be kind enough to tell me where can i learn converting html to wml?
                Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

                <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

                Comment


                  #9
                  generalx , i can do both wml n xhtml , im making my own script atm , what are u doing? lol making updates 4 a script?

                  Comment


                    #10
                    lol edit a script and change the pages doesnt mean YOU ARE WRITING YOUR OWN roflol, wtf u knw about me 4u to saying am making updates lmao u think i use peoples script like u do? ha dude get this straight my browser wont even allow me to download script from around here so how tf am to edit dude i do my own unlike u

                    Comment


                      #11
                      script coded by flarex lol blaze should teach u a lession also. Changing updates and taking ownership "coding my own" am sick u so call coders

                      Comment


                        #12
                        script coded by flarex lol blaze should teach u a lession also. Changing updates and taking ownership "coding my own" am sick u so call coders[/b]
                        join the club

                        Comment


                          #13
                          leaner the browser am using cnt quote and thats pretty long to rewrite look a wml tutorial here or google and learn about wml decks,cards etc its best to start from scratch trust me its the best way, unlike wannabs

                          Comment


                            #14
                            gee..
                            how bout you two stop arguing?
                            let&#39;s all have a cold beer?

                            meanwhile some good soul so called mod could close this topic
                            cos wml gallery is posted few times...
                            so author of this topic can get
                            already made wml version by simple search
                            It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
                            ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
                            ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
                            キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

                            Comment


                              #15
                              im not talking bout that script lmfao , i started a nu1 from scratch

                              Comment

                              Working...
                              X