'', 'pubdate' => '', 'styleid' => '', 'columns' => '', 'permid' => '', 'page_size' => 1, 'landscape' => 0 ]; $editing = false; $cloning = false; if (!is_empty($VARS['id'])) { if ($database->has('publications', ['pubid' => $VARS['id']])) { $editing = true; if ($VARS['clone'] == 1) { $cloning = true; } $pubdata = $database->select( 'publications', [ 'pubname (name)', 'pubdate', 'styleid', 'columns', 'permid', 'page_size', 'landscape', 'pwd' ], [ 'pubid' => $VARS['id'] ])[0]; } else { // item id is invalid, redirect to a page that won't cause an error when pressing Save header('Location: app.php?page=editpub'); die(); } } ?>

htmlspecialchars($pubdata['name']), 'npub' => "" . htmlspecialchars($pubdata['name']) . ""]); ?> "" . htmlspecialchars($pubdata['name']) . ""]); ?>

" required="required" value="" />
" class="form-control" />