From 024c75e7205302a99a48710888f1b5cfb46345ab Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 14 Apr 2001 19:33:53 +0000 Subject: - tidied up the old code --- includes/section.inc | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'includes') diff --git a/includes/section.inc b/includes/section.inc index 6ed1d4030..ad25b179c 100644 --- a/includes/section.inc +++ b/includes/section.inc @@ -1,38 +1,5 @@ $type) db_query("INSERT INTO section_type (sid, type) VALUES ('". check_input($sid) ."', '". check_input($type) ."')", 1); -} - -function section_tree($parent = 0, $name = "", $tree = array()) { - $result = db_query("SELECT * FROM section WHERE pid = '$parent'"); - while ($section = db_fetch_object($result)) { - $tree[$section->sid] = ($name ? "$name - $section->name" : $section->name); - $tree = section_tree($section->sid, $tree[$section->sid], $tree); - } - return $tree; -} - -///// old ///// - function section_get() { $array = array(); $result = db_query("SELECT name FROM sections"); -- cgit v1.2.3