From 0d98d7839d1c3da75b95ef29ce12ef54a2a20094 Mon Sep 17 00:00:00 2001 From: lolcat Date: Thu, 16 May 2024 17:22:49 -0400 Subject: added greppr support also btw im not dead --- lib/backend.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/backend.php') diff --git a/lib/backend.php b/lib/backend.php index 7631ff3..cfb04a9 100644 --- a/lib/backend.php +++ b/lib/backend.php @@ -36,7 +36,7 @@ class backend{ } // this function is also called directly on nextpage - public function assign_proxy(&$curlproc, $ip){ + public function assign_proxy(&$curlproc, string $ip){ // parse proxy line [ @@ -91,7 +91,7 @@ class backend{ /* Next page stuff */ - public function store($payload, $page, $proxy){ + public function store(string $payload, string $page, string $proxy){ $key = sodium_crypto_secretbox_keygen(); $nonce = random_bytes(SODIUM_CRYPTO_SECRETBOX_NONCEBYTES); @@ -120,7 +120,7 @@ class backend{ rtrim(strtr(base64_encode($key), '+/', '-_'), '='); } - public function get($npt, $page){ + public function get(string $npt, string $page){ $page = $page[0]; $explode = explode(".", $npt, 2); -- cgit v1.2.3