Esempio n. 1
0
function lpanel_main()
{
    global $gbl, $login, $ghtml;
    initProgram();
    init_language();
    print_meta_lan();
    $gbl->__navigmenu = null;
    $gbl->__navig = null;
    $skincolor = $login->getSkinColor();
    // This should be called only in display.php, and not anywhere else. It doesn't matter anyway, since both lpanel.php, AND header.php never allows any modification to be carried out. Also, the display.php automatically deletes the login info, so if you click on any link on the header or the lpanel, you will automatically logged out.
    //check_if_disabled_and_exit();
    $imgbordermain = "{$login->getSkinDir()}/top_line_medium.gif";
    if ($gbl->isOn('show_help')) {
        $background = "{$login->getSkinDir()}/top_line_dark.gif";
        $border = null;
    } else {
        $background = null;
    }
    $ghtml->print_include_jscript('left_panel');
    print "<body topmargin=0 leftmargin=0 style='background-color:#fafafa'>";
    //$ghtml->lpanel_beginning();
    try {
        //$ghtml->xp_panel($login);
        //print_ext_tree($login);
        $ghtml->tab_vheight();
    } catch (exception $e) {
        print "The Resource List could not gathered....{$e->getMessage()}<br> \n";
    }
}
Esempio n. 2
0
function header_main()
{
    global $gbl, $sgbl, $login, $ghtml;
    initProgram();
    init_language();
    print_meta_lan();
    if ($login->isDefaultSkin()) {
        print_header_old_default();
    } else {
        print_header();
    }
}
Esempio n. 3
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();
    print_meta_lan();
    $ghtml->print_real_beginning();
    if (!$login->isDefaultSkin()) {
        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 "<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;
}