Changeset 3429 in spip-zone


Ignore:
Timestamp:
May 31, 2006, 9:57:10 AM (14 years ago)
Author:
cedric@…
Message:

44 fois le meme bug c'est lourd... mais bon.
Correctif pour que ca marche sous PHP>=5.05 sans necessiter d'upgrade SPIP.
En attendant une fonction specifique plugin_http_path() dans le core.

Location:
_plugins_
Files:
1 deleted
43 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/Acces_restreint/acces_restreint_pipelines.php

    r2181 r3429  
    11<?php
    2 
    3 define('_DIR_PLUGIN_ACCES_RESTREINT',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))))));
     2$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
     3define('_DIR_PLUGIN_ACCES_RESTREINT',(_DIR_PLUGINS.end()));
    44
    55        /* public static */
  • _plugins_/_amelioration_admin_/PhpMyVisites/exec/phpmv.php

    r2897 r3429  
    2020 *
    2121 */
    22 define('_DIR_PLUGIN_PHPMV',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(dirname(__FILE__))))))));
     22
     23$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(dirname(__FILE__)))));
     24define('_DIR_PLUGIN_PHPMV',(_DIR_PLUGINS.end($p)));
    2325
    2426function verif_install(){
  • _plugins_/_amelioration_admin_/PhpMyVisites/phpmv_boutons.php

    r2818 r3429  
    1111 */
    1212
    13 define('_DIR_PLUGIN_PHPMV',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))))));
     13$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
     14define('_DIR_PLUGIN_PHPMV',(_DIR_PLUGINS.end($p)));
    1415
    1516        function phpmv_ajouterBoutons($boutons_admin) {
  • _plugins_/_amelioration_admin_/PhpMyVisites/phpmv_fonctions.php

    r2970 r3429  
    2424                ecrire_meta('_PHPMV_DIR_CONFIG',realpath(_DIR_SESSIONS . "phpmvconfig"));
    2525                ecrire_meta('_PHPMV_DIR_DATA',realpath(_DIR_SESSIONS . "phpmvdatas"));
    26                 ecrire_meta('_DIR_PLUGIN_PHPMV',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))))));
     26                $p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
     27                ecrire_meta('_DIR_PLUGIN_PHPMV',(_DIR_PLUGINS.end($p)));
    2728                ecrire_metas();
    2829
  • _plugins_/_amelioration_admin_/Widget_calendar/inc/calendar.php

    r3405 r3429  
    11<?php
    22
    3 define('_DIR_PLUGIN_WIDGET_CALENDAR',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)."/.."))))));
     3$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(dirname(__FILE__)))));
     4define('_DIR_PLUGIN_WIDGET_CALENDAR',(_DIR_PLUGINS.end($p)));
    45
    56global $WCalendar_independants,$WCalendar_lies,$WCalendar_statiques;
  • _plugins_/_amelioration_admin_/Widget_calendar/inc/calendar_init.php

    r3405 r3429  
    11<?php
    22
    3 define('_DIR_PLUGIN_WIDGET_CALENDAR',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)."/.."))))));
     3$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(dirname(__FILE__)))));
     4define('_DIR_PLUGIN_WIDGET_CALENDAR',(_DIR_PLUGINS.end($p)));
    45
    56function WCalendar_point_entree($suffixe){
  • _plugins_/_amelioration_admin_/authentification/auth_bd_externe/auth_bd_externe_pipelines.php

    r2342 r3429  
    11<?
    2 define('_DIR_PLUGIN_AUTH_BD_EXTERNE',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))))));
     2$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
     3define('_DIR_PLUGIN_AUTH_BD_EXTERNE',(_DIR_PLUGINS.end($p)));
    34
    45        /* public static */
  • _plugins_/_amelioration_admin_/console/console_boutons.php

    r3372 r3429  
    55 * utilisee comme espace de nommage
    66 */
    7 define('_DIR_PLUGIN_CONSOLE',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))))));
     7$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
     8define('_DIR_PLUGIN_CONSOLE',(_DIR_PLUGINS.end($p)));
    89 
    910
  • _plugins_/_amelioration_admin_/corbeille/inc_corbeille.php

    r3193 r3429  
    55 * utilisee comme espace de nommage
    66 */
    7 define('_DIR_PLUGIN_CORBEILLE',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))))));
     7$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
     8define('_DIR_PLUGIN_CORBEILLE',(_DIR_PLUGINS.end($p)));
    89 
    910
  • _plugins_/_amelioration_admin_/en_travaux/en_travaux.php

    r2219 r3429  
    1111 */
    1212
    13 define('_DIR_PLUGIN_EN_TRAVAUX',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))))));
     13$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
     14define('_DIR_PLUGIN_EN_TRAVAUX',(_DIR_PLUGINS.end($p)));
     15
    1416function EnTravaux_ajouterBoutons($boutons_admin) {
    1517        // remplacer l'icone si elle est la
  • _plugins_/_amelioration_admin_/gestion_documents/exec/portfolio.php

    r2832 r3429  
    1111 */
    1212
    13 define('_DIR_PLUGIN_GESTION_DOCUMENTS',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__).'/../'))))));
     13$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
     14define('_DIR_PLUGIN_GESTION_DOCUMENTS',(_DIR_PLUGINS.end($p)));
    1415
    1516function generer_query_string($conteneur,$id_type,$nb_aff,$filtre){
  • _plugins_/_amelioration_admin_/gestion_documents/gestion_documents.php

    r2393 r3429  
    1111 */
    1212
    13 define('_DIR_PLUGIN_GESTION_DOCUMENTS',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))))));
     13$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
     14define('_DIR_PLUGIN_GESTION_DOCUMENTS',(_DIR_PLUGINS.end($p)));
    1415
    1516
  • _plugins_/_amelioration_admin_/mots_partout/exec/config_mots_partout.php

    r2304 r3429  
    11<?php
    2 define('_DIR_PLUGIN_MOTS_PARTOUT',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__).'/..'))))));
     2$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(dirname(__FILE__)))));
     3define('_DIR_PLUGIN_MOTS_PARTOUT',(_DIR_PLUGINS.end($p)));
    34
    45function exec_config_mots_partout() {
  • _plugins_/_amelioration_admin_/mots_partout/exec/mots_partout.php

    r2304 r3429  
    2121
    2222
    23 define('_DIR_PLUGIN_MOTS_PARTOUT',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__).'/..'))))));
     23$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(dirname(__FILE__)))));
     24define('_DIR_PLUGIN_MOTS_PARTOUT',(_DIR_PLUGINS.end($p)));
    2425
    2526/***********************************************************************/
  • _plugins_/_amelioration_admin_/mots_partout/mots_partout.php

    r2303 r3429  
    1111 */
    1212
    13 define('_DIR_PLUGIN_MOTS_PARTOUT',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))))));
     13$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
     14define('_DIR_PLUGIN_MOTS_PARTOUT',(_DIR_PLUGINS.end($p)));
    1415
    1516function MotsPartout_ajouterBoutons($boutons_admin) {
  • _plugins_/_amelioration_admin_/recherche_etendue/recherche_etendue_options.php

    r3235 r3429  
    1515 *
    1616 */
    17 define('_DIR_PLUGIN_ADVANCED_SEARCH',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))))));
     17$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
     18define('_DIR_PLUGIN_ADVANCED_SEARCH',(_DIR_PLUGINS.end($p)));
    1819
    1920if (_request('recherche')&&_DIR_RACINE=="")
  • _plugins_/_amelioration_admin_/sauver_config/inc_sauverconfig.php

    r2923 r3429  
    11<?php
    22
    3 define('_DIR_PLUGIN_SAUVERCONFIG',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))))));
     3$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
     4define('_DIR_PLUGIN_SAUVERCONFIG',(_DIR_PLUGINS.end($p)));
    45
    56// ajout bouton ds interface admin
  • _plugins_/_amelioration_admin_/skel_editor/exec/skeleditor.php

    r2922 r3429  
    22//  display all skel files and folders
    33
    4 define('_DIR_PLUGIN_SKELEDITOR',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(dirname(__FILE__))))))));
     4$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(dirname(__FILE__)))));
     5define('_DIR_PLUGIN_SKELEDITOR',(_DIR_PLUGINS.end($p)));
    56
    67
  • _plugins_/_amelioration_admin_/skel_editor/inc_skeleditor.php

    r3277 r3429  
    11<?php
    22
    3 define('_DIR_PLUGIN_SKELEDITOR',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))))));
     3$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(dirname(__FILE__)))));
     4define('_DIR_PLUGIN_SKELEDITOR',(_DIR_PLUGINS.end($p)));
    45
    56// ajout bouton ds interface admin
  • _plugins_/_amelioration_admin_/statistiques_publication/pipelines.php

    r2308 r3429  
    11<?php
    22
    3 define('_DIR_PLUGIN_STATS_PUB',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))))));
     3$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
     4define('_DIR_PLUGIN_STATS_PUB',(_DIR_PLUGINS.end($p)));
    45
    56function stats_pub_ajouterBoutons($boutons_admin) {
  • _plugins_/_amelioration_admin_/super_dump/super_dump.php

    r2145 r3429  
    1010 *
    1111 */
    12 define('_DIR_PLUGIN_SUPER_DUMP',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))))));
     12$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
     13define('_DIR_PLUGIN_SUPER_DUMP',(_DIR_PLUGINS.end($p)));
    1314
    1415
  • _plugins_/_amelioration_admin_/tri_auteurs/TriAuteurs.php

    r3152 r3429  
    1818//    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1919
    20 define('_DIR_PLUGIN_TRI_AUTEURS',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))))));
     20$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
     21define('_DIR_PLUGIN_TRI_AUTEURS',(_DIR_PLUGINS.end($p)));
    2122
    2223function TriAuteurs_affiche_droite($arguments) { 
  • _plugins_/_amelioration_admin_/tri_mots/TriMots.php

    r3152 r3429  
    1919
    2020
    21 define('_DIR_PLUGIN_TRI_MOTS',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))))));
     21$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
     22define('_DIR_PLUGIN_TRI_MOTS',(_DIR_PLUGINS.end($p)));
    2223
    2324function TriMots_affiche_droite($arguments) {
  • _plugins_/_amelioration_admin_/tri_mots/exec/tri_mots.php

    r2265 r3429  
    2121
    2222
    23 define('_DIR_PLUGIN_TRI_MOTS',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__).'/..'))))));
     23$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(dirname(__FILE__)))));
     24define('_DIR_PLUGIN_TRI_MOTS',(_DIR_PLUGINS.end($p)));
    2425
    2526/***********************************************************************/
  • _plugins_/_amelioration_admin_/types_documents/exec/config_types_documents.php

    r3151 r3429  
    1919
    2020
    21 define('_DIR_PLUGIN_TYPES_DOCUMENTS',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__).'/..'))))));
     21$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(dirname(__FILE__)))));
     22define('_DIR_PLUGIN_TYPES_DOCUMENTS',(_DIR_PLUGINS.end($p)));
    2223
    2324function exec_config_types_documents() {
  • _plugins_/_choix_squelettes_/squelettes_par_mots_cle/SquelettesMots.php

    r2183 r3429  
    1818
    1919
    20 define('_DIR_PLUGIN_CHERCHER_SQUELETTES',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))))));
     20$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
     21define('_DIR_PLUGIN_CHERCHER_SQUELETTES',(_DIR_PLUGINS.end($p)));
    2122
    2223function SquelettesMots_ajouter_onglets($flux) {
  • _plugins_/_choix_squelettes_/squelettes_par_mots_cle/exec/config_chercher_squelettes_mots.php

    r2642 r3429  
    1919
    2020
    21 define('_DIR_PLUGIN_CHERCHER_SQUELETTES',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__).'/..'))))));
     21$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(dirname(__FILE__)))));
     22define('_DIR_PLUGIN_CHERCHER_SQUELETTES',(_DIR_PLUGINS.end($p)));
    2223
    2324function exec_config_chercher_squelettes_mots() {
  • _plugins_/_contenu_editorial_/Agenda/agenda_mes_options.php

    r3363 r3429  
    11<?php
    2 define('_DIR_PLUGIN_AGENDA_EVENEMENTS',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))))));
     2$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
     3define('_DIR_PLUGIN_AGENDA_EVENEMENTS',(_DIR_PLUGINS.end($p)));
    34include_spip('base/agenda_evenements');
    45
  • _plugins_/_contenu_editorial_/CSVImport/csvimport_boutons.php

    r2839 r3429  
    1111 */
    1212
    13         define('_DIR_PLUGIN_CSVIMPORT',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))))));
     13        $p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
     14        define('_DIR_PLUGIN_CSVIMPORT',(_DIR_PLUGINS.end($p)));
    1415
    1516        function csvimport_ajouterBoutons($boutons_admin) {
  • _plugins_/_contenu_editorial_/CSVImport/inc/csvimport.php

    r2892 r3429  
    1111 */
    1212
    13 define('_DIR_PLUGIN_CSVIMPORT',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(dirname(__FILE__))))))));
     13$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(dirname(__FILE__)))));
     14define('_DIR_PLUGIN_CSVIMPORT',(_DIR_PLUGINS.end($p)));
    1415
    1516include_spip("base/db_mysql");
  • _plugins_/_contenu_editorial_/Forms/forms_boutons.php

    r2839 r3429  
    1111 */
    1212
    13 define('_DIR_PLUGIN_FORMS',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))))));
     13$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
     14define('_DIR_PLUGIN_FORMS',(_DIR_PLUGINS.end($p)));
    1415
    1516        function Forms_ajouterBoutons($boutons_admin) {
  • _plugins_/_contenu_editorial_/Forms/forms_options.php

    r2839 r3429  
    1212 */
    1313
    14 define('_DIR_PLUGIN_FORMS',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))))));
     14$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
     15define('_DIR_PLUGIN_FORMS',(_DIR_PLUGINS.end($p)));
    1516include_spip('base/forms');
    1617
  • _plugins_/_contenu_editorial_/Forms/inc/forms.php

    r2839 r3429  
    1111 */
    1212
    13 define('_DIR_PLUGIN_FORMS',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))))));
    1413
    1514        function Forms_install(){
  • _plugins_/_contenu_editorial_/PIM_agenda/pim_agenda_mes_options.php

    r3292 r3429  
    11<?php
    2 define('_DIR_PLUGIN_PIM_AGENDA',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))))));
     2$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
     3define('_DIR_PLUGIN_PIM_AGENDA',(_DIR_PLUGINS.end($p)));
    34include_spip('base/pim_agenda');
    45
  • _plugins_/_email_/spip-lettres/lettres.php

    r3425 r3429  
    11<?php
    22
    3         define('_DIR_PLUGIN_LETTRE_INFORMATION', (_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))))));
    4         define('_NOM_PLUGIN_LETTRE_INFORMATION', (end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))))));
     3        $p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
     4        define('_DIR_PLUGIN_LETTRE_INFORMATION', (_DIR_PLUGINS.end($p)));
     5        define('_NOM_PLUGIN_LETTRE_INFORMATION', (end($p)));
    56
    67        include_spip('inc/lettres_fonctions');
  • _plugins_/_email_/spip_listes/spiplistes_boutons.php

    r3388 r3429  
    55 * utilisee comme espace de nommage
    66 */
    7 define('_DIR_PLUGIN_SPIPLISTES',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))))));
     7$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
     8define('_DIR_PLUGIN_SPIPLISTES',(_DIR_PLUGINS.end($p)));
    89 
    910
  • _plugins_/_typo_/barre_typo_enrichie/inc/barre.php

    r3220 r3429  
    1212
    1313if (!defined("_ECRIRE_INC_VERSION")) return;
    14 define('_DIR_PLUGIN_BARRE_TYPO',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__).'/..'))))));
     14$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(dirname(__FILE__)))));
     15define('_DIR_PLUGIN_BARRE_TYPO',(_DIR_PLUGINS.end($p)));
    1516
    1617// construit un bouton (ancre) de raccourci avec icone et aide
  • _plugins_/_typo_/barre_typo_enrichie/typo_enrichie.php

    r3380 r3429  
    216216
    217217function BarreTypoEnrichie_header_prive($texte) {
    218         $texte.= '<link rel="stylesheet" type="text/css" href="' . (_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))))) . '/css/bartypenr.css" />' . "\n";
     218        $p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
     219        $texte.= '<link rel="stylesheet" type="text/css" href="' . (_DIR_PLUGINS.end($p)) . '/css/bartypenr.css" />' . "\n";
    219220        return $texte;
    220221}
  • _plugins_/_typo_/coloration_code/coloration_code.php

    r2696 r3429  
    1919
    2020
    21 define('_DIR_PLUGIN_COLORATION_CODE',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))))));
     21$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
     22define('_DIR_PLUGIN_COLORATION_CODE',(_DIR_PLUGINS.end($p)));
    2223
    2324function coloration_code_color($code, $language='php') {
  • _plugins_/_typo_/frimoussesIV/plug_smileys.php

    r2257 r3429  
    11<?php
    22
    3 define('_DIR_PLUGIN_FRIMOUSSESIV',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))))));
     3$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
     4define('_DIR_PLUGIN_FRIMOUSSESIV',(_DIR_PLUGINS.end($p)));
    45
    56function smileys_liste_smileys() {
  • _plugins_/_ze_laboratoire_/Dojo/dojo.php

    r2564 r3429  
    11<?php
    2 define('_DIR_PLUGIN_DOJO',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))))));
     2$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
     3define('_DIR_PLUGIN_DOJO',(_DIR_PLUGINS.end($p)));
    34
    45function Dojo_header_prive($flux) {
  • _plugins_/_ze_laboratoire_/mots_arbo/mots_arbo_admin.php

    r2766 r3429  
    11<?php
    22
    3 define('_DIR_PLUGIN_ACCES_RESTREINT',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))))));
     3$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
     4define('_DIR_PLUGIN_MOTS_ARBO',(_DIR_PLUGINS.end($p)));
    45
    56function motsArbo_ajouterBoutons($boutons_admin) {
  • _plugins_/exif/exec/update_date_exif.php

    r2355 r3429  
    2121//    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    2222
    23 
    24 //define('_DIR_PLUGIN_EXIF',(_DIR_PLUGINS.end(explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))))));
     23//$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
     24//define('_DIR_PLUGIN_EXIF',(_DIR_PLUGINS.end($p)));
    2525
    2626/***********************************************************************/
Note: See TracChangeset for help on using the changeset viewer.