Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
pad-upe
Commits
c41863fc
Commit
c41863fc
authored
Aug 22, 2023
by
PedroLopesUPE
Browse files
Modificação de posição de set_time_limit();
Tentativa de adequação com o servidor
parent
6467191a
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/PadController.php
View file @
c41863fc
...
@@ -923,7 +923,6 @@ class PadController extends Controller
...
@@ -923,7 +923,6 @@ class PadController extends Controller
$pads
=
[];
$pads
=
[];
set_time_limit
(
240
);
foreach
(
$professores
as
$professor
){
foreach
(
$professores
as
$professor
){
$userPad
=
$professor
->
userPads
()
->
where
(
'pad_id'
,
'='
,
$pad
->
id
)
->
first
();
$userPad
=
$professor
->
userPads
()
->
where
(
'pad_id'
,
'='
,
$pad
->
id
)
->
first
();
...
@@ -942,6 +941,7 @@ class PadController extends Controller
...
@@ -942,6 +941,7 @@ class PadController extends Controller
$fileName
=
storage_path
(
$professor
->
{
'name'
}
.
"_.pdf"
);
$fileName
=
storage_path
(
$professor
->
{
'name'
}
.
"_.pdf"
);
$userPadGeneratePDF
->
GeneratePDF
(
$userPad
->
{
'id'
},
$fileName
);
$userPadGeneratePDF
->
GeneratePDF
(
$userPad
->
{
'id'
},
$fileName
);
$pads
[
$professor
->
{
'name'
}]
=
$fileName
;
$pads
[
$professor
->
{
'name'
}]
=
$fileName
;
set_time_limit
(
10
);
}
}
}
}
$zipFile
=
storage_path
(
random_int
(
1000
,
9999
)
.
".zip"
);
$zipFile
=
storage_path
(
random_int
(
1000
,
9999
)
.
".zip"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment