Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
osticket
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
6f4fdb10
Commit
6f4fdb10
authored
10 years ago
by
Peter Rotich
Browse files
Options
Downloads
Patches
Plain Diff
Add database name and schema to info page
Improve info display & formatting Only show 8 chars of the last commit
parent
14389df2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/staff/system.inc.php
+85
-51
85 additions, 51 deletions
include/staff/system.inc.php
with
85 additions
and
51 deletions
include/staff/system.inc.php
+
85
−
51
View file @
6f4fdb10
...
...
@@ -2,7 +2,38 @@
if
(
!
defined
(
'OSTADMININC'
)
||
!
$thisstaff
||
!
$thisstaff
->
isAdmin
())
die
(
'Access Denied'
);
$commit
=
GIT_VERSION
!=
'$git'
?
GIT_VERSION
:
(
@
shell_exec
(
'git rev-parse HEAD'
)
?:
'?'
);
@
shell_exec
(
'git rev-parse HEAD | cut -b 1-8'
)
?:
'?'
);
$extensions
=
array
(
'gd'
=>
array
(
'name'
=>
'gdlib'
,
'desc'
=>
__
(
'Used for image manipulation and PDF printing'
)
),
'imap'
=>
array
(
'name'
=>
'imap'
,
'desc'
=>
__
(
'Used for email fetching'
)
),
'xml'
=>
array
(
'name'
=>
'xml'
,
'desc'
=>
__
(
'XML API'
)
),
'dom'
=>
array
(
'name'
=>
'xml-dom'
,
'desc'
=>
__
(
'Used for HTML email processing'
)
),
'json'
=>
array
(
'name'
=>
'json'
,
'desc'
=>
__
(
'Improves performance creating and processing JSON'
)
),
'mbstring'
=>
array
(
'name'
=>
'mbstring'
,
'desc'
=>
__
(
'Highly recommended for non western european language content'
)
),
'phar'
=>
array
(
'name'
=>
'phar'
,
'desc'
=>
__
(
'Highly recommended for plugins and language packs'
)
),
);
?>
<h2>
<?php
echo
__
(
'About this osTicket Installation'
);
?>
</h2>
...
...
@@ -13,69 +44,72 @@ $commit = GIT_VERSION != '$git' ? GIT_VERSION : (
</thead>
<tbody>
<tr><td>
<?php
echo
__
(
'osTicket Version'
);
?>
</td>
<td><span
class=
"ltr"
>
<?php
echo
sprintf
(
"%s (%s)"
,
THIS_VERSION
,
$commit
);
?>
</span></td></tr>
<tr><td>
<?php
echo
__
(
'Server Software'
);
?>
</td>
<td><span
class=
"ltr"
>
<?php
echo
sprintf
(
"%s (%s)"
,
THIS_VERSION
,
trim
(
$commit
));
?>
</span></td></tr>
<tr><td>
<?php
echo
__
(
'Web Server Software'
);
?>
</td>
<td><span
class=
"ltr"
>
<?php
echo
$_SERVER
[
'SERVER_SOFTWARE'
];
?>
</span></td></tr>
<tr><td>
<?php
echo
__
(
'PHP Version'
);
?>
</td>
<td><span
class=
"ltr"
>
<?php
echo
phpversion
();
?>
</span></td></tr>
<tr><td>
<?php
echo
__
(
'MySQL Version'
);
?>
</td>
<td><span
class=
"ltr"
>
<?php
echo
db_version
();
?>
</span></td></tr>
<tr><td>
<?php
echo
__
(
'PHP Extensions'
);
?>
</td>
<td><table><tbody>
<tr><td><i
class=
"icon icon-
<?php
echo
extension_loaded
(
'gd'
)
?
'check'
:
'warning-sign'
;
?>
"
></i></td>
<td>
gdlib
</td>
<td>
<?php
echo
__
(
'Used for image manipulation and PDF printing'
);
?>
</td></tr>
<tr><td><i
class=
"icon icon-
<?php
echo
extension_loaded
(
'imap'
)
?
'check'
:
'warning-sign'
;
?>
"
></i></td>
<td>
imap
</td>
<td>
<?php
echo
__
(
'Used for email fetching'
);
?>
</td></tr>
<tr><td><i
class=
"icon icon-
<?php
echo
extension_loaded
(
'xml'
)
?
'check'
:
'warning-sign'
;
?>
"
></i></td>
<td>
xml
</td>
<td>
<?php
echo
__
(
'XML API'
);
?>
</td></tr>
<tr><td><i
class=
"icon icon-
<?php
echo
extension_loaded
(
'dom'
)
?
'check'
:
'warning-sign'
;
?>
"
></i></td>
<td>
xml-dom
</td>
<td>
<?php
echo
__
(
'Used for HTML email processing'
);
?>
</td></tr>
<tr><td><i
class=
"icon icon-
<?php
echo
extension_loaded
(
'json'
)
?
'check'
:
'warning-sign'
;
?>
"
></i></td>
<td>
json
</td>
<td>
<?php
echo
__
(
'Improves performance creating and processing JSON'
);
?>
</td></tr>
<tr><td><i
class=
"icon icon-
<?php
echo
extension_loaded
(
'mbstring'
)
?
'check'
:
'warning-sign'
;
?>
"
></i></td>
<td>
mbstring
</td>
<td>
<?php
echo
__
(
'Highly recommended for non western european language content'
);
?>
</td></tr>
<tr><td><i
class=
"icon icon-
<?php
echo
extension_loaded
(
'phar'
)
?
'check'
:
'warning-sign'
;
?>
"
></i></td>
<td>
phar
</td>
<td>
<?php
echo
__
(
'Highly recommended for plugins and language packs'
);
?>
</td></tr>
</tbody></table></td></tr>
<tr><td>
<?php
echo
__
(
'PHP Settings'
);
?>
</td>
<td><table><tbody>
<tr><td><i
class=
"icon icon-
<?php
echo
ini_get
(
'cgi.fix_pathinfo'
)
==
1
?
'check'
:
'warning-sign'
;
?>
"
></i>
</td><td>
<span
class=
"ltr"
><code>
cgi.fix_pathinfo
</code>
=
<?php
echo
ini_get
(
'cgi.fix_pathinfo'
);
?>
</span></td><td>
<span
class=
"faded"
>
<?php
echo
__
(
'"1" is recommended if AJAX is not working'
);
?>
</span>
</td></tr>
</tbody></table></td></tr>
<tr><td>
<?php
echo
__
(
'PHP Version'
);
?>
</td>
<td><span
class=
"ltr"
>
<?php
echo
phpversion
();
?>
</span></td></tr>
</tbody>
<thead>
<tr><th
colspan=
"2"
>
<?php
echo
__
(
'PHP Extensions'
);
?>
</th></tr>
</thead>
<tbody>
<?php
foreach
(
$extensions
as
$ext
=>
$info
)
{
?>
<tr><td>
<?php
echo
$info
[
'name'
];
?>
</td>
<td>
<?php
echo
sprintf
(
'<i class="icon icon-%s"></i> %s'
,
extension_loaded
(
$ext
)
?
'check'
:
'warning-sign'
,
$info
[
'desc'
]);
?>
</td>
</tr>
<?php
}
?>
</tbody>
<thead>
<tr><th
colspan=
"2"
>
<?php
echo
__
(
'PHP Settings'
);
?>
</th></tr>
</thead>
<tbody>
<tr>
<td><span
class=
"ltr"
><code>
cgi.fix_pathinfo
</code></span></td>
<td><i
class=
"icon icon-
<?php
echo
ini_get
(
'cgi.fix_pathinfo'
)
==
1
?
'check'
:
'warning-sign'
;
?>
"
></i>
<span
class=
"faded"
>
<?php
echo
__
(
'"1" is recommended if AJAX is not working'
);
?>
</span>
</td>
</tr>
<tr>
<td><span
class=
"ltr"
><code>
date.timezone
</code></span></td>
<td><i
class=
"icon icon-
<?php
echo
ini_get
(
'date.timezone'
)
?
'check'
:
'warning-sign'
;
?>
"
></i>
<span
class=
"faded"
>
<?php
echo
ini_get
(
'date.timezone'
)
?:
__
(
'Setting default timezone is highly recommended'
);
?>
</span>
</td>
</tr>
</tbody>
<thead>
<tr><th
colspan=
"2"
>
<?php
echo
__
(
'Database Usage'
);
?>
</th></tr>
<tr><th
colspan=
"2"
>
<?php
echo
__
(
'Database
Information and
Usage'
);
?>
</th></tr>
</thead>
<tbody>
<tr><td>
<?php
echo
__
(
'Database Space Used'
);
?>
</td>
<tr><td>
<?php
echo
__
(
'Schema'
);
?>
</td>
<td>
<?php
echo
sprintf
(
'<span class="ltr">%s (%s)</span>'
,
DBNAME
,
DBHOST
);
?>
</td>
</tr>
<tr><td>
<?php
echo
__
(
'Schema Signature'
);
?>
</td>
<td>
<?php
echo
$cfg
->
getSchemaSignature
();
?>
</td>
</tr>
<tr><td>
<?php
echo
__
(
'Space Used'
);
?>
</td>
<td>
<?php
$sql
=
'SELECT sum( data_length + index_length ) / 1048576 total_size
FROM information_schema.TABLES WHERE table_schema = '
.
db_input
(
DBNAME
);
$space
=
db_result
(
db_query
(
$sql
));
echo
sprintf
(
'%.2f MiB'
,
$space
);
?>
</td>
<tr><td>
<?php
echo
__
(
'
Database
Space for Attachments'
);
?>
</td>
<tr><td>
<?php
echo
__
(
'Space for Attachments'
);
?>
</td>
<td>
<?php
$sql
=
'SELECT SUM(LENGTH(filedata)) / 1048576 FROM '
.
FILE_CHUNK_TABLE
;
$space
=
db_result
(
db_query
(
$sql
));
...
...
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