Little Help Needed

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Little Help Needed

    friends i converted the html popup to wml but somehow somewhere im missing out something it just do not send the message something is wrong please correct me out
    Code:
    <?php
    header("Content-type: text/vnd.wap.wml");
    header("Cache-Control: no-store, no-cache, must-revalidate");
    echo("<?xml version=\"1.0\"?>");
    echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
    ?>
    <wml>
    <?php
    include("config.php");
    include("core.php");
    connectdb();
    $action = $_GET["action"];
    $sid = $_GET["sid"];
    $page = $_GET["page"];
    $who = $_GET["who"];
    $pmid = $_GET["pmid"];
    if(islogged($sid)==false)
    {
    echo "<card id=\"main\" title=\"www\">";
    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 "</card>";
    echo "</wml>";
    exit();
    }
    $uid = getuid_sid($sid);
    if(isbanned($uid))
    {
    echo "<card id=\"main\" title=\"www\">";
    echo "<p align=\"center\">";
    echo "<img src=\"images/notok.gif\" alt=\"x\"/>
    ";
    echo "You are [b]Banned[/b]
    ";
    $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE uid=&#39;".$uid."&#39; AND penalty=&#39;1&#39;"));
    $remain = $banto[0]- time();
    $rmsg = gettimemsg($remain);
    echo "Time to finish your penalty: $rmsg
    
    ";
    //echo "<a href=\"index.php\">Login</a>";
    echo "</p>";
    echo "</card>";
    echo "</wml>";
    exit();
    } else if($action=="send")
    {
    addonline(getuid_sid($sid),"Sending pop-up MSG","");
    echo "<card id=\"main\" title=\"Send Pop-up\">";
    echo "<p align=\"center\">";
    $whonick = getnick_uid($who);
    $byuid = getuid_sid($sid);
    $tm = time();
    
    $res = mysql_query("INSERT INTO fun_pops SET text=&#39;".$msg."&#39;,
    byuid=&#39;".$byuid."&#39;, touid=&#39;".$who."&#39;, timesent=&#39;".$tm."&#39;");
    
    
    
    echo "Popup Message Sent to $whonick!
    ";
    
    echo "<a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
    echo "</p>";
    exit();
    
    }
    else if($action=="sendto"){
    
    $who = $_get[&#39;who&#39;];
    
    addonline(getuid_sid($sid),"Sending pop-up MSG","");
    echo "<card id=\"main\" title=\"Send Pop-up\">";
    echo "<p align=\"center\">";
    echo "$getbuttons 
    ";
    
    $who = $_get[&#39;who&#39;];
    
    
    $whonick = getnick_uid($who);
    $byuid = getuid_sid($sid);
    
    echo "<input name=\"msg\" maxlength=\"150\"/>
    ";
    echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
    echo "<anchor>SEND<go href=\"popus.php?action=send&amp;who=$who&amp;sid=$sid\" method=\"post\">";
    echo "</go></anchor>
    ";
    
    
    
    echo "
    
    -
    
    <a href=\"index.php?action=main&amp;sid=$sid\">Home</a>
    ";
    }
    echo "</p>";
    echo "</card>";
    ?>
    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
    and this is the other one

    Code:
    else if($action=="sendto"){
    
    addonline(getuid_sid($sid),"Sending pop-up MSG","");
    echo "<card id=\"main\" title=\"www\">";
          echo "<p align=\"center\">";
    echo "$getbuttons 
    
    ";
    $whonick = getnick_uid($who);
    $byuid = getuid_sid($sid);
    echo "Sending to ".$whonick."
    ";
    echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/>
    ";
    echo "[size="1"]<anchor>Send<go href=\"popus.php?action=send&amp;sid=$sid\" method=\"post\">";
    
    echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
    echo "<postfield name=\"who\" value=\"$(who)\"/>";;
    
    echo "</go></anchor>[/size]";
    
    echo "
    
    -
    
    <a href=\"index.php?action=main&amp;sid=$sid\">Home</a>
    ";
    echo "</p>";
    echo "</card>";
    }
    what have i done wrongs? please help me out
    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


      #3
      as u r saying its a little help for you , I have given you a solution regarding this to another topic,why is these again?

      Comment


        #4
        thats true bro but i want this one in wml the other scrips are not same as this 1 i guess
        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
          anyways im sorry for posting again plz delete this thread amylee or someone. i fixed my error.
          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


            #6
            report the dam post then or pm me geezus instead of posting amylee close it urgh.. how can i see that??

            Comment

            Working...
            X