// Include the cache file. include BASEPATH_SIGNATURE . 'cache/' . $cacheImage; exit; } else { // Remove the current cache file. unlink(BASEPATH_SIGNATURE . 'cache/' . $cacheImage); break; } } // Player Name $MadGD->addText('Name:', $MadGD->textBold)->setPosition(10, $row * $height); $MadGD->addText($character->getName(), $character->isOnline() ? array('color' => '5df82d') : array())->setPosition(); $row++; // Player Sex $MadGD->addText('Sex:', $MadGD->textBold)->setPosition(10, $row * $height); $MadGD->addText($character->getSex() == 1 ? 'male' : 'female')->setPosition(); $row++; // Player Profession $MadGD->addText('Profession:', $MadGD->textBold)->setPosition(10, $row * $height); $MadGD->addText($config['vocations'][$character->getVocation()])->setPosition(); $row++; // Player Level $MadGD->addText('Level:', $MadGD->textBold)->setPosition(10, $row * $height); $MadGD->addText($character->getLevel())->setPosition(); $row++; // Player World $MadGD->addText('World:', $MadGD->textBold)->setPosition(10, $row * $height); $MadGD->addText($config['worlds'][$character->getWorld()])->setPosition(); $row++; // Player Residence $MadGD->addText('Residence:', $MadGD->textBold)->setPosition(10, $row * $height);