@@ -14,16 +14,16 @@ |
||
| 14 | 14 | } |
| 15 | 15 | |
| 16 | 16 | public function testSousRepertoire(): void { |
| 17 | - $sous_repertoire = 'test' . md5(strval(random_int(0, mt_getrandmax()))); |
|
| 17 | + $sous_repertoire = 'test'.md5(strval(random_int(0, mt_getrandmax()))); |
|
| 18 | 18 | $this->assertSame( |
| 19 | 19 | sous_repertoire(_DIR_VAR, $sous_repertoire), |
| 20 | - _DIR_VAR . $sous_repertoire . '/' |
|
| 20 | + _DIR_VAR.$sous_repertoire.'/' |
|
| 21 | 21 | ); |
| 22 | - $this->assertTrue(file_exists(_DIR_VAR . $sous_repertoire)); |
|
| 23 | - $this->assertTrue(is_dir(_DIR_VAR . $sous_repertoire)); |
|
| 22 | + $this->assertTrue(file_exists(_DIR_VAR.$sous_repertoire)); |
|
| 23 | + $this->assertTrue(is_dir(_DIR_VAR.$sous_repertoire)); |
|
| 24 | 24 | |
| 25 | 25 | // Nettoyage |
| 26 | - @unlink(_DIR_VAR . $sous_repertoire . '/.ok'); |
|
| 27 | - @rmdir(_DIR_VAR . $sous_repertoire); |
|
| 26 | + @unlink(_DIR_VAR.$sous_repertoire.'/.ok'); |
|
| 27 | + @rmdir(_DIR_VAR.$sous_repertoire); |
|
| 28 | 28 | } |
| 29 | 29 | } |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | |
| 29 | 29 | $this->assertIsArray($_chemins); |
| 30 | 30 | $this->assertEquals(count($chemins), count($_chemins) - 1, 'Erreur ajout chemin par la fonction _chemin() : mauvais compte'); |
| 31 | - if (is_dir(_DIR_RACINE . 'squelettes')) { |
|
| 31 | + if (is_dir(_DIR_RACINE.'squelettes')) { |
|
| 32 | 32 | $this->assertEquals('toto/', $_chemins[1], 'Erreur ajout chemin par la fonction _chemin() : avec squelettes'); |
| 33 | 33 | } else { |
| 34 | 34 | $this->assertEquals('toto/', $_chemins[0], 'Erreur ajout chemin par la fonction _chemin() : sans squelettes'); |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | $chemins = creer_chemin(); |
| 41 | 41 | $this->assertIsArray($chemins); |
| 42 | 42 | |
| 43 | - $squelettes = (int) is_dir(_DIR_RACINE . 'squelettes'); |
|
| 43 | + $squelettes = (int) is_dir(_DIR_RACINE.'squelettes'); |
|
| 44 | 44 | $dossier_squelettes = count(explode(':', $GLOBALS['dossier_squelettes'])); |
| 45 | 45 | |
| 46 | 46 | _chemin('toto'); |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | |
| 12 | 12 | // Script pour appeler un squelette apres s'etre authentifie |
| 13 | 13 | |
| 14 | -include_once __DIR__ . '/inc_version.php'; |
|
| 14 | +include_once __DIR__.'/inc_version.php'; |
|
| 15 | 15 | |
| 16 | 16 | include_spip('inc/cookie'); |
| 17 | 17 | |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | // On reexecute pour deboucher sur le include public. |
| 25 | 25 | // autrement on insiste |
| 26 | 26 | if (is_array($var_auth)) { |
| 27 | - $var_auth = '../?' . $_SERVER['QUERY_STRING']; |
|
| 27 | + $var_auth = '../?'.$_SERVER['QUERY_STRING']; |
|
| 28 | 28 | include_spip('inc/session'); |
| 29 | 29 | // on prolonge le cookie |
| 30 | 30 | set_cookie_session(null, time() + 3600 * 24 * 14); |
@@ -34,4 +34,4 @@ discard block |
||
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | // En somme, est prive' ce qui est publiquement nomme'... |
| 37 | -include __DIR__ . '/public.php'; |
|
| 37 | +include __DIR__.'/public.php'; |
|
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | use Symplify\EasyCodingStandard\Config\ECSConfig; |
| 21 | 21 | use Symplify\EasyCodingStandard\ValueObject\Set\SetList; |
| 22 | 22 | |
| 23 | -return static function (ECSConfig $ecsConfig): void { |
|
| 23 | +return static function(ECSConfig $ecsConfig): void { |
|
| 24 | 24 | // A. full sets |
| 25 | 25 | $ecsConfig->sets([SetList::PSR_12, SetList::SYMPLIFY, SetList::COMMON, SetList::CLEAN_CODE]); |
| 26 | 26 | $ecsConfig->rule(NoExtraBlankLinesFixer::class); |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | $ecsConfig->indentation('tab'); |
| 37 | 37 | |
| 38 | 38 | $ecsConfig->paths([ |
| 39 | - __DIR__ . '/ecrire/tests', |
|
| 39 | + __DIR__.'/ecrire/tests', |
|
| 40 | 40 | # __DIR__ . '/index.php', |
| 41 | 41 | # __DIR__ . '/spip.php', |
| 42 | 42 | # __DIR__ . '/ecrire', |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | ]); |
| 45 | 45 | |
| 46 | 46 | $ecsConfig->skip([ |
| 47 | - __DIR__ . '/ecrire/lang', |
|
| 47 | + __DIR__.'/ecrire/lang', |
|
| 48 | 48 | ArrayListItemNewlineFixer::class, |
| 49 | 49 | ArrayOpenerAndCloserNewlineFixer::class, |
| 50 | 50 | AssignmentInConditionSniff::class, |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | } |
| 57 | 57 | if (!file_exists($fichier)) { |
| 58 | 58 | include_spip('inc/filtres'); |
| 59 | - $fichier = supprimer_timestamp($fichier); |
|
| 59 | + $fichier = supprimer_timestamp($fichier); |
|
| 60 | 60 | if (!file_exists($fichier)) { |
| 61 | 61 | return false; |
| 62 | 62 | } |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | function svg_change_balise_svg($svg, $old_balise_svg, $attributs) { |
| 147 | 147 | $new_balise_svg = '<svg'; |
| 148 | 148 | foreach ($attributs as $k => $v) { |
| 149 | - $new_balise_svg .= " $k=\"" . entites_html($v) . '"'; |
|
| 149 | + $new_balise_svg .= " $k=\"".entites_html($v).'"'; |
|
| 150 | 150 | } |
| 151 | 151 | $new_balise_svg .= '>'; |
| 152 | 152 | |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | function svg_insert_shapes($svg, $shapes, $start = true) { |
| 165 | 165 | |
| 166 | 166 | if ($start === false || $start === 'end') { |
| 167 | - $svg = str_replace('</svg>', $shapes . '</svg>', $svg); |
|
| 167 | + $svg = str_replace('</svg>', $shapes.'</svg>', $svg); |
|
| 168 | 168 | } |
| 169 | 169 | else { |
| 170 | 170 | $p = stripos($svg, '<svg'); |
@@ -185,10 +185,10 @@ discard block |
||
| 185 | 185 | */ |
| 186 | 186 | function svg_clip_in_box($svg, $x, $y, $width, $height) { |
| 187 | 187 | $rect = "<rect x=\"$x\" y=\"$y\" width=\"$width\" height=\"$height\" />"; |
| 188 | - $id = 'clip-' . substr(md5($rect . strlen($svg)), 0, 8); |
|
| 188 | + $id = 'clip-'.substr(md5($rect.strlen($svg)), 0, 8); |
|
| 189 | 189 | $clippath = "<clipPath id=\"$id\">$rect</clipPath>"; |
| 190 | 190 | $g = "<g clip-path=\"url(#$id)\">"; |
| 191 | - $svg = svg_insert_shapes($svg, $clippath . $g); |
|
| 191 | + $svg = svg_insert_shapes($svg, $clippath.$g); |
|
| 192 | 192 | return svg_insert_shapes($svg, '</g>', false); |
| 193 | 193 | } |
| 194 | 194 | |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | ) { |
| 207 | 207 | [$balise_svg, $attributs] = $svg_infos; |
| 208 | 208 | if (!isset($attributs['viewBox'])) { |
| 209 | - $attributs['viewBox'] = '0 0 ' . $attributs['width'] . ' ' . $attributs['height']; |
|
| 209 | + $attributs['viewBox'] = '0 0 '.$attributs['width'].' '.$attributs['height']; |
|
| 210 | 210 | } |
| 211 | 211 | $attributs['width'] = (string) $new_width; |
| 212 | 212 | $attributs['height'] = (string) $new_height; |
@@ -229,7 +229,7 @@ discard block |
||
| 229 | 229 | else { |
| 230 | 230 | $couleur = couleur_html_to_hex($couleur); |
| 231 | 231 | } |
| 232 | - return '#' . ltrim($couleur, '#'); |
|
| 232 | + return '#'.ltrim($couleur, '#'); |
|
| 233 | 233 | } |
| 234 | 234 | |
| 235 | 235 | /** |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | function svg_couleur_to_rgb($couleur) { |
| 241 | 241 | if (str_starts_with($couleur, 'rgb(')) { |
| 242 | 242 | $c = explode(',', substr($couleur, 4)); |
| 243 | - return ['red' => (int) $c[0],'green' => (int) $c[1],'blue' => (int) $c[2]]; |
|
| 243 | + return ['red' => (int) $c[0], 'green' => (int) $c[1], 'blue' => (int) $c[2]]; |
|
| 244 | 244 | } |
| 245 | 245 | return _couleur_hex_to_dec($couleur); |
| 246 | 246 | } |
@@ -454,7 +454,7 @@ discard block |
||
| 454 | 454 | $background_color = svg_couleur_to_hexa($background_color); |
| 455 | 455 | if (isset($attributs['viewBox'])) { |
| 456 | 456 | $viewBox = explode(' ', $attributs['viewBox']); |
| 457 | - $rect = '<rect x="' . $viewBox[0] . '" y="' . $viewBox[1] . '" width="' . $viewBox[2] . '" height="' . $viewBox[3] . "\" fill=\"$background_color\"/>"; |
|
| 457 | + $rect = '<rect x="'.$viewBox[0].'" y="'.$viewBox[1].'" width="'.$viewBox[2].'" height="'.$viewBox[3]."\" fill=\"$background_color\"/>"; |
|
| 458 | 458 | } |
| 459 | 459 | else { |
| 460 | 460 | $rect = "<rect width=\"100%\" height=\"100%\" fill=\"$background_color\"/>"; |
@@ -484,7 +484,7 @@ discard block |
||
| 484 | 484 | $background_color = svg_couleur_to_hexa($background_color); |
| 485 | 485 | if (isset($attributs['viewBox'])) { |
| 486 | 486 | $viewBox = explode(' ', $attributs['viewBox']); |
| 487 | - $rect = '<rect x="' . $viewBox[0] . '" y="' . $viewBox[1] . '" width="' . $viewBox[2] . '" height="' . $viewBox[3] . "\" fill=\"$background_color\" opacity=\"$opacity\"/>"; |
|
| 487 | + $rect = '<rect x="'.$viewBox[0].'" y="'.$viewBox[1].'" width="'.$viewBox[2].'" height="'.$viewBox[3]."\" fill=\"$background_color\" opacity=\"$opacity\"/>"; |
|
| 488 | 488 | } |
| 489 | 489 | else { |
| 490 | 490 | $rect = "<rect width=\"100%\" height=\"100%\" fill=\"$background_color\"/>"; |
@@ -513,7 +513,7 @@ discard block |
||
| 513 | 513 | $g = '<g'; |
| 514 | 514 | foreach ($attributs as $k => $v) { |
| 515 | 515 | if (strlen($v)) { |
| 516 | - $g .= " $k=\"" . attribut_html($v) . '"'; |
|
| 516 | + $g .= " $k=\"".attribut_html($v).'"'; |
|
| 517 | 517 | } |
| 518 | 518 | } |
| 519 | 519 | if (strlen($g) > 2) { |
@@ -541,10 +541,10 @@ discard block |
||
| 541 | 541 | ) { |
| 542 | 542 | if ($filter_def) { |
| 543 | 543 | [$balise_svg, ] = $svg_infos; |
| 544 | - $filter_id = 'filter-' . substr(md5($filter_def . strlen($svg)), 0, 8); |
|
| 544 | + $filter_id = 'filter-'.substr(md5($filter_def.strlen($svg)), 0, 8); |
|
| 545 | 545 | $filter = "<defs><filter id=\"$filter_id\">$filter_def</filter></defs>"; |
| 546 | 546 | $g = "<g filter=\"url(#$filter_id)\">"; |
| 547 | - $svg = svg_insert_shapes($svg, $filter . $g); |
|
| 547 | + $svg = svg_insert_shapes($svg, $filter.$g); |
|
| 548 | 548 | $svg = svg_insert_shapes($svg, '</g>', false); |
| 549 | 549 | } |
| 550 | 550 | return $svg; |
@@ -23,8 +23,8 @@ discard block |
||
| 23 | 23 | ['id_article', 'lang'], |
| 24 | 24 | 'spip_articles', |
| 25 | 25 | [ |
| 26 | - 'statut = ' . sql_quote('publie'), |
|
| 27 | - 'lang != ' . sql_quote('') |
|
| 26 | + 'statut = '.sql_quote('publie'), |
|
| 27 | + 'lang != '.sql_quote('') |
|
| 28 | 28 | ], |
| 29 | 29 | limit: '0,1', |
| 30 | 30 | ); |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | // on se met dans une autre langue que celle de l'article |
| 36 | 36 | lang_select($lang === 'eo' ? 'fa' : 'eo'); |
| 37 | 37 | |
| 38 | - $case = '[->' . $id_article . ']'; |
|
| 38 | + $case = '[->'.$id_article.']'; |
|
| 39 | 39 | $propre = propre($case); |
| 40 | 40 | $this->assertEquals( |
| 41 | 41 | $lang, |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | #[DataProvider('providerLiensClassCss')] |
| 48 | 48 | public function testLiensClassCss(string $table, ?string $short, bool $in) { |
| 49 | - $id = sql_getfetsel(id_table_objet($table), $table, "statut='publie'", limit: '0,1'); |
|
| 49 | + $id = sql_getfetsel(id_table_objet($table), $table, "statut='publie'", limit : '0,1'); |
|
| 50 | 50 | $type = objet_type($table); |
| 51 | 51 | if (!$id) { |
| 52 | 52 | $this->markTestSkipped(sprintf('Necessite un·e %s publié', $type)); |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | $GLOBALS['contexte'] = calculer_contexte(); |
| 35 | 35 | $page = ['contexte_implicite' => calculer_contexte_implicite()]; |
| 36 | - $page['contexte_implicite']['cache'] = $fond . preg_replace( |
|
| 36 | + $page['contexte_implicite']['cache'] = $fond.preg_replace( |
|
| 37 | 37 | ',\.[a-zA-Z0-9]*$,', |
| 38 | 38 | '', |
| 39 | 39 | preg_replace('/[?].*$/', '', $GLOBALS['REQUEST_URI']) |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | if ($page === '') { |
| 134 | 134 | $erreur = _T( |
| 135 | 135 | 'info_erreur_squelette2', |
| 136 | - ['fichier' => spip_htmlspecialchars($fond) . '.' . _EXTENSION_SQUELETTES] |
|
| 136 | + ['fichier' => spip_htmlspecialchars($fond).'.'._EXTENSION_SQUELETTES] |
|
| 137 | 137 | ); |
| 138 | 138 | erreur_squelette($erreur); |
| 139 | 139 | // eviter des erreurs strictes ensuite sur $page['cle'] en PHP >= 5.4 |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | if ( |
| 175 | 175 | $lastmodified && !isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) && !isset($page['entetes']['Last-Modified']) |
| 176 | 176 | ) { |
| 177 | - $page['entetes']['Last-Modified'] = gmdate('D, d M Y H:i:s', $lastmodified) . ' GMT'; |
|
| 177 | + $page['entetes']['Last-Modified'] = gmdate('D, d M Y H:i:s', $lastmodified).' GMT'; |
|
| 178 | 178 | } |
| 179 | 179 | |
| 180 | 180 | // fermer la connexion apres les headers si requete HEAD |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | if (!defined('_CONTEXTE_IGNORE_LISTE_VARIABLES')) { |
| 207 | 207 | nettoyer_uri_var(''); |
| 208 | 208 | } |
| 209 | - $preg_ignore_variables = '/(' . implode('|',_CONTEXTE_IGNORE_LISTE_VARIABLES) . ')/'; |
|
| 209 | + $preg_ignore_variables = '/('.implode('|', _CONTEXTE_IGNORE_LISTE_VARIABLES).')/'; |
|
| 210 | 210 | } |
| 211 | 211 | |
| 212 | 212 | $contexte = []; |
@@ -247,7 +247,7 @@ discard block |
||
| 247 | 247 | 'spip_version_code' => $GLOBALS['spip_version_code'], |
| 248 | 248 | ]; |
| 249 | 249 | if (isset($_SERVER['HTTP_X_FORWARDED_HOST'])) { |
| 250 | - $contexte_implicite['host'] .= '|' . $_SERVER['HTTP_X_FORWARDED_HOST']; |
|
| 250 | + $contexte_implicite['host'] .= '|'.$_SERVER['HTTP_X_FORWARDED_HOST']; |
|
| 251 | 251 | } |
| 252 | 252 | |
| 253 | 253 | return $contexte_implicite; |
@@ -582,7 +582,7 @@ discard block |
||
| 582 | 582 | } |
| 583 | 583 | } |
| 584 | 584 | if (is_null($id)) { |
| 585 | - $msg = "modeles/$modele : " . _T('zbug_parametres_inclus_incorrects', ['param' => "id/$primary"]); |
|
| 585 | + $msg = "modeles/$modele : "._T('zbug_parametres_inclus_incorrects', ['param' => "id/$primary"]); |
|
| 586 | 586 | erreur_squelette($msg); |
| 587 | 587 | // on passe id=0 au routeur pour tomber sur le modele par defaut et eviter une seconde erreur sur un modele inexistant |
| 588 | 588 | $id = 0; |
@@ -625,7 +625,7 @@ discard block |
||
| 625 | 625 | } |
| 626 | 626 | |
| 627 | 627 | if (preg_match(',^[a-z0-9_]+$,', $soustype)) { |
| 628 | - if (!trouve_modele($fond = ($type . '_' . $soustype))) { |
|
| 628 | + if (!trouve_modele($fond = ($type.'_'.$soustype))) { |
|
| 629 | 629 | $fond = ''; |
| 630 | 630 | $class = $soustype; |
| 631 | 631 | } |
@@ -640,7 +640,7 @@ discard block |
||
| 640 | 640 | $compteur--; |
| 641 | 641 | return false; |
| 642 | 642 | } |
| 643 | - $fond = 'modeles/' . $fond; |
|
| 643 | + $fond = 'modeles/'.$fond; |
|
| 644 | 644 | // Creer le contexte |
| 645 | 645 | $contexte = $env; |
| 646 | 646 | // securiser le contexte des modèles : tout ce qui arrive de _request() doit être sanitizé |
@@ -650,7 +650,7 @@ discard block |
||
| 650 | 650 | if (is_scalar($v)) { |
| 651 | 651 | $v = spip_securise_valeur_env_modele($v); |
| 652 | 652 | } else { |
| 653 | - array_walk_recursive($v, function (&$value, $index) { |
|
| 653 | + array_walk_recursive($v, function(&$value, $index) { |
|
| 654 | 654 | $value = spip_securise_valeur_env_modele($value); |
| 655 | 655 | }); |
| 656 | 656 | } |
@@ -695,7 +695,7 @@ discard block |
||
| 695 | 695 | // sinon, s'il y a un lien, on l'ajoute classiquement |
| 696 | 696 | if ( |
| 697 | 697 | strstr( |
| 698 | - ' ' . ($classes = extraire_attribut($retour, 'class')) . ' ', |
|
| 698 | + ' '.($classes = extraire_attribut($retour, 'class')).' ', |
|
| 699 | 699 | 'spip_lien_ok' |
| 700 | 700 | ) |
| 701 | 701 | ) { |
@@ -706,7 +706,7 @@ discard block |
||
| 706 | 706 | ); |
| 707 | 707 | } else { |
| 708 | 708 | if ($lien) { |
| 709 | - $retour = '<a href="' . $lien['href'] . '" class="' . $lien['class'] . '">' . $retour . '</a>'; |
|
| 709 | + $retour = '<a href="'.$lien['href'].'" class="'.$lien['class'].'">'.$retour.'</a>'; |
|
| 710 | 710 | } |
| 711 | 711 | } |
| 712 | 712 | |
@@ -731,7 +731,7 @@ discard block |
||
| 731 | 731 | if (is_numeric($valeur) || is_bool($valeur) || is_null($valeur)) { |
| 732 | 732 | return $valeur; |
| 733 | 733 | } |
| 734 | - $valeur = (string)$valeur; |
|
| 734 | + $valeur = (string) $valeur; |
|
| 735 | 735 | if (str_starts_with($valeur, '@') && is_numeric(substr($valeur, 1))) { |
| 736 | 736 | return $valeur; |
| 737 | 737 | } |
@@ -751,7 +751,7 @@ discard block |
||
| 751 | 751 | return $page; |
| 752 | 752 | } |
| 753 | 753 | // eval $page et affecte $res |
| 754 | - include _ROOT_RESTREINT . 'public/evaluer_page.php'; |
|
| 754 | + include _ROOT_RESTREINT.'public/evaluer_page.php'; |
|
| 755 | 755 | |
| 756 | 756 | // Lever un drapeau (global) si le fond utilise #SESSION |
| 757 | 757 | // a destination de public/parametrer |
@@ -819,16 +819,16 @@ discard block |
||
| 819 | 819 | if (($pos = strpos($head, '<head>')) !== false) { |
| 820 | 820 | $head = substr_replace($head, $base, $pos + 6, 0); |
| 821 | 821 | } elseif (preg_match(',<head[^>]*>,i', $head, $r)) { |
| 822 | - $head = str_replace($r[0], $r[0] . $base, $head); |
|
| 822 | + $head = str_replace($r[0], $r[0].$base, $head); |
|
| 823 | 823 | } |
| 824 | - $texte = $head . substr($texte, $poshead); |
|
| 824 | + $texte = $head.substr($texte, $poshead); |
|
| 825 | 825 | } |
| 826 | 826 | if ($href_base) { |
| 827 | 827 | // gerer les ancres |
| 828 | 828 | $base = $_SERVER['REQUEST_URI']; |
| 829 | 829 | // pas de guillemets ni < dans l'URL qu'on insere dans le HTML |
| 830 | 830 | if (str_contains($base, "'") || str_contains($base, '"') || str_contains($base, '<')) { |
| 831 | - $base = str_replace(["'",'"','<'], ['%27','%22','%3C'], $base); |
|
| 831 | + $base = str_replace(["'", '"', '<'], ['%27', '%22', '%3C'], $base); |
|
| 832 | 832 | } |
| 833 | 833 | if (str_contains($texte, "href='#")) { |
| 834 | 834 | $texte = str_replace("href='#", "href='$base#", $texte); |
@@ -164,7 +164,7 @@ |
||
| 164 | 164 | # la matrice standard (fichiers definissant les fonctions a inclure) |
| 165 | 165 | $spip_matrice = []; |
| 166 | 166 | # les plugins a activer |
| 167 | -$plugins = []; // voir le contenu du repertoire /plugins/ |
|
| 167 | +$plugins = []; // voir le contenu du repertoire /plugins/ |
|
| 168 | 168 | # les surcharges de include_spip() |
| 169 | 169 | $surcharges = []; // format 'inc_truc' => '/plugins/chose/inc_truc2.php' |
| 170 | 170 | |
@@ -6,19 +6,19 @@ |
||
| 6 | 6 | * Ces fichiers ne peuvent pas être surchargés dans des plugins |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | -include_once __DIR__ . '/inc/auth.php'; |
|
| 10 | -include_once __DIR__ . '/inc/form.php'; |
|
| 11 | -include_once __DIR__ . '/inc/initialization.php'; |
|
| 12 | -include_once __DIR__ . '/inc/i18n.php'; |
|
| 13 | -include_once __DIR__ . '/inc/jobs.php'; |
|
| 14 | -include_once __DIR__ . '/inc/loading.php'; |
|
| 15 | -include_once __DIR__ . '/inc/logging.php'; |
|
| 16 | -include_once __DIR__ . '/inc/path.php'; |
|
| 17 | -include_once __DIR__ . '/inc/pipeline.php'; |
|
| 18 | -include_once __DIR__ . '/inc/request.php'; |
|
| 19 | -include_once __DIR__ . '/inc/sanitize.php'; |
|
| 20 | -include_once __DIR__ . '/inc/templating.php'; |
|
| 21 | -include_once __DIR__ . '/inc/utils.php'; |
|
| 22 | -include_once __DIR__ . '/inc/urls.php'; |
|
| 23 | -require_once dirname(__DIR__) . '/base/connect_sql.php'; |
|
| 9 | +include_once __DIR__.'/inc/auth.php'; |
|
| 10 | +include_once __DIR__.'/inc/form.php'; |
|
| 11 | +include_once __DIR__.'/inc/initialization.php'; |
|
| 12 | +include_once __DIR__.'/inc/i18n.php'; |
|
| 13 | +include_once __DIR__.'/inc/jobs.php'; |
|
| 14 | +include_once __DIR__.'/inc/loading.php'; |
|
| 15 | +include_once __DIR__.'/inc/logging.php'; |
|
| 16 | +include_once __DIR__.'/inc/path.php'; |
|
| 17 | +include_once __DIR__.'/inc/pipeline.php'; |
|
| 18 | +include_once __DIR__.'/inc/request.php'; |
|
| 19 | +include_once __DIR__.'/inc/sanitize.php'; |
|
| 20 | +include_once __DIR__.'/inc/templating.php'; |
|
| 21 | +include_once __DIR__.'/inc/utils.php'; |
|
| 22 | +include_once __DIR__.'/inc/urls.php'; |
|
| 23 | +require_once dirname(__DIR__).'/base/connect_sql.php'; |
|
| 24 | 24 | |