} } } // End blog home page if (!$userinfo) { $blogtype = 'latest'; if ($blogtype == 'latest') { $display = array('latest' => '', 'latest_link' => 'none', 'rating' => 'none', 'rating_link' => '', 'blograting' => 'none', 'blograting_link' => ''); } else { if ($blogtype == 'rating') { $display = array('latest' => 'none', 'latest_link' => '', 'rating' => '', 'rating_link' => 'none', 'blograting' => 'none', 'blograting_link' => ''); } else { $display = array('latest' => 'none', 'latest_link' => '', 'rating' => 'none', 'rating_link' => '', 'blograting' => '', 'blograting_link' => 'none'); } } $recentblogbits =& fetch_latest_blogs($blogtype); $recentcommentbits =& fetch_latest_comments('latest'); $show['entryfindmore'] = $recentblogbits; $show['commentfindmore'] = $recentcommentbits; if (!$recentblogbits) { $recentblogbits = fetch_error('blog_no_entries'); } if (!$recentcommentbits) { $recentcommentbits = fetch_error('blog_no_comments'); } ($hook = vBulletinHook::fetch_hook('blog_intro_complete')) ? eval($hook) : false; $sidebar =& build_overview_sidebar($month, $year); } $blogtype = $type = ''; $month = $year = $day = 0; $sql1 = array();
$xml->add_tag('calendar', $calendar); $xml->print_xml(); } // ############################################################################# // fetch latest blogs if ($_POST['do'] == 'loadupdated') { $vbulletin->input->clean_array_gpc('p', array('type' => TYPE_NOHTML, 'which' => TYPE_NOHTML)); $xml = new vB_AJAX_XML_Builder($vbulletin, 'text/xml'); // can't view any blogs if (!($vbulletin->userinfo['permissions']['vbblog_general_permissions'] & $vbulletin->bf_ugp_vbblog_general_permissions['blog_canviewown']) and !($vbulletin->userinfo['permissions']['vbblog_general_permissions'] & $vbulletin->bf_ugp_vbblog_general_permissions['blog_canviewothers'])) { $xml->add_tag('error', 'nopermission'); $xml->print_xml(); exit; } $noresults = 0; if (!($data =& fetch_latest_blogs($vbulletin->GPC['which']))) { if ($vbulletin->GPC['which'] == 'rating' or $vbulletin->GPC['which'] == 'blograting') { $data = fetch_error('blog_no_rated_entries', vB_Template_Runtime::fetchStyleVar('left'), vB_Template_Runtime::fetchStyleVar('imgdir_rating')); } else { $data = fetch_error('blog_no_entries'); } $data = htmlspecialchars_uni($data); $noresults = 1; } $xml->add_tag('updated', '', array('which' => $vbulletin->GPC['which'], 'type' => $vbulletin->GPC['type'], 'data' => $data, 'noresults' => $noresults)); $xml->print_xml(); } if ($_REQUEST['do'] == 'moveblock') { $vbulletin->input->clean_array_gpc('r', array('block' => TYPE_ARRAY_UINT)); if (!($vbulletin->userinfo['permissions']['vbblog_general_permissions'] & $vbulletin->bf_ugp_vbblog_general_permissions['blog_canviewown'])) { exit;