diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2008-06-26 03:57:04 +0400 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2008-06-26 03:57:04 +0400 |
commit | 623a8d24a81bc9964bc1e7c0dbed4388a9255713 (patch) | |
tree | b79022f051e04bf50d426cb00c3c5ea392575931 /plugins/SitesManager/Controller.php | |
parent | 4654c59b7f84eeedf284ec4dbcb7609c26ae4323 (diff) |
- converting line breaks to UNIX
Diffstat (limited to 'plugins/SitesManager/Controller.php')
-rw-r--r-- | plugins/SitesManager/Controller.php | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/plugins/SitesManager/Controller.php b/plugins/SitesManager/Controller.php index db62ad07aa..e7b5a3f91f 100644 --- a/plugins/SitesManager/Controller.php +++ b/plugins/SitesManager/Controller.php @@ -1,42 +1,42 @@ -<?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$
- *
- * @package Piwik_SitesManager
- */
-
-
-/**
- *
- * @package Piwik_SitesManager
- */
-class Piwik_SitesManager_Controller extends Piwik_Controller
-{
- function index()
- {
- $view = new Piwik_View('SitesManager/templates/SitesManager.tpl');
-
- $sites = Piwik_SitesManager_API::getSitesWithAdminAccess();
- foreach($sites as &$site)
- {
- $site['alias_urls'] = Piwik_SitesManager_API::getSiteUrlsFromId($site['idsite']);
- }
-// var_dump($sites);exit;
- $view->sites = $sites;
- echo $view->render();
- }
-
- function displayJavascriptCode()
- {
- $jsTag = Piwik::getJavascriptCode(Piwik_Common::getRequestVar('idsite',1), Piwik_Url::getCurrentUrlWithoutFileName());
-
- $view = new Piwik_View('SitesManager/templates/DisplayJavascriptCode.tpl');
- $view->jsTag = $jsTag;
-
- echo $view->render();
- }
+<?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$ + * + * @package Piwik_SitesManager + */ + + +/** + * + * @package Piwik_SitesManager + */ +class Piwik_SitesManager_Controller extends Piwik_Controller +{ + function index() + { + $view = new Piwik_View('SitesManager/templates/SitesManager.tpl'); + + $sites = Piwik_SitesManager_API::getSitesWithAdminAccess(); + foreach($sites as &$site) + { + $site['alias_urls'] = Piwik_SitesManager_API::getSiteUrlsFromId($site['idsite']); + } +// var_dump($sites);exit; + $view->sites = $sites; + echo $view->render(); + } + + function displayJavascriptCode() + { + $jsTag = Piwik::getJavascriptCode(Piwik_Common::getRequestVar('idsite',1), Piwik_Url::getCurrentUrlWithoutFileName()); + + $view = new Piwik_View('SitesManager/templates/DisplayJavascriptCode.tpl'); + $view->jsTag = $jsTag; + + echo $view->render(); + } }
\ No newline at end of file |