get version and build date

This commit is contained in:
myvesta 2020-05-07 23:23:58 +02:00 committed by GitHub
commit 6fa22486e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;