D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
tattooscyy
/
test
/
app
/
Http
/
Controllers
/
Filename :
PrintController.php
back
Copy
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Picture; use App\PictureManager; class PrintController extends Controller { public function getIndex() { return view('print'); } public function getManager($id = null){ $obj = Picture::find($id); if(!$obj){ $obj = PictureManager::find($id); } list($w, $h, $t, $a) = getimagesize($obj->picture); if(isset($_GET['width'])){ $w2 = $_GET['width']; }else{ $w2 = (int)($w/38); } if(isset($_GET['height'])){ $h2 = $_GET['height']; }else{ $h2 = (int)($h/38); } return view('print_manager', compact('obj','w2','h2')); } }