Lines 501-508
Link Here
|
501 |
if(move_uploaded_file($this->content_i['tmp_name'], $temp_dest)){ |
501 |
if(move_uploaded_file($this->content_i['tmp_name'], $temp_dest)){ |
502 |
$source = $temp_dest; |
502 |
$source = $temp_dest; |
503 |
$target = $temp_dir . $this->user_id . "-" . time() . ".pdf"; |
503 |
$target = $temp_dir . $this->user_id . "-" . time() . ".pdf"; |
504 |
$command = COMMON_DIR . "scripts/DocumentConverter.py " . $source . " " . $target; //This command relies on open office |
504 |
$command = "/usr/lib/libreoffice/program/python " . COMMON_DIR . "scripts/DocumentConverter.py " . $source . " " . $target; //This command relies on open office |
505 |
//echo $command; |
|
|
506 |
exec($command, $output, $return); |
505 |
exec($command, $output, $return); |
507 |
//print_r($output); echo "RETURNING: $return.."; |
506 |
//print_r($output); echo "RETURNING: $return.."; |
508 |
unlink($source); |
507 |
unlink($source); |