Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
mahara
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
mahara
mahara
Commits
1e29e696
Commit
1e29e696
authored
Aug 19, 2015
by
Robert Lyon
Committed by
Gerrit Code Review
Aug 19, 2015
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Adding PHP & system info to stats collection" into 1.9_STABLE
parents
174e5363
c7139c0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
htdocs/lib/registration.php
htdocs/lib/registration.php
+22
-0
No files found.
htdocs/lib/registration.php
View file @
1e29e696
...
...
@@ -138,6 +138,28 @@ function registration_data() {
$data_to_send
[
$key
]
=
get_config
(
$key
);
}
// System information
$data_to_send
[
'phpversion'
]
=
phpversion
();
$data_to_send
[
'dbversion'
]
=
get_field_sql
(
'SELECT VERSION()'
);
$osversion
=
php_uname
(
's'
);
if
(
$osversion
==
'Linux'
)
{
$lsbversion
=
exec
(
'lsb_release -d'
,
$execout
,
$return_val
);
if
(
$return_val
===
0
)
{
$osversion
=
$lsbversion
;
}
else
{
$osversion
=
php_uname
();
}
}
$data_to_send
[
'osversion'
]
=
$osversion
;
$data_to_send
[
'phpsapi'
]
=
php_sapi_name
();
if
(
!
empty
(
$_SERVER
)
&&
!
empty
(
$_SERVER
[
'SERVER_SOFTWARE'
]))
{
$data_to_send
[
'webserver'
]
=
$_SERVER
[
'SERVER_SOFTWARE'
];
}
$modules
=
get_loaded_extensions
();
natcasesort
(
$modules
);
$data_to_send
[
'phpmodules'
]
=
'; '
.
implode
(
'; '
,
$modules
)
.
';'
;
foreach
(
array
(
'usr_friend'
,
'usr_institution'
,
...
...
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