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:
parent
44e95dac34
commit
ed79facadf
@ -10,6 +10,8 @@
|
||||
<h1>HTMLPurifier Live Demo</h1>
|
||||
<?php
|
||||
|
||||
set_time_limit(120);
|
||||
|
||||
set_include_path('../../library' . PATH_SEPARATOR . get_include_path());
|
||||
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>
|
||||
<legend>HTML</legend>
|
||||
<textarea name="html" cols="60" rows="15"><?php
|
||||
|
Loading…
Reference in New Issue
Block a user