$extraScripts = ''; if ($address != '1') { $security = $wo->db->getSecurityPermitionsForLocationAndUser($address, $userData['id']); if (!isset($security[$action]) || $security[$action] != true) { //die('Δεν έχετε την απαιτούμενη έγκριση ασφάλειας για να προβείτε σε αυτή την ενέργεια. Θα πρέπει να κάνετε login με άλλο λογαριασμό για να προχωρήσετε.<br/>Αυτό το σφάλμα μπορεί να συμβεί επίσης αν ζητήσετε μια ενέργεια που δεν έχει οριστεί.'); $wo->handleShowStopperError('You are not authorised for this action. Please login with an admin account.'); } else { $addressItems = explode('_', $address); if (count($addressItems) < 2 || $addressItems[0] != '1') { //$wo->reportError('Η διεύθυνση που δώσατε είναι εσφαλμένη. Δεν βρέθηκε το κατάλληλο descriptor.'); $wo->handleShowStopperError('Wrong authorisation location.'); } $table = new WOOOF_dataBaseTable($wo->db, '', $addressItems[1]); if ($action == 'read' && count($addressItems) == 2) { if ($table->getAdminPresentation() == '4') { $table2 = new WOOOF_dataBaseTable($wo->db, $table->getGroupedByTable()); if (!isset($_GET[$table->getLocalGroupColumn()]) || $_GET[$table->getLocalGroupColumn()] == '') { if ($table2->getOrderingColumnForListings() != '') { $orderBy = $table2->getOrderingColumnForListings(); } else { $orderBy = 'id'; } $table2->getResult('', $orderBy, '', 1); $_GET[$table->getLocalGroupColumn()] = $table2->resultRows[0]['id']; } else { $_GET[$table->getLocalGroupColumn()] = $wo->cleanUserInput($_GET[$table->getLocalGroupColumn()]); } foreach ($table2->columns as $key => $value) { $column = $value->getColumnMetaData(); if ($column['appearsInLists']) { $columnsToShow = $column['name'];
$presentationDefault[3] = ''; $presentationDefault[4] = ''; $presentationDefault[5] = ''; $presentationDefault[$table->getAdminPresentation()] = ' selected'; $tableName = $table->getTableName(); $orderingColumnForListings = $table->getOrderingColumnForListings(); $appearsInAdminMenu = $table->getAppearsInAdminMenu(); if ($appearsInAdminMenu == '1') { $appearsInAdminMenu = ' checked'; } else { $appearsInAdminMenu = ''; } $adminItemsPerPage = $table->getAdminItemsPerPage(); $adminListMarkingCondition = $table->getAdminListMarkingCondition(); $adminListMarkedStyle = $table->getAdminListMarkedStyle(); $groupedByTable = $table->getGroupedByTable(); $remoteGroupColumn = $table->getRemoteGroupColumn(); $localGroupColumn = $table->getLocalGroupColumn(); $tablesGroupedByThis = $table->getTablesGroupedByThis(); $hasActivationFlag = $table->getHasActivationFlag(); $columnForMultipleTemplates = $table->getColumnForMultipleTemplates(); $dbEngine = $table->getDbEngine(); if ($hasActivationFlag == '1') { $hasActivationFlag = ' checked'; } else { $hasActivationFlag = ''; } $availableForSearching = $table->getAvailableForSearching(); if ($availableForSearching == '1') { $availableForSearching = ' checked'; } else {