/usr/bin/odf2html is in docvert 4.0-7.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | #!/usr/bin/php -q
<?php
$appCalledWithPath = $argv[0];
define('DOCVERT_DIR', '/usr/share/docvert'.DIRECTORY_SEPARATOR);
define('DOCVERT_CLIENT_TYPE', 'command line');
$libPath = DOCVERT_DIR.'core/lib.php';
if(!file_exists($libPath))
{
die('Docvert internal error. Unable to determine path of core/lib.php due to programming error. Can you please email docvert@holloway.co.nz with the command you typed to make this happen, your platform and versions of PHP? Cheers bro.');
}
include_once($libPath);
$commandLineLibrary = DOCVERT_DIR.'core/command-line.php';
include_once($commandLineLibrary);
function inNestedArray($key, $haystack)
{
if(array_key_exists($key, $haystack))
{
return $haystack[$key];
}
foreach ($haystack as $value)
{
if(is_array($value))
{
$work = inNestedArray($key, $value);
if($work)
{
return $work;
}
}
}
return FALSE;
}
?>
|