mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
get version and build date
This commit is contained in:
parent
5d87a17bf8
commit
6fa22486e7
1 changed files with 3 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
|||
<?php
|
||||
|
||||
$vesta_version=file_get_contents('/usr/local/vesta/version.txt');
|
||||
$vesta_build_date=file_get_contents('/usr/local/vesta/build_date.txt');
|
||||
|
||||
if (file_exists("/usr/local/vesta/web/inc/switch_to_vesta_port") && isset($_SERVER['HTTP_X_REAL_IP'])) {
|
||||
header("Location: https://".$_SERVER['HTTP_HOST'].":".$_SERVER['SERVER_PORT']);
|
||||
exit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue