Goto Chockstone Home

  Guide
  Gallery
  Tech Tips
  Articles
  Reviews
  Dictionary
  Links
  Forum
  Search
  About

      Sponsored By
      ROCK
   HARDWARE

  Shop
Chockstone Photography
Australian Landscape Photography by Michael Boniwell
Australian Landscape Prints





Chockstone Forum - Chockstone Feedback

Provide Feedback About This Website

Topic Date User
RSS Feeds 21-Aug-2009 At 12:34:01 PM gremlin
Message
Here is a piece of PHP code i use to screen scrape the main page for the latest posts.

An RSS feed would have made life much easier...

---start cross site scripting bug here--- *hint hint for web developer*
### Large chunk missing that grabs the URL, caches it, builds an array and a foreach loop
if($site=="Chockstone"){ ### Chockstone
if(strstr($line,"Latest Forum Messages")){$go=1;}
if($go==1 && strstr($line,"/Forum/Forum.asp")){
if(!strstr($line,"More")){
$line=str_replace(" "," ",$line);
$line=str_replace("\r","",$line);
$line=str_replace("/Forum/","http://www.chockstone.org/Forum/",$line);
$line=str_replace("&","&",$line);
$line=str_replace("&","&",$line);
$line=str_replace("&","&",$line);
if(strstr($line,"Go To Last Page")){ }
else{
$line=str_replace('#newpost','&MsgPagePos=-1#newpost',$line);
$out.="<tr><td>$line</td></tr>\n";
}
}
}
if(strstr($line,"Picture.asp")){$go=0;}
}
---end cross site scripting bug---

There are 7 replies to this topic.

 

Home | Guide | Gallery | Tech Tips | Articles | Reviews | Dictionary | Forum | Links | About | Search
Chockstone Photography | Landscape Photography Australia | Australian Landscape Photography | Landscape Photos Australia

Please read the full disclaimer before using any information contained on these pages.



Australian Panoramic | Australian Coast | Australian Mountains | Australian Countryside | Australian Waterfalls | Australian Lakes | Australian Cities | Australian Macro | Australian Wildlife
Landscape Photo | Landscape Photography | Landscape Photography Australia | Fine Art Photography | Wilderness Photography | Nature Photo | Australian Landscape Photo | Stock Photography Australia | Landscape Photos | Panoramic Photos | Panoramic Photography Australia | Australian Landscape Photography | High Country Mountain Huts | Mothers Day Gifts | Gifts for Mothers Day | Mothers Day Gift Ideas | Ideas for Mothers Day | Wedding Gift Ideas | Christmas Gift Ideas | Fathers Day Gifts | Gifts for Fathers Day | Fathers Day Gift Ideas | Ideas for Fathers Day | Landscape Prints | Landscape Poster | Limited Edition Prints | Panoramic Photo | Buy Posters | Poster Prints