1
0
Fork 0
forked from fun/fun

Added more Fun to htdocs/info.fun. (0.37.33)

This commit is contained in:
Johannes Findeisen 2025-12-29 20:39:47 +01:00
commit e6b9bd7488
4 changed files with 9 additions and 3 deletions

View file

@ -16,7 +16,10 @@ print("<h1>Fun Environment Information</h1>")
print("<p><strong>Current Path:</strong> " + env("PATH") + "</p>")
print("<p><strong>Current User:</strong> " + env("USER") + "</p>")
print("<p><strong>Time:</strong> " + date_format(time_now_ms(), "%Y-%m-%d %H:%M:%S") + "</p>")
print("<p><strong>Version:</strong> " + to_string(fun_version()) + "</p>")
print("<p><strong>Local Version:</strong> " + to_string(fun_version()) + "</p>")
res = proc_run("fun -V")
installed_version = res["out"]
print("<p><strong>Installed Version:</strong> " + to_string(substr(installed_version, 4, len(installed_version)-2)) + "</p>")
print("<h2>Full Environment:</h2>")
print("<ul>")
all_env = env_all()