文件操作 - getuid.php
返回文件管理
返回主菜单
删除本文件
文件: /var/softaculous/espo/getuid.php
编辑文件内容
<?php $owner = function_exists('posix_getuid') ? posix_getuid() : 0; $group = function_exists('posix_getegid') ? posix_getegid() : 0; echo '\<owner>'.$owner.'</owner>'; echo '\<group>'.$group.'</group>'; // this is to handle secret key generation $SecretKey = __generateSecretKey(); echo '\<secretkey>'.$SecretKey.'</secretkey>'; function __generateSecretKey() { if (!function_exists('random_bytes')) { return uniqid() . substr(md5(rand()), 0, 4); } return bin2hex(random_bytes(16)); } ?>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件