Current Path : /var/www/www-root/data/www/monolith-realty.ru/bitrix/modules/security/install/tasks/ |
Current File : /var/www/www-root/data/www/monolith-realty.ru/bitrix/modules/security/install/tasks/uninstall.php |
<? $sql_str = "SELECT T.ID FROM b_task T WHERE T.MODULE_ID='security'"; $r = $DB->Query($sql_str, false, "File: ".__FILE__."<br>Line: ".__LINE__); $arIds = Array(); while($arR = $r->Fetch()) $arIds[] = $arR['ID']; if (count($arIds)>0) { $strTaskIds = implode(",", $arIds); $sql_str = "DELETE FROM b_group_task WHERE TASK_ID IN (".$strTaskIds.")"; $r = $DB->Query($sql_str, false, "File: ".__FILE__."<br>Line: ".__LINE__); $sql_str = "DELETE FROM b_task_operation WHERE TASK_ID IN (".$strTaskIds.")"; $r = $DB->Query($sql_str, false, "File: ".__FILE__."<br>Line: ".__LINE__); $sql_str = "DELETE FROM b_operation WHERE MODULE_ID='security'"; $DB->Query($sql_str, false, "FILE: ".__FILE__."<br> LINE: ".__LINE__); $sql_str = "DELETE FROM b_task WHERE MODULE_ID='security'"; $DB->Query($sql_str, false, "FILE: ".__FILE__."<br> LINE: ".__LINE__); } ?>