主頁 > 網(wǎng)站建設(shè) > 建站知識 > 織夢后臺(tái)點(diǎn)擊縮略圖瀏覽出現(xiàn)提示:“需輸入后臺(tái)

織夢后臺(tái)點(diǎn)擊縮略圖瀏覽出現(xiàn)提示:“需輸入后臺(tái)

POST TIME:2021-05-25 00:17

使用織夢那么久了,還真是第一次遇到這情況提示“需輸入后臺(tái)管理目錄才能登錄”,最后看到網(wǎng)友也有相關(guān)回答了,下面是總結(jié)的解決辦法跟大家分享:

第一步:找到程序目錄includedialogconfig.php下文件。其中有段代碼

//檢驗(yàn)用戶登錄狀態(tài)
$cuserLogin = new userLogin();

if($cuserLogin->getUserID() <=0 )
{
if(empty($adminDirHand))
{
ShowMsg("<b>提示:需輸入后臺(tái)管理目錄才能登錄</b><br /><form>請輸入后臺(tái)管理目錄名:<input type='hidden' name='gotopage' value='".urlencode($dedeNowurl)."' /><input type='text' name='adminDirHand' value='dede' style='width:120px;' /><input style='width:80px;' type='submit' name='sbt' value='轉(zhuǎn)入登錄' /></form>", "javascript:;");
exit();
}
$gurl = "../../{$adminDirHand}/login.php?gotopage=".urlencode($dedeNowurl);
echo "<script language='javascript'>location='$gurl';</script>";
exit();
}

將$cuserLogin = new userLogin();之后的代碼進(jìn)行注釋后即可使注冊會(huì)員正常上傳圖片,具體注釋方法為:

/*if($cuserLogin->getUserID() <=0 )
{
if(empty($adminDirHand))
{
ShowMsg("<b>提示:需輸入后臺(tái)管理目錄才能登錄</b><br /><form>請輸入后臺(tái)管理目錄名:<input type='hidden' name='gotopage' value='".urlencode($dedeNowurl)."' /><input type='text' name='adminDirHand' value='dede' style='width:120px;' /><input style='width:80px;' type='submit' name='sbt' value='轉(zhuǎn)入登錄' /></form>", "javascript:;");
exit();
}
$gurl = "../../{$adminDirHand}/login.php?gotopage=".urlencode($dedeNowurl);
echo "<script language='javascript'>location='$gurl';</script>";
exit();
}*/




收縮
  • 微信客服
  • 微信二維碼
  • 電話咨詢

  • 400-1100-266