aboutsummaryrefslogtreecommitdiff
path: root/admin/api/deleteURL.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/api/deleteURL.php')
-rw-r--r--admin/api/deleteURL.php23
1 files changed, 0 insertions, 23 deletions
diff --git a/admin/api/deleteURL.php b/admin/api/deleteURL.php
deleted file mode 100644
index 895751e..0000000
--- a/admin/api/deleteURL.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-require_once $_SERVER['DOCUMENT_ROOT'] . "/admin/private/header.api.php";
-
-if (isset($_GET['_']) && strpos($_GET['_'], "/") === false) {
- $arg = $_GET['_'];
-} else {
- die();
-}
-
-$urls = explode("\n", file_get_contents("/mnt/minteckrolt-urls/links.txt"));
-$newUrlsArr = [];
-
-foreach ($urls as $url) {
- if (explode(" ", $url)[0] !== $arg) {
- $newUrlsArr[] = $url;
- }
-}
-
-file_put_contents("/mnt/minteckrolt-urls/links.txt", implode("\n", $newUrlsArr));
-
-header("Location: /admin/panes/shortens.php");
-die(); \ No newline at end of file