|
|
|
@ -42,8 +42,14 @@ class xReflector {
|
|
|
|
$this->XMLContent = fread($handle, filesize($this->XMLFile));
|
|
|
|
$this->XMLContent = fread($handle, filesize($this->XMLFile));
|
|
|
|
fclose($handle);
|
|
|
|
fclose($handle);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# XLX alphanumeric naming...
|
|
|
|
$this->ServiceName = substr($this->XMLContent, strpos($this->XMLContent, "<XLX")+4, 3);
|
|
|
|
$this->ServiceName = substr($this->XMLContent, strpos($this->XMLContent, "<XLX")+4, 3);
|
|
|
|
# XLX alphanumeric naming... By commenting the following four lines, it is possible to use an alphanumeric name for the reflector (eg: XLXABC)
|
|
|
|
if (preg_match('/[^a-zA-Z0-9]/', $this->ServiceName) == 1) {
|
|
|
|
|
|
|
|
$this->ServiceName = null;
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# $this->ServiceName = substr($this->XMLContent, strpos($this->XMLContent, "<XLX")+4, 3);
|
|
|
|
# if (!is_numeric($this->ServiceName)) {
|
|
|
|
# if (!is_numeric($this->ServiceName)) {
|
|
|
|
# $this->ServiceName = null;
|
|
|
|
# $this->ServiceName = null;
|
|
|
|
# return false;
|
|
|
|
# return false;
|
|
|
|
|