|
@@ 1289-1299 (lines=11) @@
|
| 1286 |
|
'height' => array('optional' => true, 'value' => ' height="$1"', 'match' => '(\d+)'), |
| 1287 |
|
), |
| 1288 |
|
'content' => '<img src="$1" alt="{alt}" title="{title}"{width}{height} class="bbc_img resized">', |
| 1289 |
|
'validate' => function (&$tag, &$data, $disabled) |
| 1290 |
|
{ |
| 1291 |
|
global $image_proxy_enabled, $image_proxy_secret, $boardurl; |
| 1292 |
|
|
| 1293 |
|
$data = strtr($data, array('<br>' => '')); |
| 1294 |
|
if (strpos($data, 'http://') !== 0 && strpos($data, 'https://') !== 0) |
| 1295 |
|
$data = 'http://' . $data; |
| 1296 |
|
|
| 1297 |
|
if (substr($data, 0, 8) != 'https://' && $image_proxy_enabled) |
| 1298 |
|
$data = $boardurl . '/proxy.php?request=' . urlencode($data) . '&hash=' . md5($data . $image_proxy_secret); |
| 1299 |
|
}, |
| 1300 |
|
'disabled_content' => '($1)', |
| 1301 |
|
), |
| 1302 |
|
array( |
|
@@ 1306-1316 (lines=11) @@
|
| 1303 |
|
'tag' => 'img', |
| 1304 |
|
'type' => 'unparsed_content', |
| 1305 |
|
'content' => '<img src="$1" alt="" class="bbc_img">', |
| 1306 |
|
'validate' => function (&$tag, &$data, $disabled) |
| 1307 |
|
{ |
| 1308 |
|
global $image_proxy_enabled, $image_proxy_secret, $boardurl; |
| 1309 |
|
|
| 1310 |
|
$data = strtr($data, array('<br>' => '')); |
| 1311 |
|
if (strpos($data, 'http://') !== 0 && strpos($data, 'https://') !== 0) |
| 1312 |
|
$data = 'http://' . $data; |
| 1313 |
|
|
| 1314 |
|
if (substr($data, 0, 8) != 'https://' && $image_proxy_enabled) |
| 1315 |
|
$data = $boardurl . '/proxy.php?request=' . urlencode($data) . '&hash=' . md5($data . $image_proxy_secret); |
| 1316 |
|
}, |
| 1317 |
|
'disabled_content' => '($1)', |
| 1318 |
|
), |
| 1319 |
|
array( |