亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? action.php

?? 一款可以和GOOGLE媲美的開源統(tǒng)計(jì)系統(tǒng),運(yùn)用AJAX.功能強(qiáng)大. 無(wú)色提示:按照需要PHP5.1以上和MySQL數(shù)據(jù)庫(kù)支持。
?? PHP
字號(hào):
<?php/** * Piwik - Open source web analytics *  * @link http://piwik.org * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later * @version $Id: Action.php 558 2008-07-20 23:10:38Z matt $ *  * @package Piwik_Tracker *//** * Interface of the Action object. * New Action classes can be defined in plugins and used instead of the default one. *  * @package Piwik_Tracker */interface Piwik_Tracker_Action_Interface {	public function getActionId();	public function record( $idVisit, $idRefererAction, $timeSpentRefererAction );	public function setIdSite( $idSite );}/** * Handles an action by the visitor. * A request to the piwik.php script is associated with one Action. * This class is used to build the Action Name (which can be built from the URL,  * or can be directly specified in the JS code, etc.). * It also saves the Action when necessary in the DB.  *   * About the Action concept: * - An action is defined by a name. * - The name can be specified in the JS Code in the variable 'action_name' *    For example you can decide to use the javascript value document.title as an action_name * - If the name is not specified, we use the URL(path+query) to build a default name. *    For example for "http://piwik.org/test/my_page/test.html"  *    the name would be "test/my_page/test.html" * - If the name is empty we set it to default_action_name found in global.ini.php * - Handling UTF8 in the action name * PLUGIN_IDEA - An action is associated to URLs and link to the URL from the reports (currently actions do not link to the url of the pages) * PLUGIN_IDEA - An action hit by a visitor is associated to the HTML title of the page that triggered the action and this HTML title is displayed in the interface *  *  * @package Piwik_Tracker */class Piwik_Tracker_Action implements Piwik_Tracker_Action_Interface{	private $actionName;	private $url;	private $defaultActionName;	private $nameDownloadOutlink;	private $idSite;		/**	 * 3 types of action, Standard action / Download / Outlink click	 */	const TYPE_ACTION   = 1;	const TYPE_DOWNLOAD = 3;	const TYPE_OUTLINK  = 2;		/**	 * @param Piwik_Tracker_Db Database object to be used	 */	function __construct( $db )	{		$this->actionName = Piwik_Common::getRequestVar( 'action_name', '', 'string');				$downloadVariableName = Piwik_Tracker_Config::getInstance()->Tracker['download_url_var_name'];		$this->downloadUrl = Piwik_Common::getRequestVar( $downloadVariableName, '', 'string');				$outlinkVariableName = Piwik_Tracker_Config::getInstance()->Tracker['outlink_url_var_name'];		$this->outlinkUrl = Piwik_Common::getRequestVar( $outlinkVariableName, '', 'string');				$nameVariableName = Piwik_Tracker_Config::getInstance()->Tracker['download_outlink_name_var'];		$this->nameDownloadOutlink = Piwik_Common::getRequestVar( $nameVariableName, '', 'string');				$this->url = Piwik_Common::getRequestVar( 'url', '', 'string');		$this->db = $db;		$this->defaultActionName = Piwik_Tracker_Config::getInstance()->Tracker['default_action_name'];	}			/**	 * Returns the idaction of the current action name.	 * This idaction is used in the visitor logging table to link the visit information 	 * (entry action, exit action) to the actions.	 * This idaction is also used in the table that links the visits and their actions.	 * 	 * The methods takes care of creating a new record in the action table if the existing 	 * action name doesn't exist yet.	 * 	 * @return int Id action that is associated to this action name in the Actions table lookup	 */	function getActionId()	{		$this->loadActionId();		return $this->idAction;	}		/**	 * @param int $idSite	 */	function setIdSite($idSite)	{		$this->idSite = $idSite;	}			/**	 * Records in the DB the association between the visit and this action.	 * 	 * @param int idVisit is the ID of the current visit in the DB table log_visit	 * @param int idRefererAction is the ID of the last action done by the current visit. 	 * @param int timeSpentRefererAction is the number of seconds since the last action was done. 	 * 				It is directly related to idRefererAction.	 */	 public function record( $idVisit, $idRefererAction, $timeSpentRefererAction)	 {	 	$this->db->query("/* SHARDING_ID_SITE = ".$this->idSite." */ INSERT INTO ".$this->db->prefixTable('log_link_visit_action')						." (idvisit, idaction, idaction_ref, time_spent_ref_action) VALUES (?,?,?,?)",					array($idVisit, $this->idAction, $idRefererAction, $timeSpentRefererAction)					);	 }	 	 /**	 * Generates the name of the action from the URL or the specified name.	 * Sets the name as $this->finalActionName	 * 	 * @return void	 */	private function generateInfo()	{		$actionName = '';		if(!empty($this->downloadUrl))		{			$this->actionType = self::TYPE_DOWNLOAD;			$url = $this->downloadUrl;			//$actionName = $this->nameDownloadOutlink;			$actionName = $url;		}		elseif(!empty($this->outlinkUrl))		{			$this->actionType = self::TYPE_OUTLINK;			$url = $this->outlinkUrl;			//remove the last '/' character if it's present			if(substr($url,-1) == '/')			{				$url = substr($url,0,-1);			}			$actionName = $this->nameDownloadOutlink;			if( empty($actionName) )			{				$actionName = $url;			}		}		else		{			$this->actionType = self::TYPE_ACTION;			$url = $this->url;			$actionName = $this->actionName;		}						// the ActionName wasn't specified		if( empty($actionName) )		{			$actionName = trim(Piwik_Common::getPathAndQueryFromUrl($url));						// in case the $actionName is ending with a slash, 			// which means that it is the index page of a category 			// we append the defaultActionName 			// toto/tata/ becomes toto/tata/index 			if(strlen($actionName) > 0 				&& $actionName[strlen($actionName)-1] == '/'			)			{				$actionName.=$this->defaultActionName;			}		}				/*		 * Clean the action name		 */		 		// get the delimiter, by default '/'		$actionCategoryDelimiter = Piwik_Tracker_Config::getInstance()->General['action_category_delimiter'];				// case the name is an URL we dont clean the name the same way		if(Piwik_Common::isLookLikeUrl($actionName))		{			$actionName = trim($actionName);		}		else		{			// create an array of the categories delimited by the delimiter			$split = explode($actionCategoryDelimiter, $actionName);						// trim every category			$split = array_map('trim', $split);						// remove empty categories			$split = array_filter($split);						// rebuild the name from the array of cleaned categories			$actionName = implode($actionCategoryDelimiter, $split);		}				// remove the extra bad characters if any (shouldn't be any at this point...)		$actionName = str_replace(array("\n", "\r"), '', $actionName);				if(empty($actionName))		{			$actionName = $this->defaultActionName;		}				$this->finalActionName = $actionName;	}		/**	 * Sets the attribute $idAction based on $finalActionName and $actionType.	 * 	 * @see getActionId()	 */	private function loadActionId()	{				$this->generateInfo();				$name = $this->finalActionName;		$type = $this->actionType;				$idAction = $this->db->fetch("/* SHARDING_ID_SITE = ".$this->idSite." */ 	SELECT idaction 							FROM ".$this->db->prefixTable('log_action')						."  WHERE name = ? AND type = ?", 						array($name, $type) 					);				// the action name has not been found, create it		if($idAction === false)		{			$this->db->query("/* SHARDING_ID_SITE = ".$this->idSite." */ INSERT INTO ". $this->db->prefixTable('log_action'). "( name, type ) 								VALUES (?,?)",array($name,$type) );			$idAction = $this->db->lastInsertId();		}		else		{			$idAction = $idAction['idaction'];		}				$this->idAction = $idAction;	}	}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品国一区二区三区| 国产成人在线看| 色婷婷av一区二区三区之一色屋| 亚洲国产精华液网站w | 一级日本不卡的影视| 在线看一区二区| 日韩成人一级大片| 精品嫩草影院久久| 成人国产精品视频| 亚洲一区在线看| 日韩精品一区在线| 国产999精品久久久久久绿帽| 中文字幕亚洲视频| 欧美日韩中文字幕一区| 蜜桃av一区二区三区电影| 国产色爱av资源综合区| 91麻豆国产福利在线观看| 亚洲一区二区欧美| 538在线一区二区精品国产| 久久99精品国产91久久来源| 欧美经典三级视频一区二区三区| 色欧美乱欧美15图片| 蜜臀va亚洲va欧美va天堂| 国产人成一区二区三区影院| 91免费视频观看| 蜜臀av性久久久久蜜臀aⅴ流畅| 久久精品一区四区| 欧美视频第二页| 国产成人亚洲精品青草天美| 亚洲一区精品在线| 久久日一线二线三线suv| 91国产丝袜在线播放| 国产在线观看一区二区| 一区二区三区成人在线视频| 精品国产乱码久久久久久老虎 | 97se亚洲国产综合自在线| 日本亚洲最大的色成网站www| 国产午夜精品一区二区三区嫩草| 色综合久久久久综合体桃花网| 美女免费视频一区二区| 亚洲精品国产高清久久伦理二区| 日韩免费观看高清完整版| 裸体一区二区三区| 日本大胆欧美人术艺术动态| 精品视频在线看| 国产高清精品久久久久| 亚洲第一福利一区| 国产精品久久毛片a| 欧美成人性战久久| 欧美三级日本三级少妇99| gogogo免费视频观看亚洲一| 久久国产精品一区二区| 亚洲chinese男男1069| 亚洲欧美偷拍三级| 欧美激情自拍偷拍| 久久久777精品电影网影网| 91精品国产欧美一区二区18| 一本到一区二区三区| 国产91色综合久久免费分享| 精品一区二区三区日韩| 午夜精品福利一区二区三区av| 亚洲伦在线观看| 日本一区二区三区国色天香 | 99精品欧美一区二区蜜桃免费 | 欧美国产综合一区二区| 日韩精品一区二区三区老鸭窝| 在线观看日韩av先锋影音电影院| www.99精品| av一区二区久久| av激情亚洲男人天堂| 国产成人福利片| 国产精华液一区二区三区| 精品一区二区在线看| 久久av中文字幕片| 久久国产福利国产秒拍| 久久er精品视频| 国产精品性做久久久久久| 国产乱人伦偷精品视频免下载 | 欧美一区二区三区播放老司机| 欧美丝袜自拍制服另类| 欧美巨大另类极品videosbest | 免费看日韩a级影片| 久色婷婷小香蕉久久| 精品一区二区精品| 国产一区二区美女诱惑| 国产成人午夜高潮毛片| 成人免费看视频| 一本色道久久加勒比精品| 在线观看欧美日本| 51精品国自产在线| 精品剧情v国产在线观看在线| 精品日韩一区二区三区| 久久精品人人爽人人爽| 国产精品视频你懂的| 国产精品白丝在线| 一区二区在线观看免费| 婷婷综合在线观看| 久久se精品一区精品二区| 丁香天五香天堂综合| 一本高清dvd不卡在线观看| 欧美精品粉嫩高潮一区二区| 精品国精品自拍自在线| 国产精品视频一二三| 一区二区三区国产豹纹内裤在线| 日韩精品午夜视频| 国产高清无密码一区二区三区| gogo大胆日本视频一区| 91麻豆精品国产无毒不卡在线观看| 日韩免费视频一区| 亚洲美女屁股眼交| 美女任你摸久久| 91最新地址在线播放| 在线不卡免费欧美| 欧美国产日本韩| 五月婷婷欧美视频| 国产xxx精品视频大全| 欧美这里有精品| 欧美精品一区二区三区视频| 日韩理论片在线| 国内久久精品视频| 91极品美女在线| 国产欧美视频一区二区| 亚洲成av人综合在线观看| 国产一区二区调教| 欧美日韩日日骚| 亚洲国产激情av| 美国三级日本三级久久99| www.av亚洲| 国产亚洲欧美激情| 青青草成人在线观看| 99热精品一区二区| 欧美精品一区视频| 亚洲成人午夜影院| 92国产精品观看| 久久久久88色偷偷免费| 天堂av在线一区| 色综合视频在线观看| 久久婷婷成人综合色| 日本欧美久久久久免费播放网| 99re成人在线| 国产人妖乱国产精品人妖| 蜜臀av国产精品久久久久| 色综合久久66| 国产精品久久二区二区| 国内精品嫩模私拍在线| 91精品国产综合久久久蜜臀粉嫩| 亚洲色图视频免费播放| 国产不卡在线一区| wwww国产精品欧美| 狠狠色丁香婷婷综合久久片| 51精品久久久久久久蜜臀| 亚洲国产日韩一级| 日本高清无吗v一区| ...xxx性欧美| 不卡免费追剧大全电视剧网站| 国产日韩欧美一区二区三区综合| 六月丁香综合在线视频| 91精品国产91久久综合桃花| 亚洲电影第三页| 欧美少妇一区二区| 香蕉成人啪国产精品视频综合网| 一本一本大道香蕉久在线精品 | 亚洲精品免费在线观看| 91啪在线观看| 亚洲综合在线第一页| 在线国产亚洲欧美| 亚洲.国产.中文慕字在线| 在线视频国产一区| 亚洲一区二区三区四区在线观看| 色婷婷一区二区| 亚洲最新视频在线观看| 欧美最新大片在线看| 亚洲福利电影网| 3d动漫精品啪啪一区二区竹菊| 午夜精品免费在线观看| 777色狠狠一区二区三区| 日日嗨av一区二区三区四区| 欧美一卡二卡在线| 蜜臀av国产精品久久久久| 精品国产1区二区| 国产二区国产一区在线观看| 日本一区二区三区国色天香| 成人理论电影网| 亚洲黄色录像片| 欧美日韩国产成人在线91| 麻豆91精品视频| 欧美激情综合在线| 在线观看不卡视频| 麻豆免费精品视频| 国产人成亚洲第一网站在线播放| 99视频国产精品| 日韩电影在线一区二区三区| 日韩免费性生活视频播放| 成人永久aaa| 亚洲主播在线观看| 久久亚洲春色中文字幕久久久| www.亚洲激情.com| 天堂va蜜桃一区二区三区漫画版| 久久亚洲精品小早川怜子| 99久久综合99久久综合网站|