diff --git a/authentication.php b/authentication.php index e3608ae..75f3bb9 100644 --- a/authentication.php +++ b/authentication.php @@ -53,16 +53,16 @@ class authentication public $jwtServerKey = null; /** The authentication servers configuration - * array ("authXXXX"=>array ( - * array ("ldapserver"=>"ldaps://annuaire.grenoble.cnrs.fr", - * "ldapport"=>636, - * "ldaptimeout"=>5, - * "ldapauth"=>"uid=annuaire,ou=people,dc=grenoble,dc=cnrs,dc=fr", - * "ldappwd"=>";authANNUAIRE2013", - * "ldapbase"=>"", - * "ldapfilter"=>"(mail=%s)", - * "ldapfield"=>"mail", - * "ldapfiltersearch"=>"(objectClass=inetOrgPerson)" + * array ("authXXXX" => array ( + * array ("ldapserver" => "ldaps://server.domain.fr", + * "ldapport" => 636, + * "ldaptimeout" => 5, + * "ldapauth" => "uid=XXX,dc=domain,dc=fr", + * "ldappwd" => "XXX", + * "ldapbase" => "", + * "ldapfilter" => "(mail=%s)", + * "ldapfield" => "mail", + * "ldapfiltersearch" => "(objectClass=inetOrgPerson)" * ), * ), * ); diff --git a/authldap.php b/authldap.php index 3c1008f..51ac2eb 100644 --- a/authldap.php +++ b/authldap.php @@ -126,9 +126,9 @@ class authldap extends auth { if ($this->ldapconn === NULL) throw new \Exception ("No established LDAP connection", 500); - $search = ldap_search ($this->ldapconn,$this->ldapbase, + $search = ldap_search ($this->ldapconn, $this->ldapbase, $this->ldapfiltersearch, - array ("mail","sn","givenname")); + array ("mail", "sn", "givenname")); if ($search === FALSE) throw new \Exception ("Unable to search the users in LDAP", 500); $info = ldap_get_entries ($this->ldapconn, $search); diff --git a/authorizationdb.php b/authorizationdb.php index 8fcf2a7..0045255 100644 --- a/authorizationdb.php +++ b/authorizationdb.php @@ -96,7 +96,7 @@ class authorizationdb extends authorization $groupid = intval ($search["groupid"]); $modbits = octdec ($search["modbits"]); if ($this->authiduser === 0) - return array ("READ","WRITE","EXECUTE"); + return array ("READ", "WRITE", "EXECUTE"); $res = array (); if ($this->authiduser === $ownerid) diff --git a/authparams.php b/authparams.php index 480b549..620fc27 100644 --- a/authparams.php +++ b/authparams.php @@ -17,7 +17,7 @@ class authparams * If non is found, return "anonymous", "anonymous" * @param array|null $authprocesses The authentication process to use */ - public function __construct ($authprocesses=array("session","post")) + public function __construct ($authprocesses = array ("session", "post")) { if (php_sapi_name () === "cli") { diff --git a/authsql.php b/authsql.php index b6b427f..58a8a5c 100644 --- a/authsql.php +++ b/authsql.php @@ -49,7 +49,7 @@ class authsql extends auth $this->db = new dblayer ($this->dsn, $this->username, $this->password, $this->driver_options); if ($this->table === null) - throw new Exception (dgettext ("domframework","No SQL table defined"), + throw new Exception (dgettext ("domframework", "No SQL table defined"), 500); if ($this->fieldIdentifier === null) throw new Exception (dgettext ("domframework", @@ -68,7 +68,7 @@ class authsql extends auth $this->fieldsInfo); $fields = array_flip ($fields); foreach ($fields as $key=>$val) - $fields[$key] = array ("varchar","255"); + $fields[$key] = array ("varchar", "255"); $this->db->table = $this->table; $this->db->fields = $fields; $this->db->primary = $this->fieldIdentifier; @@ -139,11 +139,11 @@ class authsql extends auth throw new Exception (dgettext ("domframework", "Bad old password provided"), 401); $cost = 11; - $salt=substr(base64_encode(openssl_random_pseudo_bytes(17)),0,22); - $salt=str_replace("+",".",$salt); - $param='$'.implode('$',array( + $salt = substr (base64_encode (openssl_random_pseudo_bytes (17)), 0, 22); + $salt = str_replace ("+", ".", $salt); + $param = '$'.implode('$', array( "2y", //select the most secure version of blowfish (>=PHP 5.3.7) - str_pad($cost,2,"0",STR_PAD_LEFT), //add the cost in two digits + str_pad ($cost, 2, "0", STR_PAD_LEFT), //add the cost in two digits $salt //add the salt )); //now do the actual hashing @@ -173,11 +173,11 @@ class authsql extends auth "Unable to find the user : '%s'"), $email), 401); $cost = 11; - $salt=substr(base64_encode(openssl_random_pseudo_bytes(17)),0,22); - $salt=str_replace("+",".",$salt); - $param='$'.implode('$',array( + $salt = substr (base64_encode (openssl_random_pseudo_bytes (17)), 0, 22); + $salt = str_replace ("+", ".", $salt); + $param = '$'. implode ('$', array ( "2y", //select the most secure version of blowfish (>=PHP 5.3.7) - str_pad($cost,2,"0",STR_PAD_LEFT), //add the cost in two digits + str_pad ($cost, 2, "0", STR_PAD_LEFT), //add the cost in two digits $salt //add the salt )); //now do the actual hashing diff --git a/authzgroups.php b/authzgroups.php index ea730be..0e2289a 100644 --- a/authzgroups.php +++ b/authzgroups.php @@ -169,8 +169,8 @@ class authzgroups $object = "/$object"; $rc = $this->allow ($module, $user, "$object"); if ($this->debug) - trigger_error ("authzgroups : accessRight ('$module','$user','$object')". - "=$rc", E_USER_NOTICE); + trigger_error ("authzgroups : accessRight ('$module', '$user', ". + "'$object')=$rc", E_USER_NOTICE); if ($rc !== "NO") return TRUE; if ($user === "anonymous") @@ -204,8 +204,8 @@ class authzgroups $object = "/$object"; $rc = $this->allow ($module, $user, $object); if ($this->debug) - trigger_error ("authzgroups : accessWrite ('$module','$user','$object')". - "=$rc", E_USER_NOTICE); + trigger_error ("authzgroups : accessWrite ('$module', '$user', ". + "'$object')=$rc", E_USER_NOTICE); if ($rc === "RW") return TRUE; if ($user === "anonymous") @@ -241,7 +241,7 @@ class authzgroups $object = "/$object"; $rc = $this->allow ($module, $user, $object); if ($this->debug) - trigger_error ("authzgroups : accessReadOnly ('$module','$user',". + trigger_error ("authzgroups : accessReadOnly ('$module', '$user', ". "'$object')" ."=$rc", E_USER_NOTICE); if ($rc === "RO") return TRUE; @@ -270,40 +270,34 @@ class authzgroups $this->dbObject->table = "authzobject"; $this->dbObject->prefix = $this->tableprefix; $this->dbObject->fields = array ( - "idobject"=>array ("integer", "not null", "autoincrement"), - "module"=> array ("varchar", "255", "not null"), - "object"=> array ("varchar", "255", "not null"), - "comment"=> array ("varchar", "255")); + "idobject" => array ("integer", "not null", "autoincrement"), + "module" => array ("varchar", "255", "not null"), + "object" => array ("varchar", "255", "not null"), + "comment" => array ("varchar", "255")); $this->dbObject->primary = "idobject"; $this->dbObject->unique = array ("idobject", array ("object", "module")); - $this->dbObject->titles = array ("idobject"=>dgettext ("domframework", - "idobject"), - "module"=>dgettext ("domframework", - "Module"), - "object"=>dgettext ("domframework", - "Object"), - "comment"=>dgettext ("domframework", - "Comment")); + $this->dbObject->titles = array ( + "idobject" => dgettext ("domframework", "idobject"), + "module" => dgettext ("domframework", "Module"), + "object" => dgettext ("domframework", "Object"), + "comment" => dgettext ("domframework", "Comment")); $this->dbGroup = new dblayer ($dsn, $username, $password, $driver_options); $this->dbGroup->debug = $this->debug; $this->dbGroup->table = "authzgroup"; $this->dbGroup->prefix = $this->tableprefix; $this->dbGroup->fields = array ( - "idgroup"=>array ("integer", "not null", "autoincrement"), - "module"=> array ("varchar", "255", "not null"), - "group"=> array ("varchar", "255", "not null"), - "comment"=>array ("varchar", "255")); + "idgroup" => array ("integer", "not null", "autoincrement"), + "module" => array ("varchar", "255", "not null"), + "group" => array ("varchar", "255", "not null"), + "comment" => array ("varchar", "255")); $this->dbGroup->primary = "idgroup"; - $this->dbGroup->unique = array ("idgroup", array ("module","group")); - $this->dbGroup->titles = array ("idgroup"=>dgettext ("domframework", - "idgroup"), - "module"=>dgettext ("domframework", - "Module"), - "group"=>dgettext ("domframework", - "Group"), - "comment"=>dgettext ("domframework", - "Comment")); + $this->dbGroup->unique = array ("idgroup", array ("module", "group")); + $this->dbGroup->titles = array ( + "idgroup" => dgettext ("domframework", "idgroup"), + "module" => dgettext ("domframework", "Module"), + "group" => dgettext ("domframework", "Group"), + "comment" => dgettext ("domframework", "Comment")); $this->dbGroupMember = new dblayer ($dsn, $username, $password, $driver_options); @@ -311,15 +305,15 @@ class authzgroups $this->dbGroupMember->table = "authzgroupmember"; $this->dbGroupMember->prefix = $this->tableprefix; $this->dbGroupMember->fields = array ( - "idgroupmember"=>array ("integer", "not null", "autoincrement"), - "user"=> array ("varchar", "255", "not null"), - "idgroup"=> array ("integer", "not null"), - "comment"=> array ("varchar", "255")); + "idgroupmember" => array ("integer", "not null", "autoincrement"), + "user" => array ("varchar", "255", "not null"), + "idgroup" => array ("integer", "not null"), + "comment" => array ("varchar", "255")); $this->dbGroupMember->primary = "idgroupmember"; $this->dbGroupMember->unique = array ("idgroupmember", - array ("user","idgroup")); + array ("user", "idgroup")); $this->dbGroupMember->foreign = array ( - "idgroup"=>array ("authzgroup", "idgroup", + "idgroup" => array ("authzgroup", "idgroup", "ON UPDATE CASCADE ON DELETE CASCADE")); $this->dbGroupMember->titles = array ( "idgroupmember"=> dgettext ("domframework", "idgroupmember"), @@ -335,22 +329,22 @@ class authzgroups "idright"=> array ("integer", "not null", "autoincrement"), "idgroup"=> array ("integer", "not null"), "idobject"=>array ("integer", "not null"), - "right"=> array ("varchar", "2", "not null"), // RO,RW + "right"=> array ("varchar", "2", "not null"), // RO, RW "comment"=> array ("varchar", "255")); $this->dbRight->primary = "idright"; - $this->dbRight->unique = array ("idright", array ("idgroup","idobject")); + $this->dbRight->unique = array ("idright", array ("idgroup", "idobject")); $this->dbRight->foreign = array ( - "idgroup"=> array ("authzgroup", "idgroup", - "ON UPDATE CASCADE ON DELETE CASCADE"), - "idobject"=>array ("authzobject", "idobject", - "ON UPDATE CASCADE ON DELETE CASCADE"), + "idgroup" => array ("authzgroup", "idgroup", + "ON UPDATE CASCADE ON DELETE CASCADE"), + "idobject" => array ("authzobject", "idobject", + "ON UPDATE CASCADE ON DELETE CASCADE"), ); $this->dbRight->titles = array ( - "idright"=>dgettext ("domframework", "idright"), - "idgroup"=>dgettext ("domframework", "idgroup"), - "idobject"=>dgettext ("domframework", "idobject"), - "right"=>dgettext ("domframework", "Right"), - "comment"=>dgettext ("domframework", "Comment")); + "idright" => dgettext ("domframework", "idright"), + "idgroup" => dgettext ("domframework", "idgroup"), + "idobject" => dgettext ("domframework", "idobject"), + "right" => dgettext ("domframework", "Right"), + "comment" => dgettext ("domframework", "Comment")); return TRUE; } @@ -505,7 +499,8 @@ class authzgroups $select[] = array ("module", $module); if ($object !== null) $select[] = array ("object", $object); - return $this->dbObject->read ($select, null, array(array("object","ASC"))); + return $this->dbObject->read ($select, null, + array (array ("object", "ASC"))); } /** Return an array with all the available objects in the module, or only @@ -517,7 +512,7 @@ class authzgroups { if ($this->dbObject == null) throw new Exception (dgettext ("domframework", - "DB for Object is not connected"), 500); + "DB for Object is not connected"), 500); $select[] = array ("module", $module); if ($idobject !== null) $select[] = array ("idobject", $idobject); @@ -725,11 +720,11 @@ class authzgroups throw new Exception (dgettext ("domframework", "Wanted group not found"), 404); $groupsMembers = $this->dbGroupMember->read (array ( - array ("user",$user), - array ("idgroup",$groups[0]["idgroup"]))); + array ("user", $user), + array ("idgroup", $groups[0]["idgroup"]))); if (! isset ($groupsMembers[0]["idgroupmember"])) throw new Exception (dgettext ("domframework", - "Wanted GroupMember not found"), 404); + "Wanted GroupMember not found"), 404); $this->rightCache = null; return $this->dbGroupMember->delete ($groupsMembers[0]["idgroupmember"]); } @@ -743,15 +738,14 @@ class authzgroups { if ($this->dbGroupMember == null) throw new Exception (dgettext ("domframework", - "DB for GroupMember is not connected"), - 500); + "DB for GroupMember is not connected"), 500); $groups = $this->groupReadByID ($module, $idgroup); if (! isset ($groups[0]["idgroup"])) throw new Exception (dgettext ("domframework", - "Wanted group not found"), 404); + "Wanted group not found"), 404); $groupsMembers = $this->dbGroupMember->read (array ( - array ("idgroupmember",$idgroupmember), - array ("idgroup",$idgroup))); + array ("idgroupmember", $idgroupmember), + array ("idgroup", $idgroup))); if (! isset ($groupsMembers[0]["idgroupmember"])) throw new Exception (dgettext ("domframework", "Wanted GroupMember not found"), 404); @@ -1118,8 +1112,8 @@ class authzgroups if (! isset ($objects[0]["idobject"])) throw new Exception (dgettext ("domframework", "Wanted object not found"), 404); - $select[] = array ("idgroup",$groups[0]["idgroup"]); - $select[] = array ("idobject",$objects[0]["idobject"]); + $select[] = array ("idgroup", $groups[0]["idgroup"]); + $select[] = array ("idobject", $objects[0]["idobject"]); return $this->dbRight->read ($select); } diff --git a/authzgroupsoo.php b/authzgroupsoo.php index 15dc20f..04450a4 100644 --- a/authzgroupsoo.php +++ b/authzgroupsoo.php @@ -191,8 +191,8 @@ class authzgroupsoo $object = "/$object"; $rc = $this->allow ($module, $user, "$object"); if ($this->debug) - trigger_error ("authzgroups : accessRight ('$module','$user','$object')". - "=$rc", E_USER_NOTICE); + trigger_error ("authzgroups : accessRight ('$module', '$user', ". + "'$object')=$rc", E_USER_NOTICE); if ($rc !== "NO") return TRUE; if ($user === "anonymous") @@ -226,8 +226,8 @@ class authzgroupsoo $object = "/$object"; $rc = $this->allow ($module, $user, $object); if ($this->debug) - trigger_error ("authzgroups : accessWrite ('$module','$user','$object')". - "=$rc", E_USER_NOTICE); + trigger_error ("authzgroups : accessWrite ('$module', '$user', ". + "'$object')=$rc", E_USER_NOTICE); if ($rc === "RW") return TRUE; if ($user === "anonymous") @@ -263,7 +263,7 @@ class authzgroupsoo $object = "/$object"; $rc = $this->allow ($module, $user, $object); if ($this->debug) - trigger_error ("authzgroups : accessReadOnly ('$module','$user',". + trigger_error ("authzgroups : accessReadOnly ('$module', '$user', ". "'$object')" ."=$rc", E_USER_NOTICE); if ($rc === "RO") return TRUE; @@ -316,7 +316,7 @@ class authzgroupsoo "group" => array ("varchar(255)", "not null"), "comment" => array ("varchar(255)"))); $this->dbGroup->primary ("idgroup"); - $this->dbGroup->unique (array ("idgroup", array ("module","group"))); + $this->dbGroup->unique (array ("idgroup", array ("module", "group"))); $this->dbGroup->titles (array ( "idgroup" => dgettext ("domframework", "idgroup"), "module" => dgettext ("domframework", "Module"), @@ -335,7 +335,7 @@ class authzgroupsoo "comment" => array ("varchar(255)"))); $this->dbGroupMember->primary ("idgroupmember"); $this->dbGroupMember->unique (array ("idgroupmember", - array ("user","idgroup"))); + array ("user", "idgroup"))); $this->dbGroupMember->foreign (array ( "idgroup" => array ($this->tableprefix."authzgroup", "idgroup", "ON UPDATE CASCADE ON DELETE CASCADE"))); @@ -355,10 +355,10 @@ class authzgroupsoo "idright" => array ("integer", "not null", "autoincrement"), "idgroup" => array ("integer", "not null"), "idobject" => array ("integer", "not null"), - "right" => array ("varchar(2)", "not null"), // NO, RO,RW + "right" => array ("varchar(2)", "not null"), // NO, RO, RW "comment" => array ("varchar(255)"))); $this->dbRight->primary ("idright"); - $this->dbRight->unique (array ("idright", array ("idgroup","idobject"))); + $this->dbRight->unique (array ("idright", array ("idgroup", "idobject"))); $this->dbRight->foreign (array ( "idgroup" => array ($this->tableprefix."authzgroup", "idgroup", "ON UPDATE CASCADE ON DELETE CASCADE"), @@ -584,7 +584,7 @@ class authzgroupsoo $this->dbObject->whereAdd ("object", "=", $object); return $this->dbObject->select () ->whereAdd ("module", "=", $module) - ->orderAdd ("object","ASC") + ->orderAdd ("object", "ASC") ->execute (); } diff --git a/config.php b/config.php index a629e86..df9f744 100644 --- a/config.php +++ b/config.php @@ -451,7 +451,7 @@ class config $foundDefault = $text; if ($id === T_DOC_COMMENT) { - // Look at @param, @description,@type, @values, @default + // Look at @param, @description, @type, @values, @default if ($debug) echo "DOC_COMMENT : $text\n"; // Append the not completed lines $text = trim (substr ($text, 3, -2)); @@ -467,7 +467,7 @@ class config $tmp = explode (" ", $line); $key = reset ($tmp); $key = substr ($key, 1); - $data[$key] = trim (implode (" ",array_slice ($tmp, 1))); + $data[$key] = trim (implode (" ", array_slice ($tmp, 1))); } if (isset ($data["group"])) $group = $data["group"]; diff --git a/dblayeroo.php b/dblayeroo.php index 9bb63f5..5fc88c9 100644 --- a/dblayeroo.php +++ b/dblayeroo.php @@ -329,7 +329,7 @@ class dblayeroo * ); * $primary = "id"; * $unique = array ("id", array ("zo ne", "vie wname")); - * $foreign = array ("zone"=>"table.field",...); + * $foreign = array ("zone"=>"table.field", ...); */ public function createTable () /* {{{ */ @@ -625,7 +625,7 @@ class dblayeroo { $sql .= ",\n UNIQUE (\""; if (is_array ($u)) - $sql .=implode ("\",\"", $u); + $sql .= implode ("\",\"", $u); else $sql .= $u; $sql .="\")"; @@ -3224,7 +3224,7 @@ class dblayeroo $sql = $this->createRequest (); $this->debugLog ("Entering prepareRequest (XXX, ",false,")"); $st = $this->prepareRequest ($sql, false); - $this->debugLog ("'",$this->getDisplayQuery (),"'"); + $this->debugLog ("'", $this->getDisplayQuery (), "'"); $startTime = microtime (true); $st->execute (); switch ($this->command) diff --git a/file.php b/file.php index 642bc3a..c107eb0 100644 --- a/file.php +++ b/file.php @@ -638,7 +638,7 @@ class file $this->checkPathRW ($tmpdirname); if ($recursive === false) return @rmdir ($tmpdirname); - $files = array_diff (scandir ($tmpdirname), array('.','..')); + $files = array_diff (scandir ($tmpdirname), array(".", "..")); foreach ($files as $file) { if (is_dir ("$tmpdirname/$file")) diff --git a/httpclient.php b/httpclient.php index d61f376..4a4a2be 100644 --- a/httpclient.php +++ b/httpclient.php @@ -949,7 +949,7 @@ class Httpclient } elseif ($val !== null && $name === "") { - // Only the first value will be stored as cookie (name,val) pair + // Only the first value will be stored as cookie (name, val) pair // echo "KEY=$key => $val\n"; $name = $key; $value = $val; diff --git a/imap.php b/imap.php index 2cd5aec..d94b333 100644 --- a/imap.php +++ b/imap.php @@ -140,7 +140,7 @@ class imap throw new \Exception ("IMAP server not connected", 500); if (! in_array ($folder, $this->foldersList ())) throw new \Exception ("Folder not found", 404); - $folderUTF7 = mb_convert_encoding ($folder, "UTF7-IMAP","UTF-8"); + $folderUTF7 = mb_convert_encoding ($folder, "UTF7-IMAP", "UTF-8"); $rc = @imap_reopen (self::$instance[$this->mailbox], $this->mailbox.$folderUTF7); if ($rc === true) @@ -168,7 +168,7 @@ class imap throw new \Exception ("IMAP server not connected", 500); if ( in_array ($folder, $this->foldersList ())) throw new \Exception ("Folder already exists", 406); - $folderUTF7 = mb_convert_encoding ($folder, "UTF7-IMAP","UTF-8"); + $folderUTF7 = mb_convert_encoding ($folder, "UTF7-IMAP", "UTF-8"); return imap_createmailbox (self::$instance[$this->mailbox], $this->mailbox.$folderUTF7); } @@ -182,7 +182,7 @@ class imap throw new \Exception ("IMAP server not connected", 500); if (! in_array ($folder, $this->foldersList ())) throw new \Exception ("Folder not found", 404); - $folderUTF7 = mb_convert_encoding ($folder, "UTF7-IMAP","UTF-8"); + $folderUTF7 = mb_convert_encoding ($folder, "UTF7-IMAP", "UTF-8"); return imap_deletemailbox (self::$instance[$this->mailbox], $this->mailbox.$folderUTF7); } @@ -217,7 +217,7 @@ class imap { if ($this->mailbox === null) throw new \Exception ("IMAP server not connected", 500); - $folderUTF7 = mb_convert_encoding ($folder, "UTF7-IMAP","UTF-8"); + $folderUTF7 = mb_convert_encoding ($folder, "UTF7-IMAP", "UTF-8"); return imap_subscribe (self::$instance[$this->mailbox], $this->mailbox.$folder); } @@ -230,7 +230,7 @@ class imap { if ($this->mailbox === null) throw new \Exception ("IMAP server not connected", 500); - $folderUTF7 = mb_convert_encoding ($folder, "UTF7-IMAP","UTF-8"); + $folderUTF7 = mb_convert_encoding ($folder, "UTF7-IMAP", "UTF-8"); return imap_unsubscribe (self::$instance[$this->mailbox], $this->mailbox.$folder); } @@ -413,7 +413,7 @@ class imap $this->changeFolder ($this->curDir); if (is_array ($msgno)) $msgno = implode (",", $msgno); - $folderUTF7 = mb_convert_encoding ($folder, "UTF7-IMAP","UTF-8"); + $folderUTF7 = mb_convert_encoding ($folder, "UTF7-IMAP", "UTF-8"); $rc = imap_mail_move (self::$instance[$this->mailbox], $msgno, $folderUTF7); if ($rc !== TRUE) { @@ -436,7 +436,7 @@ class imap $this->changeFolder ($this->curDir); if (is_array ($msgno)) $msgno = implode (",", $msgno); - $folderUTF7 = mb_convert_encoding ($folder, "UTF7-IMAP","UTF-8"); + $folderUTF7 = mb_convert_encoding ($folder, "UTF7-IMAP", "UTF-8"); $rc = imap_mail_copy (self::$instance[$this->mailbox], $msgno, $folderUTF7); if ($rc !== TRUE) { @@ -719,7 +719,7 @@ class imap { if ($this->mailbox === null) throw new \Exception ("IMAP server not connected", 500); - $folderUTF7 = mb_convert_encoding ($this->curDir, "UTF7-IMAP","UTF-8"); + $folderUTF7 = mb_convert_encoding ($this->curDir, "UTF7-IMAP", "UTF-8"); $rc = imap_append (self::$instance[$this->mailbox], $this->mailbox.$folderUTF7, $content); diff --git a/ipaddresses.php b/ipaddresses.php index 8fb8ef7..5210fae 100644 --- a/ipaddresses.php +++ b/ipaddresses.php @@ -179,7 +179,7 @@ class ipaddresses foreach ($ipArr as $key=>$val) { // echo "VAL=".var_export ($val, true). - // ", cleanLoop=".var_export ($cleanLoop,true); + // ", cleanLoop=".var_export ($cleanLoop, true); if ($val !== "0") { // echo " => In NOT zero\n"; @@ -232,7 +232,7 @@ class ipaddresses $this->validIPAddress ($ip) === false) throw new \Exception (dgettext ("domframework", "Invalid IP address"), 500); - if (strstr ($ip,"::")) + if (strstr ($ip, "::")) { $e = explode (":", $ip); // Case where :: is in start diff --git a/language.php b/language.php index fdfabe2..bf4ef2f 100644 --- a/language.php +++ b/language.php @@ -45,7 +45,7 @@ class language // Suppression des poids (l'ordre est donne dans la pile) if ( ($pos = strpos ($value, ";")) !== FALSE) { - $arrAccept[$key] = substr ($value,0,$pos); + $arrAccept[$key] = substr ($value, 0, $pos); } // Si la language proposee est du style en-us, convertit en en-US diff --git a/markdown.php b/markdown.php index a4a47f2..afb8b05 100644 --- a/markdown.php +++ b/markdown.php @@ -10,7 +10,7 @@ class markdown public $debug = false; /** The list of the HTML elements used by block */ - private $blockid = array ("