<?php
@unlink('get_user.php');
function __getRunningUser(){
// works on Windows and Linux, but might return null on systems that include "exec" in
// disabled_functions in php.ini (typical in shared hosting)
$runningUser = exec('whoami');
if ($runningUser == null) { // matches null, false and ""
if (__is_windows()) {
$runningUser = getenv('USERDOMAIN').'\\'.getenv('USERNAME');
} elseif (function_exists('posix_getpwuid') && function_exists('posix_geteuid')) {
$usr = posix_getpwuid(posix_geteuid());
$runningUser = $usr['name'];
}
}
return ($runningUser == null) ? '' : $runningUser;
}
function __is_windows(){
static $is_windows = null;
if (!isset($is_windows)) {
$is_windows = strtoupper(substr(PHP_OS, 0, 3)) == 'WIN';
}
return $is_windows;
}
$cronUser = __getRunningUser();
echo '<get_user>'.$cronUser.'</get_user>';
?>| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| images | Folder | 0755 |
|
|
| php53 | Folder | 0755 |
|
|
| php56 | Folder | 0755 |
|
|
| php71 | Folder | 0755 |
|
|
| php81 | Folder | 0755 |
|
|
| php82 | Folder | 0755 |
|
|
| _.htaccess | File | 4.13 KB | 0644 |
|
| clone.php | File | 16.49 KB | 0644 |
|
| config.php | File | 11.9 KB | 0644 |
|
| config_override.php | File | 132 B | 0644 |
|
| edit.php | File | 4.68 KB | 0644 |
|
| edit.xml | File | 433 B | 0644 |
|
| extend.php | File | 9.44 KB | 0644 |
|
| fileindex.php | File | 673 B | 0644 |
|
| get_user.php | File | 947 B | 0644 |
|
| import.php | File | 3.33 KB | 0644 |
|
| info.xml | File | 3.55 KB | 0644 |
|
| install.js | File | 924 B | 0644 |
|
| install.php | File | 11.07 KB | 0644 |
|
| install.xml | File | 1.12 KB | 0644 |
|
| md5 | File | 3.16 KB | 0644 |
|
| notes.txt | File | 1.11 KB | 0644 |
|
| status.json | File | 305 B | 0644 |
|
| suitecrm7.sql | File | 402.07 KB | 0644 |
|
| suitecrm7.zip | File | 50.02 MB | 0644 |
|
| update_pass.php | File | 558 B | 0644 |
|