if($dopost=='save')
{
$validate = isset($validate) ? strtolower(trim($validate)) : '';
$svali = GetCkVdValue();
if(!$url || $url=="http://"){
ShowMsg('请填写网址!','-1');
exit();
}
if(!$webname){
ShowMsg('请填写网站名称!','-1');
exit();
}
if(!$logo || !preg_match('/^http:\/\/(.*)\.(gif|png|jpg)$/i',$logo)){
ShowMsg('请输入正确的LOGO连接!','-1');
exit();
}
if(!$msg){
ShowMsg('请填写网站简况!','-1');
exit();
}
if(!$email || !preg_match("/^[0-9a-zA-Z]+@(([0-9a-zA-Z]+)[.])+[a-z]{2,4}$/i",$email)){
ShowMsg('请填写正确的邮件地址!','-1');
exit();
}
if($validate=='' || $validate!=$svali)
{
ShowMsg('验证码不正确!','-1');
exit();
}
|