Exemplo n.º 1
0
 /**
  * @param string $sName
  *
  * @return bool
  */
 public function Delete($sName)
 {
     $bResult = true;
     $sRealFileName = $this->codeFileName($sName);
     if (0 < \strlen($sName) && \file_exists($this->sDomainPath . '/' . $sRealFileName . '.ini')) {
         $bResult = \unlink($this->sDomainPath . '/' . $sRealFileName . '.ini');
     }
     if ($bResult) {
         $this->Disable($sName, false);
     }
     if ($this->oCacher) {
         $this->oCacher->Delete($this->wildcardDomainsCacheKey());
     }
     return $bResult;
 }
Exemplo n.º 2
0
 public function Delete($sAuthToken)
 {
     $this->Session->Delete('AUTHTOKEN:' . $sAuthToken);
 }