Exemplo n.º 1
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();
    }
    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>&nbsp;|&nbsp;</td> <td > Kloxo </td> <td width=10>&nbsp;|&nbsp;</td><td ><a href=/display.php?frm_action=show>Home</a> </td> <td width=10>&nbsp;|&nbsp;</td>  <td > <a href=/display.php?frm_action=list&frm_o_cname=all_domain>All </a> </td> <td width=10>&nbsp;|&nbsp;</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;
}
Exemplo n.º 2
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\">&nbsp;|&nbsp;</td>\n";
        print "<td>Kloxo</td>\n";
        print "<td width=\"10\">&nbsp;|&nbsp;</td>\n";
        print "<td><a href=\"/display.php?frm_action=show\">Home</a></td>\n";
        print "<td width=\"10\">&nbsp;|&nbsp;</td>\n";
        print "<td><a href=\"/display.php?frm_action=list&frm_o_cname=all_domain\">All</a></td>\n";
        print "<td width=\"10\">&nbsp;|&nbsp;</td>\n";
        print "<td><a href=\"/display.php?frm_action=list&frm_o_cname=client\">Clients</a></td>\n";
        print "<td width=\"100%\">&nbsp;</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%\">&nbsp;</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;
}