Skip to content
Extraits de code Groupes Projets
Valider 1668e687 rédigé par Fil's avatar Fil
Parcourir les fichiers

identifie repertoire et rubrique -> code mort

+ divers bug
parent 7cf75b1b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -129,6 +129,7 @@ ecrire/img_pack/documents-48_rtl.png -text
ecrire/img_pack/edit.gif -text
ecrire/img_pack/effacer-cache-24.gif -text
ecrire/img_pack/favicon.ico -text
ecrire/img_pack/feed.png -text
ecrire/img_pack/fiche-perso-24.gif -text
ecrire/img_pack/fiche-perso.png -text
ecrire/img_pack/fleche-left.png -text
......
......@@ -22,7 +22,7 @@ function spip_action_joindre_dist()
$sousaction1,
$sousaction2,
$sousaction3,
$sousaction4,
# $sousaction4, # sousaction4 = code mort a supprimer
$sousaction5,
$url, $chemin, $ancre, $type, $id, $id_document,
$_FILES, $HTTP_POST_FILES;
......@@ -119,6 +119,7 @@ function spip_action_joindre3($arg, $mode, $type, $id, $id_document,$hash, $id_a
$hash, $id_auteur, $redirect, $actifs);
}
/* code mort cf. sousaction4
// identifie les repertoires de upload aux rubriques Spip
function spip_action_joindre4($arg, $mode, $type, $id, $id_document, $hash, $id_auteur, $redirect, &$documents_actifs)
......@@ -128,7 +129,7 @@ function spip_action_joindre4($arg, $mode, $type, $id, $id_document, $hash, $id_
identifie_repertoire_et_rubrique($upload, $id, $id_auteur);
include_ecrire("inc_rubriques");
calculer_rubriques();
}
} */
// Zip avec confirmation "tel quel"
......
ecrire/img_pack/feed.png

725 octets

......@@ -439,7 +439,7 @@ function texte_upload_manuel($dir, $inclus = '') {
$exts = array();
$dirs = array();
foreach ($fichiers as $f) {
$f = ereg_replace("^$dir/","",$f);
$f = preg_replace(",^$dir,",'',$f);
if (ereg("\.([^.]+)$", $f, $match)) {
$ext = strtolower($match[1]);
if (!$exts[$ext]) {
......@@ -615,24 +615,17 @@ function afficher_transferer_upload($type, $texte_upload)
else { return
"<p><div style='color: #505050;'>\n"
._T('info_selectionner_fichier',
array('upload' => '<b>' . _DIR_TRANSFERT . '</b>'))
array('upload' => '<b>' . _DIR_TRANSFERT . '</b>'))
."&nbsp;:<br />" .
"\n<select name='chemin' size='1' class='fondl'>" .
$texte_upload .
"\n</select>" .
(($type != 'rubrique') ? "" : ("<br />". _L("et choisir le mode de transfert:"))) .
"\n</select>" .
"\n<div align='".
$GLOBALS['spip_lang_right'] .
"'><input name='sousaction3' type='Submit' value='" .
_L('recopier').
_T('bouton_choisir').
"' class='fondo'></div>" .
(($type != 'rubrique') ? "" :
("\n<div align='".
$GLOBALS['spip_lang_right'] .
"'><input name='sousaction4' type='Submit' value='" .
_L('identifier repertoires et rubriques').
"' class='fondo'></div>")) .
"</div>\n";
"</div>\n";
}
}
......
......@@ -452,7 +452,7 @@ function examiner_les_fichiers($files, $mode, $type, $id, $id_document, $hash, $
}
}
/* code mort cf sousaction4
function identifie_repertoire_et_rubrique($DIR, $id_rubrique, $id_auteur, $art=0)
{
static $exts = array();
......@@ -564,7 +564,7 @@ WHERE id_rubrique=$id_rubrique");
return $collecte;
}
*/
//
// Convertit le type numerique retourne par getimagesize() en extension fichier
......
......@@ -653,6 +653,13 @@ function charger_generer_url() {
// sinon fichier inc-urls-xxx
OR include_local(_DIR_RACINE."inc-urls-".$GLOBALS['type_urls']);
}
if (!function_exists('generer_url_special')) {
function generer_url_special($special, $args='') {
return _DIR_RACINE . "page.php3?fond=$special".
($args ? '&'.$args : '');
}
}
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter