sources/admin/ManageLanguages.controller.php 1 location
|
@@ 463-466 (lines=4) @@
|
| 460 |
|
else |
| 461 |
|
{ |
| 462 |
|
// If we think it's a theme thing, work out what the theme is. |
| 463 |
|
if (strpos($dirname, 'themes') === 0 && preg_match('~themes[\\/]([^\\/]+)[\\/]~', $dirname, $match)) |
| 464 |
|
$theme_name = $match[1]; |
| 465 |
|
else |
| 466 |
|
$theme_name = 'misc'; |
| 467 |
|
|
| 468 |
|
// Assume it's an image, could be an acceptance note etc but rare. |
| 469 |
|
$context['files']['images'][$theme_name][] = $context_data; |
sources/Subs.php 1 location
|
@@ 1253-1256 (lines=4) @@
|
| 1250 |
|
{ |
| 1251 |
|
$test = @shell_exec('nslookup -timeout=1 ' . @escapeshellarg($ip)); |
| 1252 |
|
|
| 1253 |
|
if (strpos($test, 'Non-existent domain') !== false) |
| 1254 |
|
$host = ''; |
| 1255 |
|
elseif (preg_match('~Name:\s+([^\s]+)~', $test, $match) == 1) |
| 1256 |
|
$host = $match[1]; |
| 1257 |
|
} |
| 1258 |
|
|
| 1259 |
|
// This is the last try :/. |