diff --git a/data/build_css.php b/data/build_css.php index 6b06a1e..9aaeba8 100644 --- a/data/build_css.php +++ b/data/build_css.php @@ -4,6 +4,8 @@ include('catalog.php'); include('css_catalog.php'); + $newFilePath = '../emoji_new.css'; + ob_start(); echo ".emoji { background: url(\"emoji.png\") top left no-repeat; width: 20px; height: 20px; display: -moz-inline-stack; display: inline-block; vertical-align: top; zoom: 1; *display: inline; }\n"; foreach ($catalog as $item){ @@ -27,4 +29,9 @@ echo ".emoji$unilow { background-position: -{$pos[0]}px -{$pos[1]}px; }\n"; } + + $newFileData = ob_get_contents(); + ob_end_flush(); + file_put_contents($newFilePath,$newFileData); + echo "Now ,u have a new file for emoji.css ,its named emoji_new.css\n"; ?> diff --git a/data/build_map.php b/data/build_map.php index 4a6afee..098219e 100644 --- a/data/build_map.php +++ b/data/build_map.php @@ -34,6 +34,9 @@ # we could just use var_dump, but we get 'better' output this way # + $newFilePath = '../emoji_new.php'; + + ob_start(); echo "<"."?php\n"; echo "\n"; @@ -79,7 +82,10 @@ echo file_get_contents('core_functions.php'); - + $emoji_new_data = ob_get_contents(); + ob_end_clean(); + file_put_contents($newFilePath,$emoji_new_data); + echo "Now, u have a new file for emoji.php,its named emoji_new.php\n"; ##########################################################################################