add read online
This commit is contained in:
6
php/readFont.php
Normal file
6
php/readFont.php
Normal 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]);
|
||||
}
|
||||
Reference in New Issue
Block a user