歡迎光臨, 訪客. 請先 登入註冊一個帳號.
十一月 26, 2024, 06:23:58 上午
19595 文章 在 3865 主題 由 4579 會員
最新註冊會員: aa123aa1
  列出文章
頁: [1]
1  開發 / 外掛程式 / tagcloud plugin 在lifetype1.1 中出错 於: 九月 09, 2006, 03:17:10 下午
信息是:
Fatal error: Class 'Menu' not found in F:\xampp\xampp\htdocs\lifetype1.1\plugins\tagcloud\plugintagcloud.class.php on line 51
2  測試 / LifeType 1.1 測試 / 是bug吗? 於: 八月 06, 2006, 02:16:30 下午
从admin.php 登录后,进入管理区,然后进行一些(或不进行)操作,如发表文章等,然后再转到页面admin.php
,又要求重新输入用户名和密码(此时我没有退出)。这个是什么原因? session 问题?
3  測試 / LifeType 1.1 測試 / Re: 为什么取不得session中的变量 於: 七月 08, 2006, 03:03:30 下午
非常感谢mark
4  測試 / LifeType 1.1 測試 / 为什么取不得session中的变量 於: 七月 08, 2006, 10:40:11 上午
我从admin.php登录以后,然后转到 我的test.php,但是取不到 user 的id 和name, test.php 的code如下:


<?php
 if (!defined( "PLOG_CLASS_PATH" )) {
        define( "PLOG_CLASS_PATH", dirname(__FILE__)."/");
    }

    include_once( PLOG_CLASS_PATH."class/bootstrap.php" );     
    include_once( PLOG_CLASS_PATH."class/summary/controller/summarycontroller.class.php" );
    include_once( PLOG_CLASS_PATH."class/net/http/httpvars.class.php" );
    include_once( PLOG_CLASS_PATH."class/misc/version.class.php" );
    include_once( PLOG_CLASS_PATH."class/data/validator/usernamevalidator.class.php" );
   include_once( PLOG_CLASS_PATH."class/net/http/subdomains.class.php" );
   include_once( PLOG_CLASS_PATH."class/net/http/session/sessionmanager.class.php" );   

   SessionManager::init();
   $userInfo = &SessionManager::getSessionValue("userInfo");

