summaryrefslogtreecommitdiff
path: root/includes/section.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-04-16 11:38:12 +0000
committerDries Buytaert <dries@buytaert.net>2001-04-16 11:38:12 +0000
commitb9952f537d5f1a102e145b0529c78bc31a1509af (patch)
tree51f6a0ab5c46bd4643c5b2ac0579a4a411e45977 /includes/section.inc
parent49a7dccb64a239097d44e235b525708c6a39d29e (diff)
downloadbrdo-b9952f537d5f1a102e145b0529c78bc31a1509af.tar.gz
brdo-b9952f537d5f1a102e145b0529c78bc31a1509af.tar.bz2
Large commit, read it carefully, and make the required changes to
your theme: - corrected some missing translations in story.module. Oops! - grealty simplified the "moderation threshold mechanism"(tm) so that module writers don't have to worry about this. As a result story.module and book.module became a bit smaller and easier to grasp. - greatly simplified new "category" and "topic" code which is soon going to replace the "section" code. Needs more work though so hang on thight. - includes/section.inc and modules/section.module are replaced by includes/structure.module and modules/structure.module. - beautified example.theme a bit without adding HTML complexity: it is a good example but still useful as a theme - made theme example use "categories" and "topics" --> TAKE A LOOK AT IT AND UPDATE YOUR THEME - made theme marvin use "categories" and "topics" --> TAKE A LOOK AT IT AND UPDATE YOUR THEME - added 2 new "story listings" to administrator interface of story.module to verify story integrity. - optimized comment table a bit (work in progress)
Diffstat (limited to 'includes/section.inc')
-rw-r--r--includes/section.inc25
1 files changed, 0 insertions, 25 deletions
diff --git a/includes/section.inc b/includes/section.inc
deleted file mode 100644
index ad25b179c..000000000
--- a/includes/section.inc
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-
-function section_get() {
- $array = array();
- $result = db_query("SELECT name FROM sections");
- while ($section = db_fetch_object($result)) array_push($array, $section->name);
- return $array;
-}
-
-function section_post_threshold($section, $default) {
- $section = db_fetch_object(db_query("SELECT post AS threshold FROM sections WHERE name = '". check_input($section) ."'"));
- return $section->threshold ? $section->threshold : $default;
-}
-
-function section_dump_threshold($section, $default) {
- $section = db_fetch_object(db_query("SELECT dump AS threshold FROM sections WHERE name = '". check_input($section) ."'"));
- return $section->threshold ? $section->threshold : $default;
-}
-
-function section_timout_threshold($section, $default) {
- $section = db_fetch_object(db_query("SELECT timout AS threshold FROM sections WHERE name = '". check_input($section) ."'"));
- return $section->threshold ? $section->threshold : $default;
-}
-
-?> \ No newline at end of file