ecrire/inc/distant.php 1 location
|
@@ 62-66 (lines=5) @@
|
| 59 |
|
|
| 60 |
|
if (is_null($local)) |
| 61 |
|
$local = fichier_copie_locale($source); |
| 62 |
|
else { |
| 63 |
|
if (_DIR_RACINE AND strncmp(_DIR_RACINE, $local, strlen(_DIR_RACINE))==0) { |
| 64 |
|
$local = substr($local, strlen(_DIR_RACINE)); |
| 65 |
|
} |
| 66 |
|
} |
| 67 |
|
|
| 68 |
|
// si $local = '' c'est un fichier refuse par fichier_copie_locale(), |
| 69 |
|
// par exemple un fichier qui ne figure pas dans nos documents ; |
ecrire/inc/log.php 1 location
|
@@ 56-57 (lines=2) @@
|
| 53 |
|
$debug = debug_backtrace(); |
| 54 |
|
$l = $debug[1]['line']; |
| 55 |
|
$fi = $debug[1]['file']; |
| 56 |
|
if (strncmp($fi,_ROOT_RACINE,strlen(_ROOT_RACINE))==0) |
| 57 |
|
$fi = substr($fi,strlen(_ROOT_RACINE)); |
| 58 |
|
$fu = isset($debug[2]['function']) ? $debug[2]['function'] : ''; |
| 59 |
|
$debugverb = "$fi:L$l:$fu"."():"; |
| 60 |
|
} |
ecrire/xml/analyser_dtd.php 1 location
|
@@ 91-92 (lines=2) @@
|
| 88 |
|
// si DTD locale, ignorer ce repertoire pour le moment |
| 89 |
|
if ($avail == 'SYSTEM'){ |
| 90 |
|
$file = $loc; |
| 91 |
|
if (_DIR_RACINE AND strncmp($file,_DIR_RACINE,strlen(_DIR_RACINE))==0) |
| 92 |
|
$file = substr($file,strlen(_DIR_RACINE)); |
| 93 |
|
$file = find_in_path($file); |
| 94 |
|
} |
| 95 |
|
else { |
ecrire/plugins/afficher_plugin.php 1 location
|
@@ 183-184 (lines=2) @@
|
| 180 |
|
// http://doc.spip.org/@plugin_propre |
| 181 |
|
function plugin_propre($texte, $module='') { |
| 182 |
|
// retirer le retour a la racine du module, car le find_in_path se fait depuis la racine |
| 183 |
|
if (_DIR_RACINE AND strncmp($module,_DIR_RACINE,strlen(_DIR_RACINE))==0) |
| 184 |
|
$module = substr($module,strlen(_DIR_RACINE)); |
| 185 |
|
if (preg_match("|^\w+_[\w_]+$|", $texte)) { |
| 186 |
|
$texte = _T(($module ? "$module:" : '') . $texte, array(), array('force' => false)); |
| 187 |
|
} |
ecrire/public/composer.php 1 location
|
@@ 805-806 (lines=2) @@
|
| 802 |
|
function calculer_nom_fonction_squel($skel, $mime_type='html', $connect='') |
| 803 |
|
{ |
| 804 |
|
// ne pas doublonner les squelette selon qu'ils sont calcules depuis ecrire/ ou depuis la racine |
| 805 |
|
if ($l=strlen(_DIR_RACINE) AND strncmp($skel,_DIR_RACINE,$l)==0) |
| 806 |
|
$skel = substr($skel,strlen(_DIR_RACINE)); |
| 807 |
|
return $mime_type |
| 808 |
|
. (!$connect ? '' : preg_replace('/\W/',"_", $connect)) . '_' |
| 809 |
|
. md5($GLOBALS['spip_version_code'] . ' * ' . $skel . (isset($GLOBALS['marqueur_skel'])?'*'.$GLOBALS['marqueur_skel']:'')); |