Alternc  latest
Alternc logiel libre pour l'hébergement
alternc_fix_opendkim.php File Reference

Go to the source code of this file.

Variables

 $f =@fopen("/etc/alternc/my.cnf","rb")
 
if(! $f) $mdb =""
 
 $mhost =""
 
 $muser =""
 
 $mpass =""
 
if(! $mdb||! $mhost||! $muser||! $mpass) $ALTERNC_ROOT ="/var/alternc/html"
 
 if (!file_exists("/usr/bin/opendkim-genkey") &&!file_exists("/usr/sbin/opendkim-genkey"))
 
 $db =new DB_Sql($mdb,$mhost,$muser,$mpass)
 
if(! $db) $hasdoneone =false
 
 $r =$db->query("SELECT domaine FROM domaines where gesmx=1 AND gesdns=1;")
 
while($db->next_record()) if($hasdoneone) else
 

Variable Documentation

◆ $ALTERNC_ROOT

$ALTERNC_ROOT ="/var/alternc/html"

Definition at line 32 of file alternc_fix_opendkim.php.

◆ $db

$db =new DB_Sql($mdb,$mhost,$muser,$mpass)

Definition at line 57 of file alternc_fix_opendkim.php.

◆ $f

$f =@fopen("/etc/alternc/my.cnf","rb")

Definition at line 5 of file alternc_fix_opendkim.php.

◆ $hasdoneone

if (! $db) $hasdoneone =false

Definition at line 63 of file alternc_fix_opendkim.php.

◆ $mdb

if (! $f) $mdb =""

Definition at line 10 of file alternc_fix_opendkim.php.

◆ $mhost

$mhost =""

Definition at line 10 of file alternc_fix_opendkim.php.

◆ $mpass

$mpass =""

Definition at line 10 of file alternc_fix_opendkim.php.

◆ $muser

$muser =""

Definition at line 10 of file alternc_fix_opendkim.php.

◆ $r

$r =$db->query("SELECT domaine FROM domaines where gesmx=1 AND gesdns=1;")

Definition at line 64 of file alternc_fix_opendkim.php.

◆ else

while ( $db->next_record()) if ( $hasdoneone) else
Initial value:
{
echo "I did nothing, opendkim seems fine...\n"

Definition at line 88 of file alternc_fix_opendkim.php.

◆ if

if(!file_exists("/usr/bin/opendkim-genkey") &&!file_exists("/usr/sbin/opendkim-genkey")) ( file_exists"/usr/bin/opendkim-genkey") &&!file_exists("/usr/sbin/opendkim-genkey")

Definition at line 48 of file alternc_fix_opendkim.php.