function aGetHistoryLC($id, $uid = null, $target = null) { require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/pskb.php'; $id = __paramValue('int', $id); $objResponse = new xajaxResponse(); if (!hasPermissions('sbr')) { return $objResponse; } $pskb = new pskb(); $history = $pskb->getHistoryLC($id, $uid, $target); if (!is_array($history)) { if ($history->id > 0) { $history = array($history); } else { $history = false; } } ob_start(); include $_SERVER['DOCUMENT_ROOT'] . '/sbr/admin/tpl.history-lc.php'; $out = ob_get_clean(); if ($target !== null) { $content_name = "user{$target}_history_lc_{$uid}"; } else { $content_name = "history_lc_{$uid}"; } $objResponse->assign("{$content_name}-body", 'innerHTML', $out); $objResponse->script("\$('{$content_name}').removeClass('b-shadow_hide')"); return $objResponse; }