Line 17... |
Line 17... |
17 |
// | |
|
17 |
// | |
|
18 |
// | You should have received a copy of the GNU Lesser General Public |
|
18 |
// | You should have received a copy of the GNU Lesser General Public |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
22 |
// CVS : $Id: pap_meta.fonct.php,v 1.4 2006-04-28 12:41:49 florian Exp $
|
22 |
// CVS : $Id: pap_meta.fonct.php,v 1.5 2006-10-10 12:05:52 jp_milcent Exp $
|
23 |
/**
|
23 |
/**
|
24 |
* Bibliothèque de fonctions permettant d'inclure des balises META.
|
24 |
* Bibliothèque de fonctions permettant d'inclure des balises META.
|
25 |
*
|
25 |
*
|
26 |
* Cet ensemble de fonctions permet de manipuler les balise meta à intégrer dans l'entête
|
26 |
* Cet ensemble de fonctions permet de manipuler les balise meta à intégrer dans l'entête
|
27 |
* des pages html. Cela peut être très pratique pour les applications voulant définir précisément
|
27 |
* des pages html. Cela peut être très pratique pour les applications voulant définir précisément
|
Line 32... |
Line 32... |
32 |
//Auteur original :
|
32 |
//Auteur original :
|
33 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
33 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
34 |
//Autres auteurs :
|
34 |
//Autres auteurs :
|
35 |
*@author Aucun
|
35 |
*@author Aucun
|
36 |
*@copyright Tela-Botanica 2000-2004
|
36 |
*@copyright Tela-Botanica 2000-2004
|
37 |
*@version $Revision: 1.4 $ $Date: 2006-04-28 12:41:49 $
|
37 |
*@version $Revision: 1.5 $ $Date: 2006-10-10 12:05:52 $
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
39 |
*/
|
39 |
*/
|
Line 40... |
Line 40... |
40 |
|
40 |
|
41 |
// +------------------------------------------------------------------------------------------------------+
|
41 |
// +------------------------------------------------------------------------------------------------------+
|
Line 254... |
Line 254... |
254 |
* @return void la variable (tableau associatif) globale contenant les infos meta est vidée.
|
254 |
* @return void la variable (tableau associatif) globale contenant les infos meta est vidée.
|
255 |
*/
|
255 |
*/
|
256 |
function GEN_viderMeta($type)
|
256 |
function GEN_viderMeta($type)
|
257 |
{
|
257 |
{
|
258 |
if ($type == 'http-equiv') {
|
258 |
if ($type == 'http-equiv') {
|
- |
|
259 |
if (count($GLOBALS['_GEN_commun']['meta_http_equiv']) > 0) {
|
259 |
foreach ($GLOBALS['_GEN_commun']['meta_http_equiv'] as $cle => $val) {
|
260 |
foreach ($GLOBALS['_GEN_commun']['meta_http_equiv'] as $cle => $val) {
|
260 |
$GLOBALS['_GEN_commun']['meta_http_equiv'][$cle] = null;
|
261 |
$GLOBALS['_GEN_commun']['meta_http_equiv'][$cle] = null;
|
- |
|
262 |
}
|
261 |
}
|
263 |
}
|
262 |
} else if ($type == 'meta') {
|
264 |
} else if ($type == 'meta') {
|
- |
|
265 |
if (count($GLOBALS['_GEN_commun']['meta']) > 0) {
|
263 |
foreach ($GLOBALS['_GEN_commun']['meta'] as $cle => $val) {
|
266 |
foreach ($GLOBALS['_GEN_commun']['meta'] as $cle => $val) {
|
264 |
$GLOBALS['_GEN_commun']['meta'][$cle] = null;
|
267 |
$GLOBALS['_GEN_commun']['meta'][$cle] = null;
|
- |
|
268 |
}
|
265 |
}
|
269 |
}
|
266 |
} else if ($type == 'dc') {
|
270 |
} else if ($type == 'dc') {
|
- |
|
271 |
if (count($GLOBALS['_GEN_commun']['meta_name_dc']) > 0) {
|
267 |
foreach ($GLOBALS['_GEN_commun']['meta_name_dc'] as $cle => $val) {
|
272 |
foreach ($GLOBALS['_GEN_commun']['meta_name_dc'] as $cle => $val) {
|
268 |
$GLOBALS['_GEN_commun']['meta_name_dc'][$cle] = null;
|
273 |
$GLOBALS['_GEN_commun']['meta_name_dc'][$cle] = null;
|
- |
|
274 |
}
|
269 |
}
|
275 |
}
|
270 |
} else {
|
276 |
} else {
|
271 |
die('ERREUR Papyrus : le type de balise est incorrect. <br />'.
|
277 |
die('ERREUR Papyrus : le type de balise est incorrect. <br />'.
|
272 |
'Contenu : <br />'.
|
278 |
'Contenu : <br />'.
|
273 |
'Ligne n° : '. __LINE__ .'<br />'.
|
279 |
'Ligne n° : '. __LINE__ .'<br />'.
|
Line 276... |
Line 282... |
276 |
}
|
282 |
}
|
Line 277... |
Line 283... |
277 |
|
283 |
|
278 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
284 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
279 |
*
|
285 |
*
|
- |
|
286 |
* $Log: not supported by cvs2svn $
|
- |
|
287 |
* Revision 1.4 2006/04/28 12:41:49 florian
|
- |
|
288 |
* corrections erreurs chemin
|
280 |
* $Log: not supported by cvs2svn $
|
289 |
*
|
281 |
* Revision 1.3 2004/12/06 19:45:45 jpm
|
290 |
* Revision 1.3 2004/12/06 19:45:45 jpm
|
282 |
* Ajout d'une fonction permettant de vider les tableaux des meta.
|
291 |
* Ajout d'une fonction permettant de vider les tableaux des meta.
|
283 |
*
|
292 |
*
|
284 |
* Revision 1.2 2004/12/06 17:58:02 jpm
|
293 |
* Revision 1.2 2004/12/06 17:58:02 jpm
|