|
|
|
|
![]() ![]() |
Jul 3 2006, 11:36 PM
Post
#1
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 164 Joined: 2-July 06 From: England Member No.: 25,974 |
This is a source code viewer that will workl on wap/mobile sites but you can easily convert it to work on web im sure ;-)
CODE <? header("Content-Type: text/vnd.wap.wml"); echo '<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head> <card title="s60.nerds.at">'; print "<p>"; if ($url == "") { echo "<small><b>Enter url:</b></small><br/><input type=\"text\" name=\"url\" maxlength=\"999\" value=\"http://\" emptyok=\"false\"/><br/><small><anchor>»View source code<go href=\"$PHP_SELF?url=$(url)\" method=\"post\"><postfield name=\"url\" value=\"$(url)\"/></go></anchor></small>"; } if ($url == "$url") { $udata=@file_get_contents("$url"); $udata = str_replace("$","$$",$udata); $udata = str_replace("&","&",$udata); $udata = str_replace("'","'",$udata); $udata = str_replace("<","<",$udata); $udata = str_replace(">",">",$udata); $udata = str_replace("\"",""",$udata); $udata = str_replace("-","­",$udata); echo "<small><small>$udata</small></small><br/> "; } if ($udata==!""){echo "---<br/><small><a href=\"$PHP_SELF\">«Back</a></small><br/>";} echo "<small>---<br/><a href=\"index.php\">s60.nerds.at HOME</a><br/>---<br/>© wappyCULT 2006-2007</small>"; echo "</p> </card> </wml>"; ?> |
|
|
|
May 15 2008, 02:26 AM
Post
#2
|
|
|
Hail Caesar! ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 5,876 Joined: 21-September 07 Member No.: 50,369 |
wao code loaction
Wap Source Code Viewer Replying to wappy Hi thank you so much for the WAP code but I have a question where do iI place it on my html page ?? is this to be located in the head or body I'm not sure where to paste it???? Can you please let me know?? Thanks -question by george |
|
|
|
Jun 15 2008, 03:26 AM
Post
#3
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 164 Joined: 2-July 06 From: England Member No.: 25,974 |
That is the WHOLE page. Just upload it to any server and view from your mobile or opera.. this is real old now i doubt it works with php5.
Maybe mr feeback should learn to check the post date no? LOL |
|
|
|
Jun 15 2008, 05:13 AM
Post
#4
|
|
|
Member [Level 1] ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 61 Joined: 1-June 08 Member No.: 62,997 |
It still works, but the filter doesnt work in all webs so some may load with errors. For example, hex codes in the web page or encoded web pages wont be shown as source code, they will be show as webs.
The best way to filter this is with a XSS filter, in the internet are a lot of them. Regards |
|
|
|
Jun 24 2008, 07:01 AM
Post
#5
|
|
|
Hail Caesar! ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 5,876 Joined: 21-September 07 Member No.: 50,369 |
a simple project made in wap?
Wap Source Code Viewer Replying to wappy Honestly I'm quite familiar with wap,,,,I want to learn more in wap, because this was the assigned topic in my group.And were going to produce a project that was made in wap... Pls help me,...Thanks! -reply by harvey |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 13th October 2008 - 03:16 PM |