if ($type == 'url' AND !preg_match('#^[a-z0-9]+:#si', $rightlink)) { $rightlink = "http://$rightlink"; }