'getNextID', 'desc' => 'Returns the next folded ID.', ); return $result; } /** * Returns the next folded ID. */ function getNextID() { static $ids_count = 0; global $ID, $ACT; $hash = md5($ID.$ACT); $ids_count++; $id = 'folded_'.$hash.'_'.$ids_count; return $id; } } // vim:ts=4:sw=4:et: