Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Wap Source Code Viewer, Mobile/wap source code viewer page
wappy
post 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("&","&amp;",$udata);
$udata = str_replace("'","&apos;",$udata);
$udata = str_replace("<","&lt;",$udata);
$udata = str_replace(">","&gt;",$udata);
$udata = str_replace("\"","&quot;",$udata);
$udata = str_replace("-","&shy;",$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>";

?>
Go to the top of the page
 
+Quote Post
iGuest
post 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
Go to the top of the page
 
+Quote Post
wappy
post 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
Go to the top of the page
 
+Quote Post
seba1killer
post 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
Go to the top of the page
 
+Quote Post
iGuest
post 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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. How do you test your php code(80)
  2. Php Clock(7)
  3. Change Permission With Php Code(3)
  4. Just About Completed My Own Message Board Source.(10)
  5. Adapting Html Code Embed To Work On Phpnuke(7)
  6. Dynamic Image / Signature Generator(12)
  7. Good Source For Learning Php(13)
  8. More Dynamic ?id=browsing With Php (associative Array)(1)
  9. Display The Current Date/time(3)
  10. Use Bb Code On Your Site!(7)
  11. Some Basic Php Code Snippets For All Levels Of Experience(3)
  12. My Code Doesnt Resize Large Images, Please Help.(2)
  13. Php Education Class (first Code)(0)
  14. How To Make A Random 7 Number Code?(2)
  15. Whats Wrong>?(9)
  1. Awesome Source Code Viewer Script(7)
  2. Html Code Tester. Online Script(15)
  3. I Need Some Proof Reading For My Code Please! [resolved](7)
  4. Will This Code Work(5)
  5. Use Rss In Php Code(3)
  6. Php Code(15)
  7. Php Code Needed(5)
  8. Php Code?(12)
  9. Php Code Needed Iii(10)
  10. Php And Mysql Programming(2)
  11. Malicious Code Injection(3)
  12. Php Source Code Unveiled In Browser?(7)
  13. Create Table - Mysql Code - Help(1)


 



- Lo-Fi Version Time is now: 13th October 2008 - 03:16 PM