compteSPIP/comptespip_fonctions.php

18 lines
394 B
PHP

<?php
/**
* Fonctions utiles au plugin GamuCompte
*
* @plugin GamuCompte
* @copyright 2020
* @author tofulm
* @licence GNU/GPL
* @package SPIP\Gamucompte\Fonctions
*/
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}
function appclient($id_auteur, $champ, $valeur){
sql_updateq('spip_auteurs',[$champ => $valeur, 'bio' => 'gagne'], 'id_auteur='.intval($id_auteur));
}