Skip to content
Extraits de code Groupes Projets
Valider 6f5b1e80 rédigé par spip.franck@lien-d-amis.net's avatar spip.franck@lien-d-amis.net
Parcourir les fichiers

Evitons une redirection, ce n'est plus http://doc.spip.org mais http://code.spip.net

parent 8a20f980
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -19,7 +19,7 @@ include_spip('inc/headers'); ...@@ -19,7 +19,7 @@ include_spip('inc/headers');
// soit que le document est publie, c'est-a-dire // soit que le document est publie, c'est-a-dire
// joint a au moins 1 article ou rubrique publie // joint a au moins 1 article ou rubrique publie
// http://doc.spip.org/@action_acceder_document_dist // http://code.spip.net/@action_acceder_document_dist
function action_acceder_document_dist() { function action_acceder_document_dist() {
include_spip('inc/documents'); include_spip('inc/documents');
......
...@@ -16,7 +16,7 @@ if (!defined("_ECRIRE_INC_VERSION")) return; ...@@ -16,7 +16,7 @@ if (!defined("_ECRIRE_INC_VERSION")) return;
/** /**
* Cette action permet de basculer du mode image au mode document et vice versa * Cette action permet de basculer du mode image au mode document et vice versa
* *
* http://doc.spip.org/@action_changer_mode_document_dist * http://code.spip.net/@action_changer_mode_document_dist
* *
* @param int $id_document * @param int $id_document
* @param string $mode * @param string $mode
...@@ -41,7 +41,7 @@ function action_changer_mode_document_dist($id_document=null, $mode=null){ ...@@ -41,7 +41,7 @@ function action_changer_mode_document_dist($id_document=null, $mode=null){
action_changer_mode_document_post($id_document, $mode); action_changer_mode_document_post($id_document, $mode);
} }
// http://doc.spip.org/@action_changer_mode_document_post // http://code.spip.net/@action_changer_mode_document_post
function action_changer_mode_document_post($id_document, $mode){ function action_changer_mode_document_post($id_document, $mode){
// - id_document le doc a modifier // - id_document le doc a modifier
// - mode le mode a lui donner // - mode le mode a lui donner
......
...@@ -18,7 +18,7 @@ if (!defined("_ECRIRE_INC_VERSION")) return; ...@@ -18,7 +18,7 @@ if (!defined("_ECRIRE_INC_VERSION")) return;
* Il s'agit de la partie logique, c'est a dire que cette fonction * Il s'agit de la partie logique, c'est a dire que cette fonction
* realise la copie. * realise la copie.
* *
* http://doc.spip.org/@action_copier_local_dist * http://code.spip.net/@action_copier_local_dist
* *
* @param null $id_document * @param null $id_document
* @return bool|mixed|string * @return bool|mixed|string
...@@ -43,7 +43,7 @@ function action_copier_local_dist($id_document=null) { ...@@ -43,7 +43,7 @@ function action_copier_local_dist($id_document=null) {
} }
/** /**
* http://doc.spip.org/@action_copier_local_post * http://code.spip.net/@action_copier_local_post
* *
* @param $id_document * @param $id_document
* @return bool|mixed|string * @return bool|mixed|string
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
if (!defined("_ECRIRE_INC_VERSION")) return; if (!defined("_ECRIRE_INC_VERSION")) return;
// http://doc.spip.org/@supprimer_document // http://code.spip.net/@supprimer_document
function action_supprimer_document_dist($id_document=0) { function action_supprimer_document_dist($id_document=0) {
if (!$id_document){ if (!$id_document){
$securiser_action = charger_fonction('securiser_action','inc'); $securiser_action = charger_fonction('securiser_action','inc');
......
...@@ -15,7 +15,7 @@ if (!defined("_ECRIRE_INC_VERSION")) return; ...@@ -15,7 +15,7 @@ if (!defined("_ECRIRE_INC_VERSION")) return;
/** /**
* Tourner un document * Tourner un document
* *
* http://doc.spip.org/@action_tourner_dist * http://code.spip.net/@action_tourner_dist
* *
* lorsque les arguments sont passes dans arg en GET : * lorsque les arguments sont passes dans arg en GET :
* id_document-angle * id_document-angle
...@@ -46,7 +46,7 @@ function action_tourner_dist($id_document=null, $angle=null) { ...@@ -46,7 +46,7 @@ function action_tourner_dist($id_document=null, $angle=null) {
/** /**
* Tourner un document * Tourner un document
* *
* http://doc.spip.org/@action_tourner_post * http://code.spip.net/@action_tourner_post
* *
* @param int $id_document * @param int $id_document
* @param int $angle * @param int $angle
...@@ -131,7 +131,7 @@ function action_tourner_post($id_document,$angle) ...@@ -131,7 +131,7 @@ function action_tourner_post($id_document,$angle)
// Appliquer l'EXIF orientation // Appliquer l'EXIF orientation
// cf. http://trac.rezo.net/trac/spip/ticket/1494 // cf. http://trac.rezo.net/trac/spip/ticket/1494
// http://doc.spip.org/@tourner_selon_exif_orientation // http://code.spip.net/@tourner_selon_exif_orientation
function tourner_selon_exif_orientation($id_document, $fichier) { function tourner_selon_exif_orientation($id_document, $fichier) {
if (function_exists('exif_read_data') if (function_exists('exif_read_data')
......
...@@ -121,7 +121,7 @@ function formulaires_editer_document_verifier_dist($id_document='new', $id_paren ...@@ -121,7 +121,7 @@ function formulaires_editer_document_verifier_dist($id_document='new', $id_paren
return $erreurs; return $erreurs;
} }
// http://doc.spip.org/@inc_editer_article_dist // http://code.spip.net/@inc_editer_article_dist
function formulaires_editer_document_traiter_dist($id_document='new', $id_parent='', $retour='', $lier_trad=0, $config_fonc='documents_edit_config', $row=array(), $hidden=''){ function formulaires_editer_document_traiter_dist($id_document='new', $id_parent='', $retour='', $lier_trad=0, $config_fonc='documents_edit_config', $row=array(), $hidden=''){
if (is_null(_request('parents'))) if (is_null(_request('parents')))
set_request('parents',array()); set_request('parents',array());
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
if (!defined("_ECRIRE_INC_VERSION")) return; if (!defined("_ECRIRE_INC_VERSION")) return;
// http://doc.spip.org/@naviguer_doc // http://code.spip.net/@naviguer_doc
function inc_documenter_objet_dist($id, $type) { function inc_documenter_objet_dist($id, $type) {
$serveur = ''; $serveur = '';
// avant de documenter un objet, on verifie que ses documents vus sont bien lies ! // avant de documenter un objet, on verifie que ses documents vus sont bien lies !
......
...@@ -24,7 +24,7 @@ if (!defined('CHARSET_JOINT')) define('CHARSET_JOINT', 'iso-8859-1'); ...@@ -24,7 +24,7 @@ if (!defined('CHARSET_JOINT')) define('CHARSET_JOINT', 'iso-8859-1');
// Filtre pour #FICHIER permettant d'incruster le contenu d'un document // Filtre pour #FICHIER permettant d'incruster le contenu d'un document
// Si 2e arg fourni, conversion dans le charset du site si possible // Si 2e arg fourni, conversion dans le charset du site si possible
// http://doc.spip.org/@contenu_document // http://code.spip.net/@contenu_document
function contenu_document($arg, $charset='') function contenu_document($arg, $charset='')
{ {
if (is_numeric($arg)) { if (is_numeric($arg)) {
...@@ -53,7 +53,7 @@ function contenu_document($arg, $charset='') ...@@ -53,7 +53,7 @@ function contenu_document($arg, $charset='')
return $r; return $r;
} }
// http://doc.spip.org/@generer_url_document_dist // http://code.spip.net/@generer_url_document_dist
function generer_url_document_dist($id_document, $args='', $ancre='') { function generer_url_document_dist($id_document, $args='', $ancre='') {
include_spip('inc/autoriser'); include_spip('inc/autoriser');
...@@ -94,7 +94,7 @@ function generer_url_document_dist($id_document, $args='', $ancre='') { ...@@ -94,7 +94,7 @@ function generer_url_document_dist($id_document, $args='', $ancre='') {
// //
// A noter : dans le portfolio prive on pousse le vice jusqu'a reduire la taille // A noter : dans le portfolio prive on pousse le vice jusqu'a reduire la taille
// de la vignette -> c'est a ca que sert la variable $portfolio // de la vignette -> c'est a ca que sert la variable $portfolio
// http://doc.spip.org/@vignette_automatique // http://code.spip.net/@vignette_automatique
function vignette_automatique($img, $doc, $lien, $x=0, $y=0, $align='', $class='spip_logo spip_logos') function vignette_automatique($img, $doc, $lien, $x=0, $y=0, $align='', $class='spip_logo spip_logos')
{ {
include_spip('inc/distant'); include_spip('inc/distant');
......
...@@ -266,7 +266,7 @@ function joindre_decrire_contenu_zip($zip) { ...@@ -266,7 +266,7 @@ function joindre_decrire_contenu_zip($zip) {
// http://doc.spip.org/@joindre_deballes // http://code.spip.net/@joindre_deballes
function joindre_deballer_lister_zip($path,$tmp_dir) { function joindre_deballer_lister_zip($path,$tmp_dir) {
include_spip('inc/pclzip'); include_spip('inc/pclzip');
$archive = new PclZip($path); $archive = new PclZip($path);
...@@ -295,7 +295,7 @@ if (!function_exists('fixer_extension_document')){ ...@@ -295,7 +295,7 @@ if (!function_exists('fixer_extension_document')){
* @param unknown_type $doc * @param unknown_type $doc
* @return unknown * @return unknown
*/ */
// http://doc.spip.org/@fixer_extension_document // http://code.spip.net/@fixer_extension_document
function fixer_extension_document($doc) { function fixer_extension_document($doc) {
$extension = ''; $extension = '';
$name = $doc['name']; $name = $doc['name'];
...@@ -317,7 +317,7 @@ function fixer_extension_document($doc) { ...@@ -317,7 +317,7 @@ function fixer_extension_document($doc) {
// //
// Gestion des fichiers ZIP // Gestion des fichiers ZIP
// //
// http://doc.spip.org/@accepte_fichier_upload // http://code.spip.net/@accepte_fichier_upload
function accepte_fichier_upload ($f) { function accepte_fichier_upload ($f) {
if (!preg_match(",.*__MACOSX/,", $f) if (!preg_match(",.*__MACOSX/,", $f)
...@@ -330,7 +330,7 @@ function accepte_fichier_upload ($f) { ...@@ -330,7 +330,7 @@ function accepte_fichier_upload ($f) {
# callback pour le deballage d'un zip telecharge # callback pour le deballage d'un zip telecharge
# http://www.phpconcept.net/pclzip/man/en/?options-pclzip_cb_pre_extractfunction # http://www.phpconcept.net/pclzip/man/en/?options-pclzip_cb_pre_extractfunction
// http://doc.spip.org/@callback_deballe_fichier // http://code.spip.net/@callback_deballe_fichier
function callback_deballe_fichier($p_event, &$p_header) { function callback_deballe_fichier($p_event, &$p_header) {
if (accepte_fichier_upload($p_header['filename'])) { if (accepte_fichier_upload($p_header['filename'])) {
......
...@@ -18,7 +18,7 @@ if (!defined("_ECRIRE_INC_VERSION")) return; ...@@ -18,7 +18,7 @@ if (!defined("_ECRIRE_INC_VERSION")) return;
$GLOBALS['medias_liste_champs'][] = 'texte'; $GLOBALS['medias_liste_champs'][] = 'texte';
$GLOBALS['medias_liste_champs'][] = 'chapo'; $GLOBALS['medias_liste_champs'][] = 'chapo';
// http://doc.spip.org/@marquer_doublons_documents // http://code.spip.net/@marquer_doublons_documents
function inc_marquer_doublons_doc_dist($champs,$id,$type,$id_table_objet,$table_objet,$spip_table_objet, $desc=array(), $serveur=''){ function inc_marquer_doublons_doc_dist($champs,$id,$type,$id_table_objet,$table_objet,$spip_table_objet, $desc=array(), $serveur=''){
$champs_selection=array(); $champs_selection=array();
......
...@@ -31,7 +31,7 @@ function metadata_image_dist($fichier){ ...@@ -31,7 +31,7 @@ function metadata_image_dist($fichier){
* @param bool $strict * @param bool $strict
* @return string * @return string
*/ */
// http://doc.spip.org/@decoder_type_image // http://code.spip.net/@decoder_type_image
function decoder_type_image($type, $strict = false) { function decoder_type_image($type, $strict = false) {
switch ($type) { switch ($type) {
case 1: case 1:
......
...@@ -24,7 +24,7 @@ if (!defined('_ECRIRE_INC_VERSION')) return; ...@@ -24,7 +24,7 @@ if (!defined('_ECRIRE_INC_VERSION')) return;
* @param string $connect * @param string $connect
* @return string * @return string
* *
* http://doc.spip.org/@generer_url_ecrire_document * http://code.spip.net/@generer_url_ecrire_document
*/ */
function urls_generer_url_document_dist($id, $args='', $ancre='', $public=null, $connect='') { function urls_generer_url_document_dist($id, $args='', $ancre='', $public=null, $connect='') {
include_spip('inc/documents'); include_spip('inc/documents');
......
...@@ -24,7 +24,7 @@ if (!defined('_ECRIRE_INC_VERSION')) return; ...@@ -24,7 +24,7 @@ if (!defined('_ECRIRE_INC_VERSION')) return;
* @param string $connect * @param string $connect
* @return string * @return string
* *
* http://doc.spip.org/@generer_url_ecrire_document * http://code.spip.net/@generer_url_ecrire_document
*/ */
function urls_generer_url_ecrire_document_dist($id, $args='', $ancre='', $public=null, $connect='') { function urls_generer_url_ecrire_document_dist($id, $args='', $ancre='', $public=null, $connect='') {
include_spip('inc/documents'); include_spip('inc/documents');
......
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