Aaron Speer 6 лет назад
Родитель
Сommit
8c039d0d08
2 измененных файлов с 3 добавлено и 3 удалено
  1. 1 1
      app/Controllers/HomeController.php
  2. 2 2
      views/home.twig

+ 1 - 1
app/Controllers/HomeController.php

@@ -80,7 +80,7 @@ class HomeController extends Controller {
 
     $cmd = "lp -d ".$printer." -n ".$copies." ".$path;
     echo $cmd;
-    exec($cmd);
+    echo exec($cmd);
     $this->model->setMessage("Printing Successful!", "That file was printed ".$copies." time(s) on printer ".$printer, "success");
     header("Location: /");
 

+ 2 - 2
views/home.twig

@@ -37,8 +37,8 @@
     <div id="upbox" class="panel panel-info">
       <div class="panel-heading">Please select the file you wish to print</div>
       <div class="panel-body">
-        <span class="text-success" style="font-weight: bold;">Supported Formats:</span> PDF (.pdf)<br>
-        <span class="text-info" style="font-weight: bold;">Partially Supported Formats:</span> Microsoft Word (.docx), Microsoft Word (.doc), Open Office (.odt) and most other formats<br>
+        <span class="text-success" style="font-weight: bold;">Supported Formats:</span> PDF (.pdf) and most image files (.png), etc<br>
+        <span class="text-info" style="font-weight: bold;">Partially Supported Formats:</span> Microsoft Word (.docx), Microsoft Word (.doc), Open Office (.odt) and most other document formats.<br>
         <span class="text-danger" style="font-weight: bold;">Unsupported Formats:</span> Apple Pages (.pages)
         <br><br>
         <form action="/upload" method="post" enctype="multipart/form-data">