Пример #1
0
        Request::option('com') == 'close' || Request::option('com') == 'store') {

    require_once($RELATIVE_PATH_EXTERN . "/views/extern_edit_module.inc.php");
    print_footer();

    $template = $GLOBALS['template_factory']->open('layouts/base.php');
    $template->content_for_layout = ob_get_clean();
    echo $template->render();
    page_close();
    die;
}

// Some browsers don't reload the site by clicking the same link twice again.
// So it's better to use different commands to do the same job.
if (Request::option('com') == 'set_default' || Request::option('com') == 'unset_default') {
    if (!ExternConfig::SetStandardConfiguration($range_id, $config_id)) {
        page_close();
        exit;
    }
}

if ($EXTERN_SRI_ENABLE_BY_ROOT && Request::option('com') == 'enable_sri'
        && $perm->have_perm('root')) {
    enable_sri($range_id, Request::quoted('sri_enable'));
}

echo "<table class=\"blank\" border=\"0\" width=\"95%\" ";
echo "align=\"left\" cellspacing=\"0\" cellpadding=\"0\">\n";

// messages
echo "<tr><td class=\"blank\" colspan=\"0\">";