Alternc  latest
Alternc logiel libre pour l'hébergement
3.4.2~a.php
Go to the documentation of this file.
1 #!/usr/bin/php
2 <?php
3 
4 // we don't check our AlternC session
5 if(!chdir("/usr/share/alternc/panel"))
6 exit(1);
7 require("/usr/share/alternc/panel/class/config_nochk.php");
8 
9 // we do it that way, so that the HOOK will be triggered, changing the zone files:
10 
11 variable_set('default_spf_value','a mx ?all', 'This variable (if set) tells the SPF/TXT DNS field that will be published as a SPF entry, telling which server(s) are allowed to send email for this one. You can still change it later in the advanced DNS entries for ONE domain, this entry is only set once for new domains (or when you change it here).');
12 
13 variable_set('default_dmarc_value', 'p=none;pct=100;rua=%%ADMINMAIL%%;aspf=r;adkim=r', 'This variable (if set) tells the DMARC/TXT DNS field that will be published as a DMARC entry, telling which policy you apply to this domain name. You can still change it later in the advanced DNS entries for ONE domain, this entry is only set once for new domains (or when you change it here). You can use %%ADMINMAIL%% or %%USERMAIL%% to substitute to admin-account or alternc user-account email address.');
14 
15 // strict dmarc would be 'p=reject;pct=100;rua=%%ADMINMAIL%%;aspf=s;adkim=s'
16 
exit
Definition: adm_doadd.php:70
variable_set($name, $value, $comment=null)
Set a persistent variable.
Definition: variables.php:108