isAdmin()) die('Access Denied'); $info=$qs = array(); if($api && $_REQUEST['a']!='add'){ $title=__('Update API Key'); $action='update'; $submit_text=__('Save Changes'); $info=$api->getHashtable(); $qs += array('id' => $api->getId()); }else { $title=__('Add New API Key'); $action='add'; $submit_text=__('Add Key'); $info['isactive']=isset($info['isactive'])?$info['isactive']:1; $qs += array('a' => $_REQUEST['a']); } $info=Format::htmlchars(($errors && $_POST)?$_POST:$info, true); ?>