szurubooru/init.php

12 lines
450 B
PHP
Raw Normal View History

2013-10-07 00:44:17 +02:00
<?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');