Ecco tutto il codice della pagina di esempio:
<?php include "protect.php"; ?>
<?php
/////////////////////////////////////////////////////
// //
// PHPPageProtect //
// V 1.0.0 //
// //
// Copyright 2001 //
// David Broker //
// php@warpedweb.net //
// All Rights Reserved //
// //
// In using this script you //
// agree to the following: //
// //
// This script may be used and modified //
// freely as long as this //
// copyright remains intact. //
// //
// You may not distibute this script, or //
// any modifications of it. //
// //
// A link must be provided on the website that //
// uses the script to: //
// http://php.warpedweb.net/ //
// //
// Any breaches of these conditions //
// will result in legal action. //
// //
// This script is distributed with //
// no warrenty, free of charge. //
// //
/////////////////////////////////////////////////////
// This page shows an example of how to use the script
// and it's various functions.
?>
<html>
<head>
<title>
Example page
</title>
</head>
<body style="font-family:arial;text-align:center;">
<h1>Examples of available functions:</h1>
<h4>
print_name():
Hello <? print_name(); ?>!
print_username():
Your username is "<?php print_username(); ?>".
print_logout_url():
The logout page is here.
print_first_page_url():
A link to the first page.</h4>
</body>
</html>