Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 605fa9ac73
Fetching contributors…

Cannot retrieve contributors at this time

78 lines (73 sloc) 1.853 kb
/**
*
* @package Icy Phoenix
* @version $Id$
* @copyright (c) 2008 Icy Phoenix
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
*
* @Extra credits for this file
* Ptirhiik (admin@rpgnet-fr.com)
*
*/
/**
*
* LAST UPDATE {TIME} by {USERNAME}
*
*/
if (!defined('IN_ICYPHOENIX'))
{
die('Hacking attempt');
exit;
}
//--------------------------------------------------------------------------------------------------
//
// $tree : designed to get all the hierarchy
// ------
//
// indexes :
// - id : full designation : ie Root, f3, c20
// - idx : rank order
//
// $tree['keys'][id] => idx,
// $tree['type'][idx] => type of the row, can be 'c' for categories or 'f' for forums,
// $tree['id'][idx] => value of the row id : forum_id for cats, forum_id for forums,
// $tree['data'][idx] => db table row,
// $tree['main'][idx] => parent id,
// $tree['sub'][id] => array of sub-level ids,
//--------------------------------------------------------------------------------------------------
$tree = array(
'keys' => array({KEYS}),
'type' => array({TYPES}),
'id' => array({IDS}),
'data' => array(
<!-- BEGIN data -->
array(
<!-- BEGIN field -->
'{data.field.FIELD_NAME}' => '{data.field.FIELD_VALUE}',
<!-- END field -->
),
<!-- END data -->
),
'main' => array({MAINS}),
'sub' => array(
<!-- BEGIN sub -->
'{sub.THIS}' => array({sub.SUBS}),
<!-- END sub -->
),
'mods' => array(
<!-- BEGIN mods -->
{mods.IDX} => array(
'user_id' => array({mods.USER_IDS}),
'username' => array({mods.USERNAMES}),
'user_active' => array({mods.USER_ACTIVES}),
'user_color' => array({mods.USER_COLORS}),
'group_id' => array({mods.GROUP_IDS}),
'group_name' => array({mods.GROUP_NAMES}),
'group_color' => array({mods.GROUP_COLORS}),
),
<!-- END mods -->
),
);
Jump to Line
Something went wrong with that request. Please try again.