当前位置: 首页>>代码示例>>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;未经允许,请勿转载。