本文整理匯總了PHP中MakeArt函數的典型用法代碼示例。如果您正苦於以下問題:PHP MakeArt函數的具體用法?PHP MakeArt怎麽用?PHP MakeArt使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了MakeArt函數的14個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: trim
//更新主表
$dsql->ExecuteNoneQuery($query);
//更新微表
$dsql->ExecuteNoneQuery(" UPDATE `#@__arctiny` SET typeid='{$typeid}',arcrank='{$arcrank}' WHERE id='{$aid}' ");
//更新附加表
if ($typeid != $oldtypeid) {
$addtable = trim($addtable);
if (empty($addtable)) {
$addtable = '#@__addonarticle';
} else {
$addtable = preg_replace("#[^a-z0-9__#@-]#i", "", $addtable);
}
$dsql->ExecuteNoneQuery(" UPDATE `{$addtable}` SET typeid='{$typeid}' WHERE aid='{$aid}' ");
}
//更新HTML
$artUrl = MakeArt($aid, TRUE, TRUE);
$backurl = !empty($_COOKIE['ENV_GOBACK_URL']) ? $_COOKIE['ENV_GOBACK_URL'] : '-1';
ShowMsg('成功更新一篇文檔的基本信息!', $backurl);
exit;
} else {
if ($dopost == "makekw") {
include_once DEDEINC . '/splitword.class.php';
CheckPurview('a_Commend,sys_ArcBatch');
if (!empty($aid) && empty($qstr)) {
$qstr = $aid;
}
if ($qstr == '') {
ShowMsg("參數無效!", $ENV_GOBACK_URL);
exit;
}
$sp = new SplitWord($cfg_soft_lang, $cfg_soft_lang);
示例2: UpIndexKey
}
}
//生成HTML
UpIndexKey($id, $arcrank, $typeid, $sortrank, $tags);
if ($cfg_remote_site == 'Y' && $isremote == "1") {
if ($serviterm != "") {
list($servurl, $servuser, $servpwd) = explode(',', $serviterm);
$config = array('hostname' => $servurl, 'username' => $servuser, 'password' => $servpwd, 'debug' => 'TRUE');
} else {
$config = array();
}
if (!$ftp->connect($config)) {
exit('Error:None FTP Connection!');
}
}
$artUrl = MakeArt($id, true, true, $isremote);
if ($artUrl == '') {
$artUrl = $cfg_phpurl . "/view.php?aid={$id}";
}
ClearMyAddon($id, $title);
//返回成功信息
$msg = "\r\n 請選擇你的後續操作:\r\n <a href='article_add.php?cid={$typeid}'><u>發布新文章</u></a>\r\n \r\n <a href='archives_do.php?aid=" . $id . "&dopost=editArchives'><u>查看更改</u></a>\r\n \r\n <a href='{$artUrl}' target='_blank'><u>查看文章</u></a>\r\n \r\n <a href='catalog_do.php?cid={$typeid}&dopost=listArchives'><u>管理文章</u></a>\r\n \r\n {$backurl}\r\n ";
$wintitle = "成功更改文章!";
$wecome_info = "文章管理::更改文章";
$win = new OxWindow();
$win->AddTitle("成功更改文章:");
$win->AddMsgItem($msg);
$winform = $win->GetWindow("hand", " ", false);
$win->Display();
}
}
示例3: getfilenameonly
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>
";
$wintitle = "成功創建專題!";
$wecome_info = "文章管理::發布專題";
$win = new OxWindow();
示例4: MakeArt
$addQuery = "Update `{$cts['addtable']}` set typeid='$typeid',
message='$message',contact='$contact',phone='$phone',
fax='$fax',email='$email',qq='$qq',msn='$msn',address='$address'{$inadd_f}
where aid='{$ID}' ";
if(!$dsql->ExecuteNoneQuery($addQuery)){
$gerr = $dsql->GetError();
$dsql->Close();
ShowMsg("更新數據庫附加表 `{$cts['addtable']}` 時出錯,請把相關信息提交給DedeCms官方。".$gerr,"javascript:;");
exit();
}
//生成HTML
//---------------------------------
$artUrl = MakeArt($ID,true,true);
if($artUrl=="") $artUrl = $cfg_plus_dir."/view.php?aid=$ID";
//更新全站搜索索引
$datas = array('aid'=>$ID,'typeid'=>$typeid,'channelid'=>$channelid,'adminid'=>$edadminid,'att'=>$arcatt,
'title'=>$title,'url'=>$artUrl,'litpic'=>$litpic,'keywords'=>$keywords,'pubdate'=>$pubdate,
'addinfos'=>$description,'uptime'=>time(),'arcrank'=>0);
UpSearchIndex($dsql,$datas);
unset($datas);
//更新Tag索引
UpTags($dsql,$tag,$ID,0,$typeid,$arcrank);
//---------------------------------
//返回成功信息
//----------------------------------
示例5: ShowMsg
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);
//同步積分
示例6: ShowMsg
if( $aid!="" && !ereg("(".$aid."`|`".$aid.")",$qstr) ) $qstr .= "`".$aid;
if($qstr==""){
ShowMsg("參數無效!",$ENV_GOBACK_URL);
exit();
}
$qstrs = explode("`",$qstr);
foreach($qstrs as $aid)
{
$aid = ereg_replace("[^0-9]","",$aid);
if($aid=="") continue;
$tables = GetChannelTable($dsql,$aid,'arc');
$dsql->ExecuteNoneQuery(" Update `{$tables['maintable']}` set arcrank='0' where ID='$aid' And arcrank<'0' ");
$dsql->ExecuteNoneQuery(" Update `#@__full_search` set arcrank='0' where aid='$aid' And arcrank<'0' ");
$dsql->ExecuteNoneQuery(" OPTIMIZE TABLE `{$tables['maintable']}`; ");
$dsql->ExecuteNoneQuery(" OPTIMIZE TABLE `#@__full_search`; ");
$pageurl = MakeArt($aid,false,false);
$dsql->ExecuteNoneQuery(" Update `#@__full_search` set url='$pageurl' where aid='$aid'");
}
ClearAllLink();
ShowMsg("成功審核指定的文檔!",$ENV_GOBACK_URL);
exit();
}
/*--------------------------
//刪除文檔
function delArchives();
---------------------------*/
else if($dopost=="delArchives")
{
CheckPurview('a_Del,a_AccDel,a_MyDel,sys_ArcBatch');
require_once(dirname(__FILE__)."/../include/pub_oxwindow.php");
if(empty($fmdo)) $fmdo = "";
示例7: ShowMsg
$flag = 'p';
}
//更新數據庫的SQL語句
$upQuery = "UPDATE `#@__archives` SET\n ismake='{$ismake}',\n arcrank='{$arcrank}',\n typeid='{$typeid}',\n title='{$title}',\n litpic='{$litpic}',\n description='{$description}',\n mtype = '{$mtypesid}',\n keywords='{$keywords}', \n flag='{$flag}'\n WHERE id='{$aid}' AND mid='{$mid}'; ";
if (!$dsql->ExecuteNoneQuery($upQuery)) {
ShowMsg("把數據保存到數據庫主表時出錯,請聯係管理員!" . $dsql->GetError(), "-1");
exit;
}
if ($addtable != '') {
$upQuery = "UPDATE `{$addtable}` SET typeid='{$typeid}',body='{$body}'{$inadd_f},userip='{$userip}' WHERE aid='{$aid}' ";
if (!$dsql->ExecuteNoneQuery($upQuery)) {
ShowMsg("更新附加表 `{$addtable}` 時出錯,請聯係管理員!", "javascript:;");
exit;
}
}
UpIndexKey($aid, $arcrank, $typeid, $sortrank, $tags);
$artUrl = MakeArt($aid, true);
if ($artUrl == '') {
$artUrl = $cfg_phpurl . "/view.php?aid={$aid}";
}
//返回成功信息
$msg = " 請選擇你的後續操作:\n <a href='article_add.php?cid={$typeid}'><u>發布新文章</u></a>\n \n <a href='archives_do.php?channelid={$channelid}&aid=" . $aid . "&dopost=edit'><u>查看更改</u></a>\n \n <a href='{$artUrl}' target='_blank'><u>查看文章</u></a>\n \n <a href='content_list.php?channelid={$channelid}'><u>管理文章</u></a>\n ";
$wintitle = "成功更改文章!";
$wecome_info = "文章管理::更改文章";
$win = new OxWindow();
$win->AddTitle("成功更改文章:");
$win->AddMsgItem($msg);
$winform = $win->GetWindow("hand", " ", false);
$win->Display();
}
}
示例8: Values
$inquery = "INSERT INTO `{$addtable}`(aid,typeid,userip,redirecturl,templet,body{$inadd_f}) Values('{$arcID}','{$typeid}','{$userip}','','','{$body}'{$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}'");
ShowMsg("把數據保存到數據庫附加表 `{$addtable}` 時出錯,請聯係管理員!", "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);
$row = $dsql->GetOne("SELECT `scores`,`userid` FROM `#@__member` WHERE `mid`='" . $cfg_ml->M_ID . "' AND `matt`<>10");
示例9: UpIndexKey
}
}
//生成HTML
UpIndexKey($id, $arcrank, $typeid, $sortrank, $tags);
if ($cfg_remote_site == 'Y' && $isremote == "1") {
if ($serviterm != "") {
list($servurl, $servuser, $servpwd) = explode(',', $serviterm);
$config = array('hostname' => $servurl, 'username' => $servuser, 'password' => $servpwd, 'debug' => 'TRUE');
} else {
$config = array();
}
if (!$ftp->connect($config)) {
exit('Error:None FTP Connection!');
}
}
$arcUrl = MakeArt($id, TRUE, TRUE, $isremote);
if ($arcUrl == "") {
$arcUrl = $cfg_phpurl . "/view.php?aid={$id}";
}
ClearMyAddon($id, $title);
//返回成功信息
$msg = "\r\n 請選擇你的後續操作:\r\n <a href='soft_add.php?cid={$typeid}'><u>發布新軟件</u></a>\r\n \r\n <a href='archives_do.php?aid=" . $id . "&dopost=editArchives'><u>繼續修改</u></a>\r\n \r\n <a href='{$arcUrl}' target='_blank'><u>查看軟件</u></a>\r\n \r\n <a href='catalog_do.php?cid={$typeid}&dopost=listArchives'><u>已發布軟件管理</u></a>\r\n \r\n <a href='catalog_main.php'><u>網站欄目管理</u></a>\r\n ";
$wintitle = "成功修改一個軟件!";
$wecome_info = "文章管理::修改軟件";
$win = new OxWindow();
$win->AddTitle("成功修改軟件:");
$win->AddMsgItem($msg);
$winform = $win->GetWindow("hand", " ", FALSE);
$win->Display();
}
}
示例10: getfilenameonly
exit();
}
//生成HTML
//---------------------------------
$artUrl = getfilenameonly($ID, $typeid, $senddate, $title, $ismake, $arcrank, $money);
//更新全站搜索索引
$datas = array('aid'=>$ID,'typeid'=>$typeid,'channelid'=>$channelid,'adminid'=>$edadminid,'mid'=>$memberid,'att'=>$arcatt,
'title'=>$title,'url'=>$artUrl,'litpic'=>$litpic,'keywords'=>$keywords,'pubdate'=>$pubdate,
'addinfos'=>$description,'uptime'=>time(),'arcrank'=>$arcrank);
UpSearchIndex($dsql,$datas);
unset($datas);
//更新Tag索引
UpTags($dsql,$tag,$ID,0,$typeid,$arcrank);
MakeArt($ID,true);
//---------------------------------
//返回成功信息
//----------------------------------
$msg = "
請選擇你的後續操作:
<a href='../soft_add.php?cid=$typeid'><u>發布新軟件</u></a>
<a href='../archives_do.php?aid=".$ID."&dopost=editArchives'><u>繼續修改</u></a>
<a href='$artUrl' target='_blank'><u>查看軟件</u></a>
<a href='../catalog_do.php?cid=$typeid&dopost=listArchives'><u>已發布軟件管理</u></a>
<a href='../catalog_main.php'><u>網站欄目管理</u></a>
";
示例11: list
exit;
}
}
//生成HTML
if ($cfg_remote_site == 'Y' && $isremote == "1") {
if ($serviterm != "") {
list($servurl, $servuser, $servpwd) = explode(',', $serviterm);
$config = array('hostname' => $servurl, 'username' => $servuser, 'password' => $servpwd, 'debug' => 'TRUE');
} else {
$config = array();
}
if (!$ftp->connect($config)) {
exit('Error:None FTP Connection!');
}
}
$artUrl = MakeArt($arcID, TRUE, TRUE, $isremote);
if ($artUrl == '') {
$artUrl = $cfg_phpurl . "/view.php?aid={$arcID}";
}
ClearMyAddon($arcID, $title);
//返回成功信息
$msg = "\n 請選擇你的後續操作:\n <a href='archives_sg_add.php?cid={$typeid}'><u>繼續發布文檔</u></a>\n \n <a href='{$artUrl}' target='_blank'><u>查看文檔</u></a>\n \n <a href='archives_do.php?aid=" . $arcID . "&dopost=editArchives'><u>更改文檔</u></a>\n \n <a href='content_sg_list.php?cid={$typeid}&channelid={$channelid}&dopost=listArchives'><u>已發布文檔管理</u></a>\n \n <a href='catalog_main.php'><u>網站欄目管理</u></a>\n ";
$wintitle = "成功發布文檔!";
$wecome_info = "文檔管理::發布文檔";
$win = new OxWindow();
$win->AddTitle("成功發布文檔:");
$win->AddMsgItem($msg);
$winform = $win->GetWindow("hand", " ", false);
$win->Display();
}
}
示例12: MakeArt
foreach ($_SESSION['bigfile_info'] as $k => $v)
{
if(!empty($v))
{
$pictitle = ${'picinfook'.$k};
$titleSet = '';
if(!empty($pictitle))
{
$picTitle = TRUE;
$titleSet = ",title='{$pictitle}'";
}
$dsql->ExecuteNoneQuery("UPDATE `#@__uploads` SET arcid='{$arcID}'{$titleSet} WHERE url LIKE '{$v}'; ");
}
}
}
$artUrl = MakeArt($arcID,true,true,$isremote);
if($artUrl=='')
{
$artUrl = $cfg_phpurl."/view.php?aid=$arcID";
}
ClearMyAddon($arcID, $title);
//返回成功信息
$msg = " 請選擇你的後續操作:
<a href='article_add.php?cid=$typeid'><u>繼續發布文章</u></a>
<a href='$artUrl' target='_blank'><u>查看文章</u></a>
<a href='archives_do.php?aid=".$arcID."&dopost=editArchives'><u>更改文章</u></a>
示例13: trim
//處理圖片文檔的自定義屬性
if ($litpic != '' && !ereg('p', $flag)) {
$flag = $flag == '' ? 'p' : $flag . ',p';
}
$cts = $dsql->GetOne("Select addtable From `#@__channeltype` where id='{$channelid}' ");
$addtable = trim($cts['addtable']);
if ($addtable != '') {
$iquery = "update `{$addtable}` set typeid='{$typeid}',arcrank='{$arcrank}',title='{$title}',flag='{$flag}',litpic='{$litpic}'{$inadd_f} where aid='{$id}' ";
if (!$dsql->ExecuteNoneQuery($iquery)) {
ShowMsg("更新附加表 `{$addtable}` 時出錯,請檢查原因!", "javascript:;");
exit;
}
}
//生成HTML
UpIndexKey($id, $arcrank, $typeid, $sortrank, '');
$artUrl = MakeArt($id, true, true);
if ($artUrl == '') {
$artUrl = $cfg_phpurl . "/view.php?aid={$id}";
}
ClearMyAddon($id, $title);
//返回成功信息
$msg = "\r\n 請選擇你的後續操作:\r\n <a href='archives_sg_add.php?cid={$typeid}'><u>發布新文檔</u></a>\r\n \r\n <a href='archives_do.php?aid=" . $id . "&dopost=editArchives'><u>查看更改</u></a>\r\n \r\n <a href='{$artUrl}' target='_blank'><u>查看文檔</u></a>\r\n \r\n <a href='catalog_do.php?cid={$typeid}&channelid={$channelid}&dopost=listArchives'><u>管理文檔</u></a>\r\n \r\n <a href='catalog_main.php'><u>網站欄目管理</u></a>\r\n ";
$wintitle = "成功更改文檔!";
$wecome_info = "文檔管理::更改文檔";
$win = new OxWindow();
$win->AddTitle("成功更改文檔:");
$win->AddMsgItem($msg);
$winform = $win->GetWindow("hand", " ", false);
$win->Display();
}
}
示例14: addslashes
}
$urls = addslashes($urls);
//更新附加表
$cts = $dsql->GetOne("Select addtable From `#@__channeltype` where id='{$channelid}' ");
$addtable = trim($cts['addtable']);
if ($addtable != '') {
$useip = GetIP();
$inQuery = "update `{$addtable}`\r\n\t set typeid ='{$typeid}',\r\n\t filetype ='{$filetype}',\r\n\t language ='{$language}',\r\n\t softtype ='{$softtype}',\r\n\t accredit ='{$accredit}',\r\n\t os ='{$os}',\r\n\t softrank ='{$softrank}',\r\n\t officialUrl ='{$officialUrl}',\r\n\t officialDemo ='{$officialDemo}',\r\n\t softsize ='{$softsize}',\r\n\t softlinks ='{$urls}',\r\n\t redirecturl='{$redirecturl}',\r\n\t userip = '{$useip}',\r\n\t daccess = '{$daccess}',\r\n\t needmoney = '{$needmoney}',\r\n\t introduce='{$body}'\r\n\t {$inadd_f}\r\n\t where aid='{$id}';";
if (!$dsql->ExecuteNoneQuery($inQuery)) {
ShowMsg("更新數據庫附加表 addonsoft 時出錯,請檢查原因!", "-1");
exit;
}
}
//生成HTML
UpIndexKey($id, $arcrank, $typeid, $sortrank, $tags);
$arcUrl = MakeArt($id, true);
if ($arcUrl == "") {
$arcUrl = $cfg_phpurl . "/view.php?aid={$id}";
}
ClearMyAddon($id, $title);
//返回成功信息
$msg = "\r\n 請選擇你的後續操作:\r\n <a href='soft_add.php?cid={$typeid}'><u>發布新軟件</u></a>\r\n \r\n <a href='archives_do.php?aid=" . $id . "&dopost=editArchives'><u>繼續修改</u></a>\r\n \r\n <a href='{$arcUrl}' target='_blank'><u>查看軟件</u></a>\r\n \r\n <a href='catalog_do.php?cid={$typeid}&dopost=listArchives'><u>已發布軟件管理</u></a>\r\n \r\n <a href='catalog_main.php'><u>網站欄目管理</u></a>\r\n ";
$wintitle = "成功修改一個軟件!";
$wecome_info = "文章管理::修改軟件";
$win = new OxWindow();
$win->AddTitle("成功修改軟件:");
$win->AddMsgItem($msg);
$winform = $win->GetWindow("hand", " ", false);
$win->Display();
}
}