⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 controller.php

📁 一款可以和GOOGLE媲美的开源统计系统,运用AJAX.功能强大. 无色提示:按照需要PHP5.1以上和MySQL数据库支持。
💻 PHP
字号:
<?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: Controller.php 661 2008-10-29 17:19:06Z matt $ *  * @package Piwik_API */require_once "API/Request.php";/** *  * @package Piwik_API */class Piwik_API_Controller extends Piwik_Controller{	function index()	{		$request = new Piwik_API_Request('token_auth='.Piwik_Common::getRequestVar('token_auth', 'anonymous', 'string'));		echo $request->process();	}	public function listAllMethods()	{		$this->init();		echo Piwik_API_Proxy::getInstance()->getAllInterfaceString( $outputExampleUrls = true, $prefixUrls = Piwik_Common::getRequestVar('prefixUrl', '') );	}		public function listAllAPI()	{		$view = new Piwik_View("API/templates/listAllAPI.tpl");		$this->setGeneralVariablesView($view);		$view->countLoadedAPI = $this->init();		$view->list_api_methods_with_links = Piwik_API_Proxy::getInstance()->getAllInterfaceString();		echo $view->render();	}		protected function init()	{		$plugins = Piwik_PluginsManager::getInstance()->getLoadedPluginsName();				$loaded = 0;		foreach( $plugins as $plugin )		{					$plugin = Piwik::unprefixClass($plugin);							try {				Piwik_API_Proxy::getInstance()->registerClass($plugin);				$loaded++;			}			catch(Exception $e){			}		}		return $loaded;	}		}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -