diff options
author | Minteck <contact@minteck.org> | 2022-01-01 10:37:28 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-01-01 10:37:28 +0100 |
commit | ef055e79855cf3be1ad5e1aa5f9ebad480062384 (patch) | |
tree | ff074b29a7a87c3ccfc3b10741bbe30cb28e103e /admin/api/createURL.php | |
parent | e3a79df6428799024eac64e9cffbb062317aeb95 (diff) | |
download | main-trunk.tar.gz main-trunk.tar.bz2 main-trunk.zip |
Diffstat (limited to 'admin/api/createURL.php')
-rw-r--r-- | admin/api/createURL.php | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/admin/api/createURL.php b/admin/api/createURL.php deleted file mode 100644 index dc8a569..0000000 --- a/admin/api/createURL.php +++ /dev/null @@ -1,20 +0,0 @@ -<?php
-
-require_once $_SERVER['DOCUMENT_ROOT'] . "/admin/private/header.api.php";
-
-if (isset($_GET['shortenedName']) && strpos($_GET['shortenedName'], "/") === false && strpos($_GET['shortenedName'], " ") === false) {
- $name = $_GET['shortenedName'];
-} else {
- die();
-}
-
-if (isset($_GET['redirectsTo']) && strpos($_GET['shortenedName'], " ") === false) {
- $output = $_GET['redirectsTo'];
-} else {
- die();
-}
-
-file_put_contents("/mnt/minteckrolt-urls/links.txt", file_get_contents("/mnt/minteckrolt-urls/links.txt") . "\n" . $name . " " . $output);
-
-header("Location: /admin/panes/shortens.php");
-die();
\ No newline at end of file |