Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/cvetdv.ru/bitrix/modules/acrit.cleanmaster/admin/ |
Upload File : |
<?php /** * hipot studio source file * User: <hipot AT ya DOT ru> * Date: 08.06.2017 23:25 * @version pre 1.0 */ require_once $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"; global $APPLICATION, $USER, $USER_FIELD_MANAGER, $isDemo; use Bitrix\Main\Loader, Bitrix\Main\Localization\Loc, Acrit\Cleanmaster\ToolList, Hipot\Admin\ListWrapper; Loc::loadMessages(__FILE__); Loc::loadMessages(realpath(__DIR__ . '/../' . 'options.php')); CJSCore::Init(["ajax", "jquery2"]); $moduleId = "acrit.cleanmaster"; $phpPath = COption::GetOptionString($moduleId, "php_path", "php"); Loader::includeModule('acrit.cleanmaster'); if (class_exists(ToolList::class)) { $toolList = new ToolList(); $adminTableName = "tbl_acrit_cleanmaster_tools"; $oAdminList = new ListWrapper($adminTableName, 'ID', 'ASC'); $oAdminList->postGroupActions('\\Acrit\\Cleanmaster\\ProfilesTable'); /** @var string $by */ /** @var string $order */ $arHeaders = (array)$toolList->getTableHeaders(); $oAdminList->addHeaders($arHeaders); $oAdminList->collectAdminResultAndNav($toolList->getDataToTable(), null, function (&$arFieldsTable, &$arData) use ($phpPath) { $arFieldsTable['NAME'] = 'html'; $arData['NAME'] = '<b>' . $arData['NAME'] . '</b>'; $arFieldsTable['CRON_CMD'] = 'html'; if ((int)$arData['PARAMS_ID'] > 0) { $arData['CRON_CMD'] = '<b><code>'. $phpPath .' -f ' . Bitrix\Main\Application::getDocumentRoot() . '/bitrix/modules/acrit.cleanmaster/cron/profile_run.php ' . $arData['PARAMS_ID'] . '</code></b>'; } $arFieldsTable['PARAMS'] = 'html'; $arData['PARAMS'] = wordwrap($arData['PARAMS'], 75, '<br>', true); }, function (&$row, $arRes, &$lAdmin) { /* @var $row \CAdminListRow */ /* @var $lAdmin \CAdminList */ $arActions = []; $arActions[] = [ "ICON" => "edit", "DEFAULT" => true, "TEXT" => Loc::getMessage("acrit_cleanmaster_MAIN_EDIT"), "ACTION" => $lAdmin->ActionRedirect($arRes['URL']), ]; if ((int)$arRes['PARAMS_ID'] > 0) { $arActions[] = [ "ICON" => "delete", "DEFAULT" => false, "TEXT" => Loc::getMessage("acrit_cleanmaster_MAIN_DELETE"), "ACTION" => $lAdmin->ActionDoGroup($arRes["PARAMS_ID"], "delete", 'lang=ru'), ]; } if (count($arActions)) { $row->AddActions($arActions); } }, function (&$lAdmin) { }); $oAdminList->addAdminContextMenuAndCheckXls(); } $APPLICATION->SetTitle(GetMessage("acrit_cleanmaster_PROFILES_LIST")); require $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php"; if ($isDemo != 1) { echo BeginNote(); echo GetMessage("ACRIT_CLEANMASTER_IS_DEMO_MESSAGE"); echo '<br /><br /><a target="_blank" href="'. GetMessage('ACRIT_CLEANMASTER_IS_DEMO_MESSAGE_BUY_URL') . '">'.GetMessage("ACRIT_CLEANMASTER_IS_DEMO_MESSAGE_BTN").'</a>'; echo EndNote(); } else { echo BeginNote(); echo GetMessage("ACRIT_CLEANMASTER_CRONTAB_PHP_PATH_HTML", ["#PHP_PATH#" => $phpPath]); echo EndNote(); } include __DIR__ . '/../include/update_notifier/update_notifier.php'; if (class_exists(ToolList::class)) { $oAdminList->displayList(); unset($oAdminList); } if ($isDemo == 1) { echo BeginNote(); echo GetMessage("ACRIT_CLEANMASTER_CRONTAB_HELP_HTML"); echo EndNote(); } require $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_admin.php"; ?>