Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorLukas Winkler <github@lw1.at>2019-04-11 23:59:35 +0300
committerThomas Steur <tsteur@users.noreply.github.com>2019-04-11 23:59:35 +0300
commit5ed09086f99b6656cc3227ded3c146b05046577e (patch)
treee8a2a0e8625311914ef9f7abb712276663ab32ae /misc
parent7a7f529b9dbfec8b7a822c2e25fde011ba619a69 (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')
-rw-r--r--misc/gpl-3.0.txt8
-rw-r--r--misc/others/download-count.txt11
-rw-r--r--misc/others/iframeWidget_localhost.php76
-rw-r--r--misc/others/stress.sh5
-rw-r--r--misc/others/widget_example_lastvisits.html11
5 files changed, 4 insertions, 107 deletions
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. <http://fsf.org/>
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
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 <http://www.gnu.org/licenses/>.
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
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
-<http://www.gnu.org/licenses/>.
+<https://www.gnu.org/licenses/>.
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
-<http://www.gnu.org/philosophy/why-not-lgpl.html>.
+<https://www.gnu.org/licenses/why-not-lgpl.html>.
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>