CanDoOperation('edit_php')) $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED")); $res=false; if (!empty($_REQUEST['Reindex']) && check_bitrix_sessid()) { require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_js.php"); if (empty($_REQUEST['Next']) || !CheckSerializedData($_REQUEST['NS'] ?? '')) { $NS = array( "max_execution_time" => $_REQUEST['max_execution_time'] ?? '', "stepped" => $_REQUEST['stepped'] ?? '', "max_file_size" => $_REQUEST['max_file_size'] ?? '', ); if (!empty($_REQUEST['site_id'])) { $NS["SITE_ID"] = $site_id; } } else $NS = unserialize($_REQUEST['NS'] ?? '', ['allowed_classes' => false]); $res = \Bitrix\Main\UrlRewriter::reindexAll(($NS["stepped"]=="Y"? $NS["max_execution_time"]:0), $NS); if(is_array($res)): //$res["STAT"]=$NS["STAT"]; //$res["STAT"][]=$res["CNT"]-$NS["CNT"]; //$perfomance = "
",implode(", ", $res["STAT"]); CAdminMessage::ShowMessage(array( "MESSAGE"=>GetMessage("url_rewrite_mess_title"), "DETAILS"=>GetMessage("MURL_REINDEX_TOTAL")." ".$res["CNT"]."", "HTML"=>true, "TYPE"=>"OK", )); ?>