Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html_old /
iNetty /
app /
Http /
Controllers /
Delete
Unzip
Name
Size
Permission
Date
Action
Api
[ DIR ]
drwxrwxrwx
2022-04-21 13:43
Auth
[ DIR ]
drwxrwxrwx
2022-04-21 13:43
ripcord
[ DIR ]
drwxrwxrwx
2022-04-21 13:43
AddressController.php
4.36
KB
-rwxrwxrwx
2022-04-21 13:43
BuildingFloorsController.php
1.9
KB
-rwxrwxrwx
2022-04-21 13:43
BuildingTypesController.php
1.88
KB
-rwxrwxrwx
2022-04-21 13:43
BuildingsController.php
4.48
KB
-rwxrwxrwx
2022-04-21 13:43
CalendarController.php
467
B
-rwxrwxrwx
2022-04-21 13:43
CarHistoryController.php
3.01
KB
-rwxrwxrwx
2022-04-21 13:43
CarsController.php
2.78
KB
-rwxrwxrwx
2022-04-21 13:43
CheckInController.php
1.74
KB
-rwxrwxrwx
2022-04-21 13:43
Controller.php
361
B
-rwxrwxrwx
2022-04-21 13:43
CustomersController.php
4.75
KB
-rwxrwxrwx
2022-04-21 13:43
DevisController.php
4.99
KB
-rwxrwxrwx
2022-04-21 13:43
DevisLinesController.php
2
KB
-rwxrwxrwx
2022-04-21 13:43
DocumentsController.php
2.14
KB
-rwxrwxrwx
2022-04-21 13:43
HomeController.php
2.54
KB
-rwxrwxrwx
2022-04-21 13:43
InterventionAddressesController.php
2.07
KB
-rwxrwxrwx
2022-04-21 13:43
InterventionBuildingsController.php
2.07
KB
-rwxrwxrwx
2022-04-21 13:43
InterventionContactsController.php
2.04
KB
-rwxrwxrwx
2022-04-21 13:43
InterventionStatusController.php
2
KB
-rwxrwxrwx
2022-04-21 13:43
InterventionsController.php
15.03
KB
-rwxrwxrwx
2022-04-21 13:43
OddoController.php
6.5
KB
-rwxrwxrwx
2022-06-02 16:29
PassesController.php
1.72
KB
-rwxrwxrwx
2022-04-21 13:43
ProfileController.php
1.1
KB
-rwxrwxrwx
2022-04-21 13:43
RulesController.php
1.69
KB
-rwxrwxrwx
2022-04-21 13:43
StatusController.php
1.72
KB
-rwxrwxrwx
2022-04-21 13:43
TeamHistoryController.php
3.09
KB
-rwxrwxrwx
2022-04-21 13:43
TeamLogsController.php
1.76
KB
-rwxrwxrwx
2022-04-21 13:43
TeamMembersController.php
1.83
KB
-rwxrwxrwx
2022-04-21 13:43
TeamsController.php
6.69
KB
-rwxrwxrwx
2022-04-21 13:43
UserController.php
4.55
KB
-rwxrwxrwx
2022-04-21 13:43
Save
Rename
<?php namespace App\Http\Controllers; use App\Models\Interventions; use App\Http\Requests; use Illuminate\Support\Facades\DB; use PHPUnit\Exception; class DocumentsController { public function index(){ $interventions = DB::table("interventions") ->join('clients','clients.id', '=', 'interventions.client_id') ->get([ "interventions.ref", "interventions.id", "interventions.start_date", "interventions.end_date", "clients.client_name", "interventions.status_id"]); return view('documents.index', ["interventions" => $interventions]); } public function generateDoc($id){ $intervention = Interventions::where('id', $id)->first(); $phpWord = New \PhpOffice\PhpWord\PhpWord(); $section = $phpWord->addSection()->addHeader(); $section->addImage( realpath('./material/img/NettyClean-logo.png'), array( 'width' => 75, 'height' => 75, 'marginTop' => -1, 'marginLeft' => -1, 'wrappingStyle' => 'behind', 'alignment' => 'center' ) ); $objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'Word2007'); //$objWriter->save('helloWorld.docx'); try { $objWriter->save(storage_path('intervention_' . $intervention->ref . '.docx')); } catch (Exception $e) { } return response()->download(storage_path('intervention_' . $intervention->ref . '.docx')); } private function generateTable($phpWord){ $section = $phpWord->addSection(); $tableStyle = array( 'borderColor' => '#006699', 'borderSize' => 6, 'cellMargin' => 50 ); $rows = 5; $cols = 5; $table = $section->addTable([$tableStyle]); for ($r = 1; $r <= $rows; $r++) { $table->addRow(); for ($c = 1; $c <= $cols; $c++) { $table->addCell(1750,array('valign' => 'top', 'borderSize' => 10, 'borderColor' => '000000'))->addText("Row {$r}, Cell {$c}"); } } } }