mirror of
https://git.lolcat.ca/lolcat/4get.git
synced 2024-11-08 17:43:07 -05:00
apcu fix
This commit is contained in:
parent
89b952ff40
commit
5236452f45
1 changed files with 3 additions and 4 deletions
|
@ -11,7 +11,6 @@ class backend{
|
||||||
*/
|
*/
|
||||||
public function get_ip(){
|
public function get_ip(){
|
||||||
|
|
||||||
$this->requestid = apcu_inc("real_requests");
|
|
||||||
$pool = constant("config::PROXY_" . strtoupper($this->scraper));
|
$pool = constant("config::PROXY_" . strtoupper($this->scraper));
|
||||||
if($pool === false){
|
if($pool === false){
|
||||||
|
|
||||||
|
@ -106,18 +105,18 @@ class backend{
|
||||||
$tag = "";
|
$tag = "";
|
||||||
$out = openssl_encrypt($payload, "aes-256-gcm", $key, OPENSSL_RAW_DATA, $iv, $tag, "", 16);
|
$out = openssl_encrypt($payload, "aes-256-gcm", $key, OPENSSL_RAW_DATA, $iv, $tag, "", 16);
|
||||||
|
|
||||||
$key = apcu_inc("key", 1);
|
$requestid = apcu_inc("requestid");
|
||||||
|
|
||||||
apcu_store(
|
apcu_store(
|
||||||
$page . "." .
|
$page . "." .
|
||||||
$this->scraper .
|
$this->scraper .
|
||||||
$this->requestid,
|
$requestid,
|
||||||
gzdeflate($proxy . "," . $salt.$iv.$out.$tag),
|
gzdeflate($proxy . "," . $salt.$iv.$out.$tag),
|
||||||
900 // cache information for 15 minutes blaze it
|
900 // cache information for 15 minutes blaze it
|
||||||
);
|
);
|
||||||
|
|
||||||
return
|
return
|
||||||
$this->scraper . $this->requestid . "." .
|
$this->scraper . $requestid . "." .
|
||||||
rtrim(strtr(base64_encode($password), '+/', '-_'), '=');
|
rtrim(strtr(base64_encode($password), '+/', '-_'), '=');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue