function do_display_init() { global $gbl, $sgbl, $login, $ghtml; $skindir = $login->getSkinDir(); $col = $login->getSkinColor(); check_if_disabled_and_exit(); if (!ifSplashScreen()) { ob_start(); } if ($gbl->getSessionV('__refresh_lpanel') == 'true') { print "<script> top.leftframe.window.location.reload() ; </script>"; print "<script> top.topframe.window.location.reload() ; </script>"; $gbl->unsetSessionV('__refresh_lpanel'); } if ($ghtml->frm_refresh_lpanel === 'true') { unset($ghtml->__http_vars['frm_refresh_lpanel']); print "<script> top.leftframe.window.location.reload(); </script>"; print "<script> top.topframe.window.location.reload() ; </script>"; } createPrincipleObject(); initLanguageCharset(); $ghtml->print_real_beginning(); if (!$login->isDefaultSkin()) { print_head_image(); } // OA: Why only kloxo? Because of this there is no Logout text link on // simple skin for end users (with thin header) // anyway, I like the door icon better, so I leave this alone and enablo the door if ($sgbl->isKloxo() && $gbl->c_session->ssl_param) { $url = $gbl->c_session->ssl_param['backurl']; $parent = $gbl->c_session->ssl_param['parent_clname']; print "<table cellpadding=0 height=26 cellspacing=0 background={$skindir}/expand.gif> <tr> <td nowrap> <a href={$url}> Back to HyperVM ({$parent}) </a> </td> <td width=10> | </td> <td > Kloxo </td> <td width=10> | </td><td ><a href=/display.php?frm_action=show>Home</a> </td> <td width=10> | </td> <td > <a href=/display.php?frm_action=list&frm_o_cname=all_domain>All </a> </td> <td width=10> | </td><td > <a href=/display.php?frm_action=list&frm_o_cname=client>Clients</a></td><td width=100%></td> <td > <a href=/htmllib/phplib/logout.php> Logout </a> </td> </tr> </table> "; } if ($gbl->c_session->consuming_parent) { print "<table cellpadding=0 cellspacing=0 bgcolor = {$col} > <tr> <td nowrap> Consumed Login </td> <td > <a href=/display.php?frm_consumedlogin=true&frm_action=desktop>Desktop </a> </td> <td width=100%> </td> <td > <a href=/htmllib/phplib/logout.php?frm_consumedlogin=true> Logout </a> </td> </tr> </table> "; } $ghtml->print_splash(); if (ifSplashScreen()) { flush(); ob_start(); } $ghtml->print_start(); $gbl->__this_redirect = null; }
function print_redirect($redirect_url, $windowurl = null) { global $gbl, $sgbl; $current_url = $this->get_get_from_current_post(null); if (ifSplashScreen() || $windowurl) { dprint("<br> <br> Redirect called with splash <br> "); dprint(" <b> <br> <br> Click <a href=\"{$redirect_url}\"> <b> xhere to go Continue. </a> </b> \n"); if ($sgbl->dbg < 0 || isset($gbl->__no_debug_redirect) && $gbl->__no_debug_redirect) { ?> <head> <meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT"> <META HTTP-EQUIV="Refresh" CONTENT="0;URL=<?php echo $redirect_url; ?> "> <?php if ($windowurl) { ?> <script> window.open('<?php echo $windowurl; ?> '); </script> </head> <?php } ?> <?php } else { if ($windowurl) { ?> <script> window.open('<?php echo $windowurl; ?> '); </script> <?php } } exit(0); } if ($sgbl->dbg > 0 && !(isset($gbl->__no_debug_redirect) && $gbl->__no_debug_redirect)) { $cont = ob_get_contents(); if ($gbl->__fvar_dont_redirect || csa($cont, "Notice") || csa($cont, "Warning") || csa($cont, "Parse error")) { print_time('full', "Page Generation Took: "); print " <b> <br> <br> Looks Like there are some errors... Or Been asked not to redirect Not redirecting... <br> Click <a href=\"{$redirect_url}\"> xHere to go there Anyways . </b> \n"; } else { print_time('full', "Page Generation Took: "); print " <b> <br> <br> Looks Like there are some errors... Or Been asked not to redirect Not redirecting... <br> Click <a href=\"{$redirect_url}\"> xHere to go there Anyways . </b> \n"; } } else { header("Location:{$redirect_url}"); ?> <head> <meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT"> <META HTTP-EQUIV="Refresh" CONTENT="0;URL=<?php echo $redirect_url; ?> "> </head> <?php } exit(0); }
function do_display_init() { global $gbl, $sgbl, $login, $ghtml; $skindir = $login->getSkinDir(); $col = $login->getSkinColor(); check_if_disabled_and_exit(); if (!ifSplashScreen()) { ob_start(); } createPrincipleObject(); print_open_head_tag(); print_meta_tags(); print_meta_css(); if ($gbl->getSessionV('__refresh_lpanel') == 'true') { print "<script>top.leftframe.window.location.reload();</script>\n"; print "<script>top.topframe.window.location.reload();</script>\n"; $gbl->unsetSessionV('__refresh_lpanel'); } if ($ghtml->frm_refresh_lpanel === 'true') { unset($ghtml->__http_vars['frm_refresh_lpanel']); print "<script>top.leftframe.window.location.reload();</script>\n"; print "<script>top.topframe.window.location.reload();</script>\n"; } print_close_head_tag(); print "<!-- Start MainFrame Body -->\n"; $ghtml->print_body(); if (!$login->isDefaultSkin()) { // Show header picture print "<!-- Display Theme image -->\n"; print_head_image(); } if ($sgbl->isKloxo() && $gbl->c_session->ssl_param) { $url = $gbl->c_session->ssl_param['backurl']; $parent = $gbl->c_session->ssl_param['parent_clname']; print "<!-- Load HyperVM to Kloxo session table -->\n"; print "<table cellpadding=\"0\" height=\"26\" cellspacing=\"0\" background=\"{$skindir}/expand.gif\">\n"; print "<tr>\n"; print "<td nowrap><a href=\"{$url}\">Back to HyperVM ({$parent})</a></td>\n"; print "<td width=\"10\"> | </td>\n"; print "<td>Kloxo</td>\n"; print "<td width=\"10\"> | </td>\n"; print "<td><a href=\"/display.php?frm_action=show\">Home</a></td>\n"; print "<td width=\"10\"> | </td>\n"; print "<td><a href=\"/display.php?frm_action=list&frm_o_cname=all_domain\">All</a></td>\n"; print "<td width=\"10\"> | </td>\n"; print "<td><a href=\"/display.php?frm_action=list&frm_o_cname=client\">Clients</a></td>\n"; print "<td width=\"100%\"> </td>\n"; print "<td><a href=\"/htmllib/phplib/logout.php\">Logout</a></td>\n"; print "</tr>\n"; print "</table>\n"; } if ($gbl->c_session->consuming_parent) { print "<!-- Load from Kloxo to HyperVM session (Consumed) -->\n"; print "<table cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"{$col}\">\n"; print "<tr>\n"; print "<td nowrap>Consumed Login</td>\n"; print "<td><a href=\"/display.php?frm_consumedlogin=true&frm_action=desktop\">Desktop</a></td>\n"; print "<td width=\"100%\"> </td>\n"; print "<td><a href=\"/htmllib/phplib/logout.php?frm_consumedlogin=true\">Logout</a></td>\n"; print "</tr>\n"; print "</table>\n"; } print "<!-- Load Splash -->\n"; $ghtml->print_splash(); if (ifSplashScreen()) { flush(); ob_start(); } print "<!-- Print Start -->\n"; $ghtml->print_start(); $gbl->__this_redirect = null; }