private function writedata($filename, $content, $mode)
 {
     if (strend($filename, '/.htaccess')) {
         return true;
     }
     if (strend($filename, '/index.htm')) {
         return true;
     }
     $this->hasdata = true;
     $filename = substr($filename, strlen('storage/data/'));
     $filename = str_replace('/', DIRECTORY_SEPARATOR, $filename);
     $filename = litepublisher::$paths->storage . 'newdata' . DIRECTORY_SEPARATOR . $filename;
     tfiler::forcedir(dirname($filename));
     if (file_put_contents($filename, $content) === false) {
         return false;
     }
     @chmod($filename, $mode);
     return true;
 }