Magic Quotes

Magic quotes ARE in use
Current value entered
Stripped if necessary, that is

Text to test:

Demo by Well House Consultants
Source code:

<?php

// Everything via common booking script

include ("$_SERVER[DOCUMENT_ROOT]/../include/stdphp.v8");

$year date("Y");
$where $url "http://$_SERVER[SERVER_NAME]$_SERVER[REDIRECT_URL]";
$thispage preg_replace('!.*/!','',$where);
/* Can we find source file in trainee directories? */
$dh opendir("$_SERVER[DOCUMENT_ROOT]/../trainee");
$itsin "";
while (
$tdn readdir($dh) ) {
    if (! 
ereg("^[a-z]",$tdn)) continue;
    
// $dlk .="$tdn - ";
    
$lookin = @opendir("$_SERVER[DOCUMENT_ROOT]/../trainee/$tdn");
    while (
$ldn = @readdir($lookin) ) {
        if (
$ldn == $thispage) {
            
$itsin $tdn;
            break;
        }
    if (
$itsin) break;
    }
}
if (
$itsin) {
    
$upit =strtoupper($itsin);
    
$itsin "See source code <a href=/resources/ex.php4?item=$itsin/$thispage target=pix>here</a> &bull; More examples - same topic <a href=/resources/$upit.html target=pix>here</a><br>";
    }

$tailer 1;
$tailerfrom "</body>";
$tailerto = <<< BSECTZZ
<br clear=all /><hr>
<div style="background: #FFCCCC;color: black;">
<center>Training sample &copy; $year, WELL HOUSE CONSULTANTS LTD<br />
This is <span style="font-family: 'Times';font-style:italic;cursor: default;"><a href="$url">$url</a></span> <br />
$itsin
Well House Manor &bull; 48 Spa Road &bull; Melksham, Wiltshire 
&bull; United Kingdom &bull; SN12 7NY<br />
Phone: +44 (0) 1225 708 225 &bull; 
EMAIL: <span style="font-family: 'Times';font-style:italic;cursor: default;"><a
href="mailto:info@wellho.net">info@wellho.net</a></span> &bull;
WEB: <span style="font-family: 'Times';font-style:italic;cursor: default;"><a href="http://www.wellho.net">http://www.wellho.net</a></span> </center></div>
BSECTZZ;

include (
"$_SERVER[DOCUMENT_ROOT]/../include/pagescript.v8");

?>


Training sample © 2008, WELL HOUSE CONSULTANTS LTD
This is http://www.wellho.net/demo/mq.php4
Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
Phone: +44 (0) 1225 708 225 • EMAIL: info@wellho.net • WEB: http://www.wellho.net