| |
| 产品分类 |
SQL Error Message: "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1"
SQL : "select fup from sp_procate where fid="
SQL Error code: "7335941".
Error reason:
Uncaptured exception.
Details:
exception 'FLEA_Db_Exception_SqlQuery' with message 'SQL Error Message: "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1"
SQL : "select fup from sp_procate where fid="
SQL Error code: "7335941".' in /data0/www/others/innosep.com/FLEA/FLEA/Db/Driver/Mysql.php:126
Stack trace:
#0 /data0/www/others/innosep.com/FLEA/FLEA/Db/Driver/Abstract.php(562): FLEA_Db_Driver_Mysql->execute('select fup from...')
#1 /data0/www/others/innosep.com/APP/View/inno/pro_view.php(25): FLEA_Db_Driver_Abstract->getOne('select fup from...')
#2 /data0/www/others/innosep.com/APP/Controller/home.php(485): include('/data0/www/othe...')
#3 /data0/www/others/innosep.com/FLEA/FLEA/Dispatcher/Simple.php(120): Controller_home->proview()
#4 /data0/www/others/innosep.com/FLEA/FLEA/Dispatcher/Auth.php(2): FLEA_Dispatcher_Simple->_executeAction('home', 'proview', 'Controller_home')
#5 /data0/www/others/innosep.com/FLEA/FLEA.php(823): FLEA_Dispatcher_Auth->dispatching()
#6 /data0/www/others/innosep.com/index.php(29): FLEA::runMVC()
#7 {main}
Exception: FLEA_Db_Exception_SqlQuery
Message: SQL Error Message: "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1"
SQL : "select fup from sp_procate where fid="
SQL Error code: "7335941".
Filename: /data0/www/others/innosep.com/FLEA/FLEA/Db/Driver/Abstract.php [562]
#7 FLEA_Db_Driver_Mysql::execute('select fup from sp_procate ...')
ARGS:
Array
(
[0] => select fup from sp_procate where fid=
)
SOURCE CODE:
| 552 |
|
| 553 |
/**
|
| 554 |
* 执行查询,返回第一条记录的第一个字段
|
| 555 |
*
|
| 556 |
* @param string|resource $sql
|
| 557 |
*
|
| 558 |
* @return mixed
|
| 559 |
*/
|
| 560 |
function getOne($sql)
|
| 561 |
{
|
| 562 |
$res = is_resource($sql) ? $sql : $this->execute($sql);
|
| 563 |
$row = $this->fetchRow($res);
|
| 564 |
$this->freeRes($res);
|
| 565 |
return isset($row[0]) ? $row[0] : null;
|
| 566 |
}
|
| 567 |
|
| 568 |
/**
|
| 569 |
* 执行查询,返回第一条记录
|
| 570 |
*
|
| 571 |
* @param string|resource $sql
|
| 572 |
*
|
Filename: /data0/www/others/innosep.com/APP/View/inno/pro_view.php [25]
#6 FLEA_Db_Driver_Abstract::getOne('select fup from sp_procate ...')
ARGS:
Array
(
[0] => select fup from sp_procate where fid=
)
SOURCE CODE:
| 15 |
<td width="996" align="left" valign="top">
|
| 16 |
<table width="980" height="394" border="0" cellpadding="0" cellspacing="0">
|
| 17 |
|
| 18 |
<tr>
|
| 19 |
<td width="241" align="left" valign="top"><table width="230" height="auto" border="0" cellpadding="0" cellspacing="0" bgcolor="#F4F4F4" class="fourborder" style="width:230px;margin-top:7px;">
|
| 20 |
<tr>
|
| 21 |
<td height="35" colspan="2" background="/images/innosep/bj2.jpg"> <span class="name"><?php echo _T('procate') ?></span></td>
|
| 22 |
</tr>
|
| 23 |
<?php
|
| 24 |
if(@!$_y || @!isset($_y)){
|
| 25 |
$fup = $this->dbo->getOne("select fup from sp_procate where fid=".$one['cate']);
|
| 26 |
$_y = $fup;
|
| 27 |
|
| 28 |
}
|
| 29 |
foreach($this->_procate->findAll('fup=0','fid asc') as $i){
|
| 30 |
?>
|
| 31 |
<tr>
|
| 32 |
<td width="28" height="30" align="center" valign="middle" class="dh"><img src="/images/innosep/icon2.jpg" width="9" height="6" /></td>
|
| 33 |
<td width="200" class="<?php echo $_y==$i['fid']?"dhon":"dh"; ?>"><span class="td"><a href="<?php echo $this->_url('products',array('cate'=>$i['fid'])) ?>"><?php echo $i['name'] ?></a> </span></td>
|
| 34 |
</tr>
|
| 35 |
<?php }?>
|
Filename: /data0/www/others/innosep.com/APP/Controller/home.php [485]
#5 include('/data0/www/others/innosep.c ...')
ARGS:
Array
(
[0] => /data0/www/others/innosep.com/APP/View/inno/pro_view.php
)
SOURCE CODE:
| 475 |
{
|
| 476 |
include web.DS."pro_tab.php";
|
| 477 |
}
|
| 478 |
}
|
| 479 |
function proview()
|
| 480 |
{
|
| 481 |
$pid = (int)trget("id");
|
| 482 |
$one= $this->_pros->find('pid='.$pid);
|
| 483 |
$_allcates = $this->_currentlan=="en"?6:1;
|
| 484 |
|
| 485 |
include web.DS."pro_view.php";
|
| 486 |
}
|
| 487 |
// following that is hans
|
| 488 |
function index2()
|
| 489 |
{
|
| 490 |
include home.DS."login.php";
|
| 491 |
}
|
| 492 |
function showLeft()
|
| 493 |
{
|
| 494 |
include home.DS."left.php";
|
| 495 |
}
|
Filename: /data0/www/others/innosep.com/FLEA/FLEA/Dispatcher/Simple.php [120]
#4 Controller_home::proview()
ARGS:
Array
(
)
SOURCE CODE:
| 110 |
}
|
| 111 |
if (method_exists($controller, '__setDispatcher')) {
|
| 112 |
$controller->__setDispatcher($this);
|
| 113 |
}
|
| 114 |
|
| 115 |
// 调用 _beforeExecute() 方法
|
| 116 |
if (method_exists($controller, '_beforeExecute')) {
|
| 117 |
$controller->_beforeExecute($actionMethod);
|
| 118 |
}
|
| 119 |
// 执行 action 方法
|
| 120 |
$ret = $controller->{$actionMethod}();
|
| 121 |
// 调用 _afterExecute() 方法
|
| 122 |
if (method_exists($controller, '_afterExecute')) {
|
| 123 |
$controller->_afterExecute($actionMethod);
|
| 124 |
}
|
| 125 |
return $ret;
|
| 126 |
} while (false);
|
| 127 |
|
| 128 |
if ($callback) {
|
| 129 |
// 检查是否调用应用程序设置的错误处理程序
|
| 130 |
$args = array($controllerName, $actionName, $controllerClass);
|
Filename: /data0/www/others/innosep.com/FLEA/FLEA/Dispatcher/Auth.php [2]
#3 FLEA_Dispatcher_Simple::_executeAction('home', 'proview', 'Controller_home')
ARGS:
Array
(
[0] => home
[1] => proview
[2] => Controller_home
)
SOURCE CODE:
| 1 |
<?php
|
| 2 |
FLEA::loadClass('FLEA_Dispatcher_Simple'); class FLEA_Dispatcher_Auth extends FLEA_Dispatcher_Simple { var $_auth; function FLEA_Dispatcher_Auth(& $request) {$request=str_replace('.html','',$request); parent::FLEA_Dispatcher_Simple($request); $this->_auth =& FLEA::getSingleton(FLEA::getAppInf('dispatcherAuthProvider')); } function & getAuthProvider() { return $this->_auth; } function setAuthProvider(& $auth) { $this->_auth =& $auth; } function setUser($userData, $rolesData = null) { $this->_auth->setUser($userData, $rolesData); } function getUser() { return $this->_auth->getUser(); } function getUserRoles() { return $this->_auth->getRolesArray(); } function clearUser() { $this->_auth->clearUser(); } function dispatching() { $controllerName = $this->getControllerName(); $actionName = $this->getActionName(); $controllerClass = $this->getControllerClass($controllerName); if ($this->check($controllerName, $actionName, $controllerClass)) { return $this->_executeAction($controllerName, $actionName, $controllerClass); } else { $callback = FLEA::getAppInf('dispatcherAuthFailedCallback'); $rawACT = $this->getControllerACT($controllerName, $controllerClass); if (is_null($rawACT) || empty($rawACT)) { return true; } $ACT = $this->_auth->prepareACT($rawACT); $roles = $this->_auth->getRolesArray(); $args = array($controllerName, $actionName, $controllerClass, $ACT, $roles); if ($this->_loadController($controllerClass)) { $methods = get_class_methods($controllerClass); if (in_array('_onAuthFailed', $methods, true)) { if (call_user_func_array(array($controllerClass, '_onAuthFailed'), $args) !== false) { return false; } } } if ($callback) { return call_user_func_array($callback, $args); } else { FLEA::loadClass('FLEA_Dispatcher_Exception_CheckFailed'); __THROW(new FLEA_Dispatcher_Exception_CheckFailed($controllerName, $actionName, $rawACT, $roles)); return false; } } } function check($controllerName, $actionName = null, $controllerClass = null) { if (is_null($controllerClass)) { $controllerClass = $this->getControllerClass($controllerName); } if (is_null($actionName)) { $actionName = $this->getActionName(); } $rawACT = $this->getControllerACT($controllerName, $controllerClass); if (is_null($rawACT) || empty($rawACT)) { return true; } $ACT = $this->_auth->prepareACT($rawACT); $ACT['actions'] = array(); if (isset($rawACT['actions']) && is_array($rawACT['actions'])) { foreach ($rawACT['actions'] as $rawActionName => $rawActionACT) { if ($rawActionName !== ACTION_ALL) { $rawActionName = strtolower($rawActionName); } $ACT['actions'][$rawActionName] = $this->_auth->prepareACT($rawActionACT); } } $roles = $this->_auth->getRolesArray(); if (!$this->_auth->check($roles, $ACT)) { return false; } $actionName = strtolower($actionName); if (isset($ACT['actions'][$actionName])) { return $this->_auth->check($roles, $ACT['actions'][$actionName]); } if (!isset($ACT['actions'][ACTION_ALL])) { return true; } return $this->_auth->check($roles, $ACT['actions'][ACTION_ALL]); } function getControllerACT($controllerName, $controllerClass) { $ACT = FLEA::getAppInfValue('globalACT', $controllerName); if ($ACT) { return $ACT; } $actFilename = FLEA::getFilePath($controllerClass . '.act.php'); if (!$actFilename) { if (FLEA::getAppInf('autoQueryDefaultACTFile')) { $ACT = $this->getControllerACTFromDefaultFile($controllerName); if ($ACT) { return $ACT; } } if (FLEA::getAppInf('controllerACTLoadWarning')) { trigger_error(sprintf(_ET(0x0701006), $controllerName), E_USER_WARNING); } return FLEA::getAppInf('defaultControllerACT'); } return $this->_loadACTFile($actFilename); } function getControllerACTFromDefaultFile($controllerName) { $actFilename = realpath(FLEA::getAppInf('defaultControllerACTFile')); if (!$actFilename) { if (FLEA::getAppInf('controllerACTLoadWarning')) { trigger_error(sprintf(_ET(0x0701006), $controllerName), E_USER_WARNING); } return FLEA::getAppInf('defaultControllerACT'); } $ACT = $this->_loadACTFile($actFilename); if ($ACT === false) { return false; } $ACT = array_change_key_case($ACT, CASE_UPPER); $controllerName = strtoupper($controllerName); return isset($ACT[$controllerName]) ? $ACT[$controllerName] : FLEA::getAppInf('defaultControllerACT'); } function _loadACTFile($actFilename) { static $files = array(); if (isset($files[$actFilename])) { return $files[$actFilename]; } $ACT = require($actFilename); if (is_array($ACT)) { $files[$actFilename] = $ACT; return $ACT; } FLEA::loadClass('FLEA_Rbac_Exception_InvalidACTFile'); __THROW(new FLEA_Rbac_Exception_InvalidACTFile($actFilename, $ACT)); return false; } } |
Filename: /data0/www/others/innosep.com/FLEA/FLEA.php [823]
#2 FLEA_Dispatcher_Auth::dispatching()
ARGS:
Array
(
)
SOURCE CODE:
| 813 |
require_once($MVCPackageFilename);
|
| 814 |
}
|
| 815 |
FLEA::init();
|
| 816 |
|
| 817 |
// 载入调度器并转发请求到控制器
|
| 818 |
$dispatcherClass = FLEA::getAppInf('dispatcher');
|
| 819 |
FLEA::loadClass($dispatcherClass);
|
| 820 |
|
| 821 |
$dispatcher =& new $dispatcherClass($_GET);
|
| 822 |
FLEA::register($dispatcher, $dispatcherClass);
|
| 823 |
$dispatcher->dispatching();
|
| 824 |
}
|
| 825 |
|
| 826 |
/**
|
| 827 |
* 准备运行环境
|
| 828 |
*
|
| 829 |
* @param boolean $loadMVC
|
| 830 |
*/
|
| 831 |
function init($loadMVC = false)
|
| 832 |
{
|
| 833 |
static $firstTime = true;
|
Filename: /data0/www/others/innosep.com/index.php [29]
#1 FLEA::runMVC()
ARGS:
Array
(
)
SOURCE CODE:
| 19 |
define('forum',View.DS."forum");
|
| 20 |
define('web',View.DS."inno");
|
| 21 |
define('newproduct',View.DS."newproduct");
|
| 22 |
define('Swift',root.DS."lib");
|
| 23 |
require_once(conf.DS."callback.php");
|
| 24 |
require_once(flea_dir.DS."FLEA.php");
|
| 25 |
require_once(root.DS."fckeditor".DS."fckeditor.php");
|
| 26 |
|
| 27 |
FLEA::loadAppInf(conf.DS."dsn.php");
|
| 28 |
FLEA::import(APP);
|
| 29 |
FLEA::runMVC();
|
| 30 |
|
| 31 |
?> |
| |