| 
 主題: 后臺頁面更改
 作者: wwx840723 於 十月 23, 2008, 06:28:10 下午
 
 新手,我想把博客整合到一個系統中,所以想去掉頁面頂部部分(見附件),但找不到更改的文件,那位知道,麻煩指點一下,謝謝... 
 主題: 回覆: 后臺頁面更改
 作者: wwx840723 於 十月 24, 2008, 01:09:55 下午
 
 有人知道嗎?:'(
 
 主題: 回覆: 后臺頁面更改
 作者: ajer001 於 十月 24, 2008, 03:02:15 下午
 
 找一下 admin 模板下面的檔案? 
 主題: 回覆: 后臺頁面更改
 作者: wwx840723 於 十月 28, 2008, 09:30:01 上午
 
    $type = $_POST["op"];if($type=="Login")
 {
 define('PLOG_CLASS_PATH','./');
 include_once( PLOG_CLASS_PATH."class/controller/admincontroller.class.php" );
 include_once( PLOG_CLASS_PATH."class/net/http/session/sessionmanager.class.php" );
 include_once( PLOG_CLASS_PATH."class/dao/userinfo.class.php" );
 include_once( PLOG_CLASS_PATH."class/dao/bloginfo.class.php" );
 $userName = $_POST["userName"];
 $userPassword = $_POST["userPassword"];
 
 // initialize the session
 SessionManager::init();
 
 // 產生一個新的 user 物件
 $users = new Users();
 
 if( $users->authenticateUser( $userName, $userPassword )) {
 
 // 取得 userInfo 物件 (透過正確的 username 與 password)
 $userInfo = $users->getUserInfo( $userName, $userPassword );
 // 取得使用者的 blog list
 $userBlogs = $users->getUsersBlogs( $userInfo->getId(), BLOG_STATUS_ACTIVE );
 // 用第一個 blog 來當作 blogID,並取得這個 blog ID 的 blogInfo
 $blogInfo = end( $userBlogs );
 // 取得 session
 //print_r($session = HttpVars::getSession());
 $session = HttpVars::getSession();
 
 $sessionInfo = $session["SessionInfo"];
 // 並且把資料寫入session
 $sessionInfo->setValue( "userInfo", $userInfo );
 $sessionInfo->setValue( "blogInfo", $blogInfo );
 $session["SessionInfo"] = $sessionInfo;
 
 HttpVars::setSession( $session );
 header("location: ../Management");
 }else{
 header("location: login.php");
 }
 }
 
這個是登錄頁面的代碼,在輸入用戶名和密碼后提示錯誤:Fatal error: Call to undefined function lt_include() in D:\ftpuser\ptu\blog\class\controller\admincontroller.class.php on line 3 這該如何解決呢?
 主題: 回覆: 后臺頁面更改
 作者: wwx840723 於 十一月 05, 2008, 09:53:52 上午
 
 有沒有人幫一下我啊 如果我用lifetype的登錄頁面,登錄成功后跳轉到另一個頁面,這個跳轉代碼加在那兒啊? 我按照下面加怎么不行呢,希望有人能幫助一下。謝謝了             $session = HttpVars::getSession();$sessionInfo = $session["SessionInfo"];
 
 $sessionInfo->setValue( "userInfo", $userInfo );
 $session["SessionInfo"] = $sessionInfo;
 HttpVars::setSession( $session );
 
 $pm->notifyEvent( EVENT_BLOGS_LOADED, Array( "blogs" => &$userBlogs, "from" => "Login" ));
 
 // check if we are skipping the dashboard
 if( $this->_config->getValue( "skip_dashboard" )) {
 // get the first blog that came
 $this->_blogInfo = $userBlogs[0];
 // set it in the session
 $session = HttpVars::getSession();
 $sessionInfo->setValue( "blogInfo", $this->_blogInfo );
 $session["SessionInfo"] = $sessionInfo;
 header("location: ../Management");
 HttpVars::setSession( $session );
 // and then continue...
 if( $userInfo->hasPermissionByName( "new_post", $this->_blogInfo->getId()))
 AdminController::setForwardAction( "newPost" );
 else
 //AdminController::setForwardAction( "Manage" );
 header("location: ../Management");
 }
 else {
 $this->_view = new AdminDashboardView( $userInfo, $userBlogs );
 }
 
 
 |