/*
 * Created on 2006-7-8
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
?>

<html>
<head>
   <title> test
   
   </title>
   
</head>

<?
   echo $userInfo->getId();
   echo $userInfo->getUsername();
 ?>
 
</html>


我用的是LT 1.1 。



5  測試 / LifeType 1.1 測試 / about summary.php 於: 五月 06, 2006, 02:37:56 下午
为什么在summary.php 上我的Most Active Blogs
Most Commented Articles
Most Read articles
是空的没有文章

lifetype version is 1.1

我的数据库中lt_articles 表的信息 有两条记录:
id,"date","modification_date",user_id,blog_id,status,num_reads,"properties","slug",num_comments,num_nonspam_comments,num_trackbacks,num_nonspam_trackbacks,global_category_id,in_summary_page

1,"2006-05-06 02:15:24","2006-05-06 02:15:24",1,1,1,1,"a:0:{}","welcome",0,0,0,0,1,1

2,"2006-05-06 02:18:12","2006-05-06 02:18:12",1,1,1,1,"a:1:{s:16:\"comments_enabled\";s:1:\"1\";}","wwww",0,0,0,0,1,1



----------------------------------------------------------------------------------------------------------------------------------------



下面是执行summary.php 后的plog.log  文件信息:

06-05-2006 07:20:37 DEBUG - [summarystats.class.php:274 (Logger:debug)] SummaryStats::getRecentArticles query = SELECT a.*
                 FROM lt_articles a,
                      lt_blogs b
                 WHERE a.date >= 20060429 AND a.date <= 20060506
                       AND a.blog_id = b.id
                       AND b.status = 1
                       AND a.status = 1
                     AND a.in_summary_page = '1' ORDER BY a.date DESC LIMIT 0,15
06-05-2006 07:20:37 DEBUG - [model.class.php:127 (Logger:debug)] Executing SQL Query: SELECT a.*
                 FROM lt_articles a,
                      lt_blogs b
                 WHERE a.date >= 20060429 AND a.date <= 20060506
                       AND a.blog_id = b.id
                       AND b.status = 1
                       AND a.status = 1
                     AND a.in_summary_page = '1' ORDER BY a.date DESC LIMIT 0,15
06-05-2006 07:20:37 DEBUG - [summarystats.class.php:214 (Logger:debug)] SummaryStats::getMostActiveBlogs query = SELECT COUNT(a.id) as t, SUM((num_reads / (TO_DAYS(NOW()) - TO_DAYS(a.date) + 1)) ) as rank, b.*
                      FROM lt_articles AS a
                      INNER JOIN lt_blogs AS b
                      ON b.id = a.blog_id AND b.status = 1
                      WHERE a.date >= 20060429 AND a.date <= 20060506
                 AND in_summary_page = '1' GROUP BY a.id
                      ORDER BY rank DESC LIMIT 0,15
06-05-2006 07:20:37 DEBUG - [model.class.php:127 (Logger:debug)] Executing SQL Query: SELECT COUNT(a.id) as t, SUM((num_reads / (TO_DAYS(NOW()) - TO_DAYS(a.date) + 1)) ) as rank, b.*
                      FROM lt_articles AS a
                      INNER JOIN lt_blogs AS b
                      ON b.id = a.blog_id AND b.status = 1
                      WHERE a.date >= 20060429 AND a.date <= 20060506
                 AND in_summary_page = '1' GROUP BY a.id
                      ORDER BY rank DESC LIMIT 0,15
06-05-2006 07:20:37 DEBUG - [summarystats.class.php:87 (Logger:debug)] SummaryStats::getMostCommentedArticles query = SELECT a.*
                 FROM lt_articles AS a,
                      lt_blogs b
                 WHERE a.blog_id = b.id
                       AND a.status = 1
                     AND b.status = 1
                     AND a.date <= 20060506
                     AND a.in_summary_page = '1'
                     AND a.num_nonspam_comments > 0
                 ORDER BY a.num_nonspam_comments DESC
                 LIMIT 0, 15
06-05-2006 07:20:37 DEBUG - [model.class.php:127 (Logger:debug)] Executing SQL Query: SELECT a.*
                 FROM lt_articles AS a,
                      lt_blogs b
                 WHERE a.blog_id = b.id
                       AND a.status = 1
                     AND b.status = 1
                     AND a.date <= 20060506
                     AND a.in_summary_page = '1'
                     AND a.num_nonspam_comments > 0
                 ORDER BY a.num_nonspam_comments DESC
                 LIMIT 0, 15
06-05-2006 07:20:37 DEBUG - [summarystats.class.php:133 (Logger:debug)] SummaryStats::getMostReadArticles query = SELECT a.*
                 FROM lt_articles a, lt_blogs b
                 WHERE a.status = 1
                 AND a.blog_id = b.id
             AND b.status = 1
                 AND a.date <= 20060506 AND a.date > 20060429
             AND in_summary_page = '1'
             ORDER BY a.num_reads DESC LIMIT 0,15
06-05-2006 07:20:37 DEBUG - [model.class.php:127 (Logger:debug)] Executing SQL Query: SELECT a.*
                 FROM lt_articles a, lt_blogs b
                 WHERE a.status = 1
                 AND a.blog_id = b.id
             AND b.status = 1
                 AND a.date <= 20060506 AND a.date > 20060429
             AND in_summary_page = '1'
             ORDER BY a.num_reads DESC LIMIT 0,15

-------------------------------------------------------------------------------------------------------------------------------------------


頁: [1]