summaryrefslogtreecommitdiffstats
path: root/admin/soap/addraid.php
blob: 85786b44954c16b5061f96d01f3200d8304c6ff8 (plain)
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
37
38
39
<?php
/******************************
 * EQdkp
 * Copyright 2002-2005
 * Licensed under the GNU GPL.  See COPYING for full terms.
 * ------------------
 * addraid.php
 * begin: Tue April 19 2005
 *
 * $Id: addraid.php 46 2007-06-19 07:29:11Z tsigo $
 *
 ******************************/

define('EQDKP_INC', true);
$eqdkp_root_path = './../../';
include_once($eqdkp_root_path . 'common.php');

if (isset($_GET['raid']) ) {

$event_name = $_GET['raid'];

} else {
die("Event name not defined<br>");
}

// Create the client instance
$client = new soapclient( $ns . 'admin/soap/dkpsoap.php');

// Call the SOAP method
$output = $client->call('AddRaid', array('user' => $soap_user, 'password' => $soap_password, 'event_name' => $event_name));

// Display the result
print_r($output);

echo '<h2>Request</h2>';
echo '<pre>' . htmlspecialchars($client->request, ENT_QUOTES) . '</pre>';
echo '<h2>Response</h2>';
echo '<pre>' . htmlspecialchars($client->response, ENT_QUOTES) . '</pre>';
?>