set_preference("home_blog", $_REQUEST["homeBlog"]); $smarty->assign('home_blog', $_REQUEST["homeBlog"]); } if (isset($_REQUEST["blogfeatures"])) { check_ticket('admin-inc-blogs'); $pref_toggles = array( "feature_blog_rankings", "blog_spellcheck", "feature_blog_comments", "feature_blogposts_comments" ); foreach ($pref_toggles as $toggle) { simple_set_toggle ($toggle); } simple_set_value ("blog_list_order"); simple_set_value ("blog_list_user"); } if (isset($_REQUEST['bloglistconf'])) { check_ticket('admin-inc-blogs'); $pref_toggles = array( "blog_list_title", "blog_list_description", "blog_list_activity", "blog_list_visits", "blog_list_posts", "blog_list_created", "blog_list_lastmodif" ); foreach ($pref_toggles as $toggle) { simple_set_toggle ($toggle); } simple_set_value ("blog_list_user"); } if (isset($_REQUEST["blogcomprefs"])) { check_ticket('admin-inc-blogs'); simple_set_value ("blog_comments_per_page"); simple_set_value ("blog_comments_default_ordering"); } ask_ticket('admin-inc-blogs'); $blogs = $tikilib->list_blogs(0, -1, 'created_desc', ''); $smarty->assign_by_ref('blogs', $blogs["data"]); ?>