123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475 |
- <?php
- if (cfr('WAREHOUSE')) {
- $altcfg = $ubillingConfig->getAlter();
- if ($altcfg['WAREHOUSE_ENABLED']) {
- $greed = new Avarice();
- $avidity = $greed->runtime('WAREHOUSE');
- if (!empty($avidity)) {
- $warehouse = new Warehouse();
- $avidity_m = $avidity['M']['WARLOCK'];
- show_window('', $warehouse->$avidity_m());
- //categories
- if (wf_CheckGet(array($avidity['S']['C']))) {
- if (wf_CheckPost(array($avidity['S']['CC']))) {
- $avidity_m = $avidity['M']['CC'];
- $warehouse->$avidity_m($_POST[$avidity['S']['CC']]);
- rcms_redirect($warehouse::URL_ME . '&' . $warehouse::URL_CATEGORIES);
- }
- if (wf_CheckGet(array($avidity['S']['CD']))) {
- $avidity_m = $avidity['M']['CD'];
- $deletionResult = $warehouse->$avidity_m($_GET[$avidity['S']['CD']]);
- if ($deletionResult) {
- rcms_redirect($warehouse::URL_ME . '&' . $warehouse::URL_CATEGORIES);
- } else {
- show_error(__('You cant do this'));
- }
- }
- if (wf_CheckPost(array($avidity['S']['CE1'], $avidity['S']['CE2']))) {
- $avidity_m = $avidity['M']['CS'];
- $warehouse->$avidity_m();
- rcms_redirect($warehouse::URL_ME . '&' . $warehouse::URL_CATEGORIES);
- }
- $avidity_m = $avidity['M']['CF'];
- show_window(__('Categories'), $warehouse->$avidity_m());
- $avidity_m = $avidity['M']['CL'];
- show_window(__('Available categories'), $warehouse->$avidity_m());
- $avidity_m = $avidity['M']['FALL'];
- $warehouse->$avidity_m();
- }
- //itemtypes
- if (wf_CheckGet(array('itemtypes'))) {
- if (wf_CheckPost(array('newitemtypecetegoryid', 'newitemtypename', 'newitemtypeunit'))) {
- $avidity_m = $avidity['M']['XC'];
- $warehouse->$avidity_m($_POST['newitemtypecetegoryid'], $_POST['newitemtypename'], $_POST['newitemtypeunit'], @$_POST['newitemtypereserve']);
- rcms_redirect($warehouse::URL_ME . '&' . $warehouse::URL_ITEMTYPES);
- }
- if (wf_CheckGet(array($avidity['S']['XD']))) {
- $avidity_m = $avidity['M']['XD'];
- $deletionResult = $warehouse->$avidity_m($_GET[$avidity['S']['XD']]);
- if ($deletionResult) {
- rcms_redirect($warehouse::URL_ME . '&' . $warehouse::URL_ITEMTYPES);
- } else {
- show_error(__('You cant do this'));
- }
- }
- if (wf_CheckPost(array($avidity['S']['XS']))) {
- $avidity_m = $avidity['M']['XS'];
- $warehouse->$avidity_m();
- rcms_redirect($warehouse::URL_ME . '&' . $warehouse::URL_ITEMTYPES);
- }
- if (ubRouting::checkGet('edititemtype')) {
- $editingItemtypeId = ubRouting::get('edititemtype', 'int');
- $itemtypeEditingName = $warehouse->itemtypeGetName($editingItemtypeId);
- show_window(__('Edit') . ' ' . $itemtypeEditingName, $warehouse->itemtypesEditForm($editingItemtypeId));
- show_window('', wf_BackLink($warehouse::URL_ME . '&' . $warehouse::URL_ITEMTYPES));
- } else {
- $avidity_m = $avidity['M']['XCF'];
- show_window(__('Warehouse item types'), $warehouse->$avidity_m());
- $avidity_m = $avidity['M']['XL'];
- show_window(__('Available item types'), $warehouse->$avidity_m());
- $avidity_m = $avidity['M']['FALL'];
- $warehouse->$avidity_m();
- }
- }
- //storages
- if (wf_CheckGet(array('storages'))) {
- if (wf_CheckPost(array('newstorage'))) {
- $warehouse->storagesCreate($_POST['newstorage']);
- rcms_redirect($warehouse::URL_ME . '&' . $warehouse::URL_STORAGES);
- }
- if (wf_CheckGet(array('deletestorage'))) {
- $deletionResult = $warehouse->storagesDelete($_GET['deletestorage']);
- if ($deletionResult) {
- rcms_redirect($warehouse::URL_ME . '&' . $warehouse::URL_STORAGES);
- } else {
- show_error(__('You cant do this'));
- }
- }
- if (wf_CheckPost(array('editstorageid', 'editstoragename'))) {
- $warehouse->storagesSave();
- rcms_redirect($warehouse::URL_ME . '&' . $warehouse::URL_STORAGES);
- }
- show_window(__('Warehouse storage'), $warehouse->storagesCreateForm());
- show_window(__('Available warehouse storages'), $warehouse->storagesRenderList());
- $avidity_m = $avidity['M']['FALL'];
- $warehouse->$avidity_m();
- }
- //contractors
- if (wf_CheckGet(array('contractors'))) {
- if (wf_CheckPost(array('newcontractor'))) {
- $warehouse->contractorCreate($_POST['newcontractor']);
- rcms_redirect($warehouse::URL_ME . '&' . $warehouse::URL_CONTRACTORS);
- }
- if (wf_CheckGet(array('deletecontractor'))) {
- $deletionResult = $warehouse->contractorsDelete($_GET['deletecontractor']);
- if ($deletionResult) {
- rcms_redirect($warehouse::URL_ME . '&' . $warehouse::URL_CONTRACTORS);
- } else {
- show_error(__('You cant do this'));
- }
- }
- if (wf_CheckPost(array('editcontractorid', 'editcontractorname'))) {
- $warehouse->contractorsSave();
- rcms_redirect($warehouse::URL_ME . '&' . $warehouse::URL_CONTRACTORS);
- }
- show_window(__('Contractors'), $warehouse->contractorsCreateForm());
- show_window(__('Available contractors'), $warehouse->contractorsRenderList());
- $avidity_m = $avidity['M']['FALL'];
- $warehouse->$avidity_m();
- }
- if (wf_CheckGet(array('in'))) {
- if (wf_CheckGet(array('ajits'))) {
- die($warehouse->itemtypesCategorySelector('newinitemtypeid', $_GET['ajits']));
- }
- if (wf_CheckGet(array('ajaxinlist'))) {
- $avidity_a = $avidity['A']['CINDERELLA'];
- $warehouse->$avidity_a();
- }
- if (wf_CheckPost(array('newindate', 'newinitemtypeid', 'newincontractorid', 'newinstorageid', 'newincount'))) {
- $warehouse->incomingCreate($_POST['newindate'], $_POST['newinitemtypeid'], $_POST['newincontractorid'], $_POST['newinstorageid'], $_POST['newincount'], @$_POST['newinprice'], @$_POST['newinbarcode'], $_POST['newinnotes']);
- rcms_redirect($warehouse::URL_ME . '&' . $warehouse::URL_IN);
- }
- show_window(__('Create new incoming operation'), $warehouse->incomingCreateForm());
- show_window(__('Available incoming operations'), $warehouse->incomingOperationsList());
- $avidity_m = $avidity['M']['FALL'];
- $warehouse->$avidity_m();
- }
- //outcoming
- if (wf_CheckGet(array('out'))) {
- if (wf_CheckGet(array('ajods'))) {
- $avidity_a = $avidity['A']['CHAINSAW'];
- die($warehouse->$avidity_a($_GET['ajods']));
- }
- if (wf_CheckGet(array('ajaxoutlist'))) {
- $avidity_a = $avidity['A']['ALICE'];
- $warehouse->$avidity_a();
- }
- if (wf_CheckPost(array('newoutdate', 'newoutdesttype', 'newoutdestparam', 'newoutitemtypeid', 'newoutstorageid', 'newoutcount'))) {
- $outCreateResult = $warehouse->outcomingCreate($_POST['newoutdate'], $_POST['newoutdesttype'], $_POST['newoutdestparam'], $_POST['newoutstorageid'], $_POST['newoutitemtypeid'], $_POST['newoutcount'], @$_POST['newoutprice'], @$_POST['newoutnotes'], @$_POST['newoutfromreserve'], @$_POST['newoutnetw']);
- if (!empty($outCreateResult)) {
- show_window(__('Something went wrong'), $outCreateResult);
- } else {
- rcms_redirect($warehouse::URL_ME . '&' . $warehouse::URL_OUT);
- }
- }
- if (!wf_CheckGet(array('storageid'))) {
- show_window(__('Warehouse storages'), $warehouse->outcomingStoragesList());
- if (!ubRouting::checkGet('withnotes')) {
- $notesControl = ' ' . wf_Link($warehouse::URL_ME . '&' . $warehouse::URL_OUT . '&withnotes=true', wf_img_sized('skins/icon_note.gif', __('Show notes'), '12', '12'));
- } else {
- $notesControl = ' ' . wf_Link($warehouse::URL_ME . '&' . $warehouse::URL_OUT, wf_img_sized('skins/icon_note.gif', __('Hide notes'), '12', '12'));
- }
- show_window(__('Available outcoming operations') . $notesControl, $warehouse->outcomingOperationsList());
- $avidity_m = $avidity['M']['FALL'];
- $warehouse->$avidity_m();
- } else {
- if (wf_CheckGet(array('storageid', 'ajaxremains'))) {
- $avidity_a = $avidity['A']['FRIDAY'];
- $warehouse->$avidity_a($_GET['storageid']);
- }
- if (!wf_CheckGet(array('outitemid'))) {
- $storageId = $_GET['storageid'];
- $remainsPrintControls = ' ' . wf_Link($warehouse::URL_ME . '&' . $warehouse::URL_VIEWERS . '&printremainsstorage=' . $storageId, wf_img('skins/icon_print.png', __('Print')));
- show_window(__('The remains in the warehouse storage') . ': ' . $warehouse->storageGetName($storageId) . $remainsPrintControls, $warehouse->outcomingItemsList($storageId));
- $avidity_m = $avidity['M']['FALL'];
- $warehouse->$avidity_m($warehouse::URL_ME . '&' . $warehouse::URL_OUT);
- } else {
- show_window(__('New outcoming operation') . ' ' . $warehouse->itemtypeGetName($_GET['outitemid']), $warehouse->outcomingCreateForm($_GET['storageid'], $_GET['outitemid'], @$_GET['reserveid']));
- $avidity_m = $avidity['M']['FALL'];
- $warehouse->$avidity_m($warehouse::URL_ME . '&' . $warehouse::URL_OUT);
- }
- }
- }
- //reservation
- if (wf_CheckGet(array('reserve'))) {
- if (wf_CheckGet(array('itemtypeid', 'storageid'))) {
- if (wf_CheckPost(array('newreserveitemtypeid', 'newreservestorageid', 'newreserveemployeeid', 'newreservecount'))) {
- $creationResult = $warehouse->reserveCreate($_POST['newreservestorageid'], $_POST['newreserveitemtypeid'], $_POST['newreservecount'], $_POST['newreserveemployeeid']);
- //succefull
- if (!$creationResult) {
- rcms_redirect($warehouse::URL_ME . '&' . $warehouse::URL_RESERVE);
- } else {
- show_window('', $creationResult);
- }
- }
- $reservationTitle = __('Reservation') . ' ' . $warehouse->itemtypeGetName($_GET['itemtypeid']) . ' ' . __('from') . ' ' . $warehouse->storageGetName($_GET['storageid']);
- show_window($reservationTitle, $warehouse->reserveCreateForm($_GET['storageid'], $_GET['itemtypeid']));
- $avidity_m = $avidity['M']['FALL'];
- $warehouse->$avidity_m($warehouse::URL_ME . '&' . $warehouse::URL_REPORTS . '&' . 'totalremains=true');
- } else {
- if (wf_CheckGet(array('deletereserve'))) {
- $warehouse->reserveDelete($_GET['deletereserve']);
- rcms_redirect($warehouse::URL_ME . '&' . $warehouse::URL_RESERVE);
- }
- if (wf_CheckPost(array('editreserveid'))) {
- $warehouse->reserveSave();
- rcms_redirect($warehouse::URL_ME . '&' . $warehouse::URL_RESERVE);
- }
- if (wf_CheckGet(array('reshistajlist'))) {
- $warehouse->reserveHistoryAjaxReply();
- }
- if (wf_CheckPost(array('reshistfilterfrom'))) {
- $warehouse->reserveHistoryPrintFiltered();
- }
- if (wf_CheckGet(array('reserveajlist'))) {
- $resEmpFilter = ubRouting::checkGet('empidfilter') ? ubRouting::get('empidfilter') : '';
- $warehouse->reserveListAjaxReply($resEmpFilter);
- }
- if (wf_CheckPost(array('newmassemployeeid', 'newmassstorageid', 'newmasscreation'))) {
- $massReserveResult = $warehouse->reserveMassCreate();
- //rendering mass reserve results
- show_window('', $massReserveResult);
- }
- $reserveControls = '';
- if (ubRouting::checkGet('empidfilter')) {
- $inventoryUrl = $warehouse::URL_ME . '&' . $warehouse::URL_RESERVE . '&empinventory=' . ubRouting::get('empidfilter');
- $reserveControls .= wf_Link($inventoryUrl, wf_img('skins/icon_user.gif', __('Employee inventory')), false) . ' ';
- } else {
- $reserveControls = wf_Link($warehouse::URL_ME . '&' . $warehouse::URL_RESERVE . '&printable=true', web_icon_print(), false, '', 'target="_BLANK"') . ' ';
- }
- $reserveControls .= wf_Link($warehouse::URL_ME . '&' . $warehouse::URL_RESERVE . '&reshistory=true', wf_img('skins/time_machine.png', __('History')), false) . ' ';
- if (ubRouting::checkGet('empidfilter')) {
- if (cfr('WAREHOUSEOUTRESERVE') or cfr('WAREHOUSEOUT')) {
- $massOutUrl = $warehouse::URL_ME . '&' . $warehouse::URL_RESERVE . '&massoutemployee=' . ubRouting::get('empidfilter');
- $reserveControls .= wf_Link($massOutUrl, wf_img('skins/drain_icon.png', __('Mass outcome')), false) . ' ';
- }
- }
- $reserveControls .= wf_Link($warehouse::URL_ME . '&' . $warehouse::URL_RESERVE . '&mass=true', web_icon_create(__('Mass reservation')), false) . ' ';
- if (!ubRouting::checkGet('mass') and !ubRouting::checkGet('massoutemployee')) {
- if (wf_CheckGet(array('reshistory'))) {
- show_window(__('Reserve') . ': ' . __('History'), $warehouse->reserveRenderHistory());
- } else {
- if (ubRouting::checkGet('empinventory')) {
- $warehouse->reportEmployeeInventrory(ubRouting::get('empinventory'));
- } else {
- show_window(__('Reserved') . ' ' . $reserveControls, $warehouse->reserveRenderList());
- }
- }
- } else {
- if (!ubRouting::checkGet('massoutemployee')) {
- show_window(__('Mass reservation'), $warehouse->reserveMassForm());
- } else {
- //batch outcome creation
- if (ubRouting::checkPost($warehouse::PROUTE_DOMASSRESOUT)) {
- $massResOutResult = $warehouse->runMassReserveOutcome();
- if (empty($massResOutResult)) {
- ubRouting::nav($warehouse::URL_ME . '&' . $warehouse::URL_OUT);
- } else {
- show_window(__('Error'), $massResOutResult);
- }
- } else {
- //rendering some mass reserve outcome UI
- $massOutEmployeeId = ubRouting::get('massoutemployee');
- $massoutEmployeeName = $warehouse->getEmployeeName($massOutEmployeeId);
- $massOutWinLabel = __('Mass outcome') . ' ' . __('from reserved on') . ' ' . $massoutEmployeeName . ' ';
- $massEmpChForm = $warehouse->renderMassOutEmployyeReplaceForm($massOutEmployeeId);
- $massOutWinLabel .= wf_modalAuto(wf_img('skins/icon_replace_employee.png', __('Change employee')), __('Change employee'), $massEmpChForm);
- show_window($massOutWinLabel, $warehouse->renderMassOutForm($massOutEmployeeId));
- }
- }
- }
- $avidity_m = $avidity['M']['FALL'];
- $warehouse->$avidity_m($warehouse::URL_ME);
- }
- }
- //viewers
- if (ubRouting::checkGet('viewers')) {
- if (ubRouting::checkGet('showinid')) {
- //editing subroutine
- if (ubRouting::checkPost('editincomeid')) {
- if (cfr('WAREHOUSEINEDT')) {
- $incEditResult = $warehouse->incomingSaveChanges();
- if (empty($incEditResult)) {
- ubRouting::nav($warehouse::URL_ME . '&' . $warehouse::URL_VIEWERS . '&showinid=' . ubRouting::post('editincomeid'));
- } else {
- show_error($incEditResult);
- }
- } else {
- show_error(__('Access denied'));
- }
- }
- //deletion subroutine
- if (ubRouting::checkGet($warehouse::ROUTE_DELIN)) {
- if (cfr('WAREHOUSEINEDT')) {
- $incDelResult = $warehouse->incomingDelete(ubRouting::get($warehouse::ROUTE_DELIN));
- if (empty($incDelResult)) {
- ubRouting::nav($warehouse::URL_ME . '&' . $warehouse::URL_VIEWERS . '&showinid=' . ubRouting::get($warehouse::ROUTE_DELIN));
- } else {
- show_error($incDelResult);
- }
- } else {
- show_error(__('Access denied'));
- }
- }
- //rendering income op itself
- show_window(__('Incoming operation') . ': ' . ubRouting::get('showinid'), $warehouse->incomingView(ubRouting::get('showinid')));
- $avidity_m = $avidity['M']['FALL'];
- $warehouse->$avidity_m($warehouse::URL_ME . '&' . $warehouse::URL_IN);
- }
- if (ubRouting::checkGet('showoutid')) {
- if (ubRouting::checkGet($warehouse::ROUTE_DELOUT)) {
- $warehouse->outcomingDelete(ubRouting::get($warehouse::ROUTE_DELOUT));
- ubRouting::nav($warehouse::URL_ME . '&' . $warehouse::URL_VIEWERS . '&showoutid=' . ubRouting::get($warehouse::ROUTE_DELOUT));
- }
- show_window(__('Outcoming operation') . ': ' . ubRouting::get('showoutid'), $warehouse->outcomingView(ubRouting::get('showoutid')));
- $avidity_m = $avidity['M']['FALL'];
- $warehouse->$avidity_m($warehouse::URL_ME . '&' . $warehouse::URL_OUT);
- }
- if (wf_CheckGet(array('showremains'))) {
- show_window(__('The remains in the warehouse storage'), $warehouse->reportAllStoragesRemainsView($_GET['showremains']));
- $avidity_m = $avidity['M']['FALL'];
- $warehouse->$avidity_m($warehouse::URL_ME . '&' . $warehouse::URL_REPORTS . '&totalremains=true');
- }
- if (wf_CheckGet(array('qrcode', 'renderid'))) {
- $warehouse->qrCodeDraw($_GET['qrcode'], $_GET['renderid']);
- }
- if (wf_CheckGet(array('printremainsstorage'))) {
- $warehouse->reportStorageRemainsPrintable($_GET['printremainsstorage']);
- }
- if (wf_CheckGet(array('itemhistory'))) {
- $warehouse->renderItemHistory($_GET['itemhistory']);
- }
- }
- //reports
- if (wf_CheckGet(array('reports'))) {
- if (wf_CheckGet(array('ajaxtremains'))) {
- $avidity_a = $avidity['A']['SEENOEVIL'];
- $warehouse->$avidity_a();
- }
- if (wf_CheckGet(array('calendarops'))) {
- if (cfr('WAREHOUSEREPORTS')) {
- show_window(__('Operations in the context of time'), $warehouse->reportCalendarOps());
- } else {
- show_error(__('Access denied'));
- }
- $avidity_m = $avidity['M']['FALL'];
- $warehouse->$avidity_m($warehouse::URL_ME . '&' . $warehouse::URL_REPORTS . '&' . 'totalremains=true');
- }
- if (wf_CheckGet(array('totalremains'))) {
- show_window(__('The remains in all storages'), $warehouse->reportAllStoragesRemains());
- $avidity_m = $avidity['M']['FALL'];
- $warehouse->$avidity_m();
- }
- if (wf_CheckGet(array('dateremains'))) {
- if (cfr('WAREHOUSEREPORTS')) {
- show_window(__('Date remains'), $warehouse->reportDateRemains());
- } else {
- show_error(__('Access denied'));
- }
- $avidity_m = $avidity['M']['FALL'];
- $warehouse->$avidity_m($warehouse::URL_ME . '&' . $warehouse::URL_REPORTS . '&' . 'totalremains=true');
- }
- if (wf_CheckGet(array('storagesremains'))) {
- if (cfr('WAREHOUSEREPORTS')) {
- show_window(__('The remains in the warehouse storage'), $warehouse->reportStoragesRemains());
- $avidity_m = $avidity['M']['FALL'];
- $warehouse->$avidity_m($warehouse::URL_ME . '&' . $warehouse::URL_REPORTS . '&' . 'totalremains=true');
- } else {
- show_error(__('Access denied'));
- }
- }
- if (ubRouting::checkGet('itemtypeoutcomes')) {
- if (cfr('WAREHOUSEREPORTS')) {
- show_window(__('Sales'), $warehouse->renderItemtypeOutcomesHistory());
- $avidity_m = $avidity['M']['FALL'];
- $warehouse->$avidity_m($warehouse::URL_ME . '&' . $warehouse::URL_REPORTS . '&' . 'totalremains=true');
- } else {
- show_error(__('Access denied'));
- }
- }
- if (ubRouting::checkGet('purchases')) {
- if (cfr('WAREHOUSEREPORTS')) {
- show_window(__('Purchases'), $warehouse->renderPurchasesReport());
- $avidity_m = $avidity['M']['FALL'];
- $warehouse->$avidity_m($warehouse::URL_ME . '&' . $warehouse::URL_REPORTS . '&' . 'totalremains=true');
- } else {
- show_error(__('Access denied'));
- }
- }
- if (ubRouting::checkGet('contractorincomes')) {
- if (cfr('WAREHOUSEREPORTS')) {
- show_window(__('Income') . ' ' . __('from') . ' ' . __('Contractor'), $warehouse->renderContractorIncomesReport());
- $avidity_m = $avidity['M']['FALL'];
- $warehouse->$avidity_m($warehouse::URL_ME . '&' . $warehouse::URL_REPORTS . '&' . 'totalremains=true');
- } else {
- show_error(__('Access denied'));
- }
- }
- if (ubRouting::checkGet('returns')) {
- if (cfr('WAREHOUSEREPORTS')) {
- if (ubRouting::checkGet('ajreturnslist')) {
- $warehouse->ajReturnsList();
- }
- show_window(__('Returns'), $warehouse->renderReturnsReport());
- $avidity_m = $avidity['M']['FALL'];
- $warehouse->$avidity_m($warehouse::URL_ME . '&' . $warehouse::URL_REPORTS . '&' . 'totalremains=true');
- } else {
- show_error(__('Access denied'));
- }
- }
- if (ubRouting::checkGet('netwupgrade')) {
- if (cfr('WAREHOUSEREPORTS')) {
- show_window(__('Item types spent on network upgrade'), $warehouse->renderNetwUpgradeReport());
- $avidity_m = $avidity['M']['FALL'];
- $warehouse->$avidity_m($warehouse::URL_ME);
- } else {
- show_error(__('Access denied'));
- }
- }
- }
- $avidity = $avidity['M']['FRONT'];
- $warehouse->$avidity();
- } else {
- show_error(__('No license key available'));
- }
- } else {
- show_error(__('This module is disabled'));
- }
- } else {
- show_error(__('Permission denied'));
- }
|