Bitrix Site Manager

CMain::IncludeAdminFile

CMain::IncludeAdminFile(
 string title,
 string abs_path
)

The method IncludeAdminFile includes the specified file with the administrative prologue and epilogue attached.

Parameters

ParameterDescription
title Page title.
abs_path Absolute path to the included file.

See Also

Example



<?
function DoInstall()
{
    global $DB, $APPLICATION, $step;
    $FORM_RIGHT = $APPLICATION->GetGroupRight("form");
    if ($FORM_RIGHT=="W")
    {
        $step = IntVal($step);
        if($step<2)
            $APPLICATION->IncludeAdminFile(GetMessage("FORM_INSTALL_TITLE"),
            $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/form/install/step1.php");
        elseif($step==2)
            $APPLICATION->IncludeAdminFile(GetMessage("FORM_INSTALL_TITLE"),
            $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/form/install/step2.php");
    }
}
?>