M3 Security Fixes for Pass 39
This commit is contained in:
@@ -9,7 +9,6 @@ use DB;
|
||||
use Dompdf\Dompdf;
|
||||
use File;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Http\Response;
|
||||
use Log;
|
||||
use Modules\M3\Services\PostgresProgramBridge;
|
||||
use PDF;
|
||||
@@ -25,7 +24,6 @@ class utilitiesContoller extends Controller
|
||||
|
||||
// Get The Next ID by Calling POM002C
|
||||
$pGMERRORS = '';
|
||||
$aWREQN = '';
|
||||
|
||||
// connect to toolkit using DB2 credentials (can also leave blank for default authority)
|
||||
try {
|
||||
@@ -85,7 +83,6 @@ class utilitiesContoller extends Controller
|
||||
|
||||
if ($pGMERRORS != '') {
|
||||
dump($pGMERRORS);
|
||||
} else {
|
||||
}
|
||||
// Get Execution Time
|
||||
$time = microtime(true) - $start;
|
||||
@@ -101,10 +98,6 @@ class utilitiesContoller extends Controller
|
||||
// Parse PDF file and build necessary objects.
|
||||
$parser = new Parser;
|
||||
|
||||
// $text = $pdf->getText();
|
||||
// dump("Text Only");
|
||||
// dump($text);
|
||||
|
||||
$pdfFile = File::get('/www/sentm3test/htdocs/labels/' . $pdfFileName . '.pdf');
|
||||
|
||||
// Transform content to base64
|
||||
@@ -413,17 +406,6 @@ class utilitiesContoller extends Controller
|
||||
{
|
||||
print_r('>>> Generate PDF');
|
||||
|
||||
// $builder->setFilename('barcode.png');
|
||||
// $builder->setImageFormat('png');
|
||||
// $builder->setWidth(500);
|
||||
// $builder->setHeight(150);
|
||||
// $builder->setFontPath('FreeSans.ttf');
|
||||
// $builder->setFontSize(15);
|
||||
// $builder->setBackgroundColor(255, 255, 255);
|
||||
// $builder->setPaintColor(0, 0, 0);
|
||||
// Barcode\Builder::build()->setWidth(600)->setBackgroundColor(100, 100, 100)->output('(10)123456(400)11');
|
||||
// return response($image)->header('Content-Type', 'image/png');
|
||||
|
||||
$data = [
|
||||
'from' => 'Any Vendor<br>123 Any Street<br>SomeTown, ST 01234',
|
||||
'ship_to' => 'True Value Hardware<br>123 Any Street<br>SomeTown, ST 01234',
|
||||
|
||||
Reference in New Issue
Block a user