BMLT Root Server
ServerInfo.php
Go to the documentation of this file.
1 <?php
2 /****************************************************************************************//**
3 * \file ServerInfo.php *
4 * \brief Returns an XML response, containing the schema for the GetServerInfo XML call *
5 
6  This file is part of the Basic Meeting List Toolbox (BMLT).
7 
8  Find out more at: https://bmlt.app
9 
10  BMLT is free software: you can redistribute it and/or modify
11  it under the terms of the MIT License.
12 
13  BMLT is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  MIT License for more details.
17 
18  You should have received a copy of the MIT License along with this code.
19  If not, see <https://opensource.org/licenses/MIT>.
20 ********************************************************************************************/
21 
22 // The caller can request compression. Not all clients can deal with compressed replies.
23 if (isset($_GET['compress_xml']) || isset($_POST['compress_xml'])) {
24  if (zlib_get_coding_type() === false) {
25  ob_start("ob_gzhandler");
26  } else {
27  header('Content-Type:application/xml; charset=UTF-8');
28  ob_start();
29  }
30 } else {
31  header('Content-Type:application/xml; charset=UTF-8');
32  ob_start();
33 }
34 echo "<"."?xml version=\"1.0\" encoding=\"UTF-8\"?".">\n"; ?>
35 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
36  xmlns:xsn="http://<?php echo $_SERVER['SERVER_NAME'] ?>"
37  targetNamespace="http://<?php echo $_SERVER['SERVER_NAME'] ?>"
38  elementFormDefault="qualified">
39  <xs:element name='serverInfo'>
40  <xs:complexType>
41  <xs:sequence>
42  <xs:element name='row'>
43  <xs:complexType>
44  <xs:sequence>
45  <xs:element name='version' type='xs:string'/>
46  <xs:element name='versionInt' type='xs:integer'/>
47  <xs:element name='langs' type='xs:string'/>
48  <xs:element name='nativeLang' type='xs:string'/>
49  <xs:element name='centerLongitude' type='xs:decimal'/>
50  <xs:element name='centerLatitude' type='xs:decimal'/>
51  <xs:element name='centerZoom' type='xs:integer'/>
52  <xs:element minOccurs="0" name='defaultDuration' type='xs:string'/>
53  <xs:element minOccurs="0" name='regionBias' type='xs:string'/>
54  <xs:element minOccurs="0" name='charSet' type='xs:string'/>
55  <xs:element minOccurs="0" name='distanceUnits' type='xs:string'/>
56  <xs:element minOccurs="0" name='semanticAdmin' type='xs:integer'/>
57  <xs:element minOccurs="0" name='emailEnabled' type='xs:integer'/>
58  <xs:element minOccurs="0" name='emailIncludesServiceBodies' type='xs:integer'/>
59  <xs:element minOccurs="0" name='changesPerMeeting' type='xs:integer'/>
60  <xs:element minOccurs="0" name='meeting_states_and_provinces' type='xs:string'/>
61  <xs:element minOccurs="0" name='meeting_counties_and_sub_provinces' type='xs:string'/>
62  <xs:element minOccurs="0" name='available_keys' type='xs:string'/>
63  <xs:element minOccurs="0" name='google_api_key' type='xs:string'/>
64  <xs:element minOccurs="0" name='dbVersion' type='xs:integer'/>
65  <xs:element minOccurs="0" name='dbPrefix' type='xs:string'/>
66  <xs:element minOccurs="0" name='meeting_time_zones_enabled' type='xs:string'/>
67  </xs:sequence>
68  <xs:attribute name='sequence_index' use='required' type='xs:integer'/>
69  </xs:complexType>
70  </xs:element>
71  </xs:sequence>
72  </xs:complexType>
73  </xs:element>
74 </xs:schema><?php ob_end_flush(); ?>
$_GET['switcher']