From 31c0065c72bf69bd3e4b5d038ddce237c52052b4 Mon Sep 17 00:00:00 2001 From: kolaente Date: Fri, 30 Dec 2016 13:24:34 +0100 Subject: [PATCH] Initial Commit --- downloadfonts.php | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100755 downloadfonts.php diff --git a/downloadfonts.php b/downloadfonts.php new file mode 100755 index 0000000..81f87ce --- /dev/null +++ b/downloadfonts.php @@ -0,0 +1,45 @@ +' . $font_file_name . ' was downloaded successfully
' . "\n"; + $font_file = str_replace($font_url, 'fonts_downloaded/' . $font_file_name, $font_file); + } else + { + echo 'An error occured while downloading ' . $font_file_name . '
' . "\n"; + } + } + } + + //Write new Fontfile + if (file_put_contents($fontfile, $font_file)) + { + echo 'Fontfile was changed successfully' . "\n"; + } else + { + echo 'An error occured while changing Fontfile' . "\n"; + } +} +else +{ + echo 'Fontfile not found.'."\n"; +} \ No newline at end of file