diff --git a/ecrire/inc/flock.php b/ecrire/inc/flock.php index b6df98b54b4b00a60fdddd7d1bea6858577088a6..1d6b81cec0b1fd446267ff6eb489e486f51536a3 100644 --- a/ecrire/inc/flock.php +++ b/ecrire/inc/flock.php @@ -20,6 +20,7 @@ if (_SPIP_LOCK_MODE==2) include_spip('inc/nfslock'); $GLOBALS['liste_verrous'] = array(); +// http://doc.spip.org/@spip_fopen_lock function spip_fopen_lock($fichier,$mode,$verrou){ if (_SPIP_LOCK_MODE==1){ if ($fl = @fopen($fichier,$mode)) @@ -36,6 +37,7 @@ function spip_fopen_lock($fichier,$mode,$verrou){ } return @fopen($fichier,$mode); } +// http://doc.spip.org/@spip_fclose_unlock function spip_fclose_unlock($handle){ if (_SPIP_LOCK_MODE==1){ @flock($handle, LOCK_UN); diff --git a/ecrire/inc/nfslock.php b/ecrire/inc/nfslock.php index 0291128739301b3b0a77867a65912b38b25de04e..fd1b540625460125a4d44550b1e22441a76b72e4 100644 --- a/ecrire/inc/nfslock.php +++ b/ecrire/inc/nfslock.php @@ -88,6 +88,7 @@ include_spip('inc/acces'); define('_DEFAULT_LOCKTIME',60); define('_NAME_LOCK','spip_nfs_lock'); +// http://doc.spip.org/@spip_nfslock function spip_nfslock($fichier,$max_age=0) { $tries = 0; @@ -207,6 +208,7 @@ function spip_nfslock($fichier,$max_age=0) { * */ +// http://doc.spip.org/@spip_nfsunlock function spip_nfsunlock($fichier, $birth, $max_age=0, $test = false) { $id = creer_uniqid(); if (!$max_age) $max_age = _DEFAULT_LOCKTIME; @@ -285,6 +287,7 @@ function spip_nfsunlock($fichier, $birth, $max_age=0, $test = false) { * coded separately to make things as clear as possible. */ +// http://doc.spip.org/@spip_nfslock_test function spip_nfslock_test($fichier, $birth, $max_age=0) { return spip_nfsunlock($fichier, $birth, $max_age, true); } diff --git a/ecrire/inc/presentation.php b/ecrire/inc/presentation.php index aca1f5f9b93352572fc616ebe6ab0f995e02b3ef..702ddf5bc81b4b1725c68c753ea4892036795983 100644 --- a/ecrire/inc/presentation.php +++ b/ecrire/inc/presentation.php @@ -1099,6 +1099,7 @@ function fin_cadre_formulaire($return=false){ } +// http://doc.spip.org/@formulaire_recherche function formulaire_recherche($page, $complement=""){ $recherche = _request('recherche'); $recherche_aff = entites_html($recherche); diff --git a/ecrire/inc/revisions.php b/ecrire/inc/revisions.php index 4c706f55e5a860661f29a19a2c66c064c3e8eca7..f2616b92b372fa67641f3b47be2e4129e9af083f 100644 --- a/ecrire/inc/revisions.php +++ b/ecrire/inc/revisions.php @@ -53,6 +53,7 @@ function replace_fragment($id_article, $version_min, $version_max, $id_fragment, 'fragment' => $fragment); } +// http://doc.spip.org/@envoi_replace_fragments function envoi_replace_fragments($replaces) { $desc = $GLOBALS['tables_auxiliaires']['spip_versions_fragments']; foreach($replaces as $r) @@ -60,6 +61,7 @@ function envoi_replace_fragments($replaces) { } +// http://doc.spip.org/@envoi_delete_fragments function envoi_delete_fragments($id_article, $deletes) { if (count($deletes)) { spip_query("DELETE FROM spip_versions_fragments WHERE id_article=$id_article AND ((". join(") OR (", $deletes)."))"); @@ -369,6 +371,7 @@ function recuperer_version($id_article, $id_version) { recuperer_fragments($id_article, $id_version)); } +// http://doc.spip.org/@reconstuire_version function reconstuire_version($champs, $fragments, $res=array()) { static $msg;