📄 system.mv.php
字号:
<?php
@extract($db->get_one(" SELECT name AS fname FROM {$pre}mv_sort WHERE fid='$fid' "));
@extract($db->get_one(" SELECT $TB[uid] AS uid FROM $TB[table] WHERE $TB[username]='$username' "));
$copyfrom="采集所得";
$yz=1;
list($title,$pic_url)=explode("@@",$title);
$pic_url && $picurl=$pic_url;
if($GetFile&&$pic_url){
$dir_id=$file_dir?$file_dir:$fid;
$picurl="$dir_id/".rands(6).basename($pic_url);
copy($pic_url,PHP168_PATH."$webdb[updir]/$picurl");
if(!is_file(PHP168_PATH."$webdb[updir]/$picurl")){
$picurl=$pic_url;
}
}
echo "$picurl=$videourl";
$title=@preg_replace('/<([^>]*)>/is',"",$title); //把HTML代码过滤掉
$title=filtrate($title);
$videourl=filtrate($videourl);
$content=filtrate($content);
/*判断是否有重复*/
$rs=$db->get_one("SELECT id FROM {$pre}mv_video WHERE videourl='$videourl'");
$title=get_word($title,90);
if($picurl){
$ispic=1;
}
if(!$rs&&$videourl){
$db->query("INSERT INTO `{$pre}mv_video` (`title` , `albumid` , `albumname` , `fid` , `fname` , `posttime` , `list` , `uid` , `username` , `titlecolor` , `fonttype` , `picurl` , `ispic` , `yz` , `keywords`, `ishtml` , `ip` , `content` , `videourl` ,`playtype`) VALUES ('$title','$albumid','$albumname','$fid','$fname','$timestamp','$timestamp','$uid','$username','$titlecolor','$fonttype','$picurl','$ispic','$yz','$keywords','1','$onlineip','$content','$videourl','$playtype')");
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -