top.window.location = '../../index.php'"; exit; } require_once __DIR__ . "/" . "../../includes/include_basics_only.php"; require_once __DIR__ . "/" . "../../includes/classes/ConnectPDO.php"; use includes\classes\ConnectPDO; $conn = ConnectPDO::getInstance(); $post = $_POST; $html = ""; $exception = ""; $data = []; $data['success'] = true; $data['message'] = ""; $data['profile_id'] = (isset($post['profile_id']) ? noHtml($post['profile_id']) : ""); $data['asset_type'] = (isset($post['asset_type']) ? noHtml($post['asset_type']) : ""); $data['random'] = (isset($post['random']) ? noHtml($post['random']) : ""); if (empty($data['asset_type'])) { $data['success'] = false; $data['message'] = "Asset type is required"; return; } // if ($data['profile_id'] == "0") { // echo message('info','Ooops!', TRANS('MSG_DUE_PROFILE_NOT_POSSIBLE_TO_ADD_SPECS'), '', ''); // return; // } // $fields = getAssetsProfiles($conn, $data['profile_id']); // if (empty($fields)) { // echo message('info','Ooops!', TRANS('MSG_DUE_PROFILE_NOT_POSSIBLE_TO_ADD_SPECS'), '', ''); // return; // } $possibleChilds = getAssetsTypesPossibleChilds($conn, $data['asset_type']); $afterDomClass = "after-dom-ready"; $randomClass = $data['random']; ?>