Version 1/2 - Next ยป - Current version
vl, 10/16/2009 12:24 pm


App

Create Ryzom application that will be available out the game (with the browser) and in game.

PHP Interface

ryzom_app_authenticate()

Check if the user is a valid one. If it's ok, the function setup globally these variables:
  • $ig: true if the user is in the game. false if the user is out of the game (browser)
  • $user: an array that contains information of the user (lang, cid, shard, shardid, name)

ryzom_app_render($title, $content)

Render the $content depending of if the user is in game or out game.

ryzom_relative_time($timestamp)

Return a human and translated readable time, for example "3 days ago".

ryzom_get_param($var)

Always use this function to get param because in game, the param can be pass by _GET or by _POST