Source Viewer By Ghost

Started on the old forum in March 2008 · view the original in the archive · old links redirect here

6 replies · 1,266 views · started 18 years ago · 1 min read

3 participants
Ghost Senior · 366 posts #1

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:

<?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['url'];

 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['address'];
 $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 ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>
Ghost Senior · 366 posts #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 ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>
chatabox Senior · 361 posts #4

I hate source viewers, they designed for wap ripers External image (may be gone)

Most of you all sit here begging for scripts and sharing nothing.. then when someone posts something ya all leave shit 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'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??

rietrot Developer · 149 posts #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

Ghost Senior · 366 posts #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

your welcome bro.. glad i can help in some small way lol..

<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>
rietrot Developer · 149 posts #7

your welcome bro.. glad i can help in some small way lol..

thx m8 yeah u guys really help

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close