※ 引述《jimshsu (jims)》之銘言:
: 依據你的建議
: 我找到這兩個檔
: config.inc.php user_password.php
: $cfg['Servers'][$i]['auth_type'] = 'config';
: // Authentication method (config, http or cookie based)?
: $cfg['Servers'][$i]['user'] = 'root'; // MySQL user
: $cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed
: // with 'config' auth_type)
: 我搞不太清楚cookie跟http模式的差別
: 不知道是否有版友了解?
: 因為不同的帳號有不同的資料表
: 所以在我的案例預先寫好帳號密碼的config顯然不行
: 我現在問題是不知道要寫什麼變數到session或cookie讓myadmin直接可以針測到變數
: 因為phpMyAdmin在http的登入方式~~到底登入後
: 在各個操作頁面~~他是如何確認使用者的登入狀態?~
: 這點我還搞不懂~~XD
: 若有其他建議~~請多指教
: 謝謝
不是不是,你誤會我的意思了,
我記得auth_type有一種是完全不做認證的,只是我忘記了(是config嗎?)
我的想法是:
檢查身份的session,如果正確$auth_type="config"
如果不正確,exit
然後把
$cfg['Servers'][$i]['auth_type'] = 'config';
改成
$cfg['Servers'][$i]['auth_type'] = $auth_config;
把上面這個想法寫成程式加在config.inc.php的開頭,
感覺上應該可以work,實作上就不知道會遇到什麼困難了.
--
我知道這個世界很無情。
http://blog.pixnet.net/andreli
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 125.229.203.138