<?php
namespace Claromentis\Documents\GoogleDrive;

$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"] ?: array()) + array("_b5d96bd3e3" . "f4c5676c839" . "d656897ed97" => base64_decode("ZG9jc19nb29nbGVfZG9jd" . "W1lbnRzX2NoYW5nZV9pZA" . "=="), "_a10aefb791342d97d895a899acf" . "0e9f3" => base64_decode("ZG9jc19nb29nbGVf" . "dXNlcl9pbmZv"), "_7aefd482de7885f42" . "93c2926df28c235" => base64_decode("anNvbl9lbmNvZ" . "GU="), "_7681c2a2b7e1bdf69c23c" . "6cd64114ad3" => base64_decode("anNvbl9kZWNvZG" . "U="), "_de8d2fa7777fc45b6b2fecb171ff59" . "28" => base64_decode("ZG9jc19nb29" . "nbGVfYWNjZX" . "NzX3Rva2Vu"), "_f73dab606630b388645c4f7d3fbb13b" . "b" => base64_decode("YXJyYXlfbWVyZ2U" . "="));
use DBVar;








class DbVarClientStorage implements ClientStorage
{
    protected $database;
    public function __construct()
    {
        global $db;
        $this->database = $db;
    }
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    public function GetAccessToken()
    {
        return DBVar::Get($GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_de8d2fa7777fc45b" . "6b2fecb171ff5928"]);
    }
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    public function SetAccessToken($_06c78ccbf2b71e7258f398b9c5c3fbdf)
    {
        $this->database->DisableTokenCheck();
        if (!$_06c78ccbf2b71e7258f398b9c5c3fbdf) {
            DBVar::Set($GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_de8d2fa7777fc45b6b2fecb171" . "ff5928"], null);
            $this->database->EnableTokenCheck();
            return;
        }
        $_eb4d6202eab315cdfff1693f1dcab500 = DBVar::Get($GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"]["_de8d2fa7777fc4" . "5b6b2fecb171ff5" . "928"]);
        $_eb4d6202eab315cdfff1693f1dcab500 = $GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"]["_7681c2a2b7e1bdf69c23c6cd641" . "14ad3"]($_eb4d6202eab315cdfff1693f1dcab500, true);
        if ($_eb4d6202eab315cdfff1693f1dcab500) {
            $_06c78ccbf2b71e7258f398b9c5c3fbdf = $GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"]["_7681c2a2b7e1bdf69c23c6cd64114ad" . "3"]($_06c78ccbf2b71e7258f398b9c5c3fbdf, true);
            $_06c78ccbf2b71e7258f398b9c5c3fbdf = $GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_f73dab606630b388645c4f7" . "d3fbb13bb"]($_eb4d6202eab315cdfff1693f1dcab500, $_06c78ccbf2b71e7258f398b9c5c3fbdf);
            $_06c78ccbf2b71e7258f398b9c5c3fbdf = $GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["_7aefd482de7885f4293c2926df28c" . "235"]($_06c78ccbf2b71e7258f398b9c5c3fbdf);
        }
        DBVar::Set($GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"]["_de8d2fa7777fc45b6b2fecb1" . "71ff5928"], $_06c78ccbf2b71e7258f398b9c5c3fbdf);
        $this->database->EnableTokenCheck();
    }
    
    
    
    
    
    
    public function GetPageToken()
    {
        return (int) DBVar::Get($GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"]["_b5d96bd3e3f4c5676c839" . "d656897ed97"]);
    }
    
    
    
    
    
    
    public function SetPageToken($_80838b9941420623658b0a221f9953d1)
    {
        $this->database->DisableTokenCheck();
        DBVar::Set($GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_b5d96bd3e3f4c5676c839d656897ed" . "97"], $_80838b9941420623658b0a221f9953d1);
        $this->database->EnableTokenCheck();
    }
    
    
    
    
    
    
    public function GetUserInfo()
    {
        return $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_7681c2a2" . "b7e1bdf69" . "c23c6cd64" . "114ad3"](DBVar::Get($GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"]["_a10aefb791342d97d895a899acf0e9f" . "3"]), true);
    }
    
    
    
    
    
    
    public function SetUserInfo(array $_6aead4bff5639b251aebcf8a630e43a7)
    {
        $this->database->DisableTokenCheck();
        DBVar::Set($GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"]["_a10aefb791342d97d895a89" . "9acf0e9f3"], $GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_7aefd482de7885f42" . "93c2926df28c235"]($_6aead4bff5639b251aebcf8a630e43a7));
        $this->database->EnableTokenCheck();
    }
    
    
    
    
    public function Clear()
    {
        $this->database->DisableTokenCheck();
        $this->SetAccessToken(null);
        $this->SetPageToken(0);
        $this->SetUserInfo(array());
        $this->database->EnableTokenCheck();
    }
}