Skin token for selected PHP version

MaartenS

Verified User
Joined
May 23, 2013
Messages
7
Hi all,

Thanks for reading! We're looking to notify all users of the PHP 5.6 skin about the upcoming deprecation of the version.

I know there are a few related tokens:

HAS_PHP_SELECTOR to see if there are multiple versions available.
PHPCHECKED, I think to show whether PHP is allowed for this domain
PHP_SELECTOR_COUNT was my best bet, but it's only ever at 1, never at 2 (regardless of which PHP version is selected
PHP_SELECTOR_TABLE to show the table where someone can select the PHP version.
DUMPTOKENS to show all possible tokens we can use.

I can't seem to find the correct token to find the actually selected version of PHP for the selected domain on the CMD_ADDITIONAL_DOMAINS?action=view&domain=domain.ext page.

What I'm intending to do is this:

Code:
|*if HAS_PHP_SELECTOR="yes"|
  |*if PHP_SELECTED_VERSION="2"|
    [B]Show some very loud message about PHP 5.6 being deprecated[/B]
  |endif\
|PHP_SELECTOR_TABLE|
|*endif|
Where token PHP_SELECTED_VERSION returns either 1 or 2, depending on the active version of PHP for this domain. I mean, DA must have this information somewhere, because the active version is always selected in the PHP_SELECTOR_TABLE.

Is something like this possible?

Thanks in advance!
 

MaartenS

Verified User
Joined
May 23, 2013
Messages
7
Hi zEitEr,

Thanks for your reply.

I'm not to worried about the nested if-statement. I'll pull them apart if it isn't accepted. Haven't tried it yet.

I've searched high and low for the token but haven't found anything, so I'll take your advice and open a support ticket.

Thanks again!
 
Top