From b6a2f1367316f7bb649eb8fbe623263909aaf14c Mon Sep 17 00:00:00 2001 From: Regis Houssin <regis@dolibarr.fr> Date: Tue, 20 Sep 2011 09:40:27 +0000 Subject: [PATCH] Fix: avoid jenkins warning Fix: SpaceAfterOpenBracket, SpaceAfterCloseBracket, SpaceBeforeCloseBracket, SpaceBeforeOpenBracket --- dev/translation/langAutoParser.class.php | 4 +- htdocs/adherents/admin/adherent.php | 4 +- htdocs/adherents/card_subscriptions.php | 3 +- htdocs/adherents/class/adherent.class.php | 4 +- htdocs/adherents/fiche.php | 3 +- htdocs/boutique/client/index.php | 2 +- htdocs/boutique/commande/index.php | 2 +- htdocs/boutique/critiques/bestproduct.php | 2 +- htdocs/boutique/critiques/index.php | 2 +- htdocs/boutique/notification/index.php | 2 +- htdocs/boutique/notification/produits.php | 2 +- htdocs/boutique/produits/index.php | 2 +- htdocs/boutique/produits/osc-liste.php | 2 +- htdocs/boutique/promotion/index.php | 4 +- htdocs/boxes.php | 6 +- htdocs/cashdesk/class/Auth.class.php | 2 +- htdocs/cashdesk/class/Facturation.class.php | 12 +-- htdocs/cashdesk/facturation_verif.php | 10 +-- htdocs/cashdesk/tpl/facturation1.tpl.php | 2 +- htdocs/cashdesk/tpl/liste_articles.tpl.php | 2 +- htdocs/compta/deplacement/fiche.php | 4 +- htdocs/compta/facture/class/facture.class.php | 4 +- htdocs/compta/paiement.php | 2 +- htdocs/compta/paiement/avalider.php | 2 +- htdocs/compta/paiement/cheque/liste.php | 2 +- htdocs/compta/paiement/liste.php | 2 +- .../class/bon-prelevement.class.php | 2 +- htdocs/contrat/class/contrat.class.php | 2 +- htdocs/core/class/commonobject.class.php | 2 +- htdocs/core/class/dolgraph.class.php | 4 +- htdocs/core/class/html.form.class.php | 4 +- htdocs/core/class/rssparser.class.php | 48 +++++------- htdocs/core/class/smtps.class.php | 78 +++++++++---------- .../browser/default/frmresourceslist.php | 6 +- .../core/filemanagerdol/connectors/php/io.php | 2 +- htdocs/core/tpl/ajaxrow.tpl.php | 3 +- htdocs/fichinter/list.php | 2 +- .../class/fournisseur.commande.class.php | 2 +- htdocs/fourn/commande/liste.php | 4 +- htdocs/fourn/contact.php | 2 +- htdocs/fourn/facture/index.php | 2 +- htdocs/imports/import.php | 6 +- .../facture/doc/pdf_oursin.modules.php | 4 +- .../modules/mailings/peche.modules.php | 2 +- htdocs/install/etape1.php | 6 +- htdocs/lib/ajax.lib.php | 26 +++---- htdocs/lib/date.lib.php | 2 +- htdocs/lib/files.lib.php | 2 +- htdocs/lib/ldap.class.php | 10 +-- htdocs/lib/price.lib.php | 44 +++++------ htdocs/main.inc.php | 2 +- htdocs/paypal/lib/paypal.lib.php | 2 +- htdocs/product/traduction.php | 2 +- htdocs/projet/ganttchart.php | 2 +- htdocs/projet/ganttview.php | 4 +- htdocs/societe/class/societe.class.php | 4 +- .../theme/auguria/fckeditor/fck_dialog_ie6.js | 36 ++++----- htdocs/theme/auguria/fckeditor/fckconfig.js | 14 ++-- htdocs/theme/auguria/style.css.php | 2 +- .../bureau2crea/fckeditor/fck_dialog_ie6.js | 36 ++++----- .../theme/bureau2crea/fckeditor/fckconfig.js | 14 ++-- .../theme/cameleo/fckeditor/fck_dialog_ie6.js | 36 ++++----- htdocs/theme/cameleo/fckeditor/fckconfig.js | 14 ++-- htdocs/theme/cameleo/style.css.php | 8 +- htdocs/theme/eldy/fckeditor/fck_dialog_ie6.js | 36 ++++----- htdocs/theme/eldy/fckeditor/fckconfig.js | 14 ++-- htdocs/theme/eldy/style.css.php | 2 +- .../smartphone/theme/default/default.css.php | 2 +- htdocs/user/fiche.php | 4 +- htdocs/user/passwordforgotten.php | 2 +- 70 files changed, 287 insertions(+), 302 deletions(-) diff --git a/dev/translation/langAutoParser.class.php b/dev/translation/langAutoParser.class.php index 1a40b2f679c..ec94b569a2c 100644 --- a/dev/translation/langAutoParser.class.php +++ b/dev/translation/langAutoParser.class.php @@ -193,12 +193,12 @@ class langAutoParser { private function getLineKey($line){ $arraykey = explode('=',$line,2); - return trim( $arraykey[0] ); + return trim($arraykey[0]); } private function getLineValue($line){ $arraykey = explode('=',$line,2); - return trim( $arraykey[1] ); + return trim($arraykey[1]); } private function getTranslationFilesArray($lang){ diff --git a/htdocs/adherents/admin/adherent.php b/htdocs/adherents/admin/adherent.php index 1d82527eaba..22498881a48 100644 --- a/htdocs/adherents/admin/adherent.php +++ b/htdocs/adherents/admin/adherent.php @@ -298,9 +298,7 @@ print '<br>'; /* * Edition info modele document */ -$constantes=array( - 'ADHERENT_ETIQUETTE_TYPE' -); +$constantes=array('ADHERENT_ETIQUETTE_TYPE'); print_fiche_titre($langs->trans("MembersTickets"),'',''); diff --git a/htdocs/adherents/card_subscriptions.php b/htdocs/adherents/card_subscriptions.php index 74f07a35818..ed9af86d8ad 100644 --- a/htdocs/adherents/card_subscriptions.php +++ b/htdocs/adherents/card_subscriptions.php @@ -792,8 +792,7 @@ if ($rowid) } // Create a form array - $formquestion=array( - array('label' => $langs->trans("NameToCreate"), 'type' => 'text', 'name' => 'companyname', 'value' => $name)); + $formquestion=array( array('label' => $langs->trans("NameToCreate"), 'type' => 'text', 'name' => 'companyname', 'value' => $name)); $ret=$html->form_confirm($_SERVER["PHP_SELF"]."?rowid=".$adh->id,$langs->trans("CreateDolibarrThirdParty"),$langs->trans("ConfirmCreateThirdParty"),"confirm_create_thirdparty",$formquestion,1); if ($ret == 'html') print '<br>'; diff --git a/htdocs/adherents/class/adherent.class.php b/htdocs/adherents/class/adherent.class.php index 47d59d198f0..44a4e37922a 100644 --- a/htdocs/adherents/class/adherent.class.php +++ b/htdocs/adherents/class/adherent.class.php @@ -680,7 +680,7 @@ class Adherent extends CommonObject { $sql = "DELETE FROM ".MAIN_DB_PREFIX."cotisation WHERE fk_adherent = ".$rowid; dol_syslog(get_class($this)."::delete sql=".$sql); - $resql=$this->db->query( $sql); + $resql=$this->db->query($sql); if ($resql) { $sql = "DELETE FROM ".MAIN_DB_PREFIX."adherent WHERE rowid = ".$rowid; @@ -925,7 +925,7 @@ class Adherent extends CommonObject $sql.= " WHERE login='".$login."'"; $sql.= " AND entity = ".$conf->entity; - $resql=$this->db->query( $sql); + $resql=$this->db->query($sql); if ($resql) { diff --git a/htdocs/adherents/fiche.php b/htdocs/adherents/fiche.php index c41286ace00..41f5ca514b2 100644 --- a/htdocs/adherents/fiche.php +++ b/htdocs/adherents/fiche.php @@ -1111,8 +1111,7 @@ if ($rowid && $action != 'edit') } // Create a form array - $formquestion=array( - array('label' => $langs->trans("NameToCreate"), 'type' => 'text', 'name' => 'companyname', 'value' => $name)); + $formquestion=array( array('label' => $langs->trans("NameToCreate"), 'type' => 'text', 'name' => 'companyname', 'value' => $name)); $ret=$html->form_confirm($_SERVER["PHP_SELF"]."?rowid=".$object->id,$langs->trans("CreateDolibarrThirdParty"),$langs->trans("ConfirmCreateThirdParty"),"confirm_create_thirdparty",$formquestion,1); if ($ret == 'html') print '<br>'; diff --git a/htdocs/boutique/client/index.php b/htdocs/boutique/client/index.php index 9b192c795c5..9e364f082a3 100644 --- a/htdocs/boutique/client/index.php +++ b/htdocs/boutique/client/index.php @@ -52,7 +52,7 @@ print_barre_liste("Liste des clients", $page, "index.php"); $sql = "SELECT c.customers_id, c.customers_lastname, c.customers_firstname, c.customers_email_address, c.customers_newsletter"; $sql .= " FROM ".$conf->global->OSC_DB_NAME.".".$conf->global->OSC_DB_TABLE_PREFIX."customers as c"; $sql .= " ORDER BY $sortfield $sortorder "; -$sql .= $dbosc->plimit( $limit ,$offset); +$sql .= $dbosc->plimit($limit ,$offset); $resql=$dbosc->query($sql); if ($resql) diff --git a/htdocs/boutique/commande/index.php b/htdocs/boutique/commande/index.php index 7ee425ec700..584738e454f 100644 --- a/htdocs/boutique/commande/index.php +++ b/htdocs/boutique/commande/index.php @@ -50,7 +50,7 @@ print_barre_liste("Liste des commandes", $page, "commande.php"); $sql .= " FROM ".$conf->global->OSC_DB_NAME.".".$conf->global->OSC_DB_TABLE_PREFIX."orders as o, ".$conf->global->OSC_DB_NAME.".".$conf->global->OSC_DB_TABLE_PREFIX."orders_total as t"; $sql .= " WHERE o.orders_id = t.orders_id AND t.class = 'ot_total'"; $sql .= " ORDER BY $sortfield $sortorder "; -$sql .= $dbosc->plimit( $limit ,$offset); +$sql .= $dbosc->plimit($limit ,$offset); $resql=$dbosc->query($sql); if ($resql) diff --git a/htdocs/boutique/critiques/bestproduct.php b/htdocs/boutique/critiques/bestproduct.php index 35b65cd8a0c..bb956db8dfb 100644 --- a/htdocs/boutique/critiques/bestproduct.php +++ b/htdocs/boutique/critiques/bestproduct.php @@ -55,7 +55,7 @@ $sql .= " WHERE r.products_id = p.products_id"; $sql .= " GROUP BY r.products_id, p.products_model, p.products_quantity, p.products_status"; $sql .= " ORDER BY $sortfield $sortorder "; -$sql .= $dbosc->plimit( $limit ,$offset); +$sql .= $dbosc->plimit($limit ,$offset); print "<p><TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">"; print "<TR class=\"liste_titre\"><td>".$langs->trans("Ref"); diff --git a/htdocs/boutique/critiques/index.php b/htdocs/boutique/critiques/index.php index 7a744613b2c..f874d020d64 100644 --- a/htdocs/boutique/critiques/index.php +++ b/htdocs/boutique/critiques/index.php @@ -51,7 +51,7 @@ $sql = "SELECT r.reviews_id, r.reviews_rating, d.reviews_text, p.products_name F $sql .= " WHERE r.reviews_id = d.reviews_id AND r.products_id=p.products_id"; $sql .= " AND p.language_id = ".$conf->global->OSC_LANGUAGE_ID. " AND d.languages_id=".$conf->global->OSC_LANGUAGE_ID; $sql .= " ORDER BY $sortfield $sortorder "; -$sql .= $dbosc->plimit( $limit ,$offset); +$sql .= $dbosc->plimit($limit ,$offset); print "<p><TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">"; print '<TR class="liste_titre">'; diff --git a/htdocs/boutique/notification/index.php b/htdocs/boutique/notification/index.php index d657607d7de..ce20bef0838 100644 --- a/htdocs/boutique/notification/index.php +++ b/htdocs/boutique/notification/index.php @@ -53,7 +53,7 @@ $sql .= ",".$conf->global->OSC_DB_NAME.".".$conf->global->OSC_DB_TABLE_PREFIX."c $sql .= " WHERE n.customers_id = c.customers_id AND p.products_id=n.products_id"; $sql .= " AND p.language_id = ".$conf->global->OSC_LANGUAGE_ID; $sql .= " ORDER BY $sortfield $sortorder "; -$sql .= $dbosc->plimit( $limit ,$offset); +$sql .= $dbosc->plimit($limit ,$offset); $resql=$dbosc->query($sql); if ($resql) diff --git a/htdocs/boutique/notification/produits.php b/htdocs/boutique/notification/produits.php index c8b33ac18ec..87c13f9017c 100644 --- a/htdocs/boutique/notification/produits.php +++ b/htdocs/boutique/notification/produits.php @@ -53,7 +53,7 @@ $sql .= " FROM ".$conf->global->OSC_DB_NAME.".".$conf->global->OSC_DB_TABLE_PREF $sql .= " WHERE p.products_id=n.products_id"; $sql .= " AND p.language_id = ".$conf->global->OSC_LANGUAGE_ID; $sql .= " GROUP BY p.products_name, p.products_id"; -$sql .= $dbosc->plimit( $limit ,$offset); +$sql .= $dbosc->plimit($limit ,$offset); $resql=$dbosc->query($sql); if ($resql) diff --git a/htdocs/boutique/produits/index.php b/htdocs/boutique/produits/index.php index 18df738dcf9..bdb35330192 100644 --- a/htdocs/boutique/produits/index.php +++ b/htdocs/boutique/produits/index.php @@ -49,7 +49,7 @@ print_barre_liste("Liste des clients", $page, "index.php"); $sql = "SELECT c.customers_id, c.customers_lastname, c.customers_firstname, c.customers_email_address, c.customers_newsletter"; $sql .= " FROM ".DB_NAME_OSC.".customers as c"; $sql .= " ORDER BY $sortfield $sortorder "; -$sql .= $dbosc->plimit( $limit ,$offset); +$sql .= $dbosc->plimit($limit ,$offset); $resql=$dbosc->query($sql); if ($resql) diff --git a/htdocs/boutique/produits/osc-liste.php b/htdocs/boutique/produits/osc-liste.php index 4b02d6ff38d..24692cd0981 100644 --- a/htdocs/boutique/produits/osc-liste.php +++ b/htdocs/boutique/produits/osc-liste.php @@ -58,7 +58,7 @@ if ($reqstock=='epuise') } //$sql .= " ORDER BY $sortfield $sortorder "; -$sql .= $dbosc->plimit( $limit ,$offset); +$sql .= $dbosc->plimit($limit ,$offset); print "<p><TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">"; print '<TR class="liste_titre">'; diff --git a/htdocs/boutique/promotion/index.php b/htdocs/boutique/promotion/index.php index bc51da88705..f50a8f0706f 100644 --- a/htdocs/boutique/promotion/index.php +++ b/htdocs/boutique/promotion/index.php @@ -61,7 +61,7 @@ $sql.= " expires_date as fin"; $sql.= " FROM ".$conf->global->OSC_DB_NAME.".".$conf->global->OSC_DB_TABLE_PREFIX."specials as s,".$conf->global->OSC_DB_NAME.".".$conf->global->OSC_DB_TABLE_PREFIX."products_description as pd,".$conf->global->OSC_DB_NAME.".".$conf->global->OSC_DB_TABLE_PREFIX."products as p"; $sql.= " WHERE s.products_id = pd.products_id AND pd.products_id = p.products_id AND pd.language_id = ".$conf->global->OSC_LANGUAGE_ID; $sql.= " ORDER BY $sortfield $sortorder "; -$sql.= $dbosc->plimit( $limit ,$offset); +$sql.= $dbosc->plimit($limit ,$offset); $resql=$dbosc->query($sql); if ($resql) @@ -79,7 +79,7 @@ if ($resql) $var=True; while ($i < $num) { - $objp = $dbosc->fetch_object( $i); + $objp = $dbosc->fetch_object($i); $var=!$var; print "<tr $bc[$var]>"; diff --git a/htdocs/boxes.php b/htdocs/boxes.php index 194a79e29cb..4bce41812b1 100644 --- a/htdocs/boxes.php +++ b/htdocs/boxes.php @@ -130,10 +130,10 @@ function printBoxesArea($user,$areacode) '; print "\n"; print 'function updateOrder(){'."\n"; - print 'var left_list = cleanSerialize(jQuery("#left").sortable( "serialize" ));'."\n"; - print 'var right_list = cleanSerialize(jQuery("#right").sortable( "serialize" ));'."\n"; + print 'var left_list = cleanSerialize(jQuery("#left").sortable("serialize" ));'."\n"; + print 'var right_list = cleanSerialize(jQuery("#right").sortable("serialize" ));'."\n"; print 'var boxorder = \'A:\' + left_list + \'-B:\' + right_list;'."\n"; - //print 'alert( \'boxorder=\' + boxorder );'; + //print 'alert(\'boxorder=\' + boxorder);'; print 'var userid = \''.$user->id.'\';'."\n"; print 'jQuery.get(\'core/ajaxbox.php?boxorder=\'+boxorder+\'&userid=\'+'.$user->id.');'."\n"; print '}'."\n"; diff --git a/htdocs/cashdesk/class/Auth.class.php b/htdocs/cashdesk/class/Auth.class.php index 39445983bcb..dacf99d794e 100644 --- a/htdocs/cashdesk/class/Auth.class.php +++ b/htdocs/cashdesk/class/Auth.class.php @@ -35,7 +35,7 @@ class Auth { function Auth ($DB) { $this->db = $DB; - $this->reponse (null); + $this->reponse(null); } diff --git a/htdocs/cashdesk/class/Facturation.class.php b/htdocs/cashdesk/class/Facturation.class.php index 5b1ab4595bd..ceff0cf5a67 100644 --- a/htdocs/cashdesk/class/Facturation.class.php +++ b/htdocs/cashdesk/class/Facturation.class.php @@ -221,14 +221,14 @@ class Facturation { */ public function raz () { - $this->id ('RESET'); - $this->ref ('RESET'); - $this->qte ('RESET'); - $this->stock ('RESET'); + $this->id('RESET'); + $this->ref('RESET'); + $this->qte('RESET'); + $this->stock('RESET'); $this->remise_percent ('RESET'); $this->montant_remise ('RESET'); - $this->prix ('RESET'); - $this->tva ('RESET'); + $this->prix('RESET'); + $this->tva('RESET'); } diff --git a/htdocs/cashdesk/facturation_verif.php b/htdocs/cashdesk/facturation_verif.php index 8d28f73439d..bebdfa04dce 100644 --- a/htdocs/cashdesk/facturation_verif.php +++ b/htdocs/cashdesk/facturation_verif.php @@ -86,11 +86,11 @@ switch ( $_GET['action'] ) } /** end add Ditto */ - $obj_facturation->id( $ret['rowid'] ); - $obj_facturation->ref( $ret['ref'] ); - $obj_facturation->stock( $ret['reel'] ); - $obj_facturation->prix( $ret['price'] ); - $obj_facturation->tva( $ret['tva_tx'] ); + $obj_facturation->id($ret['rowid']); + $obj_facturation->ref($ret['ref']); + $obj_facturation->stock($ret['reel']); + $obj_facturation->prix($ret['price']); + $obj_facturation->tva($ret['tva_tx']); // Definition du filtre pour n'afficher que le produit concerne if ( $_POST['hdnSource'] == 'LISTE' ) diff --git a/htdocs/cashdesk/tpl/facturation1.tpl.php b/htdocs/cashdesk/tpl/facturation1.tpl.php index 392d73148a5..9555921ad13 100644 --- a/htdocs/cashdesk/tpl/facturation1.tpl.php +++ b/htdocs/cashdesk/tpl/facturation1.tpl.php @@ -124,7 +124,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. <input class="texte1_off" type="text" name="txtStock" value="<?php echo $obj_facturation->stock() ?>" disabled="disabled" /> </td> <!-- Affichage du prix unitaire --> - <td><input class="texte1_off" type="text" name="txtPrixUnit" value="<?php echo price2num( $obj_facturation->prix(), 'MU'); ?>" disabled="disabled" /></td> + <td><input class="texte1_off" type="text" name="txtPrixUnit" value="<?php echo price2num($obj_facturation->prix(), 'MU'); ?>" disabled="disabled" /></td> <td><?php echo $conf->monnaie; ?></td> <!-- Choix de la remise --> <td><input class="texte1" type="text" name="txtRemise" value="0" onkeyup="javascript: modif();" onfocus="javascript: this.select();"/></td> diff --git a/htdocs/cashdesk/tpl/liste_articles.tpl.php b/htdocs/cashdesk/tpl/liste_articles.tpl.php index 61c3b283183..a99fb73cea7 100644 --- a/htdocs/cashdesk/tpl/liste_articles.tpl.php +++ b/htdocs/cashdesk/tpl/liste_articles.tpl.php @@ -97,7 +97,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. $remise = $tab[$i]['remise']; - echo ('<p>'.$tab[$i]['qte'].' x '.price2num( $tab[$i]['price'], 'MT').$remise_percent.' = '.price2num($tab[$i]['total_ht'], 'MT').' '.$conf->monnaie.' '.$langs->trans("HT").' ('.price2num($tab[$i]['total_ttc'], 'MT').' '.$conf->monnaie.' '.$langs->trans("TTC").')</p>'."\n"); + echo ('<p>'.$tab[$i]['qte'].' x '.price2num($tab[$i]['price'], 'MT').$remise_percent.' = '.price2num($tab[$i]['total_ht'], 'MT').' '.$conf->monnaie.' '.$langs->trans("HT").' ('.price2num($tab[$i]['total_ttc'], 'MT').' '.$conf->monnaie.' '.$langs->trans("TTC").')</p>'."\n"); echo ('</div>'."\n"); } diff --git a/htdocs/compta/deplacement/fiche.php b/htdocs/compta/deplacement/fiche.php index 16143a1ae5a..4ee553ef7ee 100644 --- a/htdocs/compta/deplacement/fiche.php +++ b/htdocs/compta/deplacement/fiche.php @@ -101,7 +101,7 @@ if ($_POST["action"] == 'add' && $user->rights->deplacement->creer) if ($id > 0) { - Header ( "Location: fiche.php?id=".$id); + Header ("Location: fiche.php?id=".$id); exit; } else @@ -117,7 +117,7 @@ if ($_POST["action"] == 'add' && $user->rights->deplacement->creer) } else { - Header ( "Location: index.php"); + Header ("Location: index.php"); exit; } } diff --git a/htdocs/compta/facture/class/facture.class.php b/htdocs/compta/facture/class/facture.class.php index c6710f4a3a9..02874e46bdf 100644 --- a/htdocs/compta/facture/class/facture.class.php +++ b/htdocs/compta/facture/class/facture.class.php @@ -1303,7 +1303,7 @@ class Facture extends CommonObject /* Definition de la date limite */ // 1 : ajout du nombre de jours - $datelim = $this->date + ( $cdr_nbjour * 3600 * 24 ); + $datelim = $this->date + ($cdr_nbjour * 3600 * 24); // 2 : application de la regle "fin de mois" if ($cdr_fdm) @@ -1325,7 +1325,7 @@ class Facture extends CommonObject } // 3 : application du decalage - $datelim += ( $cdr_decalage * 3600 * 24); + $datelim += ($cdr_decalage * 3600 * 24); return $datelim; } diff --git a/htdocs/compta/paiement.php b/htdocs/compta/paiement.php index f2dea0bfde7..0fabfba1c66 100644 --- a/htdocs/compta/paiement.php +++ b/htdocs/compta/paiement.php @@ -634,7 +634,7 @@ if (! GETPOST('action')) } $sql .= ' ORDER BY '.$sortfield.' '.$sortorder; - $sql .= $db->plimit( $limit +1 ,$offset); + $sql .= $db->plimit($limit +1 ,$offset); $resql = $db->query($sql); if ($resql) diff --git a/htdocs/compta/paiement/avalider.php b/htdocs/compta/paiement/avalider.php index 6048e77feb9..2cb5efb1ce3 100644 --- a/htdocs/compta/paiement/avalider.php +++ b/htdocs/compta/paiement/avalider.php @@ -70,7 +70,7 @@ if ($socid) } $sql .= " AND p.statut = 0"; $sql .= " ORDER BY $sortfield $sortorder"; -$sql .= $db->plimit( $limit +1 ,$offset); +$sql .= $db->plimit($limit +1 ,$offset); $resql = $db->query($sql); if ($resql) diff --git a/htdocs/compta/paiement/cheque/liste.php b/htdocs/compta/paiement/cheque/liste.php index f7efb2f1370..b454b56bdc5 100644 --- a/htdocs/compta/paiement/cheque/liste.php +++ b/htdocs/compta/paiement/cheque/liste.php @@ -66,7 +66,7 @@ if ($_GET["search_montant"]) $sql.=" AND bc.amount=".price2num($_GET["search_montant"]); } $sql.= " ORDER BY $sortfield $sortorder"; -$sql.= $db->plimit( $limit+1 ,$offset); +$sql.= $db->plimit($limit+1 ,$offset); //print "$sql"; $resql = $db->query($sql); diff --git a/htdocs/compta/paiement/liste.php b/htdocs/compta/paiement/liste.php index beeedf95e0d..22e9f9463a3 100644 --- a/htdocs/compta/paiement/liste.php +++ b/htdocs/compta/paiement/liste.php @@ -114,7 +114,7 @@ else if ($_REQUEST["search_company"]) $sql .=" AND s.nom LIKE '%".$db->escape($_REQUEST["search_company"])."%'"; } $sql.= $db->order($sortfield,$sortorder); -$sql.= $db->plimit( $limit+1 ,$offset); +$sql.= $db->plimit($limit+1 ,$offset); //print "$sql"; $resql = $db->query($sql); diff --git a/htdocs/compta/prelevement/class/bon-prelevement.class.php b/htdocs/compta/prelevement/class/bon-prelevement.class.php index 4e6d37969ba..497ba5246de 100644 --- a/htdocs/compta/prelevement/class/bon-prelevement.class.php +++ b/htdocs/compta/prelevement/class/bon-prelevement.class.php @@ -999,7 +999,7 @@ class BonPrelevement extends CommonObject //Build file $bonprev->generate(); } - dol_syslog( $filebonprev ) ; + dol_syslog($filebonprev); dol_syslog("Fin prelevement"); } diff --git a/htdocs/contrat/class/contrat.class.php b/htdocs/contrat/class/contrat.class.php index 0d07b69853c..af2b1811616 100644 --- a/htdocs/contrat/class/contrat.class.php +++ b/htdocs/contrat/class/contrat.class.php @@ -896,7 +896,7 @@ class Contrat extends CommonObject $sql.= " ".price2num($remise_percent).",".price2num($pu_ht).","; $sql.= " ".price2num($total_ht).",".price2num($total_tva).",".price2num($total_localtax1).",".price2num($total_localtax2).",".price2num($total_ttc).","; $sql.= " '".$info_bits."',"; - $sql.= " ".price2num($price).",".price2num( $remise); // TODO A virer + $sql.= " ".price2num($price).",".price2num($remise); // TODO A virer if ($date_start > 0) { $sql.= ",".$this->db->idate($date_start); } if ($date_end > 0) { $sql.= ",".$this->db->idate($date_end); } $sql.= ")"; diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index 276a9bc8d90..cca3f159ccd 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -1485,7 +1485,7 @@ abstract class CommonObject $sql.= " WHERE fk_object = ".$rowid; dol_syslog(get_class($this)."::fetch_optionals sql=".$sql, LOG_DEBUG); - $resql=$this->db->query( $sql); + $resql=$this->db->query($sql); if ($resql) { if ($this->db->num_rows($resql)) diff --git a/htdocs/core/class/dolgraph.class.php b/htdocs/core/class/dolgraph.class.php index 8b9d9431ac3..44a0dc3926f 100644 --- a/htdocs/core/class/dolgraph.class.php +++ b/htdocs/core/class/dolgraph.class.php @@ -510,7 +510,7 @@ class DolGraph $plot->barBorder->setColor($colorgrey); //$plot->setBarColor($color); - $plot->setBarGradient( new LinearGradient($colorbis, $color, 90) ); + $plot->setBarGradient(new LinearGradient($colorbis, $color, 90)); if ($this->mode == 'side') $plot->setBarPadding(0.1, 0.1); if ($this->mode == 'depth') $plot->setBarPadding(0.1, 0.4); @@ -543,7 +543,7 @@ class DolGraph $plot->setThickness(1); // Set line background gradient - $plot->setFillGradient( new LinearGradient($colorter, $colorbis, 90) ); + $plot->setFillGradient(new LinearGradient($colorter, $colorbis, 90)); $plot->xAxis->setLabelText($legends); diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 918b1d51a64..3ea6ccb3d79 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -2156,7 +2156,7 @@ class Form var inputvalue = $("#" + this).val(); options += \'&\' + inputname + \'=\' + inputvalue; }); - //alert( options ); + //alert(options); } location.href=\''.$pageyes.'\' + options; } @@ -2176,7 +2176,7 @@ class Form if (button.length > 0) { $( "#" + button ).click(function() { - $( "#" + dialogconfirm ).dialog( \'open\' ); + $("#" + dialogconfirm ).dialog(\'open\'); }); } }); diff --git a/htdocs/core/class/rssparser.class.php b/htdocs/core/class/rssparser.class.php index fdf46ebf62e..da5da5a5dcc 100755 --- a/htdocs/core/class/rssparser.class.php +++ b/htdocs/core/class/rssparser.class.php @@ -145,11 +145,11 @@ class RssParser $xmlparser=xml_parser_create(''); if (!is_resource($xmlparser)) { $this->error="ErrorFailedToCreateParser"; return -1; } - xml_set_object( $xmlparser, $this ); + xml_set_object($xmlparser, $this); xml_set_element_handler($xmlparser, 'feed_start_element', 'feed_end_element' ); - xml_set_character_data_handler( $xmlparser, 'feed_cdata' ); - $status = xml_parse( $xmlparser, $str ); - xml_parser_free( $xmlparser ); + xml_set_character_data_handler($xmlparser, 'feed_cdata'); + $status = xml_parse($xmlparser, $str); + xml_parser_free($xmlparser); $rss=$this; //var_dump($rss->_format);exit; } @@ -341,7 +341,7 @@ class RssParser // check for a namespace, and split if found $ns = false; if ( strpos( $element, ':' ) ) { - list($ns, $el) = explode( ':', $element, 2); + list($ns, $el) = explode(':', $element, 2); } if ( $ns and $ns != 'rdf' ) { $this->current_namespace = $ns; @@ -418,9 +418,9 @@ class RssParser array_keys($attrs), array_values($attrs) ) ); - $this->append_content( "<$element $attrs_str>" ); + $this->append_content("<$element $attrs_str>" ); - array_unshift( $this->stack, $el ); + array_unshift($this->stack, $el); } // Atom support many links per containging element. @@ -456,7 +456,7 @@ class RssParser { if ($this->_format == 'atom' and $this->incontent) { - $this->append_content( $text ); + $this->append_content($text); } else { $current_el = join('_', array_reverse($this->stack)); @@ -507,10 +507,10 @@ class RssParser $this->append_content("<$el />"); } - array_shift( $this->stack ); + array_shift($this->stack); } else { - array_shift( $this->stack ); + array_shift($this->stack); } $this->current_namespace = false; @@ -536,10 +536,10 @@ class RssParser function append_content($text) { if ( $this->initem ) { - $this->concat( $this->current_item[ $this->incontent ], $text ); + $this->concat($this->current_item[ $this->incontent ], $text); } elseif ( $this->inchannel ) { - $this->concat( $this->channel[ $this->incontent ], $text ); + $this->concat($this->channel[ $this->incontent ], $text); } } @@ -554,38 +554,30 @@ class RssParser if ( $this->current_namespace ) { if ( $this->initem ) { - $this->concat( - $this->current_item[ $this->current_namespace ][ $el ], $text); + $this->concat( $this->current_item[ $this->current_namespace ][ $el ], $text); } elseif ($this->inchannel) { - $this->concat( - $this->channel[ $this->current_namespace][ $el ], $text ); + $this->concat( $this->channel[ $this->current_namespace][ $el ], $text); } elseif ($this->intextinput) { - $this->concat( - $this->textinput[ $this->current_namespace][ $el ], $text ); + $this->concat( $this->textinput[ $this->current_namespace][ $el ], $text); } elseif ($this->inimage) { - $this->concat( - $this->image[ $this->current_namespace ][ $el ], $text ); + $this->concat( $this->image[ $this->current_namespace ][ $el ], $text); } } else { if ( $this->initem ) { - $this->concat( - $this->current_item[ $el ], $text); + $this->concat( $this->current_item[ $el ], $text); } elseif ($this->intextinput) { - $this->concat( - $this->textinput[ $el ], $text ); + $this->concat( $this->textinput[ $el ], $text); } elseif ($this->inimage) { - $this->concat( - $this->image[ $el ], $text ); + $this->concat( $this->image[ $el ], $text); } elseif ($this->inchannel) { - $this->concat( - $this->channel[ $el ], $text ); + $this->concat( $this->channel[ $el ], $text); } } diff --git a/htdocs/core/class/smtps.class.php b/htdocs/core/class/smtps.class.php index b7bb607e93b..f79b33373b3 100755 --- a/htdocs/core/class/smtps.class.php +++ b/htdocs/core/class/smtps.class.php @@ -299,7 +299,7 @@ class SMTPs if ( (! is_ip($host)) && ((gethostbyname ( $host )) == $host) ) { - $this->_setErr ( 99, $host . ' is either offline or is an invalid host name.' ); + $this->_setErr (99, $host . ' is either offline or is an invalid host name.'); $_retVal = false; } else @@ -326,7 +326,7 @@ class SMTPs { // DOL_CHANGE LDR if (empty($this->errstr)) $this->errstr='Failed to connect with fsockopen host='.$this->getHost().' port='.$this->getPort(); - $this->_setErr ( $this->errno, $this->errstr ); + $this->_setErr ($this->errno, $this->errstr); $_retVal = false; } } @@ -359,11 +359,11 @@ class SMTPs // The error here just means the ID/password combo doesn't work. // There is not a method to determine which is the problem, ID or password if ( ! $_retVal = $this->socket_send_str(base64_encode($this->_smtpsPW), '235') ) - $this->_setErr ( 130, 'Invalid Authentication Credentials.' ); + $this->_setErr (130, 'Invalid Authentication Credentials.'); } else { - $this->_setErr ( 126, '"' . $host . '" does not support authenticated connections.' ); + $this->_setErr (126, '"' . $host . '" does not support authenticated connections.'); } return $_retVal; @@ -410,7 +410,7 @@ class SMTPs // From this point onward most server response codes should be 250 // Specify who the mail is from.... // This has to be the raw email address, strip the "name" off - $this->socket_send_str('MAIL FROM: ' . $this->getFrom( 'addr' ), '250'); + $this->socket_send_str('MAIL FROM: ' . $this->getFrom('addr' ), '250'); // 'RCPT TO:' must be given a single address, so this has to loop // through the list of addresses, regardless of TO, CC or BCC @@ -491,7 +491,7 @@ class SMTPs // it will simply return FALSE. if ( ! @include ( $_strConfigPath ) ) { - $this->_setErr ( 110, '"' . $_strConfigPath . '" is not a valid path.' ); + $this->_setErr (110, '"' . $_strConfigPath . '" is not a valid path.'); $_retVal = false; } } @@ -502,13 +502,13 @@ class SMTPs // Set these properties ONLY if they are set in the php.ini file. // Otherwise the default values will be used. if ( $_host = ini_get ('SMTPs') ) - $this->setHost ( $_host ); + $this->setHost($_host); if ( $_port = ini_get ('smtp_port') ) - $this->setPort ( $_port ); + $this->setPort($_port); if ( $_from = ini_get ('sendmail_from') ) - $this->setFrom ( $_from ); + $this->setFrom($_from); } // Send back what we have @@ -751,7 +751,7 @@ class SMTPs function setFrom($_strFrom) { if ( $_strFrom ) - $this->_msgFrom = $this->_strip_email ( $_strFrom ); + $this->_msgFrom = $this->_strip_email ($_strFrom); } /** @@ -799,7 +799,7 @@ class SMTPs // This could be a COMMA delimited string if ( strstr ($_addrList, ',') ) // "explode "list" into an array - $_addrList = explode ( ',', $_addrList ); + $_addrList = explode (',', $_addrList); // Stick it in an array else @@ -810,28 +810,28 @@ class SMTPs foreach ( $_addrList as $_strAddr ) { // Strip off the end '>' - $_strAddr = str_replace ( '>', '', $_strAddr ); + $_strAddr = str_replace ('>', '', $_strAddr); // Seperate "Real Name" from eMail address $_tmpaddr = null; - $_tmpaddr = explode ( '<', $_strAddr ); + $_tmpaddr = explode ('<', $_strAddr); // We have a "Real Name" and eMail address if ( count ($_tmpaddr) == 2 ) { - $_tmpHost = explode ( '@', $_tmpaddr[1] ); - $_tmpaddr[0] = trim ( $_tmpaddr[0], ' ">' ); + $_tmpHost = explode ('@', $_tmpaddr[1]); + $_tmpaddr[0] = trim ($_tmpaddr[0], ' ">'); $aryHost[$_tmpHost[1]][$_type][$_tmpHost[0]] = $_tmpaddr[0]; } // We only have an eMail address else { // Strip off the beggining '<' - $_strAddr = str_replace ( '<', '', $_strAddr ); + $_strAddr = str_replace ('<', '', $_strAddr); - $_tmpHost = explode ( '@', $_strAddr ); - $_tmpHost[0] = trim ( $_tmpHost[0] ); - $_tmpHost[1] = trim ( $_tmpHost[1] ); + $_tmpHost = explode ('@', $_strAddr); + $_tmpHost[0] = trim ($_tmpHost[0]); + $_tmpHost[1] = trim ($_tmpHost[1]); $aryHost[$_tmpHost[1]][$_type][$_tmpHost[0]] = ''; } @@ -863,20 +863,20 @@ class SMTPs $_aryEmail['org'] = $_strAddr; // Set entire string to Lower Case - $_strAddr = strtolower ( $_strAddr ); + $_strAddr = strtolower ($_strAddr); // Drop "stuff' off the end - $_strAddr = trim ( $_strAddr, ' ">' ); + $_strAddr = trim ($_strAddr, ' ">'); // Seperate "Real Name" from eMail address, if we have one - $_tmpAry = explode ( '<', $_strAddr ); + $_tmpAry = explode ('<', $_strAddr); // Do we have a "Real name" if ( count ($_tmpAry) == 2 ) { // We may not really have a "Real Name" if ( $_tmpAry[0]) - $_aryEmail['real'] = trim ( $_tmpAry[0], ' ">' ); + $_aryEmail['real'] = trim ($_tmpAry[0], ' ">'); $_aryEmail['addr'] = $_tmpAry[1]; } @@ -884,7 +884,7 @@ class SMTPs $_aryEmail['addr'] = $_tmpAry[0]; // Pull User Name and Host.tld apart - list($_aryEmail['user'], $_aryEmail['host'] ) = explode ( '@', $_aryEmail['addr'] ); + list($_aryEmail['user'], $_aryEmail['host'] ) = explode ('@', $_aryEmail['addr']); // Put the brackets back around the address $_aryEmail['addr'] = '<' . $_aryEmail['addr'] . '>'; @@ -904,7 +904,7 @@ class SMTPs /** * An array of bares addresses for use with 'RCPT TO:' */ - unset ( $_RCPT_list ); + unset ($_RCPT_list); // walk down Recipients array and pull just email addresses foreach ( $this->_msgRecipients as $_host => $_list ) @@ -961,13 +961,13 @@ class SMTPs } else { - $this->_setErr ( 101, 'No eMail Address for message to be sent to.' ); + $this->_setErr (101, 'No eMail Address for message to be sent to.'); return false; } } else { - $this->_setErr ( 102, 'eMail type not defined.' ); + $this->_setErr (102, 'eMail type not defined.'); return false; } @@ -982,7 +982,7 @@ class SMTPs function setTO($_addrTo) { if ( $_addrTo ) - $this->_buildAddrList( 'to', $_addrTo ); + $this->_buildAddrList('to', $_addrTo); } /** @@ -992,7 +992,7 @@ class SMTPs */ function getTo() { - return $this->get_email_list( 'to' ); + return $this->get_email_list('to'); } /** @@ -1004,7 +1004,7 @@ class SMTPs function setCC($_strCC) { if ( $_strCC ) - $this->_buildAddrList( 'cc', $_strCC ); + $this->_buildAddrList('cc', $_strCC); } /** @@ -1014,7 +1014,7 @@ class SMTPs */ function getCC() { - return $this->get_email_list( 'cc' ); + return $this->get_email_list('cc'); } /** @@ -1026,7 +1026,7 @@ class SMTPs function setBCC($_strBCC) { if ( $_strBCC ) - $this->_buildAddrList( 'bcc', $_strBCC ); + $this->_buildAddrList('bcc', $_strBCC); } /** @@ -1036,7 +1036,7 @@ class SMTPs */ function getBCC() { - return $this->get_email_list( 'bcc' ); + return $this->get_email_list('bcc'); } /** @@ -1149,14 +1149,14 @@ class SMTPs $this->_setBoundary(); // What type[s] of content do we have - $_types = array_keys ( $this->_msgContent ); + $_types = array_keys ($this->_msgContent); // How many content types do we have - $keyCount = count ( $_types ); + $keyCount = count ($_types); // If we have ZERO, we have a problem if( $keyCount === 0 ) - die ( "Sorry, no content" ); + die ("Sorry, no content"); // If we have ONE, we can use the simple format else if( $keyCount === 1 ) @@ -1252,7 +1252,7 @@ class SMTPs // $content .= ( $type == 'html') ? '; name="HTML Part"' : ''; $content .= "\r\n"; // $content .= 'Content-Transfer-Encoding: '; - // $content .= ( $type == 'html') ? 'quoted-printable' : $this->getTransEncodeType(); + // $content .= ($type == 'html') ? 'quoted-printable' : $this->getTransEncodeType(); // $content .= "\r\n" // . 'Content-Disposition: inline' . "\r\n" // . 'Content-Description: ' . $type . ' message' . "\r\n"; @@ -1486,14 +1486,14 @@ class SMTPs { if( !( $server_response = fgets($socket, 256) ) ) { - $this->_setErr ( 121, "Couldn't get mail server response codes" ); + $this->_setErr (121, "Couldn't get mail server response codes"); $_retVal = false; } } if( !( substr($server_response, 0, 3) == $response ) ) { - $this->_setErr ( 120, "Ran into problems sending Mail.\r\nResponse: $server_response" ); + $this->_setErr (120, "Ran into problems sending Mail.\r\nResponse: $server_response"); $_retVal = false; } diff --git a/htdocs/core/filemanagerdol/browser/default/frmresourceslist.php b/htdocs/core/filemanagerdol/browser/default/frmresourceslist.php index 996b8b00922..94b7982bc83 100755 --- a/htdocs/core/filemanagerdol/browser/default/frmresourceslist.php +++ b/htdocs/core/filemanagerdol/browser/default/frmresourceslist.php @@ -68,7 +68,7 @@ function ProtectPath(path) oListManager.GetFolderRowHtml = function( folderName, folderPath ) { // Build the link to view the folder. - var sLink = '<a href="#" onclick="OpenFolder(\'' + ProtectPath( folderPath ) + '\');return false;">' ; + var sLink = '<a href="#" onclick="OpenFolder(\'' + ProtectPath(folderPath ) + '\');return false;">' ; return '<tr>' + '<td width="16">' + @@ -84,7 +84,7 @@ oListManager.GetFolderRowHtml = function( folderName, folderPath ) oListManager.GetFileRowHtml = function( fileName, fileUrl, fileSize ) { // Build the link to view the folder. - var sLink = '<a href="#" onclick="OpenFile(\'' + ProtectPath( fileUrl ) + '\');return false;">' ; + var sLink = '<a href="#" onclick="OpenFile(\'' + ProtectPath(fileUrl ) + '\');return false;">' ; // Get the file icon. var sIcon = oIcons.GetIcon( fileName ) ; @@ -123,7 +123,7 @@ function GetUrlParam( paramName ) function OpenFile( fileUrl ) { funcNum = GetUrlParam('CKEditorFuncNum') ; - window.top.opener.CKEDITOR.tools.callFunction( funcNum, encodeURI( fileUrl ).replace( '#', '%23' )); + window.top.opener.CKEDITOR.tools.callFunction(funcNum, encodeURI( fileUrl ).replace( '#', '%23' )); /////////////////////////////////// window.top.close() ; diff --git a/htdocs/core/filemanagerdol/connectors/php/io.php b/htdocs/core/filemanagerdol/connectors/php/io.php index 459b5fe7110..94e9622d484 100755 --- a/htdocs/core/filemanagerdol/connectors/php/io.php +++ b/htdocs/core/filemanagerdol/connectors/php/io.php @@ -311,7 +311,7 @@ function SendCKEditorResults ($callback, $sFileUrl, $customMsg = '') $rpl = array( '\\' => '\\\\', '"' => '\\"' ) ; echo 'window.parent.CKEDITOR.tools.callFunction("'. $callback. '","'. - strtr($sFileUrl, $rpl). '", "'. strtr( $customMsg, $rpl). '");' ; + strtr($sFileUrl, $rpl). '", "'. strtr($customMsg, $rpl). '");' ; echo '</script>'; } diff --git a/htdocs/core/tpl/ajaxrow.tpl.php b/htdocs/core/tpl/ajaxrow.tpl.php index 780d81c34e6..ef15dd62a04 100644 --- a/htdocs/core/tpl/ajaxrow.tpl.php +++ b/htdocs/core/tpl/ajaxrow.tpl.php @@ -59,8 +59,7 @@ jQuery(document).ready(function(){ onDragClass: "dragClass", dragHandle: "tdlineupdown" }); - jQuery(".tdlineupdown").hover( - function() { jQuery(this).addClass('showDragHandle'); }, + jQuery(".tdlineupdown").hover( function() { jQuery(this).addClass('showDragHandle'); }, function() { jQuery(this).removeClass('showDragHandle'); } ); }); diff --git a/htdocs/fichinter/list.php b/htdocs/fichinter/list.php index 90100316aec..1599895b62c 100755 --- a/htdocs/fichinter/list.php +++ b/htdocs/fichinter/list.php @@ -85,7 +85,7 @@ if ($search_desc) $sql .= " AND (f.description like '%".$db->escape($search_d if (!$user->rights->societe->client->voir && !$socid) $sql .= " AND s.rowid = sc.fk_soc AND sc.fk_user = " .$user->id; if ($socid) $sql.= " AND s.rowid = " . $socid; $sql.= " ORDER BY ".$sortfield." ".$sortorder; -$sql.= $db->plimit( $limit + 1 ,$offset); +$sql.= $db->plimit($limit + 1 ,$offset); $result=$db->query($sql); if ($result) diff --git a/htdocs/fourn/class/fournisseur.commande.class.php b/htdocs/fourn/class/fournisseur.commande.class.php index 1035be97179..6a242c6cd53 100644 --- a/htdocs/fourn/class/fournisseur.commande.class.php +++ b/htdocs/fourn/class/fournisseur.commande.class.php @@ -1639,7 +1639,7 @@ class CommandeFournisseur extends Commande $sql.= " WHERE rowid = ".$rowid; dol_syslog("CommandeFournisseur::updateline sql=".$sql); - $result = $this->db->query( $sql); + $result = $this->db->query($sql); if ($result > 0) { // Mise a jour info denormalisees au niveau facture diff --git a/htdocs/fourn/commande/liste.php b/htdocs/fourn/commande/liste.php index f0ad6c05843..57338dc67e9 100644 --- a/htdocs/fourn/commande/liste.php +++ b/htdocs/fourn/commande/liste.php @@ -35,8 +35,8 @@ $suser=isset($_GET['search_user'])?$_GET['search_user']:$_POST['search_user']; $sttc=isset($_GET['search_ttc'])?$_GET['search_ttc']:$_POST['search_ttc']; $sall=isset($_GET['search_all'])?$_GET['search_all']:$_POST['search_all']; -$page = ( is_numeric($_GET["page"]) ? $_GET["page"] : 0 ); -$socid = ( is_numeric($_GET["socid"]) ? $_GET["socid"] : 0 ); +$page = (is_numeric($_GET["page"]) ? $_GET["page"] : 0); +$socid = (is_numeric($_GET["socid"]) ? $_GET["socid"] : 0); $sortorder = $_GET["sortorder"]; $sortfield = $_GET["sortfield"]; diff --git a/htdocs/fourn/contact.php b/htdocs/fourn/contact.php index 5fc87de8f7b..9008587ec4e 100644 --- a/htdocs/fourn/contact.php +++ b/htdocs/fourn/contact.php @@ -82,7 +82,7 @@ if ($socid) { $sql .= " AND s.rowid = ".$socid; } -$sql .= " ORDER BY $sortfield $sortorder " . $db->plimit( $limit, $offset); +$sql .= " ORDER BY $sortfield $sortorder " . $db->plimit($limit, $offset); $result = $db->query($sql); if ($result) diff --git a/htdocs/fourn/facture/index.php b/htdocs/fourn/facture/index.php index 78453db6d11..73b7bbb0b41 100644 --- a/htdocs/fourn/facture/index.php +++ b/htdocs/fourn/facture/index.php @@ -159,7 +159,7 @@ if ($_GET["search_montant_ttc"]) } $sql.= $db->order($sortfield,$sortorder); -$sql.= $db->plimit( $limit+1, $offset); +$sql.= $db->plimit($limit+1, $offset); $resql = $db->query($sql); if ($resql) diff --git a/htdocs/imports/import.php b/htdocs/imports/import.php index 99b956c401e..e6ab032ca63 100644 --- a/htdocs/imports/import.php +++ b/htdocs/imports/import.php @@ -967,11 +967,11 @@ if ($step == 4 && $datatoimport) '; print "\n"; print 'function updateOrder(){'."\n"; - print 'var left_list = cleanSerialize(jQuery("#left").sortable( "serialize" ));'."\n"; - //print 'var right_list = cleanSerialize(jQuery("#right").sortable( "serialize" ));'."\n"; + print 'var left_list = cleanSerialize(jQuery("#left").sortable("serialize" ));'."\n"; + //print 'var right_list = cleanSerialize(jQuery("#right").sortable("serialize" ));'."\n"; print 'var boxorder = \'A:\' + left_list;'."\n"; //print 'var boxorder = \'A:\' + left_list + \'-B:\' + right_list;'."\n"; - //print 'alert( \'boxorder=\' + boxorder );'; + //print 'alert(\'boxorder=\' + boxorder);'; //print 'var userid = \''.$user->id.'\';'."\n"; //print 'var datatoimport = "'.$datatoimport.'";'."\n"; // print 'jQuery.ajax({ url: "ajaximport.php?step=4&boxorder=" + boxorder + "&userid=" + userid + "&datatoimport=" + datatoimport, diff --git a/htdocs/includes/modules/facture/doc/pdf_oursin.modules.php b/htdocs/includes/modules/facture/doc/pdf_oursin.modules.php index 3f2f8e5b851..9fad31aed3b 100755 --- a/htdocs/includes/modules/facture/doc/pdf_oursin.modules.php +++ b/htdocs/includes/modules/facture/doc/pdf_oursin.modules.php @@ -723,8 +723,8 @@ class pdf_oursin extends ModelePDFFactures $default_font_size = pdf_getPDFFontSize($outputlangs); - $pdf->line( $this->marges['g'], $tab_top+8, 210-$this->marges['d'], $tab_top+8 ); - $pdf->line( $this->marges['g'], $tab_top + $tab_height, 210-$this->marges['d'], $tab_top + $tab_height ); + $pdf->line($this->marges['g'], $tab_top+8, 210-$this->marges['d'], $tab_top+8); + $pdf->line($this->marges['g'], $tab_top + $tab_height, 210-$this->marges['d'], $tab_top + $tab_height); $pdf->SetFont('','', $default_font_size - 1); diff --git a/htdocs/includes/modules/mailings/peche.modules.php b/htdocs/includes/modules/mailings/peche.modules.php index c9a811d9e72..d902a13c86a 100644 --- a/htdocs/includes/modules/mailings/peche.modules.php +++ b/htdocs/includes/modules/mailings/peche.modules.php @@ -76,7 +76,7 @@ class mailing_peche extends MailingTargets { global $langs; return $langs->trans('LineInFile',$id); - //' - '.$langs->trans("File").' '.dol_trunc( ,12); + //' - '.$langs->trans("File").' '.dol_trunc(,12); } diff --git a/htdocs/install/etape1.php b/htdocs/install/etape1.php index b613f3546af..bba7d93e928 100644 --- a/htdocs/install/etape1.php +++ b/htdocs/install/etape1.php @@ -368,13 +368,13 @@ if (! $error && $db->connected && $action == "set") } // Force https - $main_force_https = ( (GETPOST("main_force_https") && ( GETPOST("main_force_https") == "on" || GETPOST("main_force_https") == 1) ) ? '1' : '0'); + $main_force_https = ((GETPOST("main_force_https") && ( GETPOST("main_force_https") == "on" || GETPOST("main_force_https") == 1) ) ? '1' : '0'); // Use alternative directory - $main_use_alt_dir = ( (GETPOST("main_use_alt_dir") && ( GETPOST("main_use_alt_dir") == "on" || GETPOST("main_use_alt_dir") == 1) ) ? '' : '#'); + $main_use_alt_dir = ((GETPOST("main_use_alt_dir") && ( GETPOST("main_use_alt_dir") == "on" || GETPOST("main_use_alt_dir") == 1) ) ? '' : '#'); // Alternative root directory name - $main_alt_dir_name = ( (GETPOST("main_alt_dir_name") && GETPOST("main_alt_dir_name") != '') ? GETPOST("main_alt_dir_name") : 'custom'); + $main_alt_dir_name = ((GETPOST("main_alt_dir_name") && GETPOST("main_alt_dir_name") != '') ? GETPOST("main_alt_dir_name") : 'custom'); // Write conf file on disk if (! $error) diff --git a/htdocs/lib/ajax.lib.php b/htdocs/lib/ajax.lib.php index e271f6509e5..6d29a8e457e 100644 --- a/htdocs/lib/ajax.lib.php +++ b/htdocs/lib/ajax.lib.php @@ -72,7 +72,7 @@ function ajax_autocompleter($selected='',$htmlname,$url,$option='',$minLength=2, return jQuery( "<li></li>" ) .data( "item.autocomplete", item ) .append( \'<a href="#"><span class="tag">\' + item.label + "</span></a>" ) - .appendTo( ul ); + .appendTo(ul); }; });'; $script.= '</script>'; @@ -186,7 +186,7 @@ function ajax_dialog($title,$message,$w=350,$h=150) modal: true, buttons: { Ok: function() { - jQuery( this ).dialog(\'close\'); + jQuery(this ).dialog(\'close\'); } } }); @@ -208,7 +208,7 @@ function ajax_combobox($htmlname) { $msg.= '<script type="text/javascript"> $(function() { - $( "#'.$htmlname.'" ).combobox(); + $("#'.$htmlname.'" ).combobox(); }); </script>'; @@ -239,15 +239,15 @@ function ajax_constantonoff($code,$input=array()) name: \''.$code.'\' }, function() { - $( "#set_'.$code.'" ).hide(); - $( "#del_'.$code.'" ).show(); + $("#set_'.$code.'" ).hide(); + $("#del_'.$code.'" ).show(); // Enable another object if (input.length > 0) { $.each(input, function(key,value) { - $( "#" + value).removeAttr("disabled"); + $("#" + value).removeAttr("disabled"); if ( $( "#" + value).hasClass("butActionRefused") == true ) { - $( "#" + value).removeClass("butActionRefused"); - $( "#" + value).addClass("butAction"); + $("#" + value).removeClass("butActionRefused"); + $("#" + value).addClass("butAction"); } }); } @@ -261,15 +261,15 @@ function ajax_constantonoff($code,$input=array()) name: \''.$code.'\' }, function() { - $( "#del_'.$code.'" ).hide(); - $( "#set_'.$code.'" ).show(); + $("#del_'.$code.'" ).hide(); + $("#set_'.$code.'" ).show(); // Disable another object if (input.length > 0) { $.each(input, function(key,value) { - $( "#" + value).attr("disabled", true); + $("#" + value).attr("disabled", true); if ( $( "#" + value).hasClass("butAction") == true ) { - $( "#" + value).removeClass("butAction"); - $( "#" + value).addClass("butActionRefused"); + $("#" + value).removeClass("butAction"); + $("#" + value).addClass("butActionRefused"); } }); } diff --git a/htdocs/lib/date.lib.php b/htdocs/lib/date.lib.php index 869b6ca52c8..1ff08b2a32c 100644 --- a/htdocs/lib/date.lib.php +++ b/htdocs/lib/date.lib.php @@ -136,7 +136,7 @@ function ConvertSecondToTime($iSecond,$format='all',$lengthOfDay=86400,$lengthOf { if ($sDay >= $lengthOfWeek) { - $sWeek = (int) ( ( $sDay - $sDay % $lengthOfWeek ) / $lengthOfWeek ); + $sWeek = (int) (($sDay - $sDay % $lengthOfWeek ) / $lengthOfWeek); $sDay = $sDay % $lengthOfWeek; $weekTranslate = $langs->trans("DurationWeek"); if ($sWeek >= 2) $weekTranslate = $langs->trans("DurationWeeks"); diff --git a/htdocs/lib/files.lib.php b/htdocs/lib/files.lib.php index bda036d44b7..b927bfe51d1 100644 --- a/htdocs/lib/files.lib.php +++ b/htdocs/lib/files.lib.php @@ -888,7 +888,7 @@ function dol_convert_file($file,$ext='png') if ($ret) { $count = $image->getNumberImages(); - $ret = $image->writeImages( $file . "." . $ext, true ); + $ret = $image->writeImages($file . "." . $ext, true); if ($ret) return $count; else return -3; } diff --git a/htdocs/lib/ldap.class.php b/htdocs/lib/ldap.class.php index 097ac3583c0..7ab3c0331fc 100644 --- a/htdocs/lib/ldap.class.php +++ b/htdocs/lib/ldap.class.php @@ -168,7 +168,7 @@ class Ldap else { // Connected, now try binding anonymously - $this->result=@ldap_bind( $this->connection); + $this->result=@ldap_bind($this->connection); } return true; } @@ -837,8 +837,8 @@ class Ldap // Get values if (! $values = ldap_get_attributes( $this->connection, $entry)) { - $this->ldapErrorCode = ldap_errno( $this->connection); - $this->ldapErrorText = ldap_error( $this->connection); + $this->ldapErrorCode = ldap_errno($this->connection); + $this->ldapErrorText = ldap_error($this->connection); return false; // No matching attributes } @@ -872,8 +872,8 @@ class Ldap // Get values if (! $values = @ldap_get_values( $this->connection, $entry, $attribute)) { - $this->ldapErrorCode = ldap_errno( $this->connection); - $this->ldapErrorText = ldap_error( $this->connection); + $this->ldapErrorCode = ldap_errno($this->connection); + $this->ldapErrorText = ldap_error($this->connection); return false; // No matching attributes } diff --git a/htdocs/lib/price.lib.php b/htdocs/lib/price.lib.php index 772c4943ee8..88a4ddd83d5 100644 --- a/htdocs/lib/price.lib.php +++ b/htdocs/lib/price.lib.php @@ -47,59 +47,59 @@ function calcul_price_total($qty, $pu, $remise_percent_ligne, $txtva, $txlocalta { // We work to define prices using the price without tax $tot_sans_remise = $pu * $qty; - $tot_avec_remise_ligne = $tot_sans_remise * ( 1 - ($remise_percent_ligne / 100)); - $tot_avec_remise = $tot_avec_remise_ligne * ( 1 - ($remise_percent_global / 100)); + $tot_avec_remise_ligne = $tot_sans_remise * (1 - ($remise_percent_ligne / 100)); + $tot_avec_remise = $tot_avec_remise_ligne * (1 - ($remise_percent_global / 100)); $result[6] = price2num($tot_sans_remise, 'MT'); - $result[8] = price2num($tot_sans_remise * ( 1 + ( (($info_bits & 1)?0:$txtva) / 100)), 'MT'); // Selon TVA NPR ou non - $result8bis= price2num($tot_sans_remise * ( 1 + ( $txtva / 100)), 'MT'); // Si TVA consideree normale (non NPR) + $result[8] = price2num($tot_sans_remise * (1 + ( (($info_bits & 1)?0:$txtva) / 100)), 'MT'); // Selon TVA NPR ou non + $result8bis= price2num($tot_sans_remise * (1 + ( $txtva / 100)), 'MT'); // Si TVA consideree normale (non NPR) $result[7] = $result8bis - $result[6]; $result[0] = price2num($tot_avec_remise, 'MT'); - $result[2] = price2num($tot_avec_remise * ( 1 + ( (($info_bits & 1)?0:$txtva) / 100)), 'MT'); // Selon TVA NPR ou non - $result2bis= price2num($tot_avec_remise * ( 1 + ( $txtva / 100)), 'MT'); // Si TVA consideree normale (non NPR) + $result[2] = price2num($tot_avec_remise * (1 + ( (($info_bits & 1)?0:$txtva) / 100)), 'MT'); // Selon TVA NPR ou non + $result2bis= price2num($tot_avec_remise * (1 + ( $txtva / 100)), 'MT'); // Si TVA consideree normale (non NPR) $result[1] = $result2bis - $result[0]; // Total VAT = TTC - HT $result[3] = price2num($pu, 'MU'); - $result[5] = price2num($pu * ( 1 + ((($info_bits & 1)?0:$txtva) / 100)), 'MU'); // Selon TVA NPR ou non - $result5bis= price2num($pu * ( 1 + ($txtva / 100)), 'MU'); // Si TVA consideree normale (non NPR) + $result[5] = price2num($pu * (1 + ((($info_bits & 1)?0:$txtva) / 100)), 'MU'); // Selon TVA NPR ou non + $result5bis= price2num($pu * (1 + ($txtva / 100)), 'MU'); // Si TVA consideree normale (non NPR) $result[4] = $result5bis - $result[3]; } else { // We work to define prices using the price with tax $tot_sans_remise = $pu * $qty; - $tot_avec_remise_ligne = $tot_sans_remise * ( 1 - ($remise_percent_ligne / 100)); - $tot_avec_remise = $tot_avec_remise_ligne * ( 1 - ($remise_percent_global / 100)); + $tot_avec_remise_ligne = $tot_sans_remise * (1 - ($remise_percent_ligne / 100)); + $tot_avec_remise = $tot_avec_remise_ligne * (1 - ($remise_percent_global / 100)); $result[8] = price2num($tot_sans_remise, 'MT'); - $result[6] = price2num($tot_sans_remise / ( 1 + ((($info_bits & 1)?0:$txtva) / 100)), 'MT'); // Selon TVA NPR ou non - $result6bis= price2num($tot_sans_remise / ( 1 + ($txtva / 100)), 'MT'); // Si TVA consideree normale (non NPR) + $result[6] = price2num($tot_sans_remise / (1 + ((($info_bits & 1)?0:$txtva) / 100)), 'MT'); // Selon TVA NPR ou non + $result6bis= price2num($tot_sans_remise / (1 + ($txtva / 100)), 'MT'); // Si TVA consideree normale (non NPR) $result[7] = $result[8] - $result6bis; $result[2] = price2num($tot_avec_remise, 'MT'); - $result[0] = price2num($tot_avec_remise / ( 1 + ((($info_bits & 1)?0:$txtva) / 100)), 'MT'); // Selon TVA NPR ou non - $result0bis= price2num($tot_avec_remise / ( 1 + ($txtva / 100)), 'MT'); // Si TVA consideree normale (non NPR) + $result[0] = price2num($tot_avec_remise / (1 + ((($info_bits & 1)?0:$txtva) / 100)), 'MT'); // Selon TVA NPR ou non + $result0bis= price2num($tot_avec_remise / (1 + ($txtva / 100)), 'MT'); // Si TVA consideree normale (non NPR) $result[1] = $result[2] - $result0bis; // Total VAT = TTC - HT $result[5] = price2num($pu, 'MU'); - $result[3] = price2num($pu / ( 1 + ((($info_bits & 1)?0:$txtva) / 100)), 'MU'); // Selon TVA NPR ou non - $result3bis= price2num($pu / ( 1 + ($txtva / 100)), 'MU'); // Si TVA consideree normale (non NPR) + $result[3] = price2num($pu / (1 + ((($info_bits & 1)?0:$txtva) / 100)), 'MU'); // Selon TVA NPR ou non + $result3bis= price2num($pu / (1 + ($txtva / 100)), 'MU'); // Si TVA consideree normale (non NPR) $result[4] = $result[5] - $result3bis; } //Local taxes if ($txlocaltax1>0) { - $result[14] = price2num(($tot_sans_remise * ( 1 + ( $txlocaltax1 / 100))) - $tot_sans_remise, 'MT'); + $result[14] = price2num(($tot_sans_remise * (1 + ( $txlocaltax1 / 100))) - $tot_sans_remise, 'MT'); $result[8] = $result[8] + $result[14]; - $result[9] = price2num(($tot_avec_remise * ( 1 + ( $txlocaltax1 / 100))) - $tot_avec_remise, 'MT'); + $result[9] = price2num(($tot_avec_remise * (1 + ( $txlocaltax1 / 100))) - $tot_avec_remise, 'MT'); $result[2] = $result[2] + $result[9]; - $result[11] = price2num(($pu * ( 1 + ( $txlocaltax1 / 100))) - $pu, 'MT'); + $result[11] = price2num(($pu * (1 + ( $txlocaltax1 / 100))) - $pu, 'MT'); $result[5] = $result[5] + $result[11]; } else @@ -111,9 +111,9 @@ function calcul_price_total($qty, $pu, $remise_percent_ligne, $txtva, $txlocalta if ($txlocaltax2>0) { - $result[15] = price2num(($tot_sans_remise * ( 1 + ( $txlocaltax2 / 100))) - $tot_sans_remise, 'MT'); - $result[10] = price2num(($tot_avec_remise * ( 1 + ( $txlocaltax2 / 100))) - $tot_avec_remise, 'MT'); - $result[12] = price2num(($pu * ( 1 + ( $txlocaltax2 / 100))) - $pu, 'MT'); + $result[15] = price2num(($tot_sans_remise * (1 + ( $txlocaltax2 / 100))) - $tot_sans_remise, 'MT'); + $result[10] = price2num(($tot_avec_remise * (1 + ( $txlocaltax2 / 100))) - $tot_avec_remise, 'MT'); + $result[12] = price2num(($pu * (1 + ( $txlocaltax2 / 100))) - $pu, 'MT'); //If Country is Spain, localtax2 (IRPF) will be subtracted if ($mysoc->pays_code=='ES') diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 9282716b184..70bcee0e5ea 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -1098,7 +1098,7 @@ function top_menu($head, $title='', $target='', $disablejs=0, $disablehead=0, $a { print '<script type="text/javascript"> jQuery(document).ready(function () { - jQuery("body").layout( layoutSettings ); + jQuery("body").layout(layoutSettings); }); var layoutSettings = { name: "mainlayout", diff --git a/htdocs/paypal/lib/paypal.lib.php b/htdocs/paypal/lib/paypal.lib.php index 973e0955f92..7eb915ea4fa 100755 --- a/htdocs/paypal/lib/paypal.lib.php +++ b/htdocs/paypal/lib/paypal.lib.php @@ -696,7 +696,7 @@ function deformatNVP($nvpstr) $keyval=substr($nvpstr,$intial,$keypos); $valval=substr($nvpstr,$keypos+1,$valuepos-$keypos-1); //decoding the respose - $nvpArray[urldecode($keyval)] =urldecode( $valval); + $nvpArray[urldecode($keyval)] =urldecode($valval); $nvpstr=substr($nvpstr,$valuepos+1,strlen($nvpstr)); } return $nvpArray; diff --git a/htdocs/product/traduction.php b/htdocs/product/traduction.php index 2381f7a364e..b092a471204 100644 --- a/htdocs/product/traduction.php +++ b/htdocs/product/traduction.php @@ -202,7 +202,7 @@ else print '<tr><td width="15%">'.$langs->trans('Note').'</td><td>'.$product->multilangs[$key]["note"].'</td></tr>'; print '</table>'; } - if ( !$cnt_trans ) print '<br>'. $langs->trans('NoTranslation'); + if (!$cnt_trans ) print '<br>'. $langs->trans('NoTranslation'); } print "</div>\n"; diff --git a/htdocs/projet/ganttchart.php b/htdocs/projet/ganttchart.php index 27eb4bb919f..4bd08f83c04 100644 --- a/htdocs/projet/ganttchart.php +++ b/htdocs/projet/ganttchart.php @@ -156,7 +156,7 @@ function constructGanttLine($tarr,$task,$project_dependencies,$level=0,$project_ } function findChildGanttLine($tarr,$parent,$project_dependencies,$level) { - $n=count( $tarr ); + $n=count($tarr); for ($x=0; $x < $n; $x++) { if($tarr[$x]["task_parent"] == $parent && $tarr[$x]["task_parent"] != $tarr[$x]["task_id"]) { diff --git a/htdocs/projet/ganttview.php b/htdocs/projet/ganttview.php index 64dacb07230..62aa7cf5b67 100644 --- a/htdocs/projet/ganttview.php +++ b/htdocs/projet/ganttview.php @@ -55,9 +55,7 @@ $langs->load("projects"); * View */ -$arrayofcss=array( -'/includes/jsgantt/jsgantt.css' -); +$arrayofcss=array('/includes/jsgantt/jsgantt.css'); if (! empty($conf->use_javascript_ajax)) { diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index 2b5762b3325..8a1c9beff35 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -1049,7 +1049,7 @@ class Societe extends CommonObject global $conf; $sql = "SELECT nom as name FROM ".MAIN_DB_PREFIX."societe WHERE rowid = '".$this->id."'"; - $resql=$this->db->query( $sql); + $resql=$this->db->query($sql); if ($resql) { if ($this->db->num_rows($resql)) @@ -1116,7 +1116,7 @@ class Societe extends CommonObject $sql.= " WHERE prefix_comm = '".$prefix."'"; $sql.= " AND entity = ".$conf->entity; - $resql=$this->db->query( $sql); + $resql=$this->db->query($sql); if ($resql) { $obj=$this->db->fetch_object($resql); diff --git a/htdocs/theme/auguria/fckeditor/fck_dialog_ie6.js b/htdocs/theme/auguria/fckeditor/fck_dialog_ie6.js index cd3cb75fddf..4fc9ba66f52 100644 --- a/htdocs/theme/auguria/fckeditor/fck_dialog_ie6.js +++ b/htdocs/theme/auguria/fckeditor/fck_dialog_ie6.js @@ -34,45 +34,45 @@ switch ( child.className ) { case 'contents' : - child.style.width = Math.max( 0, fckDlg.offsetWidth - 16 - 16 ) ; // -left -right - child.style.height = Math.max( 0, fckDlg.clientHeight - 20 - 2 ) ; // -bottom -top + child.style.width = Math.max(0, fckDlg.offsetWidth - 16 - 16); // -left -right + child.style.height = Math.max(0, fckDlg.clientHeight - 20 - 2); // -bottom -top break ; case 'blocker' : case 'cover' : - child.style.width = Math.max( 0, fckDlg.offsetWidth - 16 - 16 + 4 ) ; // -left -right + 4 - child.style.height = Math.max( 0, fckDlg.clientHeight - 20 - 2 + 4 ) ; // -bottom -top + 4 + child.style.width = Math.max(0, fckDlg.offsetWidth - 16 - 16 + 4); // -left -right + 4 + child.style.height = Math.max(0, fckDlg.clientHeight - 20 - 2 + 4); // -bottom -top + 4 break ; case 'tr' : - child.style.left = Math.max( 0, fckDlg.clientWidth - 16 ) ; + child.style.left = Math.max(0, fckDlg.clientWidth - 16); break ; case 'tc' : - child.style.width = Math.max( 0, fckDlg.clientWidth - 16 - 16 ) ; + child.style.width = Math.max(0, fckDlg.clientWidth - 16 - 16); break ; case 'ml' : - child.style.height = Math.max( 0, fckDlg.clientHeight - 16 - 51 ) ; + child.style.height = Math.max(0, fckDlg.clientHeight - 16 - 51); break ; case 'mr' : - child.style.left = Math.max( 0, fckDlg.clientWidth - 16 ) ; - child.style.height = Math.max( 0, fckDlg.clientHeight - 16 - 51 ) ; + child.style.left = Math.max(0, fckDlg.clientWidth - 16); + child.style.height = Math.max(0, fckDlg.clientHeight - 16 - 51); break ; case 'bl' : - child.style.top = Math.max( 0, fckDlg.clientHeight - 51 ) ; + child.style.top = Math.max(0, fckDlg.clientHeight - 51); break ; case 'br' : - child.style.left = Math.max( 0, fckDlg.clientWidth - 30 ) ; - child.style.top = Math.max( 0, fckDlg.clientHeight - 51 ) ; + child.style.left = Math.max(0, fckDlg.clientWidth - 30); + child.style.top = Math.max(0, fckDlg.clientHeight - 51); break ; case 'bc' : - child.style.width = Math.max( 0, fckDlg.clientWidth - 30 - 30 ) ; - child.style.top = Math.max( 0, fckDlg.clientHeight - 51 ) ; + child.style.width = Math.max(0, fckDlg.clientWidth - 30 - 30); + child.style.top = Math.max(0, fckDlg.clientHeight - 51); break ; } } @@ -90,7 +90,7 @@ var fixCloseButton = function() { - var closeButton = document.getElementById ( 'closeButton' ) ; + var closeButton = document.getElementById ('closeButton'); closeButton.onmouseover = closeButtonOver ; closeButton.onmouseout = closeButtonOut ; @@ -101,10 +101,10 @@ fixSizes() ; fixCloseButton() ; - window.attachEvent( 'onresize', fixSizes ) ; - window.detachEvent( 'onload', onLoad ) ; + window.attachEvent('onresize', fixSizes); + window.detachEvent('onload', onLoad); } - window.attachEvent( 'onload', onLoad ) ; + window.attachEvent('onload', onLoad); })() ; diff --git a/htdocs/theme/auguria/fckeditor/fckconfig.js b/htdocs/theme/auguria/fckeditor/fckconfig.js index a03f87158eb..6bf25df45e8 100644 --- a/htdocs/theme/auguria/fckeditor/fckconfig.js +++ b/htdocs/theme/auguria/fckeditor/fckconfig.js @@ -50,13 +50,13 @@ FCKConfig.PreloadImages = [ FCKConfig.SkinPath + 'images/toolbar.start.gif', FCK FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ; -// FCKConfig.Plugins.Add( 'autogrow' ) ; +// FCKConfig.Plugins.Add('autogrow'); // FCKConfig.Plugins.Add( 'dragresizetable' ); FCKConfig.AutoGrowMax = 400 ; -// FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ; // ASP style server side code <%...%> -// FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ; // PHP style server side code -// FCKConfig.ProtectedSource.Add( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ; // ASP.Net style tags <asp:control> +// FCKConfig.ProtectedSource.Add(/<%[\s\S]*?%>/g); // ASP style server side code <%...%> +// FCKConfig.ProtectedSource.Add(/<\?[\s\S]*?\?>/g); // PHP style server side code +// FCKConfig.ProtectedSource.Add(/(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi); // ASP.Net style tags <asp:control> FCKConfig.AutoDetectLanguage = true ; FCKConfig.DefaultLanguage = 'en' ; @@ -317,17 +317,17 @@ var _FileBrowserExtension = _FileBrowserLanguage == 'perl' ? 'cgi' : _FileBrowse var _QuickUploadExtension = _QuickUploadLanguage == 'perl' ? 'cgi' : _QuickUploadLanguage ; FCKConfig.LinkBrowser = true ; -FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=' + encodeURIComponent( FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ; +FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=' + encodeURIComponent(FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension); FCKConfig.LinkBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70% FCKConfig.LinkBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70% FCKConfig.ImageBrowser = true ; -FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=' + encodeURIComponent( FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ; +FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=' + encodeURIComponent(FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension); FCKConfig.ImageBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70% ; FCKConfig.ImageBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70% ; FCKConfig.FlashBrowser = true ; -FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=' + encodeURIComponent( FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ; +FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=' + encodeURIComponent(FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension); FCKConfig.FlashBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; //70% ; FCKConfig.FlashBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; //70% ; diff --git a/htdocs/theme/auguria/style.css.php b/htdocs/theme/auguria/style.css.php index 6492f813d2e..53277886d6f 100644 --- a/htdocs/theme/auguria/style.css.php +++ b/htdocs/theme/auguria/style.css.php @@ -33,7 +33,7 @@ if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU',1); if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML',1); if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1'); -session_cache_limiter( FALSE ); +session_cache_limiter(FALSE); require_once("../../main.inc.php"); require_once(DOL_DOCUMENT_ROOT."/lib/functions.lib.php"); diff --git a/htdocs/theme/bureau2crea/fckeditor/fck_dialog_ie6.js b/htdocs/theme/bureau2crea/fckeditor/fck_dialog_ie6.js index 2415bc21607..804cc8d24de 100644 --- a/htdocs/theme/bureau2crea/fckeditor/fck_dialog_ie6.js +++ b/htdocs/theme/bureau2crea/fckeditor/fck_dialog_ie6.js @@ -34,45 +34,45 @@ switch ( child.className ) { case 'contents' : - child.style.width = Math.max( 0, fckDlg.offsetWidth - 16 - 16 ) ; // -left -right - child.style.height = Math.max( 0, fckDlg.clientHeight - 20 - 2 ) ; // -bottom -top + child.style.width = Math.max(0, fckDlg.offsetWidth - 16 - 16); // -left -right + child.style.height = Math.max(0, fckDlg.clientHeight - 20 - 2); // -bottom -top break ; case 'blocker' : case 'cover' : - child.style.width = Math.max( 0, fckDlg.offsetWidth - 16 - 16 + 4 ) ; // -left -right + 4 - child.style.height = Math.max( 0, fckDlg.clientHeight - 20 - 2 + 4 ) ; // -bottom -top + 4 + child.style.width = Math.max(0, fckDlg.offsetWidth - 16 - 16 + 4); // -left -right + 4 + child.style.height = Math.max(0, fckDlg.clientHeight - 20 - 2 + 4); // -bottom -top + 4 break ; case 'tr' : - child.style.left = Math.max( 0, fckDlg.clientWidth - 16 ) ; + child.style.left = Math.max(0, fckDlg.clientWidth - 16); break ; case 'tc' : - child.style.width = Math.max( 0, fckDlg.clientWidth - 16 - 16 ) ; + child.style.width = Math.max(0, fckDlg.clientWidth - 16 - 16); break ; case 'ml' : - child.style.height = Math.max( 0, fckDlg.clientHeight - 16 - 51 ) ; + child.style.height = Math.max(0, fckDlg.clientHeight - 16 - 51); break ; case 'mr' : - child.style.left = Math.max( 0, fckDlg.clientWidth - 16 ) ; - child.style.height = Math.max( 0, fckDlg.clientHeight - 16 - 51 ) ; + child.style.left = Math.max(0, fckDlg.clientWidth - 16); + child.style.height = Math.max(0, fckDlg.clientHeight - 16 - 51); break ; case 'bl' : - child.style.top = Math.max( 0, fckDlg.clientHeight - 51 ) ; + child.style.top = Math.max(0, fckDlg.clientHeight - 51); break ; case 'br' : - child.style.left = Math.max( 0, fckDlg.clientWidth - 30 ) ; - child.style.top = Math.max( 0, fckDlg.clientHeight - 51 ) ; + child.style.left = Math.max(0, fckDlg.clientWidth - 30); + child.style.top = Math.max(0, fckDlg.clientHeight - 51); break ; case 'bc' : - child.style.width = Math.max( 0, fckDlg.clientWidth - 30 - 30 ) ; - child.style.top = Math.max( 0, fckDlg.clientHeight - 51 ) ; + child.style.width = Math.max(0, fckDlg.clientWidth - 30 - 30); + child.style.top = Math.max(0, fckDlg.clientHeight - 51); break ; } } @@ -90,7 +90,7 @@ var fixCloseButton = function() { - var closeButton = document.getElementById ( 'closeButton' ) ; + var closeButton = document.getElementById ('closeButton'); closeButton.onmouseover = closeButtonOver ; closeButton.onmouseout = closeButtonOut ; @@ -101,10 +101,10 @@ fixSizes() ; fixCloseButton() ; - window.attachEvent( 'onresize', fixSizes ) ; - window.detachEvent( 'onload', onLoad ) ; + window.attachEvent('onresize', fixSizes); + window.detachEvent('onload', onLoad); } - window.attachEvent( 'onload', onLoad ) ; + window.attachEvent('onload', onLoad); })() ; diff --git a/htdocs/theme/bureau2crea/fckeditor/fckconfig.js b/htdocs/theme/bureau2crea/fckeditor/fckconfig.js index 8b02be5b226..e5b32dedc49 100644 --- a/htdocs/theme/bureau2crea/fckeditor/fckconfig.js +++ b/htdocs/theme/bureau2crea/fckeditor/fckconfig.js @@ -50,13 +50,13 @@ FCKConfig.PreloadImages = [ FCKConfig.SkinPath + 'images/toolbar.start.gif', FCK FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ; -// FCKConfig.Plugins.Add( 'autogrow' ) ; +// FCKConfig.Plugins.Add('autogrow'); // FCKConfig.Plugins.Add( 'dragresizetable' ); FCKConfig.AutoGrowMax = 400 ; -// FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ; // ASP style server side code <%...%> -// FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ; // PHP style server side code -// FCKConfig.ProtectedSource.Add( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ; // ASP.Net style tags <asp:control> +// FCKConfig.ProtectedSource.Add(/<%[\s\S]*?%>/g); // ASP style server side code <%...%> +// FCKConfig.ProtectedSource.Add(/<\?[\s\S]*?\?>/g); // PHP style server side code +// FCKConfig.ProtectedSource.Add(/(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi); // ASP.Net style tags <asp:control> FCKConfig.AutoDetectLanguage = true ; FCKConfig.DefaultLanguage = 'en' ; @@ -316,17 +316,17 @@ var _FileBrowserExtension = _FileBrowserLanguage == 'perl' ? 'cgi' : _FileBrowse var _QuickUploadExtension = _QuickUploadLanguage == 'perl' ? 'cgi' : _QuickUploadLanguage ; FCKConfig.LinkBrowser = true ; -FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=' + encodeURIComponent( FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ; +FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=' + encodeURIComponent(FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension); FCKConfig.LinkBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70% FCKConfig.LinkBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70% FCKConfig.ImageBrowser = true ; -FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=' + encodeURIComponent( FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ; +FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=' + encodeURIComponent(FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension); FCKConfig.ImageBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70% ; FCKConfig.ImageBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70% ; FCKConfig.FlashBrowser = true ; -FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=' + encodeURIComponent( FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ; +FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=' + encodeURIComponent(FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension); FCKConfig.FlashBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; //70% ; FCKConfig.FlashBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; //70% ; diff --git a/htdocs/theme/cameleo/fckeditor/fck_dialog_ie6.js b/htdocs/theme/cameleo/fckeditor/fck_dialog_ie6.js index cd3cb75fddf..4fc9ba66f52 100644 --- a/htdocs/theme/cameleo/fckeditor/fck_dialog_ie6.js +++ b/htdocs/theme/cameleo/fckeditor/fck_dialog_ie6.js @@ -34,45 +34,45 @@ switch ( child.className ) { case 'contents' : - child.style.width = Math.max( 0, fckDlg.offsetWidth - 16 - 16 ) ; // -left -right - child.style.height = Math.max( 0, fckDlg.clientHeight - 20 - 2 ) ; // -bottom -top + child.style.width = Math.max(0, fckDlg.offsetWidth - 16 - 16); // -left -right + child.style.height = Math.max(0, fckDlg.clientHeight - 20 - 2); // -bottom -top break ; case 'blocker' : case 'cover' : - child.style.width = Math.max( 0, fckDlg.offsetWidth - 16 - 16 + 4 ) ; // -left -right + 4 - child.style.height = Math.max( 0, fckDlg.clientHeight - 20 - 2 + 4 ) ; // -bottom -top + 4 + child.style.width = Math.max(0, fckDlg.offsetWidth - 16 - 16 + 4); // -left -right + 4 + child.style.height = Math.max(0, fckDlg.clientHeight - 20 - 2 + 4); // -bottom -top + 4 break ; case 'tr' : - child.style.left = Math.max( 0, fckDlg.clientWidth - 16 ) ; + child.style.left = Math.max(0, fckDlg.clientWidth - 16); break ; case 'tc' : - child.style.width = Math.max( 0, fckDlg.clientWidth - 16 - 16 ) ; + child.style.width = Math.max(0, fckDlg.clientWidth - 16 - 16); break ; case 'ml' : - child.style.height = Math.max( 0, fckDlg.clientHeight - 16 - 51 ) ; + child.style.height = Math.max(0, fckDlg.clientHeight - 16 - 51); break ; case 'mr' : - child.style.left = Math.max( 0, fckDlg.clientWidth - 16 ) ; - child.style.height = Math.max( 0, fckDlg.clientHeight - 16 - 51 ) ; + child.style.left = Math.max(0, fckDlg.clientWidth - 16); + child.style.height = Math.max(0, fckDlg.clientHeight - 16 - 51); break ; case 'bl' : - child.style.top = Math.max( 0, fckDlg.clientHeight - 51 ) ; + child.style.top = Math.max(0, fckDlg.clientHeight - 51); break ; case 'br' : - child.style.left = Math.max( 0, fckDlg.clientWidth - 30 ) ; - child.style.top = Math.max( 0, fckDlg.clientHeight - 51 ) ; + child.style.left = Math.max(0, fckDlg.clientWidth - 30); + child.style.top = Math.max(0, fckDlg.clientHeight - 51); break ; case 'bc' : - child.style.width = Math.max( 0, fckDlg.clientWidth - 30 - 30 ) ; - child.style.top = Math.max( 0, fckDlg.clientHeight - 51 ) ; + child.style.width = Math.max(0, fckDlg.clientWidth - 30 - 30); + child.style.top = Math.max(0, fckDlg.clientHeight - 51); break ; } } @@ -90,7 +90,7 @@ var fixCloseButton = function() { - var closeButton = document.getElementById ( 'closeButton' ) ; + var closeButton = document.getElementById ('closeButton'); closeButton.onmouseover = closeButtonOver ; closeButton.onmouseout = closeButtonOut ; @@ -101,10 +101,10 @@ fixSizes() ; fixCloseButton() ; - window.attachEvent( 'onresize', fixSizes ) ; - window.detachEvent( 'onload', onLoad ) ; + window.attachEvent('onresize', fixSizes); + window.detachEvent('onload', onLoad); } - window.attachEvent( 'onload', onLoad ) ; + window.attachEvent('onload', onLoad); })() ; diff --git a/htdocs/theme/cameleo/fckeditor/fckconfig.js b/htdocs/theme/cameleo/fckeditor/fckconfig.js index d64e9e87ec5..96ec6dd9b4a 100644 --- a/htdocs/theme/cameleo/fckeditor/fckconfig.js +++ b/htdocs/theme/cameleo/fckeditor/fckconfig.js @@ -50,13 +50,13 @@ FCKConfig.PreloadImages = [ FCKConfig.SkinPath + 'images/toolbar.start.gif', FCK FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ; -// FCKConfig.Plugins.Add( 'autogrow' ) ; +// FCKConfig.Plugins.Add('autogrow'); // FCKConfig.Plugins.Add( 'dragresizetable' ); FCKConfig.AutoGrowMax = 400 ; -// FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ; // ASP style server side code <%...%> -// FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ; // PHP style server side code -// FCKConfig.ProtectedSource.Add( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ; // ASP.Net style tags <asp:control> +// FCKConfig.ProtectedSource.Add(/<%[\s\S]*?%>/g); // ASP style server side code <%...%> +// FCKConfig.ProtectedSource.Add(/<\?[\s\S]*?\?>/g); // PHP style server side code +// FCKConfig.ProtectedSource.Add(/(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi); // ASP.Net style tags <asp:control> FCKConfig.AutoDetectLanguage = true ; FCKConfig.DefaultLanguage = 'en' ; @@ -317,17 +317,17 @@ var _FileBrowserExtension = _FileBrowserLanguage == 'perl' ? 'cgi' : _FileBrowse var _QuickUploadExtension = _QuickUploadLanguage == 'perl' ? 'cgi' : _QuickUploadLanguage ; FCKConfig.LinkBrowser = true ; -FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=' + encodeURIComponent( FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ; +FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=' + encodeURIComponent(FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension); FCKConfig.LinkBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70% FCKConfig.LinkBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70% FCKConfig.ImageBrowser = true ; -FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=' + encodeURIComponent( FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ; +FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=' + encodeURIComponent(FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension); FCKConfig.ImageBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70% ; FCKConfig.ImageBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70% ; FCKConfig.FlashBrowser = true ; -FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=' + encodeURIComponent( FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ; +FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=' + encodeURIComponent(FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension); FCKConfig.FlashBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; //70% ; FCKConfig.FlashBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; //70% ; diff --git a/htdocs/theme/cameleo/style.css.php b/htdocs/theme/cameleo/style.css.php index fef27449c2e..2905a700cb0 100644 --- a/htdocs/theme/cameleo/style.css.php +++ b/htdocs/theme/cameleo/style.css.php @@ -35,7 +35,7 @@ if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU',1); if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML',1); if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1'); -session_cache_limiter( FALSE ); +session_cache_limiter(FALSE); require_once("../../main.inc.php"); require_once(DOL_DOCUMENT_ROOT."/lib/functions.lib.php"); @@ -344,7 +344,7 @@ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fceab background: -webkit-linear-gradient(top, #fceabb 0%,#fccd4d 50%,#FFA820 87%,#fbdf93 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #fceabb 0%,#fccd4d 50%,#FFA820 87%,#fbdf93 100%); /* Opera11.10+ */ background: -ms-linear-gradient(top, #fceabb 0%,#fccd4d 50%,#FFA820 87%,#fbdf93 100%); /* IE10+ */ -filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fceabb', endColorstr='#fbdf93',GradientType=0 ); /* IE6-9 */ +filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fceabb', endColorstr='#fbdf93',GradientType=0); /* IE6-9 */ background: linear-gradient(top, #fceabb 0%,#fccd4d 50%,#FFA820 87%,#fbdf93 100%); /* W3C */ } @@ -1080,7 +1080,7 @@ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fceab background: -webkit-linear-gradient(top, #fceabb 0%,#fccd4d 50%,#FFA820 87%,#fbdf93 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #fceabb 0%,#fccd4d 50%,#FFA820 87%,#fbdf93 100%); /* Opera11.10+ */ background: -ms-linear-gradient(top, #fceabb 0%,#fccd4d 50%,#FFA820 87%,#fbdf93 100%); /* IE10+ */ -filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fceabb', endColorstr='#fbdf93',GradientType=0 ); /* IE6-9 */ +filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fceabb', endColorstr='#fbdf93',GradientType=0); /* IE6-9 */ background: linear-gradient(top, #fceabb 0%,#fccd4d 50%,#FFA820 87%,#fbdf93 100%); /* W3C */ } @@ -1620,7 +1620,7 @@ background: -moz-linear-gradient(top, #FFA820 0%, #FFA820 0%, #FFFFFF 100%); /* background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#FFA820), color-stop(0%,#FFA820), color-stop(100%,#FFFFFF)); /* webkit */ -filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#FFA820', endColorstr='#FFFFFF',GradientType=0 ); /* ie */ +filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFA820', endColorstr='#FFFFFF',GradientType=0); /* ie */ background: -o-linear-gradient(top, #FFA820 0%,#FFA820 0%,#FFFFFF 100%); /* opera */ diff --git a/htdocs/theme/eldy/fckeditor/fck_dialog_ie6.js b/htdocs/theme/eldy/fckeditor/fck_dialog_ie6.js index cd3cb75fddf..4fc9ba66f52 100644 --- a/htdocs/theme/eldy/fckeditor/fck_dialog_ie6.js +++ b/htdocs/theme/eldy/fckeditor/fck_dialog_ie6.js @@ -34,45 +34,45 @@ switch ( child.className ) { case 'contents' : - child.style.width = Math.max( 0, fckDlg.offsetWidth - 16 - 16 ) ; // -left -right - child.style.height = Math.max( 0, fckDlg.clientHeight - 20 - 2 ) ; // -bottom -top + child.style.width = Math.max(0, fckDlg.offsetWidth - 16 - 16); // -left -right + child.style.height = Math.max(0, fckDlg.clientHeight - 20 - 2); // -bottom -top break ; case 'blocker' : case 'cover' : - child.style.width = Math.max( 0, fckDlg.offsetWidth - 16 - 16 + 4 ) ; // -left -right + 4 - child.style.height = Math.max( 0, fckDlg.clientHeight - 20 - 2 + 4 ) ; // -bottom -top + 4 + child.style.width = Math.max(0, fckDlg.offsetWidth - 16 - 16 + 4); // -left -right + 4 + child.style.height = Math.max(0, fckDlg.clientHeight - 20 - 2 + 4); // -bottom -top + 4 break ; case 'tr' : - child.style.left = Math.max( 0, fckDlg.clientWidth - 16 ) ; + child.style.left = Math.max(0, fckDlg.clientWidth - 16); break ; case 'tc' : - child.style.width = Math.max( 0, fckDlg.clientWidth - 16 - 16 ) ; + child.style.width = Math.max(0, fckDlg.clientWidth - 16 - 16); break ; case 'ml' : - child.style.height = Math.max( 0, fckDlg.clientHeight - 16 - 51 ) ; + child.style.height = Math.max(0, fckDlg.clientHeight - 16 - 51); break ; case 'mr' : - child.style.left = Math.max( 0, fckDlg.clientWidth - 16 ) ; - child.style.height = Math.max( 0, fckDlg.clientHeight - 16 - 51 ) ; + child.style.left = Math.max(0, fckDlg.clientWidth - 16); + child.style.height = Math.max(0, fckDlg.clientHeight - 16 - 51); break ; case 'bl' : - child.style.top = Math.max( 0, fckDlg.clientHeight - 51 ) ; + child.style.top = Math.max(0, fckDlg.clientHeight - 51); break ; case 'br' : - child.style.left = Math.max( 0, fckDlg.clientWidth - 30 ) ; - child.style.top = Math.max( 0, fckDlg.clientHeight - 51 ) ; + child.style.left = Math.max(0, fckDlg.clientWidth - 30); + child.style.top = Math.max(0, fckDlg.clientHeight - 51); break ; case 'bc' : - child.style.width = Math.max( 0, fckDlg.clientWidth - 30 - 30 ) ; - child.style.top = Math.max( 0, fckDlg.clientHeight - 51 ) ; + child.style.width = Math.max(0, fckDlg.clientWidth - 30 - 30); + child.style.top = Math.max(0, fckDlg.clientHeight - 51); break ; } } @@ -90,7 +90,7 @@ var fixCloseButton = function() { - var closeButton = document.getElementById ( 'closeButton' ) ; + var closeButton = document.getElementById ('closeButton'); closeButton.onmouseover = closeButtonOver ; closeButton.onmouseout = closeButtonOut ; @@ -101,10 +101,10 @@ fixSizes() ; fixCloseButton() ; - window.attachEvent( 'onresize', fixSizes ) ; - window.detachEvent( 'onload', onLoad ) ; + window.attachEvent('onresize', fixSizes); + window.detachEvent('onload', onLoad); } - window.attachEvent( 'onload', onLoad ) ; + window.attachEvent('onload', onLoad); })() ; diff --git a/htdocs/theme/eldy/fckeditor/fckconfig.js b/htdocs/theme/eldy/fckeditor/fckconfig.js index d64e9e87ec5..96ec6dd9b4a 100644 --- a/htdocs/theme/eldy/fckeditor/fckconfig.js +++ b/htdocs/theme/eldy/fckeditor/fckconfig.js @@ -50,13 +50,13 @@ FCKConfig.PreloadImages = [ FCKConfig.SkinPath + 'images/toolbar.start.gif', FCK FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ; -// FCKConfig.Plugins.Add( 'autogrow' ) ; +// FCKConfig.Plugins.Add('autogrow'); // FCKConfig.Plugins.Add( 'dragresizetable' ); FCKConfig.AutoGrowMax = 400 ; -// FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ; // ASP style server side code <%...%> -// FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ; // PHP style server side code -// FCKConfig.ProtectedSource.Add( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ; // ASP.Net style tags <asp:control> +// FCKConfig.ProtectedSource.Add(/<%[\s\S]*?%>/g); // ASP style server side code <%...%> +// FCKConfig.ProtectedSource.Add(/<\?[\s\S]*?\?>/g); // PHP style server side code +// FCKConfig.ProtectedSource.Add(/(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi); // ASP.Net style tags <asp:control> FCKConfig.AutoDetectLanguage = true ; FCKConfig.DefaultLanguage = 'en' ; @@ -317,17 +317,17 @@ var _FileBrowserExtension = _FileBrowserLanguage == 'perl' ? 'cgi' : _FileBrowse var _QuickUploadExtension = _QuickUploadLanguage == 'perl' ? 'cgi' : _QuickUploadLanguage ; FCKConfig.LinkBrowser = true ; -FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=' + encodeURIComponent( FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ; +FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=' + encodeURIComponent(FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension); FCKConfig.LinkBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70% FCKConfig.LinkBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70% FCKConfig.ImageBrowser = true ; -FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=' + encodeURIComponent( FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ; +FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=' + encodeURIComponent(FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension); FCKConfig.ImageBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70% ; FCKConfig.ImageBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70% ; FCKConfig.FlashBrowser = true ; -FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=' + encodeURIComponent( FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ; +FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=' + encodeURIComponent(FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension); FCKConfig.FlashBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; //70% ; FCKConfig.FlashBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; //70% ; diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php index 4df703c4175..1f2e7c15fd4 100644 --- a/htdocs/theme/eldy/style.css.php +++ b/htdocs/theme/eldy/style.css.php @@ -34,7 +34,7 @@ if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU',1); if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML',1); if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1'); -session_cache_limiter( FALSE ); +session_cache_limiter(FALSE); require_once("../../main.inc.php"); require_once(DOL_DOCUMENT_ROOT."/lib/functions.lib.php"); diff --git a/htdocs/theme/phones/smartphone/theme/default/default.css.php b/htdocs/theme/phones/smartphone/theme/default/default.css.php index fc8f9494057..39b0076938d 100644 --- a/htdocs/theme/phones/smartphone/theme/default/default.css.php +++ b/htdocs/theme/phones/smartphone/theme/default/default.css.php @@ -31,7 +31,7 @@ if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU',1); if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML',1); if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1'); -session_cache_limiter( FALSE ); +session_cache_limiter(FALSE); require_once("../../../../../main.inc.php"); require_once(DOL_DOCUMENT_ROOT."/lib/functions.lib.php"); diff --git a/htdocs/user/fiche.php b/htdocs/user/fiche.php index 6fba9e1d660..06fc2ff0d98 100644 --- a/htdocs/user/fiche.php +++ b/htdocs/user/fiche.php @@ -202,7 +202,7 @@ if ($_POST["action"] == 'add' && $canadduser) $edituser->note = $_POST["note"]; $edituser->ldap_sid = $_POST["ldap_sid"]; // If multicompany is off, admin users must all be on entity 0. - $edituser->entity = ( ! empty($_POST["admin"]) && (! empty($_POST["superadmin"]) || empty($_POST["entity"]) || empty($conf->multicompany->enabled)) ? 0 : $_POST["entity"]); + $edituser->entity = (! empty($_POST["admin"]) && (! empty($_POST["superadmin"]) || empty($_POST["entity"]) || empty($conf->multicompany->enabled)) ? 0 : $_POST["entity"]); $db->begin(); @@ -298,7 +298,7 @@ if ($action == 'update' && ! $_POST["cancel"]) $edituser->webcal_login = $_POST["webcal_login"]; $edituser->phenix_login = $_POST["phenix_login"]; $edituser->phenix_pass = $_POST["phenix_pass"]; - $edituser->entity = ( (! empty($_POST["superadmin"]) && ! empty($_POST["admin"]) || empty($_POST["entity"])) ? 0 : $_POST["entity"]); + $edituser->entity = ((! empty($_POST["superadmin"]) && ! empty($_POST["admin"]) || empty($_POST["entity"])) ? 0 : $_POST["entity"]); if (GETPOST('deletephoto')) $edituser->photo=''; if (! empty($_FILES['photo']['name'])) $edituser->photo = dol_sanitizeFileName($_FILES['photo']['name']); diff --git a/htdocs/user/passwordforgotten.php b/htdocs/user/passwordforgotten.php index b3842455938..0c64a671ee8 100644 --- a/htdocs/user/passwordforgotten.php +++ b/htdocs/user/passwordforgotten.php @@ -46,7 +46,7 @@ if (! $mode) $mode='http'; $username = GETPOST('username'); $passwordmd5 = GETPOST('passwordmd5'); -$conf->entity = ( GETPOST('entity') ? GETPOST('entity') : 1 ); +$conf->entity = (GETPOST('entity') ? GETPOST('entity') : 1); /** -- GitLab