From 5ed09086f99b6656cc3227ded3c146b05046577e Mon Sep 17 00:00:00 2001 From: Lukas Winkler Date: Thu, 11 Apr 2019 22:59:35 +0200 Subject: misc/ cleanup (#14265) * HTTPS links in GPL license latest version from https://www.gnu.org/licenses/gpl.txt * remove unneeded files in misc/ --- misc/gpl-3.0.txt | 8 ++-- misc/others/download-count.txt | 11 ----- misc/others/iframeWidget_localhost.php | 76 ------------------------------ misc/others/stress.sh | 5 -- misc/others/widget_example_lastvisits.html | 11 ----- 5 files changed, 4 insertions(+), 107 deletions(-) delete mode 100644 misc/others/download-count.txt delete mode 100644 misc/others/iframeWidget_localhost.php delete mode 100644 misc/others/stress.sh delete mode 100644 misc/others/widget_example_lastvisits.html (limited to 'misc') diff --git a/misc/gpl-3.0.txt b/misc/gpl-3.0.txt index 94a9ed024d..f288702d2f 100644 --- a/misc/gpl-3.0.txt +++ b/misc/gpl-3.0.txt @@ -1,7 +1,7 @@ GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. @@ -645,7 +645,7 @@ the "copyright" line and a pointer to where the full notice is found. GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program. If not, see . + along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. @@ -664,11 +664,11 @@ might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see -. +. The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read -. +. 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 @@ - - - -

Embedding the Piwik Country widget in an Iframe

- -

Loads a widget from localhost/trunk/ with login=root, pwd=test. Widget URL

- -
- -
- -
- -init(); -$widgets = WidgetsList::get()->getWidgetConfigs(); -$widgetCategoriesHandled = array(); -foreach ($widgets as $widgetConfig) { - $category = $widgetConfig->getCategoryId(); - - if (!empty($widgetCategoriesHandled[$category])) { - continue; - } - $widgetCategoriesHandled[$category] = true; - - echo '

' . $category . '

'; - - foreach ($widgets as $widget) { - if ($category !== $widget->getCategoryId()) { - continue; - } - - echo '

' . \Piwik\Piwik::translate($widget->getName()) . '

'; - $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 '
'; - - } -} -?> - - 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 @@ - - -

Number of visits per week for the last 52 weeks

- -
- -
- - -- cgit v1.2.3