mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-30 00:29:58 +09:00
php5 syntax change to php4
git-svn-id: http://xe-core.googlecode.com/svn/trunk@10262 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
774a187f65
commit
092d7988ba
2 changed files with 5 additions and 5 deletions
|
|
@ -13,7 +13,7 @@
|
||||||
* @brief display XE's full version
|
* @brief display XE's full version
|
||||||
* Even The file should be revised when releasing altough no change is made
|
* Even The file should be revised when releasing altough no change is made
|
||||||
**/
|
**/
|
||||||
define('__XE_VERSION__', '1.5.1.9');
|
define('__XE_VERSION__', '1.5.1.10');
|
||||||
define('__ZBXE_VERSION__', __XE_VERSION__); // deprecated : __ZBXE_VERSION__ will be removed. Use __XE_VERSION__ instead.
|
define('__ZBXE_VERSION__', __XE_VERSION__); // deprecated : __ZBXE_VERSION__ will be removed. Use __XE_VERSION__ instead.
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -288,7 +288,7 @@
|
||||||
|
|
||||||
if($m[1] == 'param')
|
if($m[1] == 'param')
|
||||||
{
|
{
|
||||||
if(stripos($m[0], 'allowscriptaccess'))
|
if(strpos(strtolower($m[0]), 'allowscriptaccess'))
|
||||||
{
|
{
|
||||||
$m[0] = '<param name="allowscriptaccess" value="never"';
|
$m[0] = '<param name="allowscriptaccess" value="never"';
|
||||||
if(substr($m[0], -1) == '/')
|
if(substr($m[0], -1) == '/')
|
||||||
|
|
@ -300,13 +300,13 @@
|
||||||
}
|
}
|
||||||
else if($m[1] == 'embed')
|
else if($m[1] == 'embed')
|
||||||
{
|
{
|
||||||
if(stripos($m[0], 'allowscriptaccess'))
|
if(strpos(strtolower($m[0]), 'allowscriptaccess'))
|
||||||
{
|
{
|
||||||
$m[0] = str_ireplace(array('always', 'samedomain'), 'never', $m[0]);
|
$m[0] = preg_replace('/always|samedomain/i', 'never', $m[0]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$m[0] = str_ireplace('<embed', '<embed allowscriptaccess="never"', $m[0]);
|
$m[0] = preg_replace('/\<embed/i', '<embed allowscriptaccess="never"', $m[0]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $m[0];
|
return $m[0];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue