Zblog之SEMB2B网站后台删除数据备份
在include.php删除以下代码:
Add_Filter_Plugin('Filter_Plugin_Edit_Response','txcms2_MyName'); //2017-09-10 23:59:33 账号 Add_Filter_Plugin('Filter_Plugin_Edit_Response','txcms2_MyPassword'); //2017-09-10 23:59:29 密码继续删除
//账号 MyName function txcms2_MyName(){ global $zbp,$article; if(!$article->Metas->MyName){ $article->Metas->MyName= ''; } echo '<br><br><label for="meta_alink" class="editinputname"><font color="#FF00FF">我的账号</font></label> <input type="text" name="meta_MyName" value="'.htmlspecialchars($article->Metas->MyName).'" placeholder="填写账号" style="width:75%" >'; } //密码 MyPassword function txcms2_MyPassword(){ global $zbp,$article; if(!$article->Metas->MyPassword){ $article->Metas->MyPassword= ''; } echo '<br><br><label for="meta_alink" class="editinputname"><font color="#FF00FF">我的密码</font></label> <input type="text" name="meta_MyPassword" value="'.htmlspecialchars($article->Metas->MyPassword).'" placeholder="填写密码" style="width:75%" >'; }在post-single.php既定位置放上以下代码
{if $user.ID>0} {if $article->Metas->MyName!=""} <tr class="firstRow"> <td width="15%" valign="middle" align="center"> <font color="#FF0000">账号</font> </td> <td width="85%" valign="top"> <font color="#FF0000">{$article.Metas.MyName}</font> </td> </tr> <tr> <td width="15%" valign="middle" align="center"> <font color="#FF0000">密码</font> </td> <td width="85%" valign="top"> <font color="#FF0000">{$article.Metas.MyPassword}</font> </td> </tr> {/if} {/if}