组保留的标签 余下为需要删除的标签
unset($oldtag[$key]);
}
}
}
if (!empty($oldtag)) {
$tagids = array();
foreach ($oldtag as $tagid => $tagname) {
$tagids[] = $tagid;
}
well_oldtag_delete($tagids, $tid);
}
$r = well_tag_process($tid, $fid, $create_tag, $tagarr);
return $r;
}
// 删除标签和绑定的主题
function well_oldtag_delete($tagids, $tid)
{
$pagesize = count($tagids);
$arrlist = well_tag_find_by_tagids($tagids, 1, $pagesize);
$delete_tagids = array(); // 删除
$tagids = array();
$n = 0;
foreach ($arrlist as $val) {
++$n;
if (1 == $val['count']) {
// 只有一个主题
$delete_tagids[] = $val['tagid'];
} else {
$tagids[] = $val['tagid'];
}
}
!empty($delete_tagids) and well_tag_delete($delete_tagids);
$arlist = well_tag_thread_find_by_tid($tid, 1, $n);
if ($arlist) {
$ids = array();
foreach ($arlist as $val) $ids[] = $val['id'];
well_tag_thread_delete($ids);
}
!empty($tagids) and well_tag_update($tagids, array('count-' => 1));
}
// 标签数据处理 $arr=新提交的数组 $tagarr=保留的旧标签
function well_tag_process($tid, $fid, $new_tags = array(), $tagarr = array())
{
if (empty($tid)) return '';
// 新标签处理入库
if ($new_tags) {
$threadarr = array();
$tagids = array();
$i = 0;
$size = 5;
$n = count($tagarr);
$n = $n > $size ? $size : $size - $n;
foreach ($new_tags as $name) {
++$i;
$name = trim($name);
$name = stripslashes($name);
$name = strip_tags($name);
$name = str_replace(array(' ', '#', "@", "$", "%", "^", '&', '·', '<', '>', ';', '`', '~', '!', '¥', '……', ';', '?', '?', '-', '—', '_', '=', '+', '.', '{', '}', '|', ':', ':', '、', '/', '。', '[', ']', '【', '】', '‘', ' ', ' ', ' ', ' ', ' '), '', $name);
$name = htmlspecialchars($name, ENT_QUOTES);
if ($name && $i <= $n) {
// 查询标签
$read = well_tag_read_name($name);
if ($read) {
// 存在 count+1
$tagids[] = $read['tagid'];
} else {
// 入库
$arr = array('name' => $name, 'count' => 1);
$tagid = well_tag_create($arr);
FALSE === $tagid and message(-1, lang('create_failed'));
$read = array('tagid' => $tagid, 'name' => $name);
}
$tag_thread = array('tagid' => $read['tagid'], 'tid' => $tid);
$threadarr[] = $tag_thread;
$tagarr[$read['tagid']] = $read['name'];
}
}
!empty($threadarr) and tag_thread_big_insert($threadarr);
!empty($tagids) and well_tag_update($tagids, array('count+' => 1));
}
$json = empty($tagarr) ? '' : xn_json_encode($tagarr);
return $json;
}
?> $v = implode(",", $v);
$temp[] = $v;
}
// 去掉重复的字符串,也就是重复的一维数组
$temp = array_unique($temp);
// 再将拆开的数组重新组装
$output = array();
foreach ($temp as $k => $v) {
if ($stkeep) $k = $starr[$k];
if ($ndformat) {
$temparr = explode(",", $v);
foreach ($temparr as $ndkey => $ndval) $output[$k][$ndarr[$ndkey]] = $ndval;
} else $output[$k] = explode(",", $v);
}
return $output;
}
// 合并二维数组 如重复 值以第一个数组值为准
function array2_merge($array1, $array2, $key = '')
{
if (empty($array1) || empty($array2)) return NULL;
$arr = array();
foreach ($array1 as $k => $v) {
isset($v[$key]) ? $arr[$v[$key]] = array_merge($v, $array2[$k]) : $arr[] = array_merge($v, $array2[$k]);
}
return $arr;
}
/*
* 对二维数组排序 两个数组必须有一个相同的键值
* $array1 需要排序数组
* $array2 按照该数组key排序
* */
function array2_sort_key($array1, $array2, $key = '')
{
if (empty($array1) || empty($array2)) return NULL;
$arr = array();
foreach ($array2 as $k => $v) {
if (isset($v[$key]) && $v[$key] == $array1[$v[$key]][$key]) {
$arr[$v[$key]] = $array1[$v[$key]];
} else {
$arr[] = $v;
}
}
return $arr;
}
?>
了最新最全的网站收录地址搜索引擎网址提交及站长工具编程频道|福州电脑网
了最新最全的网站收录地址搜索引擎网址提交及站长工具
编程之家1100
更新时间:2026-04-03 20:24:33
今天为大家整理了最新最全的网站收录地址搜索引擎网址提交及站长工具,希望对广大站长朋友们有帮助。
网站安全认证(百度出现标识) http://www.anquan/
网站可信认证(百度出现标识) http://open.ceaia/
站长工具(查询网站收录及权重) http://tool.chinaz/
百度网站收录提交 http://www.baidu/search/url_submit.html
百度官网认证提交 http://guanwang.baidu/vcard/officialsite
百度地图免费标注 http://lbc.baidu/
百度地图二次开发宝典 http://developer.baidu/map/jsdemo.htm
百度新闻源收录提交 http://tousu.baidu/news/add/
百度博客(RSS)收录提交 http://utility.baidu/blogsearch/submit.php
百度站长平台(目前未对外开放) http://sitemap.baidu/
百度搜索开放平台 http://open.baidu/
百度不良推广信息投诉 http://tousu.baidu/tuiguang/add
百度恶意、负面信息投诉 http://tousu.baidu/
百度贴吧恶意攻击投诉 http://tieba.baidu/tousu/new/add#
百度关键词搜索风云榜 http://top.baidu/
百度关键词指数查询 http://index.baidu/
百度统计平台(开放精确收录查询) http://tongji.baidu/
360搜索网站收录提交 http://info.so.360/site_submit.html
360搜索网页快照删除申请 http://info.so.360/cache_remove.html
360搜索新闻源收录提交 http://info.so.360/news_submit.html
360站长平台(提交网站地图) http://zhanzhang.so
解决360误报为虚假网站 http://wd.360/appeal/
360开放平台(软件/应用提交) http://open.360/
谷歌网站收录提交 http://www.google/intl/zh-CN_cn/add_url.html
谷歌新闻源收录提交 http://www.google/support/news_pub/bin/request.py?contact_type=suggest_content&hl=cn
谷歌博客(RSS)收录提交 http://blogsearch.google/ping?hl=zh-CN
谷歌网站管理员工具 http://www.google.hk/intl/zh-CN/webmasters/
搜狗网站收录提交 http://www.sogou/feedback/urlfeedback.php
搜狗站长平台 http://zhanzhang.sogou/
搜狗官方网站认证 http://help.sogou/renzheng/
搜狗博客(RSS)收录提交 http://www.sogou/feedback/blogfeedback.php
搜狗投诉举报负面删除 http://www.sogou/complain/complaint.php
搜狗关键词热搜榜 http://top.sogou/
搜狗开放平台(电话,下载等收录) http://open.sogou/
SOSO网站地图提交 http://open.soso/sitemap/
腾讯安全网站认证 http://guanjia.qq/online_server/certify/
QQ安全中心拦截恶意网址误报申诉 http://aq.qq/cn2/safe_school/url_appeal_index
QQ电脑管家网站安全误报提交 http://guanjia.qq/complaint.html
有道网站收录提交 http://tellbot.yodao/report?type=web
有道博客(RSS)收录提交 http://tellbot.yodao/report?type=BLOG
微软bing网站收录提交 http://cn.bing/docs/submit.aspx
微软bing站长工具 http://cn.bing/toolbox/webmasters/
淘宝商品店铺排行榜(淘宝必备) http://top.taobao/index.php
淘宝开放平台 http://open.taobao/
金山网站安全误报提交 http://fish.ijinshan/Kws/appeal
中国互联网信息中心域名举报 http://jubaonic
Dmoz网站登录入口 http://www.dmoz/World/Chinese_Simplified
Alexa网站登录入口 http://www.alexa/help/webmasters
中国互联网协会互联网真实身份认证平台 https://wwwidrz/
中国互联网络信息中心可信网站数据库 http://tns-sswhoisnic/
本文发布于:2024-10-07,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:最新最全搜索引擎地址网址站长
发布评论