Topic: How do I add/authorize Flash objects?
First off, many thanks to Dr Patnaik for htmLawed. I'm a newbie here, so pardon me if I have posted this in the wrong place.
So I went through the Authorizing Flash objects topic, but am still unable to embed videos (add flash objects) and as the topic was closed, I'm posting this topic out here. I've removed the safe mode option ('safe' => 0) and modified the config portion of my code as mentioned in the above thread but to no avail.
Following is the class (it's for a CMS that uses htmLawed together with Inspekt). I've been told that I need to tinker with the following snippet of code. As I'm not a programmer, I'd be glad if someone could help/tell me which lines of the following code do I need to change and with what.
class getHtmLawed extends AccessorAbstract {
/**
* a function to filter HTML
*
* @return string
*/
protected function inspekt($text)
{
$config = array('safe' => 1);
require_once(EXTENSIONS . 'htmLawed/htmLawed.php');
if (!get_magic_quotes_gpc()) {
return htmLawed($text, $config);
}
else
{
return htmLawed(stripslashes($text), $config);
}
return false;
}
}
I've modified the 'config' portion of the above class like this:
$config = array(
'comments'=>0,
'cdata'=>0,
'deny_attribute'=>'on*',
'elements'=>'*-applet-iframe-embed-script', // object, embed allowed
'schemes'=>'class:clsid; href: aim, feed, file, ftp, gopher, http, https, irc, mailto, news, nntp, sftp, ssh, telnet; style: nil; *:file, http, https' // clsid allowed in class
);
I'd be very grateful if someone could help out.
Again, many thanks for htmLawed.