Source Viewer By Ghost

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

    Source Viewer By Ghost

    here is a little source code viewer i put together.. its fully working hope you like it or you find some use for it..

    create a file named source.php and put this code inside:

    Code:
    <?php
     header("Content-type: text/vnd.wap.wml; charset=ISO-8859-1");
     echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>\n";
     echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\"\n \"http://www.wapforum.org/DTD/wml_1.2.xml\">\n";
    
     /**
     * @author Ghost (CODEMAFiA.ORG)
     * @copyright 2008-2009 Source Viewer
     */
    
     echo "<wml>\n";
     echo "<head>";
     echo "<meta name=\"keywords\" content=\"source, code, source code, check, viewer, wap\"/>";
     echo "<meta name=\"description\" content=\"source viewer\"/>";
     echo "<meta name=\"robots\" content=\"source, follow\"/>";
     echo "<meta name=\"revisit-after\" content=\"1 days\"/>";
     echo "<meta name=\"rating\" content=\"general\"/>";
     echo "<meta name=\"author\" content=\"ghost\"/>";
     echo "<meta http-equiv=\"Cache-Control\" content=\"no-cache\"/>";
     echo "</head>";
     echo "<card id=\"source\" title=\"Source Viewer\">";
    
     $url = $_GET[&#39;url&#39;];
    
     if ($url == "")
     {
     echo "<p align=\"center\">";
     echo "[b][size="1"]Enter Url:[/size][/b]
    ";
     echo "[size="1"](include the http://)[/size]
    ";
     echo "<input type=\"text\" name=\"address\" maxlength=\"999\" emptyok=\"true\" value=\"\"/>";
     echo "
    ";
     echo "[size="1"]";
     echo "<anchor>Get Source";
     echo "<go href=\"source.php?url=result\" method=\"post\">";
     echo "<postfield name=\"address\" value=\"$(address)\"/>";
     echo "</go>";
     echo "</anchor>";
     echo "
    ---
    ";
     echo "[/size]";
     echo "</p>";
     }
    
     if ($url == "result")
     {
     echo "<p align=\"center\">";
     echo "[size="1"]Source results for:[/size]";
     echo "
    [b][size="1"]<a href=\"$address\">$address</a>[/size][/b]
    ";
     echo "
    ";
     echo "</p>";
    
     $address = $_POST[&#39;address&#39;];
     $source = @htmlspecialchars(file_get_contents($address));
    
     if (!$source)
     {
     echo "<p align=\"center\">";
     echo "[size="1"][b]there seems to be a problem with the url you added!!![/b][/size]
    ";
     echo "[size="1"]Source results FAILED for:
    [b]$address[/b][/size]";
     echo "</p>";
     }
     if (ereg("http://",$address))
     {
     echo "<p align=\"left\">";
     echo "$source";
     echo "</p>";
     echo "<p align=\"center\">";
     echo "
    [b][size="1"]<a href=\"source.php\">Back</a>[/size][/b]
    ";
     echo "</p>";
     }
     }
     echo "<p align=\"center\">";
     echo "[size="1"]";
     echo "© Ghost Source - ".date(Y);
     echo "[/size]";
     echo "</p>\n";
     echo "</card>\n";
     echo "</wml>\n";
     ?>
    enjoy:
    <?php
    include ('Ghost');
    if ($Post == true) {
    echo '

    sigpic
    alt='coding-talk.com!!' />';
    echo 'Sharing Is Caring!';
    } else {
    echo '

    alt='the username GHOST has been comprimised!' />';
    echo 'OMG SOMEBODY HELP ME!!';
    }
    ?>

    #2
    I hate source viewers, they designed for wap ripers

    Comment


      #3
      i dont even think i asked if you like them or not... so why the need for negative posts ill never know.. and how can they be designed for WAP rippers when every WEB browser has source viewers already installed.. anywat if you dont like them dont use it lol im sure others may find it useful neither the less..
      <?php
      include ('Ghost');
      if ($Post == true) {
      echo '

      sigpic
      alt='coding-talk.com!!' />';
      echo 'Sharing Is Caring!';
      } else {
      echo '

      alt='the username GHOST has been comprimised!' />';
      echo 'OMG SOMEBODY HELP ME!!';
      }
      ?>

      Comment


        #4
        I hate source viewers, they designed for wap ripers [/b]
        Most of you all sit here begging for scripts and sharing nothing.. then when someone posts something ya all leave **** comments, and then wonder why hardly any decent coders bother posting here???

        If you have no use for it why comment?? Im guessing ghost probably don&#39;y even use ir and was jusy bored and decided to make something.. its a usefull script for ppl to put on wapmaster section of mobile site no??

        Comment


          #5
          Ffs some ppl hey... Well source veiwer made me respect the amount of work that goes into a site,, and has helped me understand how some things work as i dont half of the time understand geek talk in most of the tutorials or books,,,,, thx ghost

          Comment


            #6
            Ffs some ppl hey... Well source veiwer made me respect the amount of work that goes into a site,, and has helped me understand how some things work as i dont half of the time understand geek talk in most of the tutorials or books,,,,, thx ghost[/b]
            your welcome bro.. glad i can help in some small way lol..
            <?php
            include ('Ghost');
            if ($Post == true) {
            echo '

            sigpic
            alt='coding-talk.com!!' />';
            echo 'Sharing Is Caring!';
            } else {
            echo '

            alt='the username GHOST has been comprimised!' />';
            echo 'OMG SOMEBODY HELP ME!!';
            }
            ?>

            Comment


              #7
              your welcome bro.. glad i can help in some small way lol..[/b]
              thx m8 yeah u guys really help

              Comment

              Working...
              X