diff options
author | Lukas Winkler <github@lw1.at> | 2019-04-11 23:59:35 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2019-04-11 23:59:35 +0300 |
commit | 5ed09086f99b6656cc3227ded3c146b05046577e (patch) | |
tree | e8a2a0e8625311914ef9f7abb712276663ab32ae /misc/others | |
parent | 7a7f529b9dbfec8b7a822c2e25fde011ba619a69 (diff) |
misc/ cleanup (#14265)
* HTTPS links in GPL license
latest version from https://www.gnu.org/licenses/gpl.txt
* remove unneeded files in misc/
Diffstat (limited to 'misc/others')
-rw-r--r-- | misc/others/download-count.txt | 11 | ||||
-rw-r--r-- | misc/others/iframeWidget_localhost.php | 76 | ||||
-rw-r--r-- | misc/others/stress.sh | 5 | ||||
-rw-r--r-- | misc/others/widget_example_lastvisits.html | 11 |
4 files changed, 0 insertions, 103 deletions
diff --git a/misc/others/download-count.txt b/misc/others/download-count.txt deleted file mode 100644 index 3be6964b6f..0000000000 --- a/misc/others/download-count.txt +++ /dev/null @@ -1,11 +0,0 @@ -Count the download for 'latest.zip' on the 20th March - -# cat access.log | grep "20/Mar" | grep "latest.zip" | awk '{print $1}' | sort | uniq | wc -l - -Value to be compared with the one given by Piwik in Actions > Downloads - -Count the no of hits by referrers, excluding piwik.org as a referer -# cat /var/log/apache2/access.log | awk '{print $11}' | grep -vE "(^"-"$|/dev.piwik.org|/piwik.org)" | sort | uniq -c | sort -rn | head -n20 - -Count the no of hits by referrers -# cat /var/log/apache2/access.log | awk '{print $11}' | sort | uniq -c | sort -rn | head -n20 diff --git a/misc/others/iframeWidget_localhost.php b/misc/others/iframeWidget_localhost.php deleted file mode 100644 index a124b9767a..0000000000 --- a/misc/others/iframeWidget_localhost.php +++ /dev/null @@ -1,76 +0,0 @@ -<?php -use Piwik\FrontController; -use Piwik\Url; -use Piwik\UrlHelper; -use Piwik\Widget\WidgetsList; - -exit; -$date = date('Y-m-d'); -$period = 'month'; -$idSite = 1; -$url = "http://localhost/trunk/index.php?token_auth=0b809661490d605bfd77f57ed11f0b14&module=Widgetize&action=iframe&moduleToWidgetize=UserCountry&actionToWidgetize=getCountry&idSite=$idSite&period=$period&date=$date&disableLink=1"; - -?> -<html> -<body> -<h3 style="color:#143974">Embedding the Piwik Country widget in an Iframe</h3> - -<p>Loads a widget from localhost/trunk/ with login=root, pwd=test. <a href='<?= $url ?>'>Widget URL</a></p> - -<div id="widgetIframe"> - <iframe width="500" height="350" - src="<?php echo $url; ?>" scrolling="no" frameborder="0" marginheight="0" marginwidth="0"></iframe> -</div> - -<br/> - -<?php -$_GET['idSite'] = $idSite; -define('PIWIK_INCLUDE_PATH', '../..'); -define('PIWIK_ENABLE_DISPATCH', false); -define('PIWIK_ENABLE_ERROR_HANDLER', false); -define('PIWIK_ENABLE_SESSION_START', false); -require_once PIWIK_INCLUDE_PATH . "/index.php"; -require_once PIWIK_INCLUDE_PATH . "/core/API/Request.php"; - -FrontController::getInstance()->init(); -$widgets = WidgetsList::get()->getWidgetConfigs(); -$widgetCategoriesHandled = array(); -foreach ($widgets as $widgetConfig) { - $category = $widgetConfig->getCategoryId(); - - if (!empty($widgetCategoriesHandled[$category])) { - continue; - } - $widgetCategoriesHandled[$category] = true; - - echo '<h2>' . $category . '</h2>'; - - foreach ($widgets as $widget) { - if ($category !== $widget->getCategoryId()) { - continue; - } - - echo '<h3>' . \Piwik\Piwik::translate($widget->getName()) . '</h3>'; - $widgetUrl = UrlHelper::getArrayFromQueryString($url); - $widgetUrl['moduleToWidgetize'] = $widget->getModule(); - $widgetUrl['actionToWidgetize'] = $widget->getAction(); - $parameters = $widget->getParameters(); - unset($parameters['module']); - unset($parameters['action']); - foreach ($parameters as $name => $value) { - if (is_array($value)) { - $value = current($value); - } - $widgetUrl[$name] = $value; - } - $widgetUrl = Url::getQueryStringFromParameters($widgetUrl); - - echo '<div id="widgetIframe"><iframe width="500" height="350" - src="' . $widgetUrl . '" scrolling="no" frameborder="0" marginheight="0" marginwidth="0"></iframe></div>'; - - } -} -?> -</body> -</html> diff --git a/misc/others/stress.sh b/misc/others/stress.sh deleted file mode 100644 index 1482fba911..0000000000 --- a/misc/others/stress.sh +++ /dev/null @@ -1,5 +0,0 @@ -echo " -Stress testing piwik.php -======================== -" -ab -n5000 -c50 "http://localhost/dev/piwiktrunk/piwik.php?url=http%3A%2F%2Flocalhost%2Fdev%2Fpiwiktrunk%2F&action_name=&idsite=1&res=1280x1024&col=24&h=18&m=46&s=59&fla=1&dir=0&qt=1&realp=1&pdf=0&wma=1&java=1&cookie=1&title=&urlref=" diff --git a/misc/others/widget_example_lastvisits.html b/misc/others/widget_example_lastvisits.html deleted file mode 100644 index 0446fc7672..0000000000 --- a/misc/others/widget_example_lastvisits.html +++ /dev/null @@ -1,11 +0,0 @@ -<html> -<body> -<p>Number of visits per week for the last 52 weeks</p> - -<div id="widgetIframe"> - <iframe width="800" height="450" - src="https://matomo.org/demo/index.php?module=Widgetize&action=iframe&moduleToWidgetize=VisitsSummary&actionToWidgetize=getEvolutionGraph&idSite=1&period=week&date=last52&columns[]=nb_visits&disableLink=1" - scrolling="no" frameborder="0" marginheight="0" marginwidth="0"></iframe> -</div> -</body> -</html> |