libdir.'/blocklib.php'); require_once('pagelib.php'); require_login(); $mymoodlestr = get_string('mymoodle','my'); if (isguest()) { $wwwroot = $CFG->wwwroot.'/login/index.php'; if (!empty($CFG->loginhttps)) { $wwwroot = str_replace('http','https', $wwwroot); } print_header($mymoodlestr); notice_yesno(get_string('noguest', 'my').'

'.get_string('liketologin'), $wwwroot, $CFG->wwwroot); print_footer(); die(); } $edit = optional_param('edit', ''); $blockaction = optional_param('blockaction'); $PAGE = page_create_instance($USER->id); $pageblocks = blocks_setup($PAGE,BLOCKS_PINNED_BOTH); if (!empty($edit) && $PAGE->user_allowed_editing()) { if ($edit == 'on') { $USER->editing = true; } else if ($edit == 'off') { $USER->editing = false; } } $PAGE->print_header($mymoodlestr); echo ''; echo ''; $blocks_preferred_width = bounded_number(180, blocks_preferred_width($pageblocks[BLOCK_POS_LEFT]), 210); if(blocks_have_content($pageblocks, BLOCK_POS_LEFT) || $PAGE->user_is_editing()) { echo ''; } echo ''; $blocks_preferred_width = bounded_number(180, blocks_preferred_width($pageblocks[BLOCK_POS_RIGHT]), 210); if(blocks_have_content($pageblocks, BLOCK_POS_RIGHT) || $PAGE->user_is_editing()) { echo ''; } /// Finish the page echo '
'; blocks_print_group($PAGE, $pageblocks, BLOCK_POS_LEFT); echo ''; include('overview.php'); echo ''; blocks_print_group($PAGE, $pageblocks, BLOCK_POS_RIGHT); echo '
'; print_footer(); ?>