You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-01-12 22:51:27 +03:00
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@581 a1433add-5e2c-0410-b055-b7f2511e0802
17 lines
522 B
PHP
17 lines
522 B
PHP
<?php
|
|
$transform = $argv[1];
|
|
$source_path = $argv[2];
|
|
$destination_path = $argv[3];
|
|
$dir = opendir($source_path);
|
|
while (($file = readdir($dir)) !== false) {
|
|
if (! preg_match('/\.xml$/', $file)) {
|
|
continue;
|
|
}
|
|
$source = $source_path . $file;
|
|
$destination = $destination_path .
|
|
preg_replace('/\.xml$/', '.php', basename($source));
|
|
$command = "Xalan -o $destination $source $transform\n";
|
|
`$command`;
|
|
}
|
|
closedir($dir);
|
|
?>
|