} } } ksort($modulenamearr); // We avoided ORDER BY in Query (vtlib_prefetchModuleActiveInfo)! // END //Security Check done for RSS and Dashboards $allow_rss = 'no'; $allow_dashbd = 'no'; if (isPermitted('Rss', 'DetailView') == 'yes' && vtlib_isModuleActive('Rss')) { $allow_rss = 'yes'; } if (isPermitted('Dashboard', 'DetailView') == 'yes' && vtlib_isModuleActive('Dashboard')) { $allow_dashbd = 'yes'; } $homedetails = $homeObj->getHomePageFrame(); $maxdiv = sizeof($homedetails) - 1; $user_name = $current_user->column_fields['user_name']; $buttoncheck['Calendar'] = isPermitted('Calendar', 'index'); $freetag = new freetag(); $numberofcols = getNumberOfColumns(); $smarty->assign("CHECK", $buttoncheck); if (vtlib_isModuleActive('Calendar')) { $smarty->assign("CALENDAR_ACTIVE", "yes"); } $smarty->assign("IMAGE_PATH", $image_path); $smarty->assign("MODULE", 'Home'); $smarty->assign("CATEGORY", getParenttab('Home')); $smarty->assign("CURRENTUSER", $user_name); $smarty->assign("ALL_TAG", $freetag->get_tag_cloud_html("", $current_user->id)); $smarty->assign("MAXLEN", $maxdiv);