<?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 |
|
|
.env.local | File | 104 B | 0644 |
|
.htaccess | File | 100 B | 0644 |
|
_.htaccess | File | 3.99 KB | 0644 |
|
clone.php | File | 16.47 KB | 0644 |
|
config.php | File | 11.92 KB | 0644 |
|
config_override.php | File | 188 B | 0644 |
|
config_si.php | File | 1.08 KB | 0644 |
|
edit.php | File | 4.68 KB | 0644 |
|
edit.xml | File | 433 B | 0644 |
|
extend.php | File | 10.01 KB | 0644 |
|
fileindex.php | File | 329 B | 0644 |
|
get_user.php | File | 947 B | 0644 |
|
import.php | File | 3.49 KB | 0644 |
|
info.xml | File | 3.6 KB | 0644 |
|
install.js | File | 924 B | 0644 |
|
install.php | File | 11.16 KB | 0644 |
|
install.xml | File | 952 B | 0644 |
|
md5 | File | 1.39 KB | 0644 |
|
notes.txt | File | 1.59 KB | 0644 |
|
status.json | File | 253 B | 0644 |
|
update_pass.php | File | 558 B | 0644 |
|