Exception: FLEA_Db_Exception_SqlQuery
Message: SQL 错误消息: "Table 'member_blog_replay' is marked as crashed and should be repaired"
SQL 语句: "SELECT `member_blog_replay`.`mbbid` AS flea_pkref_mbbid, `member_blog_replay`.* FROM `member_blog_replay` WHERE `member_blog_replay`.`mbbid` IN ('1781')"
SQL 错误代码: "7335941".
Filename: /www/web/ggblog/public_html/libs/FLEA/FLEA/Db/Driver/Abstract.php [513]
#9 FLEA_Db_Driver_Mysql::execute('SELECT `member_blog_replay` ...')
ARGS:
Array
(
[0] => SELECT `member_blog_replay`.`mbbid` AS flea_pkref_mbbid, `member_blog_replay`.* FROM `member_blog_replay` WHERE `member_blog_replay`.`mbbid` IN ('1781')
)
SOURCE CODE:
| 503 |
} else {
|
| 504 |
if (!is_null($limit)) {
|
| 505 |
if (is_array($limit)) {
|
| 506 |
list($length, $offset) = $limit;
|
| 507 |
} else {
|
| 508 |
$length = $limit;
|
| 509 |
$offset = 0;
|
| 510 |
}
|
| 511 |
$res = $this->selectLimit($sql, $length, $offset);
|
| 512 |
} else {
|
| 513 |
$res = $this->execute($sql);
|
| 514 |
}
|
| 515 |
}
|
| 516 |
|
| 517 |
if ($oneToOne) {
|
| 518 |
// 一对一组装数据
|
| 519 |
while ($row = $this->fetchAssoc($res)) {
|
| 520 |
$rkv = $row[$refKeyName];
|
| 521 |
unset($row[$refKeyName]);
|
| 522 |
$assocRowset[$rkv][$mappingName] = $row;
|
| 523 |
}
|
Filename: /www/web/ggblog/public_html/libs/FLEA/FLEA/Db/TableDataGateway.php [483]
#8 FLEA_Db_Driver_Abstract::assemble('SELECT `member_blog_replay` ...', array(1), 'replay', , 'flea_pkref_mbbid', )
ARGS:
Array
(
[0] => SELECT `member_blog_replay`.`mbbid` AS flea_pkref_mbbid, `member_blog_replay`.* FROM `member_blog_replay` WHERE `member_blog_replay`.`mbbid` IN ('1781')
[1] => Array
(
[1781] => Array
(
[mbbid] => 1781
[mbid] => 167
[mbcid] => 0
[title] => Welcome to GGblog
[content] => <p><img alt="" border="0" src="http://www.blog.acty-b.net/images/logo_g.jpg" /></p>
<p>Welcome to GGblog.</p>
<p><a href="http://www.blog.acty-b.net">more>></a></p>
[click] => 0
[tags] => Welcome to GGblog
[is_good] => 0
[created] => 2010-07-30 18:36:32
[updated] => 2010-07-30 18:36:32
[img1] =>
[img2] =>
[img3] =>
[img4] =>
[img5] =>
[img6] =>
[img7] =>
[img8] =>
[img9] =>
[img10] =>
[blog] => Array
(
[mbid] => 167
[tpid] => 1
[mtpid] => 1
[enname] => mbjm123
[name] => mbjm123
[poster] =>
[is_day] => 0
[is_month] => 0
[is_class] => 0
[is_record] => 0
[is_friend] => 0
[is_near] => 0
[info] =>
[qr] => qr-img-20100730183632.png
[flag] => 0
[click] => 1554
[created] => 2010-07-30 18:36:32
[mid] => 171
)
[category] =>
[replay] =>
)
)
[2] => replay
[3] =>
[4] => flea_pkref_mbbid
[5] =>
)
SOURCE CODE:
| 473 |
* 查询获得数据后,将关联表的数据和主表数据装配在一起
|
| 474 |
*/
|
| 475 |
$callback = create_function('& $r, $o, $m', '$r[$m] = null;');
|
| 476 |
foreach ($this->links as $link) {
|
| 477 |
/* @var $link FLEA_Db_TableLink */
|
| 478 |
$mn = $link->mappingName;
|
| 479 |
if (!$link->enabled || !$link->linkRead) { continue; }
|
| 480 |
if (!$link->countOnly) {
|
| 481 |
array_walk($assocRowset, $callback, $mn);
|
| 482 |
$sql = $link->getFindSQL($in);
|
| 483 |
$this->dbo->assemble($sql, $assocRowset, $mn, $link->oneToOne, $this->pka, $link->limit);
|
| 484 |
} else {
|
| 485 |
$link->calcCount($assocRowset, $mn, $in);
|
| 486 |
}
|
| 487 |
}
|
| 488 |
|
| 489 |
return $rowset;
|
| 490 |
}
|
| 491 |
|
| 492 |
/**
|
| 493 |
* 对单一记录进行递归查询,并将查询结果组装到记录中
|
Filename: /www/web/ggblog/public_html/app/Modle/Blog.php [369]
#7 FLEA_Db_TableDataGateway::findAll(array(1))
ARGS:
Array
(
[0] => Array
(
[mbid] => 167
)
)
SOURCE CODE:
| 359 |
exit;
|
| 360 |
}
|
| 361 |
|
| 362 |
$Table_MemberBowen = & FLEA::getSingleton('Table_MemberBowen');
|
| 363 |
$Modle_Time = & FLEA::getSingleton('Modle_Time');
|
| 364 |
|
| 365 |
$info = array(
|
| 366 |
'mbid' => $ID,
|
| 367 |
);
|
| 368 |
|
| 369 |
$blog = $Table_MemberBowen->findAll($info);
|
| 370 |
if($blog){
|
| 371 |
$times = array();
|
| 372 |
for($i = 0; $i < count($blog); $i++){
|
| 373 |
if($blog[$i][created]){
|
| 374 |
$dates = $Modle_Time->getTime($blog[$i][created]);
|
| 375 |
if(!in_array(date('Y-m-d', $dates), $times)){
|
| 376 |
$times[] = date('Y-m-d', $dates);
|
| 377 |
}
|
| 378 |
}
|
| 379 |
}
|
Filename: /www/web/ggblog/public_html/app/Modle/Blog.php [351]
#6 Modle_Blog::_blogTime('167')
ARGS:
Array
(
[0] => 167
)
SOURCE CODE:
| 341 |
if(empty($ID) || !isset($ID)){
|
| 342 |
return false;
|
| 343 |
exit;
|
| 344 |
}
|
| 345 |
|
| 346 |
$Modle_Time = & FLEA::getSingleton('Modle_Time');
|
| 347 |
|
| 348 |
$date = empty($now)?date('Y-m-d H:i:s'):$now;
|
| 349 |
|
| 350 |
|
| 351 |
return $Modle_Time->dt($date, $this->_blogTime($ID), '/Front/List/U/' . $U);
|
| 352 |
|
| 353 |
}
|
| 354 |
|
| 355 |
//查询当前用户id 所有写博客的时间 返回数组
|
| 356 |
function _blogTime($ID){
|
| 357 |
if(empty($ID) || !isset($ID)){
|
| 358 |
return false;
|
| 359 |
exit;
|
| 360 |
}
|
| 361 |
|
Filename: /www/web/ggblog/public_html/app/Controller/Front.php [135]
#5 Modle_Blog::getTimeBar('167', 'naomi', )
ARGS:
Array
(
[0] => 167
[1] => naomi
[2] =>
)
SOURCE CODE:
| 125 |
$headcontent .= '
|
| 126 |
<script>(function(d, s, id) {var js, fjs = d.getElementsByTagName(s)[0];if (d.getElementById(id)) return;js = d.createElement(s); js.id = id;js.src = "//connect.facebook.net/ja_JP/all.js#xfbml=1";fjs.parentNode.insertBefore(js, fjs);}(document, "script", "facebook-jssdk"));</script>
|
| 127 |
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
|
| 128 |
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
|
| 129 |
|
| 130 |
|
| 131 |
';
|
| 132 |
$this->smarty->assign('headcontent', $headcontent);
|
| 133 |
|
| 134 |
//时间栏目
|
| 135 |
$this->smarty->assign('timebar', $Modle_Blog->getTimeBar($blog_e_rlt[member][mid], $_GET[U], $_GET[T]));
|
| 136 |
//月份栏目
|
| 137 |
$this->smarty->assign('month', $Modle_Blog->getBlogMonth($blog_e_rlt[member][mid]));
|
| 138 |
//最近访问栏目
|
| 139 |
$this->smarty->assign('near', $Modle_Near->getNearMember($blog_e_rlt[member][mid], 9));
|
| 140 |
//好友栏目
|
| 141 |
$this->smarty->assign('friend', $Modle_Friend->getFriends($blog_e_rlt[member][mid]), 9);
|
| 142 |
//最新记事
|
| 143 |
$this->smarty->assign('nearthing', $Modle_Blog->getNearThing($blog_e_rlt[member][mid]));
|
| 144 |
//分类显示
|
| 145 |
$this->smarty->assign('scate', $Modle_Blog->getBlogCategory($blog_e_rlt[member][mid]));
|
Filename: /www/web/ggblog/public_html/libs/FLEA/FLEA/Dispatcher/Simple.php [106]
#4 Controller_Front::Controller_Front('Front')
ARGS:
Array
(
[0] => Front
)
SOURCE CODE:
| 96 |
|
| 97 |
$controller = null;
|
| 98 |
$controllerClassFilename = null;
|
| 99 |
do {
|
| 100 |
// 载入控制对应的类定义
|
| 101 |
if (!$this->_loadController($controllerClass)) { break; }
|
| 102 |
|
| 103 |
// 构造控制器对象
|
| 104 |
FLEA::setAppInf('FLEA.internal.currentControllerName', $controllerName);
|
| 105 |
FLEA::setAppInf('FLEA.internal.currentActionName', $actionName);
|
| 106 |
$controller =& new $controllerClass($controllerName);
|
| 107 |
if (!method_exists($controller, $actionMethod)) { break; }
|
| 108 |
if (method_exists($controller, '__setController')) {
|
| 109 |
$controller->__setController($controllerName, $actionName);
|
| 110 |
}
|
| 111 |
if (method_exists($controller, '__setDispatcher')) {
|
| 112 |
$controller->__setDispatcher($this);
|
| 113 |
}
|
| 114 |
|
| 115 |
// 调用 _beforeExecute() 方法
|
| 116 |
if (method_exists($controller, '_beforeExecute')) {
|
Filename: /www/web/ggblog/public_html/libs/FLEA/FLEA/Dispatcher/Simple.php [77]
#3 FLEA_Dispatcher_Simple::_executeAction('Front', 'Index', 'Controller_Front')
ARGS:
Array
(
[0] => Front
[1] => Index
[2] => Controller_Front
)
SOURCE CODE:
| 67 |
|
| 68 |
/**
|
| 69 |
* 从请求中分析 Controller、Action 和 Package 名字,然后执行指定的 Action 方法
|
| 70 |
*
|
| 71 |
* @return mixed
|
| 72 |
*/
|
| 73 |
function dispatching()
|
| 74 |
{
|
| 75 |
$controllerName = $this->getControllerName();
|
| 76 |
$actionName = $this->getActionName();
|
| 77 |
return $this->_executeAction($controllerName, $actionName, $this->getControllerClass($controllerName));
|
| 78 |
}
|
| 79 |
|
| 80 |
/**
|
| 81 |
* 执行指定的 Action 方法
|
| 82 |
*
|
| 83 |
* @param string $controllerName
|
| 84 |
* @param string $actionName
|
| 85 |
* @param string $controllerClass
|
| 86 |
*
|
| 87 |
* @return mixed
|
Filename: /www/web/ggblog/public_html/libs/FLEA/FLEA.php [816]
#2 FLEA_Dispatcher_Simple::dispatching()
ARGS:
Array
(
)
SOURCE CODE:
| 806 |
require_once($MVCPackageFilename);
|
| 807 |
}
|
| 808 |
FLEA::init();
|
| 809 |
|
| 810 |
// 载入调度器并转发请求到控制器
|
| 811 |
$dispatcherClass = FLEA::getAppInf('dispatcher');
|
| 812 |
FLEA::loadClass($dispatcherClass);
|
| 813 |
|
| 814 |
$dispatcher =& new $dispatcherClass($_GET);
|
| 815 |
FLEA::register($dispatcher, $dispatcherClass);
|
| 816 |
$dispatcher->dispatching();
|
| 817 |
}
|
| 818 |
|
| 819 |
/**
|
| 820 |
* 准备运行环境
|
| 821 |
*
|
| 822 |
* @param boolean $loadMVC
|
| 823 |
*/
|
| 824 |
function init($loadMVC = false)
|
| 825 |
{
|
| 826 |
static $firstTime = true;
|
Filename: /www/web/ggblog/public_html/index.php [15]
#1 FLEA::runMVC()
ARGS:
Array
(
)
SOURCE CODE:
| 5 |
}
|
| 6 |
|
| 7 |
define('NO_LEGACY_FLEAPHP', true);
|
| 8 |
require('libs/FLEA/FLEA.php');
|
| 9 |
|
| 10 |
define('I_URL', dirname(__FILE__));
|
| 11 |
|
| 12 |
FLEA::loadAppInf($configFilename);
|
| 13 |
FLEA::import(I_URL . '/app');
|
| 14 |
|
| 15 |
FLEA::runMVC();
|
| 16 |
?>
|