ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 28,496
- Points
- 823
Reputation:
PHP:
Read more
Continue reading...
Code:
if (!$isWindows)
{
// Only allow the upgrade to run if we're not likely to cause mixed file ownership.
// This is possibly over restrictive. (If relaxed in the future, we should special case
// to prevent using root unless the files are owned by root.)
$uid = function_exists('posix_getuid') ? posix_getuid() : fileowner(File::getTempFile());
if ($uid !== fileowner(__FILE__))
{
$error =...
Read more
Continue reading...