From f3cd2da113853bef53b733a09a92e59c04d5ec51 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Fri, 6 Apr 2007 04:39:51 +0000 Subject: #130991: Custom menu items, part 1 --- includes/common.inc | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'includes/common.inc') diff --git a/includes/common.inc b/includes/common.inc index 1c18f6d34..7ddf2ac82 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -2292,22 +2292,3 @@ function element_child($key) { function element_children($element) { return array_filter(array_keys((array) $element), 'element_child'); } - -/** - * Generate vancode. - * - * Consists of a leading character indicating length, followed by N digits - * with a numerical value in base 36. Vancodes can be sorted as strings - * without messing up numerical order. - * - * It goes: - * 00, 01, 02, ..., 0y, 0z, - * 110, 111, ... , 1zy, 1zz, - * 2100, 2101, ..., 2zzy, 2zzz, - * 31000, 31001, ... - */ -function int2vancode($i = 0) { - $num = base_convert((int)$i, 10, 36); - $length = strlen($num); - return chr($length + ord('0') - 1) . $num; -} -- cgit v1.2.3