织梦修改文章提示没权限修改此文档或操作不合法!

自定义模型提示校对码错误,你没权限修改此文档或操作不合法的解决办法

在archives_edit.htm的from表单下面增加隐藏input

<form name="addcontent" action="archives_edit.php" method="post" enctype="multipart/form-data">下面加上:

加上如下代码

<input type="hidden" name="dopost" value="save" />
<input type="hidden" name="aid" value="<?php echo $row['id']; ?>" />
<input type="hidden" name="idhash" value="<?php echo md5($row['id'].$cfg_cookie_encode); ?>" />
<input type="hidden" name="channelid" value="<?php echo $row['channel']; ?>" />
<input type="hidden" name="oldlitpic" value="<?php echo $row['litpic']; ?>" />
<input type="hidden" name="sortrank" value="<?php echo $row['sortrank']; ?>" />

Leave a Reply

(will not be published)