You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$char = newCharbrowser_Character($charName, $showsoftdelete, $charbrowser_is_admin_page); //the Charbrowser_Character class will sanitize the character name
$charID = $char->char_id();
$name = $char->GetValue('name');
//block view if user level doesnt have permission
if ($char->Permission('keys')) $cb_error->message_die($language['MESSAGE_NOTICE'],$language['MESSAGE_ITEM_NO_VIEW']);
/*********************************************
GATHER RELEVANT PAGE DATA
*********************************************/
//get keys from the character db
$tpl = <<<TPL
SELECT item_id
FROM keyring
WHERE char_id = %s
TPL;
$query = sprintf($tpl, $charID);
$result = $cbsql->query($query);
//error if there's no results that match
if (!$cbsql->rows($result)) $cb_error->message_die($language['KEYS_KEY'],$language['MESSAGE_NO_KEYS']);