歡迎光臨, 訪客. 請先 登入註冊一個帳號.
三月 28, 2024, 11:58:43 下午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
LifeType 中文開發論壇  |  開發  |  模版設計  |  后臺頁面更改 « 上篇主題 下篇主題 »
頁: [1]
作者 主題: 后臺頁面更改  (閱讀 22959 次)
wwx840723
新手見習
*
文章: 6


檢視個人資料
« 於: 十月 23, 2008, 06:28:10 下午 »

新手,我想把博客整合到一個系統中,所以想去掉頁面頂部部分(見附件),但找不到更改的文件,那位知道,麻煩指點一下,謝謝...
已記錄
wwx840723
新手見習
*
文章: 6


檢視個人資料
« 回覆文章 #1 於: 十月 24, 2008, 01:09:55 下午 »

有人知道嗎?
 嚎啕大哭
已記錄
ajer001
LifeType 中文發展團隊
超級會員
*****
文章: 516


張阿駕


檢視個人資料 個人網站
« 回覆文章 #2 於: 十月 24, 2008, 03:02:15 下午 »

找一下 admin 模板下面的檔案?
已記錄

|| FreeBSD + Apache 2.x + PHP 5.x + MySQL 5.x ||
-- ajer001 AT twntwn.info --
wwx840723
新手見習
*
文章: 6


檢視個人資料
« 回覆文章 #3 於: 十月 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
新手見習
*
文章: 6


檢視個人資料
« 回覆文章 #4 於: 十一月 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 );
}
已記錄
頁: [1]
LifeType 中文開發論壇  |  開發  |  模版設計  |  后臺頁面更改 « 上篇主題 下篇主題 »
    前往: