SELECT * FROM plugin WHERE filename = 'System_Update' ORDER BY id LIMIT 1
執(zhí)行錯誤: MySQL server has gone away
- /home/codes/webcode/xmgbuy.com/SpeedPHP/Drivers/mysql.php on line 62
57.
{
58.
$this->arrSql[] = $sql;
59.
if( $result = mysql_query($sql, $this->conn) ){
60.
return $result;
61.
}else{
62.
63.
spError("{$sql}<br />執(zhí)行錯誤: " . mysql_error());
}
64.
}
65.
66.
/**
67.
* 返回影響行數(shù)
- /home/codes/webcode/xmgbuy.com/SpeedPHP/Drivers/mysql.php on line 26
21.
*
22.
* @param sql 執(zhí)行的SQL語句
23.
*/
24.
public function getArray($sql)
25.
{
26.
27.
if( ! $result = $this->exec($sql) )return array();
if( ! mysql_num_rows($result) )return array();
28.
$rows = array();
29.
while($rows[] = mysql_fetch_array($result,MYSQL_ASSOC)){}
30.
mysql_free_result($result);
31.
array_pop($rows);
- /home/codes/webcode/xmgbuy.com/SpeedPHP/Core/spModel.php on line 103
98.
}else{
99.
$sort = "ORDER BY {$this->pk}";
100.
}
101.
$sql = "SELECT {$fields} FROM {$this->tbl_name} {$where} {$sort}";
102.
if(null != $limit)$sql = $this->_db->setlimit($sql, $limit);
103.
104.
return $this->_db->getArray($sql);
}
105.
/**
106.
* 過濾轉(zhuǎn)義字符
107.
*
108.
* @param value 需要進行過濾的值
- /home/codes/webcode/xmgbuy.com/SpeedPHP/Core/spModel.php on line 65
60.
* @param sort 排序,等同于“ORDER BY ”
61.
* @param fields 返回的字段范圍,默認為返回全部字段的值
62.
*/
63.
public function find($conditions = null, $sort = null, $fields = null)
64.
{
65.
66.
if( $record = $this->findAll($conditions, $sort, $fields, 1) ){
return array_pop($record);
67.
}else{
68.
return FALSE;
69.
}
70.
}
- /home/codes/webcode/xmgbuy.com/include/get_plugins.php on line 5
1.
<?php
2.
$lib_plugin = spClass("lib_plugin");
3.
$filename = str_ireplace("Run_","",$data['name']);
4.
$conditions = array( 'filename' => $filename );
5.
6.
$pluginobj = $lib_plugin->find($conditions);
$configdata = $pluginobj['configdata'];
7.
$configdatas = json_decode($configdata,true);
8.
// 獲取全局配置
9.
$configs = simplexml_load_file('rules/deploy.xml');
10.
$n=0;
- /home/codes/webcode/xmgbuy.com/plugin/System_Update/Run_System_Update.php on line 7
2.
class Run_System_Update implements Iplugin {
3.
public static function getName(){
4.
$data['name'] = "Run_System_Update";
5.
$data['plugin_name'] = "系統(tǒng)更新";
6.
$data['fun_member'] = get_class_methods($data['name']);
7.
8.
require("include/get_plugins.php");
$data['config'] = $configdatas;
9.
return $data;
10.
}
11.
12.
public static function manage_header_menu_system(){
- /home/codes/webcode/xmgbuy.com/plugin/System_Update/Run_System_Update.php on line 29
24.
return array(array('mode'=>$mode,'tpldata'=>$tpldata,'config'=>$configdatas['config']));
25.
// mode | 1=使用模板,0=不適用模板. data | 輸出數(shù)據(jù)
26.
}
27.
28.
public static function mymanage(){
29.
30.
$configdatas = Run_System_Update::getName();
$tpldata = $configdatas['config']['menudata'];
31.
$deploy = $configdatas['config']['deploy'];
32.
33.
$webdomain = $deploy['domain']['event'];
34.
- /home/codes/webcode/xmgbuy.com/include/fun_plugins/mymanage.php on line 8
3.
$Itemdata = array();
4.
foreach (findPlugins() as $plugin){
5.
if ($plugin->hasMethod($paths)) {
6.
$reflectionMethod = $plugin->getMethod($paths);
7.
if ($reflectionMethod->isStatic()) {
8.
9.
$items = $reflectionMethod->invoke(null);
} else {
10.
$pluginInstance = $plugin->newInstance();
11.
$items = $reflectionMethod->invoke($pluginInstance);
12.
}
13.
$Itemdata = array_merge($Itemdata,$items);
- /home/codes/webcode/xmgbuy.com/include/fun_plugins/mymanage.php on line 18
13.
$Itemdata = array_merge($Itemdata,$items);
14.
}
15.
}
16.
return $Itemdata;
17.
}
18.
19.
$mymanage= mymanage("mymanage");
?>
- /home/codes/webcode/xmgbuy.com/include/run_plugins.php on line 58
53.
$classname = "Run_".$run_value['filename'];
54.
$getinfo = new $classname();
55.
$funinfos = $getinfo->getName();
56.
foreach ($funinfos['fun_member'] as $key => $fileval) {
57.
if($key > 0){
58.
59.
require_once("include/fun_plugins/".$fileval.".php");
}
60.
}
61.
}
62.
63.
//---index.php--------------------------------------
- /home/codes/webcode/xmgbuy.com/controller/tplbasis.php on line 452
447.
//$this->current_url = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
448.
$this->host_url = 'https://'.$_SERVER['HTTP_HOST'];
449.
$_SESSION["host_url"] = 'https://'.$_SERVER['HTTP_HOST'];
450.
451.
// -------------- 插件模式(2014-4-5增加) start --------------------
452.
453.
require("include/run_plugins.php");
//dump($this->osvars);
454.
//dump($this->run_pluginobj);
455.
$this->dep_pl_model = "0"; // 系統(tǒng)插件鉤子分布查看 1=打開,0=關(guān)閉
456.
// -------------- 插件模式(2014-4-5增加) end --------------------
457.
- /home/codes/webcode/xmgbuy.com/SpeedPHP/spFunctions.php on line 149
144.
}
145.
}
146.
if(FALSE != $has_define){
147.
$argString = '';$comma = '';
148.
if(null != $args)for ($i = 0; $i < count($args); $i ++) { $argString .= $comma . "\$args[$i]"; $comma = ', '; }
149.
150.
eval("\$GLOBALS['G_SP']['inst_class'][\$class_name]= new \$class_name($argString);");
return $GLOBALS['G_SP']["inst_class"][$class_name];
151.
}
152.
spError($class_name."類定義不存在,請檢查。");
153.
}
154.
- /home/codes/webcode/xmgbuy.com/SpeedPHP/spFunctions.php on line 14
9.
function spRun(){
10.
GLOBAL $__controller, $__action;
11.
// 對路由進行自動執(zhí)行相關(guān)操作
12.
spLaunch("router_prefilter");
13.
// 對將要訪問的控制器類進行實例化
14.
15.
$handle_controller = spClass($__controller, null, $GLOBALS['G_SP']["controller_path"].'/'.$__controller.".php");
// 調(diào)用控制器出錯將調(diào)用路由錯誤處理函數(shù)
16.
if(!is_object($handle_controller) || !method_exists($handle_controller, $__action)){
17.
eval($GLOBALS['G_SP']["dispatcher_error"]);
18.
exit;
19.
}
- /home/codes/webcode/xmgbuy.com/index.php on line 58
53.
),
54.
)
55.
);
56.
require(SP_PATH."/SpeedPHP.php");
57.
import(APP_PATH.'/controller/tplbasis.php'); // 需要先載入top控制器父類
58.
spRun();