background image

    /* parse_str 

             

变量

*/ 

    /* -------------------------- */ 
    private function build_str($ar) { 
        $qs = array(); 
        foreach ($ar as $k => $v) { $qs[] = $k.'='.$v; } 
        return join('&', $qs); 
    } 

    /* ------------------------------ */ 
    /* 获取加密后的 cookie

  

列表

*/ 

    /* cookies                       */ 
    /* ----------------------------- */ 
    private function prelevaStringaTotale() { 
        $cookiesSet = array_keys($_COOKIE); 
        $out = ""; 
        for ($x=0;$x<count($cookiesSet);$x++) { 
            if (strpos(" ".$cookiesSet[$x],$this->preStr)==1) 
                $out.=$_COOKIE[$cookiesSet[$x]]; 
        } 
        return $this->decrypta($out); 
    } 

    public function debug() { 
        // for debug 
        return $this->prelevaStringaTotale(); 
    } 

    /* ---------------------------- */ 
    /* 确定可用的 cookies            */ 
    /* ---------------------------- */ 
    private function calcolaCookieLiberi() { 
        $cookiesSet = array_keys($_COOKIE); 
        $c=0; 
        for ($x=0;$x<count($cookiesSet);$x++) { 
            if (strpos(" ".$cookiesSet[$x],$this->preStr)==1) 
                $c+=1; 
        } 
        return $this->maxCookie - count($cookiesSet) + $c; 
    } 

    /* ------------------------ */ 
    /* 分割字符串存储进 cookie   */ 
    /* ------------------------ */ 
    private function my_str_split($s,$len) {