0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-12-22 16:31:53 +00:00

Add profiling capabilities to demo.php .

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@264 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang 2006-08-15 15:33:24 +00:00
parent 44e95dac34
commit ed79facadf

View File

@ -10,6 +10,8 @@
<h1>HTMLPurifier Live Demo</h1> <h1>HTMLPurifier Live Demo</h1>
<?php <?php
set_time_limit(120);
set_include_path('../../library' . PATH_SEPARATOR . get_include_path()); set_include_path('../../library' . PATH_SEPARATOR . get_include_path());
require_once 'HTMLPurifier.php'; require_once 'HTMLPurifier.php';
@ -48,7 +50,10 @@ will filter it.</p>
} }
?> ?>
<form name="filter" action="demo.php" method="post"> <form name="filter" action="demo.php<?php
if (isset($_GET['profile']) || isset($_GET['XDEBUG_PROFILE'])) {
echo '?XDEBUG_PROFILE=1';
} ?>" method="post">
<fieldset> <fieldset>
<legend>HTML</legend> <legend>HTML</legend>
<textarea name="html" cols="60" rows="15"><?php <textarea name="html" cols="60" rows="15"><?php