szurubooru/init.php
Marcin Kurczewski 3fd34db37c Worked on #5
2013-10-07 00:49:41 +02:00

11 lines
450 B
PHP

<?php
function download($source, $destination)
{
$content = file_get_contents($source);
if (substr($destination, -1, 1) == '/')
$destination .= basename($source);
file_put_contents($destination, $content);
}
download('http://raw.github.com/aehlke/tag-it/master/css/jquery.tagit.css', './public_html/media/css/jquery.tagit.css');
download('http://raw.github.com/aehlke/tag-it/master/js/tag-it.min.js', './public_html/media/js/jquery.tagit.js');