This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function autoriser_travaux($faire,$quoi,$id,$qui,$opts){ | |
if ($qui['statut']=='0minirezo' or $qui['statut']=='1comite') | |
return true; | |
return false; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
mysql_query("SET NAMES 'utf8'"); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("button").filter(function(){ | |
return (/Déposer/i).test($(this).text()) | |
}).click(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Fonction de récupération des liens de traduction | |
*/ | |
function get_translation($path) { | |
// Cette variable contient l'object de langue de Drupal et donc la langue en court d'utilisation. | |
global $language; | |
// On récupère les path des translations de Drupal | |
$path = translation_path_get_translations($path); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Niveau de log pour spip, CF http://www.spip.net/fr_article5543.html | |
*/ | |
// définir le niveau maximum de verbosité des logs (ici on active la fonction spip_log pour nous) | |
define("_LOG_FILTRE_GRAVITE", _LOG_INFO); | |
// Avoir des GRAND log, pour éviter des rotations dans tout les sens | |
$GLOBALS['taille_des_logs'] = 5000; | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function critere_va_chercher_dist($idb, &$boucles, $crit) { | |
$boucle = &$boucles[$idb]; | |
$table = $boucle->id_table; | |
$not = $crit->not; | |
// chercher quoi ? | |
if (isset($crit->param[0])) { | |
$quoi = calculer_liste($crit->param[0], array(), $boucles, $boucles[$idb]->id_parent); | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Balise #BILLETERIE_TELEPHONE | |
*/ | |
function balise_BILLETERIE_TELEPHONE_dist($p) { | |
$p->code = "\$GLOBALS['meta']['billeterie_telephone']"; | |
return $p; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function ajoute_lang($texte,$lang) { | |
if($texte != '') { | |
$cherche = array('”','’','“','«','»'); | |
$remplace = array("'","'","'","'","'"); | |
$texte = str_replace($cherche, $remplace, $texte); | |
$doc = new DOMDocument('1.0', 'UTF-8'); | |
@$doc->loadHTML(utf8_decode($texte)); |