function shrinktheweb_getLegacyResponse in ShrinkTheWeb 7
Same name and namespace in other branches
- 8 shrinktheweb.api.inc \shrinktheweb_getLegacyResponse()
- 6 shrinktheweb.api.inc \shrinktheweb_getLegacyResponse()
2 calls to shrinktheweb_getLegacyResponse()
- shrinktheweb_getAccXMLResponse in ./
shrinktheweb.api.inc - store the Account XML response in an array
- shrinktheweb_getXMLResponse in ./
shrinktheweb.api.inc - store the XML response in an array and generate status bits
File
- ./
shrinktheweb.api.inc, line 554
Code
function shrinktheweb_getLegacyResponse($sSearch, $s) {
$sRegex = '/<[^:]*:' . $sSearch . '[^>]*>[^<]*<[^:]*:StatusCode[^>]*>([^<]*)<\\//';
if (preg_match($sRegex, $s, $sMatches)) {
return $sMatches[1];
}
return false;
}