Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
JMM
Experienced
Topic Author
Posts: 154
Joined: 02 Aug 2021, 11:18

Trying to determine X3 version from outside X3

30 May 2023, 08:25

Hello, Karl,

I have an intranet site (basically, just a website that only myself on my LAN has access to), so I'm not worried about the public seeing the info that I'm about to ask here.

When running diagnostics, the X3 version is dislayed under Extended Diagnostics.

Is there a file within X3 that contains the X3 version number?  If so, what what would that file be?

I currently have a webpage that only I have access to, that keeps track of my web software & which displays to me what versions I am running.  My PHP code in that page reads in php files & searches for text within those files, so if X3's version number is located in a file, I can then extract that version number  :relaxed:.

I notice a variable that X3 uses ($x3_version), but as I would be running my query from non-X3 sites, I would not have access to $x3_version, so hopefully the version number is located in a file within X3.

Thanks in advance.

Regards,
John
Location: Burlington (Toronto-ish), Ontario, Canada
Self-hosted using Abyss Web Server:   AuroraWings.me   |   GalleryWings.com   |   PanAurora-Studio.com   |
Externally-hosted using LiteSpeed/Apache Web Server:   GenealogyWings.com/galleries   |
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: Trying to determine X3 version from outside X3

30 May 2023, 09:24

Not quite sure what you are trying to do, but indeed the X3 version is stored inside a file /app/x3.inc.php.
https://github.com/mjau-mjau/x3/blob/ma ... x3.inc.php
Code
static $version = '3.31.1';