Skip to content

Commit e320207

Browse files
committed
Disable proxy.php by default
1 parent 64cc7e8 commit e320207

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

app/courses/proxy.php

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@
1313

1414
require_once '../config/configuration.php';
1515

16+
if (!isset($_configuration['lp_fix_embed_content'])) {
17+
exit;
18+
}
19+
20+
if (true !== $_configuration['lp_fix_embed_content']) {
21+
exit;
22+
}
23+
1624
/**
1725
* Returns "%" or "px"
1826
*
@@ -119,7 +127,7 @@ function get_http_response_code($theURL)
119127
break;
120128
case 'flash':
121129
$result = '
122-
<object
130+
<object
123131
id="'.$id.'" width="'.$width.'" height="'.$height.'" align="center"
124132
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0">
125133
<param name="id" value="'.$id.'">
@@ -133,11 +141,11 @@ function get_http_response_code($theURL)
133141
<param name="wmode" value="transparent">
134142
<param name="flashvars" value="'.$vars.'">
135143
<param name="src" value="'.$src.'">
136-
<embed
137-
id="'.$id.'" width="'.$width.'" height="'.$height.'" bgcolor="#ffffff" align="center"
138-
allowfullscreen="true" allowscriptaccess="always" quality="high" wmode="transparent"
144+
<embed
145+
id="'.$id.'" width="'.$width.'" height="'.$height.'" bgcolor="#ffffff" align="center"
146+
allowfullscreen="true" allowscriptaccess="always" quality="high" wmode="transparent"
139147
flashvars="'.$vars.'" src="'.$src.'"
140-
type="application/x-shockwave-flash"
148+
type="application/x-shockwave-flash"
141149
>
142150
</object>';
143151
}

0 commit comments

Comments
 (0)