]> jfr.im git - uguu.git/blame - core.php
Update api.php
[uguu.git] / core.php
CommitLineData
ba7d91c9
GJ
1<?php
2function save_file ($file, $name){
3 $rand_string = crc32(microtime(true).mt_rand(1000, 9000));
4 $path='/home/neku/www/files/';
5 $file_data=strip_tags($file);
6 $file_name=$rand_string.'_'.$name;
7 move_uploaded_file($file_data,$path.$file_name);
8 echo 'http://a.uguu.se/'.$file_name;
9}
10?>