本文整理匯總了PHP中ClearMyAddon函數的典型用法代碼示例。如果您正苦於以下問題:PHP ClearMyAddon函數的具體用法?PHP ClearMyAddon怎麽用?PHP ClearMyAddon使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了ClearMyAddon函數的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: isset
exit;
}
$daccess = isset($daccess) && is_numeric($daccess) ? $daccess : 0;
$useip = GetIP();
$inQuery = "INSERT INTO `{$addtable}`(aid,typeid,redirecturl,userip,filetype,language,softtype,accredit,\r\n os,softrank,officialUrl,officialDemo,softsize,softlinks,introduce,daccess,needmoney{$inadd_f})\r\n VALUES ('{$arcID}','{$typeid}','{$redirecturl}','{$useip}','{$filetype}','{$language}','{$softtype}','{$accredit}',\r\n '{$os}','{$softrank}','{$officialUrl}','{$officialDemo}','{$softsize}','{$urls}','{$body}','{$daccess}','{$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}'");
ShowMsg("把數據保存到數據庫附加表 `{$addtable}` 時出錯,請把相關信息提交給DedeCms官方。" . str_replace('"', '', $gerr), "javascript:;");
exit;
}
//生成HTML
InsertTags($tags, $arcID);
$arcUrl = MakeArt($arcID, true, true);
if ($arcUrl == '') {
$arcUrl = $cfg_phpurl . "/view.php?aid={$arcID}";
}
ClearMyAddon($arcID, $title);
//返回成功信息
$msg = "\r\n 請選擇你的後續操作:\r\n <a href='soft_add.php?cid={$typeid}'><u>繼續發布軟件</u></a>\r\n \r\n <a href='{$arcUrl}' target='_blank'><u>查看軟件</u></a>\r\n \r\n <a href='archives_do.php?aid=" . $arcID . "&dopost=editArchives'><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 ";
$msg = "<div style=\"line-height:36px;height:36px\">{$msg}</div>" . GetUpdateTest();
$wintitle = "成功發布一個軟件!";
$wecome_info = "文章管理::發布軟件";
$win = new OxWindow();
$win->AddTitle("成功發布軟件:");
$win->AddMsgItem($msg);
$winform = $win->GetWindow("hand", " ", false);
$win->Display();
}
}
示例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: exitUser
/**
* 結束用戶的會話狀態
*
* @access public
* @return void
*/
function exitUser()
{
ClearMyAddon();
@session_unregister($this->keepUserIDTag);
@session_unregister($this->keepUserTypeTag);
@session_unregister($this->keepUserChannelTag);
@session_unregister($this->keepUserNameTag);
@session_unregister($this->keepUserPurviewTag);
DropCookie('dedeAdmindir');
DropCookie('DedeUserID');
DropCookie('DedeLoginTime');
$_SESSION = array();
}