Archive library tar driver.

/sprout/Controllers/DbToolsController.php Highlighted file source
Line 147: // Don't start output buffering for some methods
Line 178: ob_start();
Line 281: $start = microtime(true);
Line 283: $time_secs = microtime(true) - $start;
Line 638: ob_start();
Line 648: ob_start();
Line 678: ob_start();
Line 742: $fks[$fk['source_column']][] = "{$fk['target_table']}.{$fk['target_column']}";
Line 843: echo '<form action="SITE/dbtools/importAction" method="post" target="process" onsubmit="$(\'iframe\').show(); $(this).find(\'.action-bar\').remove();">';
Line 1326: 'module-builder' => '/^mt_[0-9]+\.tar\.bz2$/',
Line 1606: echo "<th>Target</th>";
Line 1610: foreach ($routes as $rule => $target) {
Line 1612: $target = Enc::html(json_encode($target, JSON_UNESCAPED_SLASHES));
Line 1616: echo "<td>{$target}</td>";
Line 1813: shell_exec("rm -f {$temp}/mt_*.tar.bz2");
Line 1856: echo shell_exec("cd {$temp}; tar -cjvf mt_{$rand}.tar.bz2 {$module_name}");
Line 1862: echo "<p><a href=\"SITE/dbtools/gettempfile/module-builder/mt_{$rand}.tar.bz2/sprout_module_{$_POST['sname']}_{$_POST['module_type']}.tar.bz2\">Download module</a></p>";
Line 2076: $target_table = Inflector::plural(substr($f, 0, -3));
Line 2078: $items = '{"func": "Pdb::lookup", "args": ["' . Enc::js($target_table) . '"]}';
Line 2218: echo shell_exec("cd {$temp}; tar -cjvf mt_{$rand}.tar.bz2 {$module_name}");
Line 2223: echo "<div class=\"action-bar\"><a href=\"SITE/dbtools/gettempfile/module-builder/mt_{$rand}.tar.bz2/sprout_module.tar.bz2\" class=\"button icon-after icon-save\">Download module</a></div>";
Line 2839: ob_start();

/sprout/Helpers/Drivers/Archive/Tar.php Highlighted file source
Line 22: * Archive library tar driver.
Line 24: class Tar implements ArchiveDriver
Line 41: $tarfile = implode('', $this->data).pack('a1024', ''); // EOF
Line 45: return $tarfile;
Line 48: if (substr($filename, -3) != 'tar')
Line 50: // Append tar extension
Line 51: $filename .= '.tar';
Line 60: // Write the tar file
Line 61: $return = fwrite($file, $tarfile);
Line 94: pack('a6', 'ustar'). // USTAR indicator
Line 95: pack('a2', chr(32)). // USTAR version
Line 112: } // End Archive_Tar_Driver Class
A total of 62 lines in 18 files were found