當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ClearMyAddon函數代碼示例

本文整理匯總了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    &nbsp;&nbsp;\r\n    <a href='{$arcUrl}' target='_blank'><u>查看軟件</u></a>\r\n    &nbsp;&nbsp;\r\n    <a href='archives_do.php?aid=" . $arcID . "&dopost=editArchives'><u>更改軟件</u></a>\r\n    &nbsp;&nbsp;\r\n    <a href='catalog_do.php?cid={$typeid}&dopost=listArchives'><u>已發布軟件管理</u></a>\r\n    &nbsp;&nbsp;\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", "&nbsp;", false);
        $win->Display();
    }
}
開發者ID:klr2003,項目名稱:sourceread,代碼行數:31,代碼來源:soft_add.php

示例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    &nbsp;&nbsp;\r\n    <a href='archives_do.php?aid=" . $id . "&dopost=editArchives'><u>查看更改</u></a>\r\n    &nbsp;&nbsp;\r\n    <a href='{$artUrl}' target='_blank'><u>查看文章</u></a>\r\n    &nbsp;&nbsp;\r\n    <a href='catalog_do.php?cid={$typeid}&dopost=listArchives'><u>管理文章</u></a>\r\n    &nbsp;&nbsp;\r\n    {$backurl}\r\n    ";
        $wintitle = "成功更改文章!";
        $wecome_info = "文章管理::更改文章";
        $win = new OxWindow();
        $win->AddTitle("成功更改文章:");
        $win->AddMsgItem($msg);
        $winform = $win->GetWindow("hand", "&nbsp;", false);
        $win->Display();
    }
}
開發者ID:suibber,項目名稱:jb,代碼行數:31,代碼來源:article_edit.php

示例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();
 }
開發者ID:soonfine,項目名稱:leread,代碼行數:19,代碼來源:userlogin.class.php


注:本文中的ClearMyAddon函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。