خرید بک لینک

12-06-2017, 09:42 PM #1

Hi,
Is there anyway to passing custom data to skin/template?
Eg: I want to add USER_PHP_SECURE_MODE="ON" (my idea is using pre hook scripts)

so in config template

Code:

|*if USER_PHP_SECURE_MODE|
 disable_functions=exec,system,...
open_basedir = /home/|user|
|*endif|
and in skin

Code:

|*if USER_PHP_SECURE_MODE|
<span style="color:green;">ON</span>
|*else|
<span style="color:red;">OFF</span>
|*endif|

12-06-2017, 10:37 PM #2

Hello,

Not too sure whether I get your idea correct... Probably something like this could be helpful?

- Custom Package Items skin up to 8 items (SKINS)
https://www.directadmin.com/features.php?id=2006

or this:

- Ability to pass custom variables to pre/post.sh scripts from GET/POST
https://www.directadmin.com/features.php?id=1780

if not, then more search results can be found here https://www.directadmin.com/search_v...p?query=custom for a key word custom.

With regards, Alex.

✔ Professional Server Management for web hosting companies and individuals
✔ Hourly Support, Disaster Recovery, Server Hardening, Monthly Subscription
✔ Directadmin installation and optimization

Click here if you need a Linux Admin


Yesterday, 07:45 AM #3

Thank you Alex,
This is what i'm looking for.

Yesterday, 07:58 AM #4

But on the second
I want to pass custom variable from pre/post sh scripts to config/template, not pass from GET/POST to scripts

برچسب: نویسنده: ایمان اصلاحی تاريخ: شنبه 18 آذر 1396 ساعت: 23:46

صفحه بندی