123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- if (cfr('ARCHIVE')) {
- $archive = new Archive();
- //neura search ajax background
- if ($ubillingConfig->getAlterParam('NEURAL_ENABLED')) {
- if (ubRouting::checkGet(NeuralObjSearch::ROUTE_CHAN_DETECT)) {
- $acl = new ACL();
- if ($acl->isMyChannel(ubRouting::get(NeuralObjSearch::ROUTE_CHAN_DETECT))) {
- $neuraObj = new NeuralObjSearch();
- $neuraObj->renderObjectDetector(ubRouting::get(NeuralObjSearch::ROUTE_CHAN_DETECT), ubRouting::get(NeuralObjSearch::ROUTE_DATE));
- } else {
- $messages = new UbillingMessageHelper();
- die($messages->getStyledMessage(__('Access denied'), 'error') . wf_delimiter());
- }
- }
- }
- //archive lookup by channel ID
- if (ubRouting::checkGet($archive::ROUTE_VIEW)) {
- $channelId = ubRouting::get($archive::ROUTE_VIEW, 'gigasafe');
- $acl = new ACL();
- if ($acl->isMyChannel($channelId)) {
- $channelName = $archive->getCameraComment($channelId);
- show_window(__('View') . ': ' . $channelName, $archive->renderLookup($channelId));
- } else {
- show_error(__('Access denied'));
- }
- }
- //cameras list
- if (!ubRouting::checkGet($archive::ROUTE_VIEW)) {
- show_window(__('Video from cameras'), $archive->renderCamerasList());
- wr_Stats();
- }
- } else {
- show_error(__('Access denied'));
- }
|