Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
osticket
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
docker
osticket
Commits
3fc0b6e9
Commit
3fc0b6e9
authored
12 years ago
by
Peter Rotich
Browse files
Options
Downloads
Patches
Plain Diff
Rename syslogs.php to logs.php
parent
fc82978a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/class.nav.php
+1
-1
1 addition, 1 deletion
include/class.nav.php
include/staff/syslogs.inc.php
+7
-7
7 additions, 7 deletions
include/staff/syslogs.inc.php
scp/logs.php
+1
-3
1 addition, 3 deletions
scp/logs.php
with
9 additions
and
11 deletions
include/class.nav.php
+
1
−
1
View file @
3fc0b6e9
...
@@ -181,7 +181,7 @@ class AdminNav extends StaffNav{
...
@@ -181,7 +181,7 @@ class AdminNav extends StaffNav{
$subnav
=
array
();
$subnav
=
array
();
switch
(
strtolower
(
$k
)){
switch
(
strtolower
(
$k
)){
case
'dashboard'
:
case
'dashboard'
:
$subnav
[]
=
array
(
'desc'
=>
'System Logs'
,
'href'
=>
'
sys
logs.php'
,
'iconclass'
=>
'logs'
);
$subnav
[]
=
array
(
'desc'
=>
'System Logs'
,
'href'
=>
'logs.php'
,
'iconclass'
=>
'logs'
);
break
;
break
;
case
'settings'
:
case
'settings'
:
$subnav
[]
=
array
(
'desc'
=>
'Settings & Preferences'
,
'href'
=>
'settings.php'
,
'iconclass'
=>
'preferences'
);
$subnav
[]
=
array
(
'desc'
=>
'Settings & Preferences'
,
'href'
=>
'settings.php'
,
'iconclass'
=>
'preferences'
);
...
...
This diff is collapsed.
Click to expand it.
include/staff/syslogs.inc.php
+
7
−
7
View file @
3fc0b6e9
...
@@ -73,7 +73,7 @@ $total=db_count("SELECT count(*) $qfrom $qwhere");
...
@@ -73,7 +73,7 @@ $total=db_count("SELECT count(*) $qfrom $qwhere");
$page
=
(
$_GET
[
'p'
]
&&
is_numeric
(
$_GET
[
'p'
]))
?
$_GET
[
'p'
]
:
1
;
$page
=
(
$_GET
[
'p'
]
&&
is_numeric
(
$_GET
[
'p'
]))
?
$_GET
[
'p'
]
:
1
;
//pagenate
//pagenate
$pageNav
=
new
Pagenate
(
$total
,
$page
,
PAGE_LIMIT
);
$pageNav
=
new
Pagenate
(
$total
,
$page
,
PAGE_LIMIT
);
$pageNav
->
setURL
(
'
sys
logs.php'
,
$qstr
);
$pageNav
->
setURL
(
'logs.php'
,
$qstr
);
$qstr
.
=
'&order='
.
(
$order
==
'DESC'
?
'ASC'
:
'DESC'
);
$qstr
.
=
'&order='
.
(
$order
==
'DESC'
?
'ASC'
:
'DESC'
);
$query
=
"
$qselect
$qfrom
$qwhere
ORDER BY
$order_by
LIMIT "
.
$pageNav
->
getStart
()
.
","
.
$pageNav
->
getLimit
();
$query
=
"
$qselect
$qfrom
$qwhere
ORDER BY
$order_by
LIMIT "
.
$pageNav
->
getStart
()
.
","
.
$pageNav
->
getLimit
();
$res
=
db_query
(
$query
);
$res
=
db_query
(
$query
);
...
@@ -85,7 +85,7 @@ else
...
@@ -85,7 +85,7 @@ else
<h2>
System Logs
</h2>
<h2>
System Logs
</h2>
<div
id=
'filter'
>
<div
id=
'filter'
>
<form
action=
"
sys
logs.php"
method=
"get"
>
<form
action=
"logs.php"
method=
"get"
>
<div
style=
"padding-left:2px;"
>
<div
style=
"padding-left:2px;"
>
<b>
Date Span
</b>
:
<b>
Date Span
</b>
:
From
<input
class=
"dp"
id=
"sd"
size=
15
name=
"startDate"
value=
"
<?php
echo
Format
::
htmlchars
(
$_REQUEST
[
'startDate'
]);
?>
"
autocomplete=
OFF
>
From
<input
class=
"dp"
id=
"sd"
size=
15
name=
"startDate"
value=
"
<?php
echo
Format
::
htmlchars
(
$_REQUEST
[
'startDate'
]);
?>
"
autocomplete=
OFF
>
...
@@ -104,17 +104,17 @@ else
...
@@ -104,17 +104,17 @@ else
</div>
</div>
</form>
</form>
</div>
</div>
<form
action=
"
sys
logs.php"
method=
"POST"
name=
"logs"
onSubmit=
"return checkbox_checker(this,1,0);"
>
<form
action=
"logs.php"
method=
"POST"
name=
"logs"
onSubmit=
"return checkbox_checker(this,1,0);"
>
<input
type=
"hidden"
name=
"do"
value=
"mass_process"
>
<input
type=
"hidden"
name=
"do"
value=
"mass_process"
>
<table
class=
"list"
border=
"0"
cellspacing=
"1"
cellpadding=
"0"
width=
"940"
>
<table
class=
"list"
border=
"0"
cellspacing=
"1"
cellpadding=
"0"
width=
"940"
>
<caption>
<?php
echo
$showing
;
?>
</caption>
<caption>
<?php
echo
$showing
;
?>
</caption>
<thead>
<thead>
<tr>
<tr>
<th
width=
"7"
>
</th>
<th
width=
"7"
>
</th>
<th
width=
"320"
><a
<?php
echo
$title_sort
;
?>
href=
"
sys
logs.php?
<?php
echo
$qstr
;
?>
&sort=title"
>
Log Title
</a></th>
<th
width=
"320"
><a
<?php
echo
$title_sort
;
?>
href=
"logs.php?
<?php
echo
$qstr
;
?>
&sort=title"
>
Log Title
</a></th>
<th
width=
"100"
><a
<?php
echo
$type_sort
;
?>
href=
"
sys
logs.php?
<?php
echo
$qstr
;
?>
&sort=type"
>
Log Type
</a></th>
<th
width=
"100"
><a
<?php
echo
$type_sort
;
?>
href=
"logs.php?
<?php
echo
$qstr
;
?>
&sort=type"
>
Log Type
</a></th>
<th
width=
"200"
nowrap
><a
<?php
echo
$date_sort
;
?>
href=
"
sys
logs.php?
<?php
echo
$qstr
;
?>
&sort=date"
>
Log Date
</a></th>
<th
width=
"200"
nowrap
><a
<?php
echo
$date_sort
;
?>
href=
"logs.php?
<?php
echo
$qstr
;
?>
&sort=date"
>
Log Date
</a></th>
<th
width=
"120"
><a
<?php
echo
$ip_sort
;
?>
href=
"
sys
logs.php?
<?php
echo
$qstr
;
?>
&sort=ip"
>
IP Address
</a></th>
<th
width=
"120"
><a
<?php
echo
$ip_sort
;
?>
href=
"logs.php?
<?php
echo
$qstr
;
?>
&sort=ip"
>
IP Address
</a></th>
</tr>
</tr>
</thead>
</thead>
<tbody>
<tbody>
...
...
This diff is collapsed.
Click to expand it.
scp/
sys
logs.php
→
scp/logs.php
+
1
−
3
View file @
3fc0b6e9
<?php
<?php
/*********************************************************************
/*********************************************************************
sys
logs.php
logs.php
System Logs
System Logs
...
@@ -42,8 +42,6 @@ if($_POST){
...
@@ -42,8 +42,6 @@ if($_POST){
}
}
}
}
$page
=
'syslogs.inc.php'
;
$page
=
'syslogs.inc.php'
;
$nav
->
setTabActive
(
'dashboard'
);
$nav
->
setTabActive
(
'dashboard'
);
require
(
STAFFINC_DIR
.
'header.inc.php'
);
require
(
STAFFINC_DIR
.
'header.inc.php'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment