guilds_interface.patch
| ryzom_api/client_functions_guilds.php 2009-07-19 18:51:50.000000000 +0200 | ||
|---|---|---|
| 1 |
<?php |
|
| 2 |
/* Copyright (C) 2009 Winch Gate Property Limited |
|
| 3 |
* |
|
| 4 |
* This file is part of ryzom_api. |
|
| 5 |
* ryzom_api is free software: you can redistribute it and/or modify |
|
| 6 |
* it under the terms of the GNU Lesser General Public License as published by |
|
| 7 |
* the Free Software Foundation, either version 3 of the License, or |
|
| 8 |
* (at your option) any later version. |
|
| 9 |
* |
|
| 10 |
* ryzom_api is distributed in the hope that it will be useful, |
|
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 13 |
* GNU Lesser General Public License for more details. |
|
| 14 |
* |
|
| 15 |
* You should have received a copy of the GNU Lesser General Public License |
|
| 16 |
* along with ryzom_api. If not, see <http://www.gnu.org/licenses/>. |
|
| 17 |
*/ |
|
| 18 | ||
| 19 |
function ryzom_guilds_simplexml($shardID) {
|
|
| 20 |
$url = ryzom_api_base_url()."guilds.php?shardid=$shardID"; |
|
| 21 |
$ch = curl_init(); |
|
| 22 |
curl_setopt($ch, CURLOPT_URL, $url); |
|
| 23 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); |
|
| 24 |
curl_setopt($ch, CURLOPT_ENCODING , 'gzip'); |
|
| 25 |
$output = curl_exec($ch); |
|
| 26 |
curl_close($ch); |
|
| 27 |
return simplexml_load_string($output); |
|
| 28 |
} |
|
| 29 | ||
| 30 |
function ryzom_guilds_xmlgz($shardID) {
|
|
| 31 |
return file_get_contents(ryzom_api_base_url()."guilds.php?shardid=$shardID"); |
|
| 32 |
} |
|
| 33 | ||
| 34 |
?> |
|
| ryzom_api/functions_guilds.php 2009-07-19 18:52:04.000000000 +0200 | ||
|---|---|---|
| 1 |
<?php |
|
| 2 |
/* Copyright (C) 2009 Winch Gate Property Limited |
|
| 3 |
* |
|
| 4 |
* This file is part of ryzom_api. |
|
| 5 |
* ryzom_api is free software: you can redistribute it and/or modify |
|
| 6 |
* it under the terms of the GNU Lesser General Public License as published by |
|
| 7 |
* the Free Software Foundation, either version 3 of the License, or |
|
| 8 |
* (at your option) any later version. |
|
| 9 |
* |
|
| 10 |
* ryzom_api is distributed in the hope that it will be useful, |
|
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 13 |
* GNU Lesser General Public License for more details. |
|
| 14 |
* |
|
| 15 |
* You should have received a copy of the GNU Lesser General Public License |
|
| 16 |
* along with ryzom_api. If not, see <http://www.gnu.org/licenses/>. |
|
| 17 |
*/ |
|
| 18 | ||
| 19 |
?> |
|
| ryzom_api/ryzom_api.php 2009-07-19 18:52:13.000000000 +0200 | ||
|---|---|---|
| 16 | 16 |
* along with ryzom_api. If not, see <http://www.gnu.org/licenses/>. |
| 17 | 17 |
*/ |
| 18 | 18 | |
| 19 |
$includes = array('common', 'time', 'title', 'guild_icon', 'character', 'item_icon', 'banner', 'status', 'guild');
|
|
| 19 |
$includes = array('common', 'time', 'title', 'guild_icon', 'character', 'item_icon', 'banner', 'status', 'guild', 'guilds');
|
|
| 20 | 20 | |
| 21 | 21 |
require_once('config.php');
|
| 22 | 22 | |