'' ), $atts)); if (substr($upl, 0, strlen('http://www.amithings.com/')) == 'http://www.amithings.com/') { // Nothing to do } else if (substr($upl, 0, strlen('www.amithings.com/')) == 'www.amithings.com/') { $upl = 'http://' . $upl; } else { if (substr($upl, 0, 1) != '/') { $upl = '/' . $upl; } $upl = 'http://www.amithings.com' . $upl; } if (substr($upl, strlen($upl) - 1) != '/') { $upl .= '/'; } $uid = uniqid(); $html = ''; $html .= '