modifier.urlrewritebasicview.php
来自「一款可以和GOOGLE媲美的开源统计系统,运用AJAX.功能强大. 无色提示:」· PHP 代码 · 共 41 行
PHP
41 行
<?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: modifier.sumtime.php 168 2008-01-14 05:26:43Z matt $ * * @package SmartyPlugins *//** * Rewrites the given URL so that it looks like a URL that can be loaded directly. * Useful for users who don't handle javascript / ajax, they can still use piwik with these rewritten URLs. * * @return string */function smarty_modifier_urlRewriteBasicView($parameters){ // replace module=X by moduleToLoad=X // replace action=Y by actionToLoad=Y $parameters['moduleToLoad'] = $parameters['module']; unset($parameters['module']); if(isset( $parameters['action'])) { $parameters['actionToLoad'] = $parameters['action']; unset($parameters['action']); } else { $parameters['actionToLoad'] = null; } $url = Piwik_Url::getCurrentQueryStringWithParametersModified($parameters); // add module=CoreHome&action=showInContext $url = $url . '&module=CoreHome&action=showInContext'; return htmlspecialchars($url);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?