sources/Subs.php 1 location
|
@@ 1090-1093 (lines=4) @@
|
1087 |
|
{ |
1088 |
|
$test = @shell_exec('nslookup -timeout=1 ' . @escapeshellarg($ip)); |
1089 |
|
|
1090 |
|
if (strpos($test, 'Non-existent domain') !== false) |
1091 |
|
$host = ''; |
1092 |
|
elseif (preg_match('~Name:\s+([^\s]+)~', $test, $match) == 1) |
1093 |
|
$host = $match[1]; |
1094 |
|
} |
1095 |
|
|
1096 |
|
// This is the last try :/. |
sources/admin/ManageLanguages.controller.php 1 location
|
@@ 461-464 (lines=4) @@
|
458 |
|
else |
459 |
|
{ |
460 |
|
// If we think it's a theme thing, work out what the theme is. |
461 |
|
if (strpos($dirname, 'themes') === 0 && preg_match('~themes[\\/]([^\\/]+)[\\/]~', $dirname, $match)) |
462 |
|
$theme_name = $match[1]; |
463 |
|
else |
464 |
|
$theme_name = 'misc'; |
465 |
|
|
466 |
|
// Assume it's an image, could be an acceptance note etc but rare. |
467 |
|
$context['files']['images'][$theme_name][] = $context_data; |