本文整理匯總了PHP中InsertTags函數的典型用法代碼示例。如果您正苦於以下問題:PHP InsertTags函數的具體用法?PHP InsertTags怎麽用?PHP InsertTags使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了InsertTags函數的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getfilenameonly
$dsql->ExecuteNoneQuery("Delete From {$cts['maintable']} where ID='$arcID'");
$dsql->ExecuteNoneQuery("Delete From `#@__full_search` where aid='$arcID'");
$dsql->Close();
ShowMsg("把數據保存到數據庫附加表 `{$cts['addtable']}` 時出錯,請把相關信息提交給DedeCms官方。".$gerr,"javascript:;");
exit();
}
$artUrl = getfilenameonly($arcID, $typeid, $senddate, $title, $ismake, $arcrank, 0);
//寫入全站搜索索引
$datas = array('aid'=>$arcID,'typeid'=>$typeid,'channelid'=>$channelid,'adminid'=>$adminID,'mid'=>0,'att'=>$arcatt,
'title'=>$title,'url'=>$artUrl,'litpic'=>$litpic,'keywords'=>$keywords,'pubdate'=>$pubdate,
'addinfos'=>$description,'uptime'=>$senddate,'arcrank'=>$arcrank);
WriteSearchIndex($dsql,$datas);
unset($datas);
//寫入Tag索引
InsertTags($dsql,$tag,$arcID,0,$typeid,$arcrank);
//生成HTML
//---------------------------------
MakeArt($arcID,true,true);
//---------------------------------
//返回成功信息
//----------------------------------
$msg = "
請選擇你的後續操作:
<a href='../spec_add.php?cid=$typeid'><u>創建新專題</u></a>
<a href='$artUrl' target='_blank'><u>查看專題</u></a>
<a href='../content_s_list.php'><u>已發布專題管理</u></a>
";
示例2: UpTags
function UpTags(&$dsql,$tagname,$aid,$mid=0,$typeid=0)
{
$dsql->ExecuteNoneQuery("Delete From `#@__tag_list` where aid='$aid' limit 100");
InsertTags($dsql,$tagname,$aid,$mid,$typeid);
}
示例3: VALUES
$inQuery = "INSERT INTO `{$addtable}`(aid,typeid,filetype,language,softtype,accredit,\r\n os,softrank,officialUrl,officialDemo,softsize,softlinks,introduce,userip,templet,redirecturl,daccess,needmoney{$inadd_f})\r\n VALUES ('{$arcID}','{$typeid}','{$filetype}','{$language}','{$softtype}','{$accredit}',\r\n '{$os}','{$softrank}','{$officialUrl}','{$officialDemo}','{$softsize}','{$urls}','{$body}','{$userip}','','','0','{$needmoney}'{$inadd_v});";
if (!$dsql->ExecuteNoneQuery($inQuery)) {
$gerr = $dsql->GetError();
$dsql->ExecuteNoneQuery("Delete From `#@__archives` where id='{$arcID}'");
$dsql->ExecuteNoneQuery("Delete From `#@__arctiny` where id='{$arcID}'");
echo $inQuery;
exit;
ShowMsg("把數據保存到數據庫附加表 `{$addtable}` 時出錯,請把相關信息提交給DedeCms官方。" . str_replace('"', '', $gerr), "javascript:;");
exit;
}
//增加積分
$dsql->ExecuteNoneQuery("Update `#@__member` set scores=scores+{$cfg_sendarc_scores} where mid='" . $cfg_ml->M_ID . "' ; ");
//更新統計
countArchives($channelid);
//生成HTML
InsertTags($tags, $arcID);
$artUrl = MakeArt($arcID, true);
if ($artUrl == '') {
$artUrl = $cfg_phpurl . "/view.php?aid={$arcID}";
}
#api{{
if (defined('UC_API') && @(include_once DEDEROOT . '/api/uc.func.php')) {
//推送事件
$feed['icon'] = 'thread';
$feed['title_template'] = '<b>{username} 在網站共享了一軟件</b>';
$feed['title_data'] = array('username' => $cfg_ml->M_UserName);
$feed['body_template'] = '<b>{subject}</b><br>{message}';
$url = !strstr($artUrl, 'http://') ? $cfg_basehost . $artUrl : $artUrl;
$feed['body_data'] = array('subject' => "<a href=\"" . $url . "\">{$title}</a>", 'message' => cn_substr(strip_tags(preg_replace("/\\[.+?\\]/is", '', $description)), 150));
$feed['images'][] = array('url' => $cfg_basehost . '/images/scores.gif', 'link' => $cfg_basehost);
uc_feed_note($cfg_ml->M_LoginID, $feed);
示例4: getfilenameonly
$dsql->ExecuteNoneQuery("Delete From `#@__full_search` where aid='$arcID'");
$dsql->Close();
ShowMsg("把數據保存到數據庫附加表 `{$cts['addtable']}` 時出錯,請把相關信息提交給DedeCms官方。".$gerr,"javascript:;");
exit();
}
$artUrl = getfilenameonly($arcID, $typeid, $senddate, $title, $ismake, $arcrank, $money);
//寫入全站搜索索引
$datas = array('aid'=>$arcID,'typeid'=>$typeid,'channelid'=>$channelid,'adminid'=>$adminID,'mid'=>0,'att'=>$arcatt,
'title'=>$title,'url'=>$artUrl,'litpic'=>$litpic,'keywords'=>$keywords,'pubdate'=>$pubdate,
'addinfos'=>$description,'uptime'=>$senddate,'arcrank'=>0);
WriteSearchIndex($dsql,$datas);
unset($datas);
//寫入Tag索引
InsertTags($dsql,$tag,$arcID,0,$typeid,0);
//生成HTML
//---------------------------------
MakeArt($arcID,true,true);
//---------------------------------
//返回成功信息
//----------------------------------
$msg = "
請選擇你的後續操作:
<a href='../catalog_do.php?channelid=$channelid&cid=$typeid&dopost=addArchives'><u>繼續發布</u></a>
<a target= '_blank' href='../archives_do.php?aid=".$infoid."&dopost=viewArchives&channelid=-2'><u>查看信息</u></a>
<a href='../archives_do.php?aid=".$infoid."&dopost=editArchives&channelid=-2'><u>更改信息</u></a>