{$vo.content|htmlspecialchars_decode|strip_tags|mb_substr=0,20,'utf-8'}
{$vo.createtime|date='M d, Y',###}
{include file='public/head' /}
if (!(/\w[-\w.+]*@([A-Za-z0-9][-A-Za-z0-9]+\.)+[A-Za-z]{2,14}/.test(lemail))) {
alert("E-mail format is incorrect!");
$('#lemail').focus();
return false;
}
!(/^1[3|4|5|7|8][0-9]\d{8,11}$/.test())
function trim(str){ //JS删除左右两端的空格
return str.replace(/(^\s*)|(\s*$)/g, "");
}
$info = $file->move(ROOT_PATH . 'public' . DS . 'uploads');
$data['image']='/uploads/'.$info->getSaveName(); //上传图片
array_splice //重置索引
$arr是目标数组
$offset是要删除的元素的key
1是指删除的长度
array_splice($arr, $offset, 1);
unset //不重置索引
truncate table 你的表名 //清空自增id记录从头开始SQL查询语句
spl_autoload_register
PHPMailerAutoload.php line 45
__autoload() is deprecated, use spl_autoload_register() instead
//tp5邮箱支持7.2及以上修改成spl_autoload_register
order('weigh asc,id asc') //排序优先级
//file_get_contents使用
$ip=$this->request->ip();
//$lang = file_get_contents("http:///".$ip);
$lang = file_get_contents("http://?ip=".$ip);
$lang=json_decode($lang);
if($lang->data->country_id=='CN'){
return '<script>document.location.href=''</script>';
}
//TP5闭包查询
->where(function ($query) use ($carid){
$query->where([
'userlist_id'=>$this->request->cookie('bfuid'),
'zxwaylist'=>3,
'shhedata'=>2,
'bfdata'=>2,
'car_id'=>array('in',$carid)
]);
})
->whereOr(function ($query) use ($carid){
$query->where([
'userlist_id'=>$this->request->cookie('bfuid'),
'zxwaylist'=>3,
'shhedata'=>2,
'bfdata'=>1,
'updatetime'=>array('gt',time()-21600000),
//'car_id'=>array('in',$carid)
]);
})
->paginate($limit);