diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2001-09-25 22:13:34 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2001-09-25 22:13:34 +0000 |
commit | ff2ae1855d20c7a4a4f4ccc8d93d32cc0abb0d58 (patch) | |
tree | d121d4255134e0e7ff62d664dd460e84b410898b /index.php | |
parent | 72188675d7ebac6428d15773773b62b4123675a1 (diff) | |
download | brdo-ff2ae1855d20c7a4a4f4ccc8d93d32cc0abb0d58.tar.gz brdo-ff2ae1855d20c7a4a4f4ccc8d93d32cc0abb0d58.tar.bz2 |
- added node_page() to list what index.php used to list.
- made the front page of the system configurable. Now any <node>_page()
can be set as the default page. Default is node_page().
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 19 |
1 files changed, 6 insertions, 13 deletions
@@ -5,19 +5,12 @@ include_once "includes/common.inc"; page_header(); -$theme->header(); - -if (user_access("access content")) { - $result = db_query("SELECT nid, type FROM node WHERE ". ($meta ? "attributes LIKE '%". check_input($meta) ."%' AND " : "") ." promote = '1' AND status = '". node_status("posted") ."' AND timestamp <= '". ($date > 0 ? check_input($date) : time()) ."' ORDER BY timestamp DESC LIMIT ". ($user->nodes ? $user->nodes : variable_get(default_nodes_main, 10))); - while ($node = db_fetch_object($result)) { - node_view(node_get_object(array("nid" => $node->nid, "type" => $node->type)), 1); - } -} -else { - $theme->box(t("Access denied"), message_access()); -} - -$theme->footer(); +//$theme->header(); + +$function = variable_get("site_frontpage", "node") ."_page"; +$function(); + +//$theme->footer(); page_footer(); |