Un ajout d'entrée en base de données ? Oui, c'est nécessaire. Un tutoriel est disponible dans le centre de documentations.
++


phpBB Debug] PHP Notice: in file /adm/index.php on line 344: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'acp_board::select_user_authorized' was given
[phpBB Debug] PHP Notice: in file /adm/index.php on line 149: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2991)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 151: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2991)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 152: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2991)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 153: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2991)


}
//-- mod : purge cache from any page --------------------------------------------------------
//-- add
/**
* Select type user autorized to purge cache from anywhere
*/
function select_user_authorized($value, $key = '')
{
global $user, $config;
$user->add_lang('acp/users');
$radio_ary = array(PURGE_DISABLE => 'DISABLED', PURGE_BY_FOUNDER => 'FOUNDER', PURGE_BY_ADMIN => 'ADMINISTRATOR');
return h_radio('config[purge_cache]', $radio_ary, $value, $key);
}
//-- end : purge cache from any page --------------------------------------------------------
?>//-- mod : purge cache from any page --------------------------------------------------------
//-- add
/**
* Select type user autorized to purge cache from anywhere
*/
function select_user_authorized($value, $key = '')
{
global $user, $config;
$user->add_lang('acp/users');
$radio_ary = array(PURGE_DISABLE => 'DISABLED', PURGE_BY_FOUNDER => 'FOUNDER', PURGE_BY_ADMIN => 'ADMINISTRATOR');
return h_radio('config[purge_cache]', $radio_ary, $value, $key);
}
//-- end : purge cache from any page --------------------------------------------------------
}
?>
//-- mod : purge cache from any page --------------------------------------------------------
//-- add
if ($user->data['user_type'] == USER_FOUNDER)
{
$display_vars['vars']['purge_cache'] = array('lang' => 'ALLOW_PURGE_CACHE', 'validate' => 'int', 'type' => 'custom', 'method' => 'select_user_authorized', 'explain' => true);
}
//-- end : purge cache from any page --------------------------------------------------------
break;
case 'avatar'
[b]$display_vars = array([/b]

:case 'avatar'




Retourner vers Base de données des MODs
Utilisateurs parcourant ce forum: Google [Bot] et 1 invité