-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoscxmlapi.php
More file actions
36 lines (28 loc) · 1.21 KB
/
Copy pathoscxmlapi.php
File metadata and controls
36 lines (28 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?
/*
osCXMLApi v1.5 r3 ©2007
Coding by Brad Slattman - postmaster@phaseonemedia.com
Testing by Brian Mix - brian@brokerbin.com
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
http://www.gnu.org/licenses/gpl.html
*/
/* Define some Constants */
define('OSCXMLAPI_USERNAME', 'username'); // required to access the api
define('OSCXMLAPI_PASSWORD', 'password'); // required to access the api
define('OSCXMLAPI_DEBUG', TRUE); // this turns the actual mysql queries on and off.
/* Integrate with OSC */
require_once('includes/application_top.php');
/* Include the OSCXMLAPI Class */
require_once('includes/classes/oscxmlapi.class.php');
/* Check for a request and execute it */
if ($_REQUEST['xmlDoc']) {
$oscxmlapi = new oscxmlapi;
?><pre><? print_r($oscxmlapi->process($_REQUEST['xmlDoc']));
}
?>