@@ -340,7 +340,7 @@ discard block |
||
| 340 | 340 | if (strncmp($url, 'configurer_', 11) == 0) { |
| 341 | 341 | $deja[$url] = $b; |
| 342 | 342 | } elseif ($b['url'] == 'configurer' and preg_match(',cfg=([a-z0-9_]+),i', $b['args'], $match)) { |
| 343 | - $deja["configurer_" . $match[1]] = $b; |
|
| 343 | + $deja["configurer_".$match[1]] = $b; |
|
| 344 | 344 | } |
| 345 | 345 | } |
| 346 | 346 | |
@@ -354,10 +354,10 @@ discard block |
||
| 354 | 354 | |
| 355 | 355 | // trouver toutes les pages configurer_xxx de l'espace prive |
| 356 | 356 | // et construire un tableau des entrees qui ne sont pas dans $deja |
| 357 | - $pages = find_all_in_path("prive/squelettes/contenu/", "configurer_.*[.]" . _EXTENSION_SQUELETTES . '$'); |
|
| 357 | + $pages = find_all_in_path("prive/squelettes/contenu/", "configurer_.*[.]"._EXTENSION_SQUELETTES.'$'); |
|
| 358 | 358 | |
| 359 | 359 | foreach ($pages as $page) { |
| 360 | - $configurer = basename($page, "." . _EXTENSION_SQUELETTES); |
|
| 360 | + $configurer = basename($page, "."._EXTENSION_SQUELETTES); |
|
| 361 | 361 | if (!isset($exclure[$configurer])) { |
| 362 | 362 | $liste[$configurer] = array( |
| 363 | 363 | 'parent' => 'bando_configuration', |
@@ -377,9 +377,9 @@ discard block |
||
| 377 | 377 | |
| 378 | 378 | // trouver tous les formulaires/configurer_ |
| 379 | 379 | // et construire un tableau des entrees |
| 380 | - $pages = find_all_in_path("formulaires/", "configurer_.*[.]" . _EXTENSION_SQUELETTES . '$'); |
|
| 380 | + $pages = find_all_in_path("formulaires/", "configurer_.*[.]"._EXTENSION_SQUELETTES.'$'); |
|
| 381 | 381 | foreach ($pages as $page) { |
| 382 | - $configurer = basename($page, "." . _EXTENSION_SQUELETTES); |
|
| 382 | + $configurer = basename($page, "."._EXTENSION_SQUELETTES); |
|
| 383 | 383 | if (!isset($forms[$configurer]) |
| 384 | 384 | and !isset($liste[$configurer]) |
| 385 | 385 | and !isset($exclure[$configurer]) |
@@ -387,7 +387,7 @@ discard block |
||
| 387 | 387 | $liste[$configurer] = array( |
| 388 | 388 | 'parent' => 'bando_configuration', |
| 389 | 389 | 'url' => 'configurer', |
| 390 | - 'args' => 'cfg=' . substr($configurer, 11), |
|
| 390 | + 'args' => 'cfg='.substr($configurer, 11), |
|
| 391 | 391 | 'titre' => _T("configurer:{$configurer}_titre"), |
| 392 | 392 | 'icone' => find_in_theme($i = "images/{$configurer}-16.png") ? $i : $icone_defaut, |
| 393 | 393 | ); |
@@ -419,8 +419,8 @@ discard block |
||
| 419 | 419 | |
| 420 | 420 | // evaluer le fond en lui passant un exec coherent pour que les pipelines le reconnaissent |
| 421 | 421 | // et reperer les formulaires CVT configurer_xx insereres par les plugins via pipeline |
| 422 | - $config = basename(substr($file, 0, -strlen("." . _EXTENSION_SQUELETTES))); |
|
| 423 | - spip_log('Calcul de ' . "prive/squelettes/contenu/$config"); |
|
| 422 | + $config = basename(substr($file, 0, -strlen("."._EXTENSION_SQUELETTES))); |
|
| 423 | + spip_log('Calcul de '."prive/squelettes/contenu/$config"); |
|
| 424 | 424 | $fond = recuperer_fond("prive/squelettes/contenu/$config", array("exec" => $config)); |
| 425 | 425 | |
| 426 | 426 | // passer dans le pipeline affiche_milieu pour que les plugins puissent ajouter leur formulaires... |
@@ -75,28 +75,27 @@ discard block |
||
| 75 | 75 | } |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | - $lib_bouton = (!acces_restreint_rubrique($id_rubrique) ? '' : |
|
| 79 | - http_img_pack( |
|
| 78 | + $lib_bouton = (!acces_restreint_rubrique($id_rubrique) ? '' : http_img_pack( |
|
| 80 | 79 | 'auteur-0minirezo-16.png', |
| 81 | 80 | '', |
| 82 | 81 | " width='16' height='16'", |
| 83 | 82 | _T('image_administrer_rubrique') |
| 84 | - )) . |
|
| 85 | - " <a dir='$lang_dir'" . |
|
| 86 | - ($row['lang'] !== $GLOBALS['spip_lang'] ? " hreflang='" . $row['lang'] . "'" : '') . |
|
| 87 | - " href='" . |
|
| 88 | - generer_url_entite($id_rubrique, 'rubrique') . |
|
| 89 | - "'>" . |
|
| 90 | - $rang . $titre . |
|
| 83 | + )). |
|
| 84 | + " <a dir='$lang_dir'". |
|
| 85 | + ($row['lang'] !== $GLOBALS['spip_lang'] ? " hreflang='".$row['lang']."'" : ''). |
|
| 86 | + " href='". |
|
| 87 | + generer_url_entite($id_rubrique, 'rubrique'). |
|
| 88 | + "'>". |
|
| 89 | + $rang.$titre. |
|
| 91 | 90 | '</a>'; |
| 92 | 91 | |
| 93 | - $titre = (is_string($logo) ? $logo : '') . |
|
| 92 | + $titre = (is_string($logo) ? $logo : ''). |
|
| 94 | 93 | bouton_block_depliable($lib_bouton, $les_sous_enfants ? false : -1, "enfants$id_rubrique"); |
| 95 | 94 | |
| 96 | 95 | $res[] = |
| 97 | - debut_cadre_sous_rub(($id_parent ? 'rubrique-24.png' : 'secteur-24.png'), true, '', $titre) . |
|
| 98 | - (!$descriptif ? '' : "\n<div class='descriptif'>$descriptif</div>") . |
|
| 99 | - $les_sous_enfants . |
|
| 96 | + debut_cadre_sous_rub(($id_parent ? 'rubrique-24.png' : 'secteur-24.png'), true, '', $titre). |
|
| 97 | + (!$descriptif ? '' : "\n<div class='descriptif'>$descriptif</div>"). |
|
| 98 | + $les_sous_enfants. |
|
| 100 | 99 | fin_cadre_sous_rub(true); |
| 101 | 100 | } |
| 102 | 101 | } |
@@ -127,10 +126,10 @@ discard block |
||
| 127 | 126 | * Si > 500 on affiche une pagination |
| 128 | 127 | */ |
| 129 | 128 | if ($nb > $limite) { |
| 130 | - $debut = _request('debut_rubrique' . $collection2) ? _request('debut_rubrique' . $collection2) : $debut; |
|
| 129 | + $debut = _request('debut_rubrique'.$collection2) ? _request('debut_rubrique'.$collection2) : $debut; |
|
| 131 | 130 | $pagination = chercher_filtre('pagination'); |
| 132 | - $pagination = '<p class="pagination">' . $pagination($nb, '_rubrique' . $collection2, $debut, $limite, true, |
|
| 133 | - 'prive') . '</p>'; |
|
| 131 | + $pagination = '<p class="pagination">'.$pagination($nb, '_rubrique'.$collection2, $debut, $limite, true, |
|
| 132 | + 'prive').'</p>'; |
|
| 134 | 133 | $limite = $debut + $limite; |
| 135 | 134 | } |
| 136 | 135 | |
@@ -157,14 +156,14 @@ discard block |
||
| 157 | 156 | changer_typo($row['lang']); |
| 158 | 157 | $lang_dir = lang_dir($row['lang']); |
| 159 | 158 | if (autoriser('voir', 'rubrique', $id_rubrique2)) { |
| 160 | - $retour .= "\n<li class='item' dir='$lang_dir'><a href='" . generer_url_entite( |
|
| 159 | + $retour .= "\n<li class='item' dir='$lang_dir'><a href='".generer_url_entite( |
|
| 161 | 160 | $id_rubrique2, |
| 162 | 161 | 'rubrique' |
| 163 | - ) . "'>" . $rang2 . $titre2 . "</a></li>\n"; |
|
| 162 | + )."'>".$rang2.$titre2."</a></li>\n"; |
|
| 164 | 163 | } |
| 165 | 164 | } |
| 166 | 165 | |
| 167 | - $retour = $pagination . $retour . $pagination; |
|
| 166 | + $retour = $pagination.$retour.$pagination; |
|
| 168 | 167 | |
| 169 | 168 | if (!$retour) { |
| 170 | 169 | return ''; |
@@ -173,7 +172,7 @@ discard block |
||
| 173 | 172 | return debut_block_depliable($debut > 0 ? true : false, "enfants$collection2") |
| 174 | 173 | . "\n<ul class='liste-items sous-sous-rub'>\n" |
| 175 | 174 | . $retour |
| 176 | - . "</ul>\n" . fin_block() . "\n\n"; |
|
| 175 | + . "</ul>\n".fin_block()."\n\n"; |
|
| 177 | 176 | } |
| 178 | 177 | |
| 179 | 178 | /** |
@@ -195,10 +194,10 @@ discard block |
||
| 195 | 194 | $nb = sql_countsel('spip_rubriques', 'id_parent='.intval($id_rubrique)); |
| 196 | 195 | |
| 197 | 196 | if ($nb > $limite) { |
| 198 | - $debut = _request('debut_rubrique' . $id_rubrique) ? _request('debut_rubrique' . $id_rubrique) : $debut; |
|
| 197 | + $debut = _request('debut_rubrique'.$id_rubrique) ? _request('debut_rubrique'.$id_rubrique) : $debut; |
|
| 199 | 198 | $pagination = chercher_filtre('pagination'); |
| 200 | - $pagination = '<br class="nettoyeur"><p class="pagination">' . |
|
| 201 | - $pagination($nb, '_rubrique' . $id_rubrique, $debut, $limite, true, 'prive') . |
|
| 199 | + $pagination = '<br class="nettoyeur"><p class="pagination">'. |
|
| 200 | + $pagination($nb, '_rubrique'.$id_rubrique, $debut, $limite, true, 'prive'). |
|
| 202 | 201 | '</p>'; |
| 203 | 202 | } |
| 204 | 203 | |
@@ -46,13 +46,13 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | $dir = "images/"; |
| 48 | 48 | $f = "$type-$size.png"; |
| 49 | - if ($icone = find_in_theme($dir . $f)) { |
|
| 49 | + if ($icone = find_in_theme($dir.$f)) { |
|
| 50 | 50 | $dir = dirname($icone); |
| 51 | 51 | $fond = $icone; |
| 52 | 52 | |
| 53 | 53 | if ($rtl |
| 54 | 54 | and $fr = "$type-rtl-$size.png" |
| 55 | - and file_exists($dir . '/' . $fr) |
|
| 55 | + and file_exists($dir.'/'.$fr) |
|
| 56 | 56 | ) { |
| 57 | 57 | $type = "$type-rtl"; |
| 58 | 58 | } |
@@ -70,9 +70,9 @@ discard block |
||
| 70 | 70 | } |
| 71 | 71 | if ($action) { |
| 72 | 72 | if ($fa = "$type-$action-$size.png" |
| 73 | - and file_exists($dir . '/' . $fa) |
|
| 73 | + and file_exists($dir.'/'.$fa) |
|
| 74 | 74 | ) { |
| 75 | - $fond = $dir . '/' . $fa; |
|
| 75 | + $fond = $dir.'/'.$fa; |
|
| 76 | 76 | $fonction = ""; |
| 77 | 77 | } else { |
| 78 | 78 | $fonction = "$action-$size.png"; |
@@ -38,16 +38,16 @@ discard block |
||
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | // Regarder dans le repertoire local des images TeX et blocs MathML |
| 41 | - if (!@is_dir($dir_tex = _DIR_VAR . 'cache-TeX/')) { |
|
| 41 | + if (!@is_dir($dir_tex = _DIR_VAR.'cache-TeX/')) { |
|
| 42 | 42 | @mkdir($dir_tex, _SPIP_CHMOD); |
| 43 | 43 | } |
| 44 | - $fichier = $dir_tex . md5(trim($tex)) . $ext; |
|
| 44 | + $fichier = $dir_tex.md5(trim($tex)).$ext; |
|
| 45 | 45 | |
| 46 | 46 | |
| 47 | 47 | if (!@file_exists($fichier)) { |
| 48 | 48 | // Aller chercher l'image sur le serveur |
| 49 | 49 | if ($server) { |
| 50 | - spip_log($url = $server . '?' . rawurlencode($tex)); |
|
| 50 | + spip_log($url = $server.'?'.rawurlencode($tex)); |
|
| 51 | 51 | include_spip('inc/distant'); |
| 52 | 52 | recuperer_page($url, $fichier); |
| 53 | 53 | } |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | return join(file("$fichier"), ""); |
| 64 | 64 | } // TeX |
| 65 | 65 | else { |
| 66 | - list(, , , $size) = @getimagesize($fichier); |
|
| 66 | + list(,,, $size) = @getimagesize($fichier); |
|
| 67 | 67 | $alt = "alt=\"$tex\" title=\"$tex\""; |
| 68 | 68 | |
| 69 | 69 | return "<img src=\"$fichier\" style=\"vertical-align:middle;\" $size $alt />"; |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | if ($defaire_amp) { |
| 127 | 127 | $expression = str_replace('&', '&', $expression); |
| 128 | 128 | } |
| 129 | - $echap = "\n<p class=\"spip\" style=\"text-align: center;\">" . produire_image_math($expression) . "</p>\n"; |
|
| 129 | + $echap = "\n<p class=\"spip\" style=\"text-align: center;\">".produire_image_math($expression)."</p>\n"; |
|
| 130 | 130 | $pos = strpos($texte_milieu, $regs[0]); |
| 131 | 131 | $texte_milieu = substr($texte_milieu, 0, $pos) |
| 132 | 132 | . code_echappement($echap, $source) |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | . substr($texte_milieu, $pos + strlen($regs[0])); |
| 147 | 147 | } |
| 148 | 148 | |
| 149 | - $texte_a_voir = $texte_debut . $texte_milieu . $texte_fin; |
|
| 149 | + $texte_a_voir = $texte_debut.$texte_milieu.$texte_fin; |
|
| 150 | 150 | } |
| 151 | 151 | |
| 152 | 152 | return $texte_a_voir; |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | $coupe_url = defined('_MAX_COUPE_URL') ? _MAX_COUPE_URL : 35; |
| 27 | 27 | |
| 28 | 28 | if (strlen($url) > $long_url) { |
| 29 | - $url = substr($url, 0, $coupe_url) . '...'; |
|
| 29 | + $url = substr($url, 0, $coupe_url).'...'; |
|
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | return $url; |
@@ -52,11 +52,11 @@ discard block |
||
| 52 | 52 | |
| 53 | 53 | // si spip_log() dans mes_options, ou repertoire log/ non present, poser dans tmp/ |
| 54 | 54 | if (!defined('_DIR_LOG') or !$test_repertoire[$d]) { |
| 55 | - $logfile = _DIR_RACINE . _NOM_TEMPORAIRES_INACCESSIBLES . $logname . '.log'; |
|
| 55 | + $logfile = _DIR_RACINE._NOM_TEMPORAIRES_INACCESSIBLES.$logname.'.log'; |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | $rotate = 0; |
| 59 | - $pid = '(pid ' . @getmypid() . ')'; |
|
| 59 | + $pid = '(pid '.@getmypid().')'; |
|
| 60 | 60 | |
| 61 | 61 | // accepter spip_log( Array ) |
| 62 | 62 | if (!is_string($message)) { |
@@ -71,10 +71,10 @@ discard block |
||
| 71 | 71 | $fi = substr($fi, strlen(_ROOT_RACINE)); |
| 72 | 72 | } |
| 73 | 73 | $fu = isset($debug[2]['function']) ? $debug[2]['function'] : ''; |
| 74 | - $debugverb = "$fi:L$l:$fu" . '():'; |
|
| 74 | + $debugverb = "$fi:L$l:$fu".'():'; |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | - $m = date('Y-m-d H:i:s') . ' ' . (isset($GLOBALS['ip']) ? $GLOBALS['ip'] : '') . ' ' . $pid . ' ' |
|
| 77 | + $m = date('Y-m-d H:i:s').' '.(isset($GLOBALS['ip']) ? $GLOBALS['ip'] : '').' '.$pid.' ' |
|
| 78 | 78 | //distinguer les logs prives et publics dans les grep |
| 79 | 79 | . $debugverb |
| 80 | 80 | . (test_espace_prive() ? ':Pri:' : ':Pub:') |
@@ -97,9 +97,9 @@ discard block |
||
| 97 | 97 | if ($rotate-- > 0 |
| 98 | 98 | and function_exists('spip_unlink') |
| 99 | 99 | ) { |
| 100 | - spip_unlink($logfile . '.' . $rotate); |
|
| 100 | + spip_unlink($logfile.'.'.$rotate); |
|
| 101 | 101 | while ($rotate--) { |
| 102 | - @rename($logfile . ($rotate ? '.' . $rotate : ''), $logfile . '.' . ($rotate + 1)); |
|
| 102 | + @rename($logfile.($rotate ? '.'.$rotate : ''), $logfile.'.'.($rotate + 1)); |
|
| 103 | 103 | } |
| 104 | 104 | } |
| 105 | 105 | |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | $_id_table = reset($_id_table); |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | - $requete['SELECT'][] = "t." . $_id_table; |
|
| 71 | + $requete['SELECT'][] = "t.".$_id_table; |
|
| 72 | 72 | $a = array(); |
| 73 | 73 | // Recherche fulltext |
| 74 | 74 | foreach ($champs as $champ => $poids) { |
@@ -79,13 +79,13 @@ discard block |
||
| 79 | 79 | $champ = "t.$champ"; |
| 80 | 80 | } |
| 81 | 81 | $requete['SELECT'][] = $champ; |
| 82 | - $a[] = $champ . ' ' . $methode . ' ' . $q; |
|
| 82 | + $a[] = $champ.' '.$methode.' '.$q; |
|
| 83 | 83 | } |
| 84 | 84 | } |
| 85 | 85 | if ($a) { |
| 86 | 86 | $requete['WHERE'][] = join(" OR ", $a); |
| 87 | 87 | } |
| 88 | - $requete['FROM'][] = table_objet_sql($table) . ' AS t'; |
|
| 88 | + $requete['FROM'][] = table_objet_sql($table).' AS t'; |
|
| 89 | 89 | |
| 90 | 90 | $results = array(); |
| 91 | 91 | |
@@ -208,8 +208,8 @@ discard block |
||
| 208 | 208 | $s = sql_select("$primary as $cle_depart, id_objet as $cle_arrivee", $table_liens, |
| 209 | 209 | array("objet='$table_liee'", sql_in('id_objet', array_keys($ids_trouves))), '', '', '', '', $serveur); |
| 210 | 210 | } // cas table de liaison generique spip_xxx_yyy |
| 211 | - elseif ($t = $trouver_table($table_arrivee . "_" . $table_depart, $serveur) |
|
| 212 | - or $t = $trouver_table($table_depart . "_" . $table_arrivee, $serveur) |
|
| 211 | + elseif ($t = $trouver_table($table_arrivee."_".$table_depart, $serveur) |
|
| 212 | + or $t = $trouver_table($table_depart."_".$table_arrivee, $serveur) |
|
| 213 | 213 | ) { |
| 214 | 214 | $s = sql_select("$cle_depart,$cle_arrivee", $t["table_sql"], sql_in($cle_arrivee, array_keys($ids_trouves)), |
| 215 | 215 | '', '', '', '', $serveur); |
@@ -236,12 +236,12 @@ discard block |
||
| 236 | 236 | } |
| 237 | 237 | if (isset($joint['champs']) and $joint['champs']) { |
| 238 | 238 | foreach ($joint['champs'] as $c => $val) { |
| 239 | - $results[$id]['champs'][$table_liee . '.' . $c] = $val; |
|
| 239 | + $results[$id]['champs'][$table_liee.'.'.$c] = $val; |
|
| 240 | 240 | } |
| 241 | 241 | } |
| 242 | 242 | if (isset($joint['matches']) and $joint['matches']) { |
| 243 | 243 | foreach ($joint['matches'] as $c => $val) { |
| 244 | - $results[$id]['matches'][$table_liee . '.' . $c] = $val; |
|
| 244 | + $results[$id]['matches'][$table_liee.'.'.$c] = $val; |
|
| 245 | 245 | } |
| 246 | 246 | } |
| 247 | 247 | } |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | if (!$max_age) { |
| 107 | 107 | $max_age = _DEFAULT_LOCKTIME; |
| 108 | 108 | } |
| 109 | - $lock_file = _DIR_TMP . _NAME_LOCK . '-' . substr(md5($fichier), 0, 8); |
|
| 109 | + $lock_file = _DIR_TMP._NAME_LOCK.'-'.substr(md5($fichier), 0, 8); |
|
| 110 | 110 | |
| 111 | 111 | |
| 112 | 112 | /* |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | */ |
| 116 | 116 | |
| 117 | 117 | $id = creer_uniqid(); |
| 118 | - $tpath = _DIR_TMP . "slock.$id"; |
|
| 118 | + $tpath = _DIR_TMP."slock.$id"; |
|
| 119 | 119 | $tmpfd = @fopen($tpath, 'w'); // hum, le 'x' necessite php4,3,2 ... |
| 120 | 120 | if (!$tmpfd) { /* open failed */ |
| 121 | 121 | @fclose($tmpfd); |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | * thinks the current time is (our_tmp.st_ctime).. |
| 242 | 242 | */ |
| 243 | 243 | |
| 244 | - $tpath = _DIR_TMP . "stime.$id"; |
|
| 244 | + $tpath = _DIR_TMP."stime.$id"; |
|
| 245 | 245 | $tmpfd = @fopen($tpath, 'w'); |
| 246 | 246 | if ((!$tmpfd) |
| 247 | 247 | or (@fputs($tmpfd, 'zz', 2) != 2) |
@@ -254,14 +254,14 @@ discard block |
||
| 254 | 254 | return false; //(NFSL_SYSF); |
| 255 | 255 | } |
| 256 | 256 | |
| 257 | - @fclose($tmpfd); /* We don't need this once we have our_tmp.st_ctime. */ |
|
| 257 | + @fclose($tmpfd); /* We don't need this once we have our_tmp.st_ctime. */ |
|
| 258 | 258 | spip_unlink($tpath); |
| 259 | 259 | |
| 260 | 260 | /* |
| 261 | 261 | * 2. make fullpath, a buffer for the full pathname of the lock file |
| 262 | 262 | */ |
| 263 | 263 | |
| 264 | - $lock_file = _DIR_TMP . _NAME_LOCK . '-' . substr(md5($fichier), 0, 8); |
|
| 264 | + $lock_file = _DIR_TMP._NAME_LOCK.'-'.substr(md5($fichier), 0, 8); |
|
| 265 | 265 | |
| 266 | 266 | /* |
| 267 | 267 | * 3. If the ctime hasn't been modified, unlink the file and return. If the |
@@ -280,10 +280,10 @@ discard block |
||
| 280 | 280 | if (!$test) { |
| 281 | 281 | return false; |
| 282 | 282 | } //(NFSL_LOST); |
| 283 | - sleep(1 + (random(0, 4))); /* so sleep a bit */ |
|
| 283 | + sleep(1 + (random(0, 4))); /* so sleep a bit */ |
|
| 284 | 284 | } |
| 285 | 285 | |
| 286 | - return true;//(NFSL_OK); /* success */ |
|
| 286 | + return true; //(NFSL_OK); /* success */ |
|
| 287 | 287 | } |
| 288 | 288 | |
| 289 | 289 | /* |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | $role = $roles['roles']['defaut']; |
| 150 | 150 | } |
| 151 | 151 | // where |
| 152 | - $cond = array("$colonne_role=" . sql_quote($role)); |
|
| 152 | + $cond = array("$colonne_role=".sql_quote($role)); |
|
| 153 | 153 | } |
| 154 | 154 | |
| 155 | 155 | return array($role, $colonne_role, $cond); |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | if ($colonne_role) { |
| 185 | 185 | // on ajoute la condition du role aux autres conditions. |
| 186 | 186 | if ($role != '*') { |
| 187 | - $cond[] = "$colonne_role=" . sql_quote($role); |
|
| 187 | + $cond[] = "$colonne_role=".sql_quote($role); |
|
| 188 | 188 | } |
| 189 | 189 | } |
| 190 | 190 | |
@@ -368,7 +368,7 @@ discard block |
||
| 368 | 368 | $all = sql_allfetsel( |
| 369 | 369 | "DISTINCT $colone_role", |
| 370 | 370 | $l, |
| 371 | - 'objet=' . sql_quote(($objet_source == $objet_lien) ? $objet : $objet_source) |
|
| 371 | + 'objet='.sql_quote(($objet_source == $objet_lien) ? $objet : $objet_source) |
|
| 372 | 372 | ); |
| 373 | 373 | $done[$hash] = array_map('reset', $all); |
| 374 | 374 | |