} elseif (isset($_GET['donate']) && $GLOBALS['CONFIG_SHOP_DONATE_ENABLED']) { $shop = new Shop('donate', $GLOBALS['CONFIG_SHOP_DONATE'], Donate::getDonatePoints($acc->account_username), $acc->account_username); $shop_page_vars = $shop->load(); $template_vars['acc_page'] = Template::load('shop_page.html', $shop_page_vars, 0); } elseif (isset($_GET['forum']) && $GLOBALS['CONFIG_SHOP_FORUM_ENABLED']) { $shop = new Shop('forum', $GLOBALS['CONFIG_SHOP_FORUM'], 0, $acc->account_username); $shop_page_vars = $shop->load(); $template_vars['acc_page'] = Template::load('shop_page.html', $shop_page_vars, 0); } else { $template_vars['acc_page'] = Template::load('shop.html', array(), 0); } } elseif (isset($_GET['vote']) && $GLOBALS['CONFIG_VOTE_ENABLED']) { @(require_once sep_path(CMS_DIR . '/libraries/vote.class.inc')); $vote = new Vote($acc->account_username); if ($vote->setBannerId($_GET['banner'])) { $vote->setServerId(); $vote->setBannerName(); $vote->setBannerLink(); $vote->setBannerImage(); $vote->setPointsPerVote(); $vote->vote_points = Vote::getVotePoints($acc->account_username); $acc_page_vars['the_system'] = $vote->showBannerData(); } else { $acc_page_vars['the_system'] = $vote->showBanners(); } $template_vars['acc_page'] = Template::load('vote_system.html', $acc_page_vars, 0); } else { $template_vars['acc_page'] = Template::load('account_welcome.html', array('username' => $acc->account_username), 0); } } elseif (isset($_GET['register'])) { $template_vars['val_user'] = isset($_POST['register_username']) ? $_POST['register_username'] : '';