コード例 #1
0
function ryzom_item_icon_url($sheetid, $c = -1, $q = -1, $s = -1, $sap = -1, $destroyed = false)
{
    $common = ryzom_api_base_url() . "item_icon.php?sheetid={$sheetid}&c={$c}";
    if (preg_match('/\\.sbrick$/', $sheetid)) {
        $common .= ($q === true ? '&lvl=1' : '') . ($s != -1 ? "&txt=" . urlencode($s) : '');
    } else {
        $common .= "&q={$q}&s={$s}&sap={$sap}" . ($destroyed ? '&destroyed=1' : '');
    }
    return $common;
}
コード例 #2
0
function ryzom_guilds_xmlgz($shardid)
{
    return file_get_contents(ryzom_api_base_url() . "guilds.php?shardid={$shardid}");
}
コード例 #3
0
function ryzom_status_simplexml()
{
    $xml_txt = file_get_contents(ryzom_api_base_url() . 'status.php?format=xml');
    return new SimpleXMLElement($xml_txt);
}
コード例 #4
0
function ryzom_character_xmlgz($key, $part = '')
{
    return file_get_contents(ryzom_api_base_url() . "character.php?key={$key}" . ($part != '' ? "&part={$part}" : ''));
}
コード例 #5
0
function ryzom_banner_url($ckey, $langid, $width = 500)
{
    return ryzom_api_base_url() . "banner.php?ckey={$ckey}&langid={$langid}&w={$width}";
}
コード例 #6
0
function ryzom_title_txt($titleid, $langid, $gender)
{
    return file_get_contents(ryzom_api_base_url() . "title.php?titleid={$titleid}&langid={$langid}&gender={$gender}&format=txt");
}
コード例 #7
0
function ryzom_time_tick($shardid)
{
    return file_get_contents(ryzom_api_base_url() . "time.php?shardid={$shardid}");
}
コード例 #8
0
/**
 * Display the url item icon with a htmlentities treatement (w3c).
 */
function flunker_item_icon_url($sheetid, $c = -1, $q = -1, $s = -1, $sap = -1, $destroyed = false)
{
    return ryzom_api_base_url() . "item_icon.php?" . htmlentities("sheetid={$sheetid}&c={$c}&q={$q}&s={$s}&sap={$sap}" . ($destroyed ? '&destroyed=1' : ''));
}
コード例 #9
0
/**
 * Give the  Guild Icon URL with htmlentities treatments ( validated by w3c).
 * @param icon	&lt;<b>string</b>&gt;	Ryzom Id of the icon
 * @param size 	&lt;<b>string</b>&gt;	Ryzom Size
 * @return the url of the Guild Icon
 */
function flunker_guild_icon_url($icon, $size)
{
    return ryzom_api_base_url() . "guild_icon.php?" . htmlentities("icon={$icon}&size={$size}");
}
コード例 #10
0
function ryzom_guild_icon_url($icon, $size)
{
    return ryzom_api_base_url() . "guild_icon.php?icon={$icon}&size={$size}";
}
コード例 #11
0
function ryzom_guild_xmlgz($key)
{
    return file_get_contents(ryzom_api_base_url() . "guild.php?key={$key}");
}