Make It Into Wml .pl

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

    Make It Into Wml .pl

    Code:
    <?php
    
    include("core.php");
    include("config.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>";
    
        echo "<title>$sitename</title>";
        echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/style.css\" />";
        echo "</head>";
    
        echo "<body>";
    
    connectdb();
    $action = $_GET["action"];
    $sid = $_GET["sid"];
    if(!isowner1(getuid_sid($sid)))
      {
        echo "<card id=\"main\" title=\"$sitename\">";
          echo "<p align=\"center\">";
          echo "U are not a prop
    ";
          echo "
    ";
          echo "<a href=\"index.php\">Home</a>";
          echo "</p>";
          echo "</card>";
          echo "</wml>";
          exit();
        }
    ///////////////////////////////////time
    $res = mysql_fetch_array(mysql_query("SELECT lastact FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
    $lastact = $res[0];
    $atime = time() - $lastact;
    
    if($atime<1800){
        $res = mysql_fetch_array(mysql_query("SELECT otime FROM ibwf_users where id=&#39;".$uid."&#39;"));
        $otime = $res[0] + $atime;
        $res = mysql_query("UPDATE ibwf_users SET otime=&#39;".$otime."&#39; where id=&#39;".$uid."&#39;");
    }
    ///
    addonline(getuid_sid($sid),"Add smilies","");
    if($action=="main")
    {
      
        echo "<form align=\"center\" action=\"emotii.php?action=upload&amp;sid=$sid\" method=\"post\" ENCTYPE=\"multipart/form-data\">";
        echo "Code:
    <input type=\"text\" name=\"name\" size=\"30\" />
    ";
       echo "File: 
    <input type=\"file\" name=\"superdat\" size=\"30\"/>
    ";
       echo "Folder:
    ";
       echo "<select name=\"dir\" value=\"\">
            <option value=\"emoticons2\">Emoticons</option>
            
            </select>
    ";
    echo "<input type=\"submit\" value=\"Upload File\"/>";
      echo "
    
    <a href=\"index.php?action=main&amp;sid=$sid\">";
    echo "Home</a>";
      echo "</p>";
    }
    
    if($action=="upload")
    {
        echo "<p align=\"center\">";
     if (!eregi("\.(jpeg|jpg|png|wbmp|gif)$",$superdat_name)){
    print "[b]Wrong File type, Crackers are not alowed here![/b]";
    }else{
    $superdat_name = preg_replace(
                 &#39;/[^a-zA-Z0-9\.\$\%\&#39;\`\-\@\{\}\~\!\#\(\)\&\_\^]/&#39;
                 ,&#39;&#39;,str_replace(array(&#39; &#39;,&#39;%20&#39;),array(&#39;_&#39;,&#39;_&#39;),$superdat_name));
    if(strlen($superdat_name)>53){ print "[b]Numele este prea lung![/b]";
    }else{
    if (empty($superdat)) {
    print "[b]Nici un fisier selectat[/b]";
    }else{
    if (file_exists($superdat_name))
                {
                echo "<img src=\"images/notok.gif\" alt=\"X\"/>[b]Dont&#39;t exist[/b]";
                echo "
    
    <a href=\"index.php?action=main&amp;sid=$sid\">";
                echo "Home</a>";
                      print "</p></body></html>";
                exit();
                }
    
    copy("$superdat", "$dir/$superdat_name") or
    die("Couldn&#39;t copy file.");
    
    
    
        $fsize=round($superdat_size/1024,1);
       
        $rev = strrev ($superdat_name);
        $exp = explode (".", $rev);
        $true = strrev ($exp[0]);
        $trueext = strtolower ($true);
        
        
     
     $itemurl = "$dir/$superdat_name";
     
      $res = mysql_query("INSERT INTO ibwf_smilies SET scode=&#39;".$name."&#39;, imgsrc=&#39;".$itemurl."&#39;, hidden=&#39;0&#39;");
          if($res)
          {
            echo "<img src=\"images/ok.gif\" alt=\"O\"/>Emotie adaugata cu succes";
          }else{
            echo "<img src=\"images/notok.gif\" alt=\"X\"/>Eroare in adaugarea emotiei";
          }   
              //
              
        echo "
    <img src=\"images/ok.gif\" alt=\".\"/>[b]Succes!![/b]
     
            Code: $name
    
            File: $superdat_name
    
            Link: $dir/$superdat_name
    
            Size: $fsize KB
    
            Format:*.$trueext
    ";
            
    echo "
    
    <a href=\"index.php?action=main&amp;sid=$sid\">";
    echo "Home</a>";
    echo "</p>";
    }
    }
    }
    }
    
    echo "</body>";
        echo "</html>";
    ?>
    please make it ...respect allz
    Hate romains that take codes from here and tell to all that they had made that

    #2
    why you wont .pl scripting ?

    pl will use alot of cpu and b/w

    time to load&#39;&#39;s
    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


      #3
      ".pl" ?? =please :D i want it in Wml :D :P
      Hate romains that take codes from here and tell to all that they had made that

      Comment


        #4
        forms dont work on wml so its impossible

        Comment

        Working...
        X