Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.
link to view source code
mr noob wrote: for viewing html source, where you show the source in div id=test:
function showsource() {
document.getElementById("test").innerHTML="<plaintext>"+document.getElementsByTagName("html")[0].innerHTML+"</plaintext>";
}
Might I point out that this is quite an ugly solution? If you use this be SURE to color tags on way or the other.
I agree with system_meltdown that he's not talking about html
<?php
$disallowed = array( "config.php", "private.php" ); //More as needed
foreach ( $disallowed as $file ) if ( $_GET["f"] == $file ) die( "Not allowed to view that file" );
show_source( $_GET["f"] );
?>
OR
<?php
if ( $_GET["source"] == "yes" ) die( show_source( __FILE__ ) );
?>
Or you could use in_array, rather than using a foreach loop