Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
vanisha
/
log
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
36cae97a
authored
2023-06-01 17:37:55 +0530
by
vanisha
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
changes done
1 parent
497a3564
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
view.php
view.php
View file @
36cae97
...
...
@@ -60,17 +60,17 @@ if($isadmin) {
$files
=
scandir
(
$split_path
);
foreach
(
$files
as
$file
)
{
if
(
$file
===
'.'
||
$file
===
'..'
)
{
continue
;}
if
(
(
str
_contains
(
$file
,
$date
))
&&
(
str_contains
(
$file
,
'.log'
))
)
{
if
(
(
str
pos
(
$file
,
$date
)
!==
false
)
&&
(
strpos
(
$file
,
'.log'
))
)
{
$array
=
array
();
$array
[
'sno'
]
=
$i
;
$array
[
'name'
]
=
$file
;
$array
[
'log'
]
=
file_get_contents
(
$split_path
.
'/'
.
$file
);
$table_content_array
[]
=
$array
;
$i
=
$i
+
1
;
}
}
}
$templatecontext
[
'tablecontents'
]
=
$table_content_array
;
echo
$OUTPUT
->
render_from_template
(
'block_log/cron_logs_view'
,
$templatecontext
);
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment