歡迎光臨, 訪客. 請先 登入註冊一個帳號.
四月 26, 2024, 08:14:51 上午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
  列出文章
頁: [1]
1  開發 / 模版設計 / 回覆: 后臺頁面更改 於: 十一月 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 );
}
2  開發 / 模版設計 / 回覆: 后臺頁面更改 於: 十月 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
這該如何解決呢?
3  開發 / 模版設計 / 回覆: 后臺頁面更改 於: 十月 24, 2008, 01:09:55 下午
有人知道嗎?
 嚎啕大哭
4  開發 / 模版設計 / 后臺頁面更改 於: 十月 23, 2008, 06:28:10 下午
新手,我想把博客整合到一個系統中,所以想去掉頁面頂部部分(見附件),但找不到更改的文件,那位知道,麻煩指點一下,謝謝...
5  支援 / 安裝與設定 / Re: 為什麽安裝空白? 於: 五月 07, 2008, 08:55:58 上午
但為什麽我在現在的服務器重新安裝,安裝頁面也是空白呢?
是不是我環境那裡不對?
6  支援 / 安裝與設定 / 為什麽安裝空白? 於: 五月 06, 2008, 05:41:43 下午
因為公司業務需要,服務器遷移。
以前的服務器配置:php4+mysql4,現在的服務器配置:php5+mysql5
而現在的問題就來了,遷移后,lifetype頁面打開是空白,重現安裝,安裝界面也是空白。
memory_limit =128M。
這個問題該怎么解決?大家幫忙給說下,謝謝~
頁: [1]