add read online

This commit is contained in:
mkwiser
2014-10-31 00:44:36 +08:00
parent ee6f9791c5
commit c41331dd65
8 changed files with 102 additions and 31 deletions

6
php/readFont.php Normal file
View File

@@ -0,0 +1,6 @@
<?php
header( "Content-Type: application/octet-stream");
$file = $_GET['file'];
if ($file && preg_match("#^https?:\/\/.+?\.(ttf|woff|svg|eot)$#i", $file, $matches)) {
echo file_get_contents($matches[0]);
}