Пример #1
0
          <?php 
}
?>
		</table>
	</div>

	<?php 
if ($Module->server_time) {
    ?>
		<br>
		<div class="be_contentTextBox">
			<h2>Mit Server vergleichen</h2>
			<?php 
    // download to temp folder
    $vs = qg::remoteGet($Module->name);
    qg::ftp()->get(appPATH . 'cache/tmp/pri/remoteModule.zip', '/module/' . $Module->name . '/' . $vs['version'] . '.zip', FTP_BINARY);
    $zip = new \ZipArchive();
    $go = $zip->open(appPATH . 'cache/tmp/pri/remoteModule.zip');
    if (!$go) {
        return;
    }
    $dir = appPATH . 'cache/tmp/pri/module_to_compare/';
    !is_dir($dir) && mkdir($dir);
    rrmdir($dir . $Module->name);
    $zip->extractTo($dir);
    $zip->close();
    // compare
    $files = array();
    $dir = $dir . $Module->name;
    $verzeichnis = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($dir), \RecursiveIteratorIterator::SELF_FIRST);
    $startOffset = strlen(realpath($dir)) + 1;