XOOPS 2.5.6
Final
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
iframe.php
Go to the documentation of this file.
1
<?php
20
defined(
'XOOPS_ROOT_PATH'
) or die('Restricted access');
21
22
class
MytsIframe
extends
MyTextSanitizerExtension
23
{
24
function
load(&$ts)
25
{
26
$ts->patterns[] =
"/\[iframe=(['\"]?)([^\"']*)\\1]([^\"]*)\[\/iframe\]/sU"
;
27
$ts->replacements[] =
"<iframe src='\\3' width='100%' height='\\2' scrolling='auto' frameborder='yes' marginwidth='0' marginheight='0' noresize></iframe>"
;
28
29
return
true
;
30
}
31
}
32
?>
L:
0xoops
xoops-2.5.6
htdocs
class
textsanitizer
iframe
iframe.php
Generated on Fri May 10 2013 01:04:24 for XOOPS 2.5.6 by
1.8.3.1