public function image_get() { echo img_output(); }
$realmData['serverpop'] = $roster->locale->act['rs']['NOSTATUS']; $realmData['serverpopcolor'] = $roster->config['rs_color_error']; $realmData['servertypecolor'] = $roster->config['rs_color_error']; } else { if ($realmData['serverpop'] == ' ') { $realmData['serverpopcolor'] = $roster->config['rs_color_low']; } else { $realmData['serverpopcolor'] = $roster->config['rs_color_' . strtolower($realmData['serverpop'])]; } $realmData['servertypecolor'] = $roster->config['rs_color_' . strtolower($realmData['servertype'])]; $realmData['serverpop'] = $roster->locale->act['rs'][$realmData['serverpop']]; $realmData['servertype'] = $roster->locale->act['rs'][$realmData['servertype']]; } // Generate image or text? if ($generate_image) { img_output($realmData, $err, $image_path, $font_path); } else { echo text_output($realmData); } return; //==========[ TEXT OUTPUT MODE ]======================================================= function text_output($realmData) { global $roster; $outtext = ' <!-- Begin Realmstatus --> <div style="width:88px;font-family:arial;font-weight:bold;"> <div style="width:88px;height:41px;background-image:url(' . ROSTER_URL . $roster->config['img_url'] . 'realmstatus/' . strtolower($realmData['serverstatus']) . '.png);"></div>'; if ($roster->config['rs_display'] == 'full') { $outtext .= ' <div style="vertical-align:middle;text-align:center;width:88px;height:54px;background-image:url(' . ROSTER_URL . $roster->config['img_url'] . 'realmstatus/' . strtolower($realmData['serverstatus']) . '2.png);">