uawdijnntqw1x1x1
IP : 3.15.34.228
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
yar.axolotls.ru
/
.
/
bitrix
/
components
/
bitrix
/
recyclebin.list
/
ajax.php
/
/
<? if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die(); define('STOP_STATISTICS', true); define('NO_AGENT_CHECK', true); define('DisableEventsCheck', true); if (isset($_POST['SITE_ID']) && (string)$_POST['SITE_ID'] != '') { $siteId = mb_substr(trim((string)$_POST['SITE_ID']), 0, 2); if (preg_match('#^[a-zA-Z0-9]{2}$#', $siteId)) { define('SITE_ID', $siteId); } } use Bitrix\Main\Error; use Bitrix\Main\Loader; use Bitrix\Recyclebin\Internals\Models\RecyclebinTable; use Bitrix\Recyclebin\Recyclebin; class RecyclebinListAjaxController extends \Bitrix\Main\Engine\Controller { public function restoreAction($recyclebinId, $isAll = false) { return self::doAction('restore', $recyclebinId, $isAll); } public function removeAction($recyclebinId, $isAll = false) { CModule::IncludeModule('recyclebin'); if(!\Bitrix\Recyclebin\Internals\User::isSuper() && !\Bitrix\Recyclebin\Internals\User::isAdmin() ) return false; return self::doAction('remove', $recyclebinId, $isAll); } private function doAction($action, $recyclebinId, $isAll = false) { $isAll = (bool)$isAll; try { Loader::includeModule('recyclebin'); if (is_array($recyclebinId)) { if(!$isAll || !\Bitrix\Recyclebin\Internals\User::isSuper()) { $ids = $recyclebinId; } else { $list = RecyclebinTable::getList(['select'=>['ID']])->fetchAll(); if($list) { $ids = array_column($list, 'ID'); } } if($ids) { foreach ($ids as $id) { $result[] = Recyclebin::$action((int)$id); } } } else { $result = Recyclebin::$action((int)$recyclebinId); } return $result; } catch (\Exception $e) { $this->errorCollection[] = new Error($e->getMessage(), $e->getCode()); return null; } } }
/var/www/axolotl/data/www/yar.axolotls.ru/./bitrix/components/bitrix/recyclebin.list/ajax.php