I would like a small function that would also upload a thumbnail, only the file should be submited to the function, the variables for the thumb should be in the actual function and not its header.
Code: Select all
$explode = explode(".", $profimg_name);
$extension = $explode[1];
$uid = "".$user_properties['uid']."";
copy($profimg, "images/wuggyuploads/pictures/$uid.$extension");
unlink($profimg);
$success = "Changes applied to your account.";
$forward = "index.php";
success_box($success, $forward);