From b70aeacf036a6604f6b233576ca68152557189e4 Mon Sep 17 00:00:00 2001 From: Fbenas Date: Sat, 5 Dec 2015 17:27:54 +0000 Subject: Add files to allow search of blaupload.\n WIP. --- config.ini.example | 2 ++ index.php | 2 ++ search.php | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 config.ini.example create mode 100644 index.php create mode 100644 search.php diff --git a/config.ini.example b/config.ini.example new file mode 100644 index 0000000..df9bcf4 --- /dev/null +++ b/config.ini.example @@ -0,0 +1,2 @@ +url = http://www.blaupload.co.uk/ +password = password \ No newline at end of file diff --git a/index.php b/index.php new file mode 100644 index 0000000..4166611 --- /dev/null +++ b/index.php @@ -0,0 +1,2 @@ +filename, $search) !== false) { + $results[] = $config["url"] . "/" . $upload->filename; + } + } + + // Return results + if (empty($results)) { + echo "No results found\n"; + } else { + var_dump($results);die(); + } + +} catch (Exception $e) { + var_dump($e->getMessage());die(); +} \ No newline at end of file -- cgit v1.2.3