Пример #1
0
                $html = JoomlapackLangManager::_('CONFIG_CONT_LINE1') . ' <a href="' . $uri . '">' . JoomlapackLangManager::_('CONFIG_CONT_LINE2') . '</a> ' . JoomlapackLangManager::_('CONFIG_CONT_LINE3');
                echo <<<ENDSNIPPET
\t\t\t\t<script language="Javascript" type="text/javascript">
\t\t\t\twindow.location="{$uri}";
\t\t\t\t</script>
\t\t\t\t<noscript>
\t\t\t\t{$html}
\t\t\t\t</noscript>
ENDSNIPPET;
                //jpackScreens::fMain();
                break;
            case "cancel":
                jpackScreens::fMain();
                break;
            default:
                jpackScreens::fConfig();
                break;
        }
        break;
    case "pack":
        if (!JoomlapackAbstraction::isSAJAX()) {
            echo '<link rel="stylesheet" href="components/' . $option . '/assets/css/jpcss.css" type="text/css" />';
        }
        // Packing screen - that's where the actual backup takes place
        jpackScreens::fPack();
        break;
    case "backupadmin":
        jpackScreens::fBUAdmin();
        if ($task == 'downloadfile') {
            $skipFooter = true;
        }