Ejemplo n.º 1
0
                        $affectedRows++;
                    }
                    CSitePath::Update($arPaths[$arSite["LID"]][$type]["ID"], array("PATH" => ${"SITE_PATH_" . $arSite["LID"] . "_" . $type}, "TYPE" => $type));
                } else {
                    CSitePath::Delete($arPaths[$arSite["LID"]][$type]["ID"]);
                    $affectedRows++;
                }
            } else {
                CSitePath::Add(array("SITE_ID" => $arSite["LID"], "PATH" => ${"SITE_PATH_" . $arSite["LID"] . "_" . $type}, "TYPE" => $type));
                $affectedRows++;
            }
        }
        unset($arPaths[$arSite["LID"]]);
    }
    if ($affectedRows && IsModuleInstalled('search') && CModule::IncludeModule("search")) {
        CSearch::ReindexModule("learning");
    }
    foreach ($arPaths as $key) {
        foreach ($key as $val) {
            CSitePath::Delete($val);
        }
    }
}
?>

<form method="post" action="<?php 
echo $APPLICATION->GetCurPage();
?>
?mid=<?php 
echo htmlspecialcharsbx($mid);
?>