Changeset 1415808
- Timestamp:
- 05/12/2016 05:46:20 PM (10 years ago)
- File:
-
- 1 edited
-
wp-mystat/tags/3.5/lib/mystat.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-mystat/tags/3.5/lib/mystat.class.php
r1377829 r1415808 821 821 if(!$lh and (!$this->getOption('mystatuuid') or $this->getString('test')=='')){return base64_decode('RkFJTA==');}elseif($lh){return base64_decode('T0s=');} 822 822 if($this->getString('uuid')!='' and $this->getOption('mystatuuid')!=md5($this->getString('uuid'))){return base64_decode('RkFJTA==');} 823 if(!$first){$el = $this->get String('cache');if(!empty($el)){$el = preg_split('/\|/i',$el);if($el[1]==date('Ymd') and $_SERVER['HTTP_HOST']==$el[2]){return $el[0];}}}823 if(!$first){$el = $this->getOption('mystatcache');if(!empty($el)){$el = preg_split('/\|/i',$el);if($el[1]==date('Ymd') and $_SERVER['HTTP_HOST']==$el[2]){return $el[0];}}} 824 824 $ret = $this->isAs(($first?$this->getString('uuid'):($this->getString('uuid')!=''?$this->getString('uuid'):$this->getOption('mystatuuid')))); 825 $this->set String('cache',$ret.'|'.date('Ymd').'|'.$_SERVER['HTTP_HOST']);825 $this->setOption('mystatcache',$ret.'|'.date('Ymd').'|'.$_SERVER['HTTP_HOST']); 826 826 return (string)$ret; 827 827 }
Note: See TracChangeset
for help on using the changeset viewer.