function shrinktheweb_getLegacyResponse in ShrinkTheWeb 6
Same name and namespace in other branches
- 8 shrinktheweb.api.inc \shrinktheweb_getLegacyResponse()
- 7 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 548
Code
function shrinktheweb_getLegacyResponse($sSearch, $s) {
$sRegex = '/<[^:]*:' . $sSearch . '[^>]*>[^<]*<[^:]*:StatusCode[^>]*>([^<]*)<\\//';
if (preg_match($sRegex, $s, $sMatches)) {
return $sMatches[1];
}
return false;
}