Code Duplication    Length = 6-8 lines in 2 locations

ecrire/action/charger_plugin.php 1 location

@@ 136-143 (lines=8) @@
133
	$status = null;
134
	# forcer l'extension du fichier par securite
135
	$fichier = $tmp.basename($fichier,".$extension").".$extension";
136
	if (!@file_exists($fichier)) {
137
		include_spip('inc/distant');
138
		$contenu = recuperer_page($zip, $fichier, false,_COPIE_LOCALE_MAX_SIZE);
139
		if (!$contenu) {
140
			spip_log('charger_decompresser impossible de charger '.$zip);
141
			$status = -1;
142
		}
143
	}
144
145
	if ($status === null) {
146
		$status = chargeur_charger_zip(

ecrire/inc/session.php 1 location

@@ 307-312 (lines=6) @@
304
	} else {
305
306
		$repertoire = _DIR_SESSIONS;
307
		if(!@file_exists($repertoire)) {
308
			if ($tantpis) return '';
309
			$repertoire = preg_replace(','._DIR_TMP.',', '', $repertoire);
310
			include_spip('inc/flock');
311
			$repertoire = sous_repertoire(_DIR_TMP, $repertoire);
312
		}
313
		$c = $_COOKIE['spip_session'];
314
		return $repertoire . intval($c) .'_' . md5($c.' '.$GLOBALS['meta'][$alea]). '.php';
315
	}