MODPATH/database/classes/kohana/database/mysql.php [ 194 ]
189 {
190 // This benchmark is worthless
191 Profiler::delete($benchmark);
192 }
193
194 throw new Database_Exception(':error [ :query ]',
195 array(':error' => mysql_error($this->_connection), ':query' => $sql),
196 mysql_errno($this->_connection));
197 }
198
199 if (isset($benchmark))
-
MODPATH/database/classes/kohana/database/query.php [ 275 ] » Kohana_Database_MySQL->query(arguments)
0
integer 1
1
string(308) "select type,amount from sline_coupon WHERE kindid=1 and isopen=1 and isdel=0 and (typeid=0 or (find_in_set(5,modules) and typeid …"
2
bool FALSE
3
array(0)
270 return new Database_Result_Cached($result, $sql, $as_object, $object_params); 271 } 272 } 273 274 // Execute the query 275 $result = $db->query($this->_type, $sql, $as_object, $object_params); 276 277 if (isset($cache_key) AND $this->_lifetime > 0) 278 { 279 // Cache the result array 280 Kohana::cache($cache_key, $result->as_array(), $this->_lifetime);
-
DOCROOT/plugins/coupon/classes/model/coupon.php [ 579 ] » Kohana_Database_Query->execute()
574 { 575 $info = array(); 576 $time = time(); 577 $sql = "select type,amount from sline_coupon WHERE kindid=1 and isopen=1 and isdel=0 and (typeid=0 or (find_in_set($typeid,modules) and typeid=1) or (typeid=9999 and id in 578 (select cid from sline_coupon_pro WHERE typeid=$typeid and proid=$productid))) and (isnever=0 or (starttime<$time and endtime>$time)) order by displayorder"; 579 $result = DB::query(1,$sql)->execute()->as_array(); 580 $totalnum = count($result); 581 foreach($result as $key=>$r) 582 { 583 if($key<3) 584 {
-
DOCROOT/data/cache/v5/tplcache/default/spot/show.php [ 101 ] » Model_Coupon::get_mobile_coupon_info(arguments)
0
integer 5
1
NULL
96 </div> 97 <div class="info-item clearfix"> 98 <span class="label">积分促销:</span> 99 <div class="text"><?php echo implode('、',$info['jifen_des_arr']);?></div> 100 </div> 101 <?php if(St_Functions::is_normal_app_install('coupon') && ($coupon=Model_Coupon::get_mobile_coupon_info($typeid,$info['id'])) && $coupon['totalnum']>0 ) { ?> 102 <div class="info-item clearfix"> 103 <span class="label">优惠券:</span> 104 <div class="text clearfix"> 105 <?php $n=1; if(is_array($coupon['price'])) { foreach($coupon['price'] as $coupon_price) { ?> 106 <p class="yhq"><?php echo $coupon_price;?>优惠券</p>
-
APPPATH/classes/stourweb/view.php [ 65 ] » include(arguments)
0
string(59) "/data/aiketour/data/cache/v5/tplcache/default/spot/show.php"
60 $file_content = self::get_file($kohana_view_filename); 61 $new_content = self::compile_template($file_content, $this->_data); 62 //$new_content = self::compress_html($new_content); 63 self::write_file($to, $new_content);//写缓存文件. 64 } 65 include($to); 66 } 67 else if ($this->_innertext !== NULL) 68 { 69 $to = $tpl_cache_dir . $this->_innertex_name . '.php'; 70 $new_content = self::compile_template($this->_innertext, $this->_data);
-
DOCROOT/tools/classes/class/view.php [ 420 ] » Stourweb_View->capture(arguments)
0
string(60) "/data/aiketour/plugins/developer/views/default/spot/show.php"
1
array(12) ( "cmsurl" => string(1) "/" "webname" => string(12) "爱客纯玩" "typeid" => integer 5 "channelname" => string(12) "沿途景点" "crumbs" => array(3) ( 0 => array(2) ( "name" => string(6) "首页" "href" => string(1) "/" ) 1 => array(2) ( "name" => string(12) "沿途景点" "href" => string(7) "/spots/" ) 2 => array(1) ( "name" => NULL ) ) "seoinfo" => array(3) ( "seotitle" => string(0) "" "keyword" => string(0) "" "description" => string(0) "" ) "info" => array(14) ( "piclist" => NULL "attrlist" => NULL "price" => integer 0 "sellprice" => integer 0 "commentnum" => integer 0 "sellnum" => integer 3820 "series" => string(2) "15" "iconlist" => array(0) "score" => string(4) "100%" "hasticket" => bool FALSE "jifentprice_info" => bool FALSE "jifenbook_info" => bool FALSE "jifencomment_info" => bool FALSE "jifen_des_arr" => array(0) ) "paytypeArr" => array(4) ( 0 => string(1) "1" 1 => string(1) "8" 2 => string(2) "11" 3 => string(1) "4" ) "extendinfo" => array(0) "destid" => NULL "tagword" => NULL "templetdata" => array(11) ( "cmsurl" => string(1) "/" "webname" => string(12) "爱客纯玩" "typeid" => integer 5 "channelname" => string(12) "沿途景点" "crumbs" => array(3) ( 0 => array(2) ( "name" => string(6) "首页" "href" => string(1) "/" ) 1 => array(2) ( "name" => string(12) "沿途景点" "href" => string(7) "/spots/" ) 2 => array(1) ( "name" => NULL ) ) "seoinfo" => array(3) ( "seotitle" => string(0) "" "keyword" => string(0) "" "description" => string(0) "" ) "info" => array(14) ( "piclist" => NULL "attrlist" => NULL "price" => integer 0 "sellprice" => integer 0 "commentnum" => integer 0 "sellnum" => integer 3820 "series" => string(2) "15" "iconlist" => array(0) "score" => string(4) "100%" "hasticket" => bool FALSE "jifentprice_info" => bool FALSE "jifenbook_info" => bool FALSE "jifencomment_info" => bool FALSE "jifen_des_arr" => array(0) ) "paytypeArr" => array(4) ( 0 => string(1) "1" 1 => string(1) "8" 2 => string(2) "11" 3 => string(1) "4" ) "extendinfo" => array(0) "destid" => NULL "tagword" => NULL ) )
-
APPPATH/classes/stourweb/controller.php [ 114 ] » Class_View->render()
109 $view->set($key, $value); 110 $view->set_global($key, $value); 111 } 112 113 114 $this->response->body($view->render()); 115 116 117 } 118 }
-
DOCROOT/plugins/spot/classes/controller/pc/spot.php [ 547 ] » Stourweb_Controller->display(arguments)
0
string(9) "spot/show"
542 $this->assign('tagword', $info['tagword']); 543 544 $templet = Model_Spot::get_product_template($info); 545 $templet= $templet? $templet : Product::get_use_templet('spot_show'); 546 $templet = $templet ? $templet : 'spot/show'; 547 $this->display($templet); 548 549 Product::update_click_rate($info['aid'], $this->_typeid); 550 //缓存内容 551 $content = $this->response->body(); 552 Common::cache('set', $this->_cache_key, $content);
-
{PHP internal call} » Controller_Pc_Spot->action_show()
-
SYSPATH/classes/kohana/request/client/internal.php [ 116 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Pc_Spot(7)
{ private _typeid => integer 5 private _cache_key => string(44) "https://czx.aiketour.com/spots/show_167.html" protected cmsurl => string(1) "/" public _data => array(12) ( "cmsurl" => string(1) "/" "webname" => string(12) "爱客纯玩" "typeid" => integer 5 "channelname" => string(12) "沿途景点" "crumbs" => array(3) ( 0 => array(2) ( "name" => string(6) "首页" "href" => string(1) "/" ) 1 => array(2) ( "name" => string(12) "沿途景点" "href" => string(7) "/spots/" ) 2 => array(1) ( "name" => NULL ) ) "seoinfo" => array(3) ( "seotitle" => string(0) "" "keyword" => string(0) "" "description" => string(0) "" ) "info" => array(14) ( "piclist" => NULL "attrlist" => NULL "price" => integer 0 "sellprice" => integer 0 "commentnum" => integer 0 "sellnum" => integer 3820 "series" => string(2) "15" "iconlist" => array(0) "score" => string(4) "100%" "hasticket" => bool FALSE "jifentprice_info" => bool FALSE "jifenbook_info" => bool FALSE "jifencomment_info" => bool FALSE "jifen_des_arr" => array(0) ) "paytypeArr" => array(4) ( 0 => string(1) "1" 1 => string(1) "8" 2 => string(2) "11" 3 => string(1) "4" ) "extendinfo" => array(0) "destid" => NULL "tagword" => NULL "templetdata" => array(11) ( "cmsurl" => string(1) "/" "webname" => string(12) "爱客纯玩" "typeid" => integer 5 "channelname" => string(12) "沿途景点" "crumbs" => array(3) ( 0 => array(2) ( "name" => string(6) "首页" "href" => string(1) "/" ) 1 => array(2) ( "name" => string(12) "沿途景点" "href" => string(7) "/spots/" ) 2 => array(1) ( "name" => NULL ) ) "seoinfo" => array(3) ( "seotitle" => string(0) "" "keyword" => string(0) "" "description" => string(0) "" ) "info" => array(14) ( "piclist" => NULL "attrlist" => NULL "price" => integer 0 "sellprice" => integer 0 "commentnum" => integer 0 "sellnum" => integer 3820 "series" => string(2) "15" "iconlist" => array(0) "score" => string(4) "100%" "hasticket" => bool FALSE "jifentprice_info" => bool FALSE "jifenbook_info" => bool FALSE "jifencomment_info" => bool FALSE "jifen_des_arr" => array(0) ) "paytypeArr" => array(4) ( 0 => string(1) "1" 1 => string(1) "8" 2 => string(2) "11" 3 => string(1) "4" ) "extendinfo" => array(0) "destid" => NULL "tagword" => NULL ) ) public params => array(1) ( "" => integer 0 ) public request => object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => string(43) "http://czx.aiketour.com/spots/show_167.html" protected _route => object Route(5)
public response => object Response(5){ protected _callback => NULL protected _uri => string(27) "spots(/<action>_<aid>.html)" protected _regex => array(2) ( "aid" => string(3) "\d+" "action" => string(4) "show" ) protected _defaults => array(3) ( "action" => string(5) "index" "controller" => string(4) "spot" "directory" => string(2) "pc" ) protected _route_regex => string(52) "#^spots(?:/(?P<action>show)_(?P<aid>\d+)\.html)?$#uD" }
protected _routes => array(0) protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }{ }
protected _body => NULL protected _directory => string(2) "pc" protected _controller => string(4) "spot" protected _action => string(4) "show" protected _uri => string(19) "spots/show_167.html" protected _external => bool FALSE protected _params => array(1) ( "aid" => string(3) "167" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
}{ protected _status => integer 200 protected _header => object HTTP_Header(0)
}{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }111 throw new HTTP_Exception_404('The requested URL :uri was not found on this server.', 112 array(':uri' => $request->uri())); 113 } 114 115 $method = $class->getMethod('action_'.$action); 116 $method->invoke($controller); 117 118 // Execute the "after action" method 119 $class->getMethod('after')->invoke($controller); 120 } 121 catch (Exception $e)
-
SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => string(43) "http://czx.aiketour.com/spots/show_167.html" protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(27) "spots(/<action>_<aid>.html)" protected _regex => array(2) ( "aid" => string(3) "\d+" "action" => string(4) "show" ) protected _defaults => array(3) ( "action" => string(5) "index" "controller" => string(4) "spot" "directory" => string(2) "pc" ) protected _route_regex => string(52) "#^spots(?:/(?P<action>show)_(?P<aid>\d+)\.html)?$#uD" }
protected _routes => array(0) protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }{ }
protected _body => NULL protected _directory => string(2) "pc" protected _controller => string(4) "spot" protected _action => string(4) "show" protected _uri => string(19) "spots/show_167.html" protected _external => bool FALSE protected _params => array(1) ( "aid" => string(3) "167" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
}59 public function execute(Request $request) 60 { 61 if ($this->_cache instanceof HTTP_Cache) 62 return $this->_cache->execute($this, $request); 63 64 return $this->execute_request($request); 65 } 66 67 /** 68 * Processes the request passed to it and returns the response from 69 * the URI resource identified.
-
SYSPATH/classes/kohana/request.php [ 1160 ] » Kohana_Request_Client->execute(arguments)
0
object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => string(43) "http://czx.aiketour.com/spots/show_167.html" protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(27) "spots(/<action>_<aid>.html)" protected _regex => array(2) ( "aid" => string(3) "\d+" "action" => string(4) "show" ) protected _defaults => array(3) ( "action" => string(5) "index" "controller" => string(4) "spot" "directory" => string(2) "pc" ) protected _route_regex => string(52) "#^spots(?:/(?P<action>show)_(?P<aid>\d+)\.html)?$#uD" }
protected _routes => array(0) protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }{ }
protected _body => NULL protected _directory => string(2) "pc" protected _controller => string(4) "spot" protected _action => string(4) "show" protected _uri => string(19) "spots/show_167.html" protected _external => bool FALSE protected _params => array(1) ( "aid" => string(3) "167" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
}1155 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 1156 ':uri' => $this->_uri, 1157 )); 1158 } 1159 1160 return $this->_client->execute($this); 1161 } 1162 1163 /** 1164 * Returns whether this request is the initial request Kohana received. 1165 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 136 ] » Kohana_Request->execute()
131 /** 132 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 133 * If no source is specified, the URI will be automatically detected. 134 */ 135 echo Request::factory() 136 ->execute() 137 ->send_headers(TRUE) 138 ->body(); 139 140 }