Reported Post by Supah Fly

Discussion in 'Report a Spammer [Archive]' started by Supah Fly, Jul 12, 2008.

Thread Status:
Not open for further replies.
Reported Post by Supah Fly
  1. Unread #1 - Jul 12, 2008 at 6:11 AM
  2. Supah Fly
    Joined:
    Aug 22, 2007
    Posts:
    202
    Referrals:
    1
    Sythe Gold:
    0

    Supah Fly Active Member
    Banned

    Reported Post by Supah Fly

    Supah Fly has reported a post.

    Reason:
    Post:
    PHP:
    RuneScape Latest News Parser[/url]
    Forum: Other Languages
    Assigned Moderators: cp_, Nullware

    Posted by: [url=http://www.sythe.org/member.php?u=155710]PedoBear[/url]
    Original Content: [quote][code]<?php
    function ss_between($string,$start,$end) {
       
    $string=" ".$string//The string.
       
    $startpos=strpos($string,$start); //Find the position of the start string.
       //Check if $startpos equals zero.
       
    if ($startpos == 0) {
          
    //If $startpos does equal zero, do this:
          
    return false//Return false.
       
    }
       else {
          
    //If $startpos doesn't equal zero, do this:
          
    $startpos+=strlen($start); //Add the string length of $start to $startpos.
          
    $endpos=strpos($string,$end,$startpos)-$startpos//Find the string position of $end.
          
    return substr($string,$startpos,$endpos); //Return the new value.
       
    }
    }
    $_news["source"]=file_get_contents("http://www.runescape.com/");
    $_news["first"]=ss_between($_news["source"],'<div class="recentNews">','<div class="sectionBody">');
    $_news["title"]=ss_between($_news["first"],'<h3>','</h3>');
    $_news["date"]=ss_between($_news["first"],'<span>','</span>');
    $_news["news"]=ss_between($_news["first"],'<p>','</p>');
    echo(
    "<b>[TITLE]</b> ".$_news["title"]."<br />");
    echo(
    "<b>[DATE]</b> ".$_news["date"]."<br />");
    echo(
    "<b>[NEWS]</b> ".$_news["news"]."<br />");
    ?>[/code]
    That will go to runescape.com and get the latest news. Then from that news it will parse the title, date, and actual news portion of it and display it. Have phun.

    Made by AADude. LOLOLO[/quote]
     
  3. Unread #2 - Jul 12, 2008 at 10:51 AM
  4. OldFinn
    Joined:
    Jul 23, 2007
    Posts:
    7,094
    Referrals:
    60
    Sythe Gold:
    1

    OldFinn Hero
    Banned

    Reported Post by Supah Fly

    Who cares? He's helping.
     
< Reported Post by Jasmine | Reported Post by wagwannadon >

Users viewing this thread
1 guest
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site