?> /register.php" rel="nohtml"><?php echo T_('Register'); ?> </a> <?php } ?> </span> <?php } ?> <span id="updateInfo"> <?php if (AmpConfig::get('autoupdate') && Access::check('interface', '100')) { if (AutoUpdate::is_update_available()) { AutoUpdate::show_new_version(); } } $count_temp_playlist = count($GLOBALS['user']->playlist->get_items()); ?> </span> <?php UI::show_box_bottom(); ?> </div> <!-- End headerbox --> </div><!-- End header --> <?php if (AmpConfig::get('topmenu')) { ?>
Session::create_remember_cookie($username); } } // Update data from this auth if ours are empty if (empty($user->fullname) && !empty($auth['name'])) { $user->update_fullname($auth['name']); } if (empty($user->email) && !empty($auth['email'])) { $user->update_email($auth['email']); } if (empty($user->website) && !empty($auth['website'])) { $user->update_website($auth['website']); } $GLOBALS['user'] = $user; // If an admin, check for update if (AmpConfig::get('autoupdate') && Access::check('interface', '100')) { AutoUpdate::is_update_available(true); } /* Make sure they are actually trying to get to this site and don't try * to redirect them back into an admin section */ $web_path = AmpConfig::get('web_path'); if (substr($_POST['referrer'], 0, strlen($web_path)) == $web_path && strpos($_POST['referrer'], 'install.php') === false && strpos($_POST['referrer'], 'login.php') === false && strpos($_POST['referrer'], 'logout.php') === false && strpos($_POST['referrer'], 'update.php') === false && strpos($_POST['referrer'], 'activate.php') === false && strpos($_POST['referrer'], 'admin') === false) { header('Location: ' . $_POST['referrer']); exit; } // if we've got a referrer header('Location: ' . AmpConfig::get('web_path') . '/index.php'); exit; } // auth success