PHP_GOPHER_PARSER.TXT

CONTENTS INDEX HELP RETRACE

      __    ____     __
     / /   / / /    / /
 __ / /__ / / /_ __/ /  ___ ___ ____ 
/ // / -_) / / // / _ \/ -_) _ `/ _ \
\___/\__/_/_/\_, /_.__/\__/\_,_/_//_/
            /___/______       __      
                / __/ /___ __/ (_)__  ___ _
               _\ \/ __/ // / / / _ \/ _ `/
              /___/\__/\_, /_/_/_//_/\_, / 
                      /___/         /___/.com  


Back to JellybeanStyling gopher root
______________________________________________________________________
_________________________________________________________TEXT_CONTENT_

Back to JellybeanStyling gopher root
______________________________________________________________________
_________________________________________________________TEXT_CONTENT_\n\n" . $buffer;
}
// END
//////////////////////////////////////////////
?>





<?php echo strtoupper($_GET['dirurlname']) ?>





" . "WWW: " . $lname . "";
	 return $hurl;
}
// END
//////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////
$buffer = str_replace("","",$buffer);
$buffer = explode("\n", $buffer);

//Remove parts of the page I'm not interested in reposting
//for ($i=11; $i<20; $i++) { unset($buffer[$i]); }

array_pop($buffer);
array_pop($buffer);
array_pop($buffer);
//end part cleanup

///////////////////////////////////////////////////////////////
// OPTIONAL ADD FOOTER TO TEXT CONTENT FROM TEXT LINK
f ($_GET['url']) {
	array_push($buffer, "_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\n");
	array_push($buffer, "______________________________________________________________________");
}
///////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////
// START RENDERING
echo "
";

foreach ($buffer as &$value) {
	if ($value[0] == 'i') $value = substr($value,1);
    $Hurl = strpos($value,'h');
    $Iurl = strpos($value,'I');
    $Turl = strpos($value,'0');
    $gifurl = strpos($value,'g');
    $dirurl = strpos($value,'1');
    $binurl = strpos($value,'9');

	// TEXT CONTENT    
    if ($gport === false) { echo $value . "\n"; }

	// IMAGE GURL LINKS
	if ($Iurl === 0 && $gport == true) {
		$gurl = getGURL($value,"I");
		$ch = curl_init();
		curl_setopt($ch, CURLOPT_URL,$gurl);
		curl_setopt($ch,CURLOPT_BINARYTRANSFER, true);
		curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
		curl_setopt($ch, CURLOPT_VERBOSE, 0);
		$resimage = curl_exec($ch);
		curl_close($ch);
		echo '
'; } // GIF GURL LINKS if ($gifurl === 0 && $gport == true) { $gurl = getGURL($value,"g"); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$gurl); curl_setopt($ch,CURLOPT_BINARYTRANSFER, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_VERBOSE, 0); $resimage = curl_exec($ch); curl_close($ch); echo '
'; } // TXT GURL LINKS if ($Turl === 0 && $gport == true) { $lname = getLinkName($value); $filename = getFileName($value); $gurl = getGURL($value,"0"); echo "
".$lname."
"; } // HTTP GURL LINKS if ($Hurl === 0 && $gport == true) { $httpurl = getHURL($value); echo "
" . $httpurl . "
\n"; } // BINARY LINKS if ($binurl === 0 && $gport == true) { $lname = getLinkName($value); $filename = getFileName($value); $gurl = getGURL($value,"9"); echo "
".$lname."
"; } // DIR GURL LINKS if ($dirurl === 0 && $gport == true) { $lname = getLinkName($value); $filename = getFileName($value); $gurl = getGURL($value,"1"); echo "
".$lname."
"; } } echo "
"; // END /////////////////////////////////////////////////////////////// ?> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ______________________________________________________________________


AMIGA FRIENDLY WEB SITE JELLYBEAN STYLING WEB SITE