This commit is contained in:
Kevin Röbert 2020-06-06 00:05:50 +02:00
parent da5fb0b3c0
commit 54210b71c5
14 changed files with 0 additions and 9567 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

9473
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,41 +0,0 @@
{
"name": "ClearURLs",
"description": "ClearURLs is an add-on based on the new WebExtensions technology and is optimized for Firefox. This add-on will remove the tracking fields form all URLs which are visited by the browser and use a rule file, namely data.json. This add-on protects your privacy and block the request from advertising services like doubleclick.net.",
"version": "1.2.1.4",
"contributors": [
{
"name": "Kevin R.",
"email": "clearurls_1@kevinroebert.de",
"web": "https://gitlab.com/KevinRoebert"
},
{
"name": "Arne",
"email": "clearurls_1@kevinroebert.de",
"web": "https://gitlab.com/astaar"
}
],
"maintainers": [
{
"name": "Kevin R.",
"email": "clearurls_1@kevinroebert.de",
"web": "https://gitlab.com/KevinRoebert"
}
],
"dependencies": {
"DataTables/DataTables": "1.10.16",
"ip-range-check": "^0.2.0",
"jquery/jquery": "3.2.1",
"lauren/pick-a-color": "1.2.3",
"orsozed/sha256.jquery.plugin": "1.0",
"twbs/bootstrap": "3.3.7"
},
"bugs": {
"web": "https://gitlab.com/KevinRoebert/ClearUrls/issues/new"
},
"licenses": [
{
"name": "QaPL v0.2",
"url": "https://gitlab.com/KevinRoebert/ClearUrls/blob/master/LICENSE.md"
}
]
}

View File

@ -1,53 +0,0 @@
<?php
/*
* ClearURLs
* Copyright (c) 2017-2020 Kevin Röbert
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
$servername = "...";
$username = "...";
$password = "...";
$dbname = "...";
if(isset($_GET['url'])) $url = urldecode($_GET['url']);
else http_response_code(404);
if(!empty($url) && filter_var($url, FILTER_VALIDATE_URL))
{
$hash = md5($url);
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
http_response_code(505);
}
$sql = "INSERT INTO reports (hash, url) VALUES ('$hash', '$url')";
if ($conn->query($sql) === TRUE) {
http_response_code(200);
} else {
http_response_code(500);
}
$conn->close();
}
else {
http_response_code(505);
}
?>