<?php
// get variables from query string
parse_str($_SERVER['QUERY_STRING'], $query);
// edit this path pointing to the path where the RO guild emblems were saved
$path = '.';
// includes the EBM2BMP class
include('class.ebm2bmp.php');
// create an instance of EBM2BMP class
$emblem = new EBM2BMP($path);
// convert the EBM file to BMP string
$emblem->convertFile($query['ebm']);
$emblem->replaceColor('FF00FF', 'FFFFFF'); // replaces magenta (FF00FF) to white (FFFFFF)
echo "These are the contents of 'ok.ebm' converted to BMP: <br />";
// display BMP info in an array form
$emblem->showArray();
?>
|