⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
dalily.dev-unit.com
/
config
/
View File Name :
purifier.php
<?php /** * Ok, glad you are here * first we get a config instance, and set the settings * $config = HTMLPurifier_Config::createDefault(); * $config->set('Core.Encoding', $this->config->get('purifier.encoding')); * $config->set('Cache.SerializerPath', $this->config->get('purifier.cachePath')); * if ( ! $this->config->get('purifier.finalize')) { * $config->autoFinalize = false; * } * $config->loadArray($this->getConfig()); * * You must NOT delete the default settings * anything in settings should be compacted with params that needed to instance HTMLPurifier_Config. * * @link http://htmlpurifier.org/live/configdoc/plain.html */ return [ 'encoding' => 'UTF-8', 'finalize' => true, 'cachePath' => storage_path('app/purifier'), 'cacheFileMode' => 0755, 'settings' => [ 'default' => [ 'HTML.Doctype' => 'HTML 4.01 Transitional', // 'XHTML 1.0 Strict' (NOT supports a[target] attr.) 'Attr.AllowedFrameTargets' => '_blank', 'Attr.AllowedRel' => 'nofollow', 'HTML.Allowed' => 'div,b,strong,i,em,ul,ol,li,p[style],br,span[style],blockquote[cite], a[href|title|target|rel|style], img[width|height|alt|src], table[summary], table[class], table[id], table[border], table[cellpadding], table[cellspacing], table[style], table[width], colgroup, col[width] td[abbr], td[align], td[class], td[id], td[colspan], td[rowspan], td[style], td[valign], tr[align], tr[class], tr[id], tr[style], tr[valign], th[abbr], th[align], th[class], th[id], th[colspan], th[rowspan], th[style], th[valign], h1[style], h2[style], h3[style], h4[style], h5[style], h6[style],', 'CSS.AllowedProperties' => 'font,font-size,font-weight,font-style,font-family,text-decoration,padding-left,color,background-color,text-align', 'AutoFormat.AutoParagraph' => true, 'AutoFormat.RemoveEmpty' => true, ], 'test' => [ 'Attr.EnableID' => true, ], "youtube" => [ "HTML.SafeIframe" => 'true', "URI.SafeIframeRegexp" => "%^(http://|https://|//)(www.youtube.com/embed/|player.vimeo.com/video/)%", ], ], ];