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:
enjoy:
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['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"; ?>
Comment