<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                原作者:yufan??? chm整合-yufan? Q:956932910 個人網站[http://www.sxwzjs.cn/](http://www.sxwzjs.cn/) 論壇推薦[http://bbs.lampym.com/](http://bbs.lampym.com/) ? 使用的是模版自帶的;如果不喜歡,可以自己用phpemail之類的搞: 主要代碼 mail::set($this->site); mail::sendmail(['1015389069@qq.com'](#), '山西晉網科技工作室', htmlspecialchars_decode($data['content'])); 標注 第一個是你要收郵件的郵箱 第二個是發送人名字 第三個是郵件內容,你可以加上電話之類的 htmlspecialchars_decode是轉換html字符的 ? ? 完整代碼(plugins\gbook\controllers\IndexController.php) <?php ? class IndexController extends Plugin { ? ??? public function __construct() { ??????? parent::__construct(); ??? } ??? ??? public function postAction() { ??????? if ($this->isPostForm()) { ??????????? $data = $this->post('data'); ??????????? $set? = string2array($this->plugin['setting']); ???if ($set['code'] && !$this->checkCode($this->post('code'))) $this->msg('驗證碼不正確!', null, 1); ??????????? if (empty($data['name']))??? $this->msg('姓名不能為空!', null, 1); ??????????? if (empty($data['content'])) $this->msg('內容不能為空!', null, 1); ??????????? $data['addtime'] = time(); ??????????? $data['status']? = $set['status'] ? 0 : 1; ??????????? $this->gbook->insert($data); ??????????? mail::set($this->site); ??????????? mail::sendmail(['1015389069@qq.com'](#), 'yufan', htmlspecialchars_decode($data['content'])); ??????????? $this->msg('留言成功'); ??????? } else { ????? $this->msg('非POST提交,來路不正確', null, 1); ??} ??? } ??? }
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看