<?php if ($display_mode == 'iframe') { ?> <div id="iframe"> <?php } else { ?> <?php if (_DEBUG_MODE) { module_debug::print_heading(); } ?> <?php if (module_security::getcred()) { ?> <header class="navbar navbar-inverse navbar-top visible-xs" role="banner" id="responsive_mini_header"> <div class="container" id="menu_copy_holder"> <div class="navbar-header"> <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#responsive_mini_header > div > nav"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span>
function redirect_browser($url, $hard = false) { hook_finish(); $original_url = $url; if ($hard) { header('HTTP/1.1 301 Moved Permanently'); } if (!preg_match('/^https?:/', $url) && $url[0] != "/" && $url[0] != "?") { $url = _BASE_HREF . $url; } if (false && _DEBUG_MODE) { module_debug::$show_debug = true; module_debug::log(array('title' => 'Redirecting', 'file' => 'includes/functions.php', 'data' => "to '{$original_url}'" . ($url != $original_url ? " (converted to: {$url})" : '') . "<br/><br/>Please <a href='{$url}'>Click Here</a> to perform the redirect.")); module_debug::print_heading(); } else { /*$url .= (strpos($url,'?')===false ? '?' : '&') . "redirect".time(); ?> <meta http-equiv="refresh" content="0;url=<?php echo htmlspecialchars($url);?>"> <script type="text/javascript">window.location.href='<?php echo $url;?>';</script> Redirecting... <?php*/ header("Location: " . $url); } exit; }