Created
February 17, 2011 09:02
-
-
Save lizheming/831342 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*我添加的自定义函数*/ | |
function CKURL($url){ | |
if($url=="")return "none";else | |
if(strlen($url)>50)return "none";else | |
if($url=="none")return "none";else | |
if(ereg("[a-zA-z]+://[^\s]*",$url))return $url;else | |
return "http://".$url; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment