source: extensions/Admin_Messages/admin/config.php @ 18467

Last change on this file since 18467 was 12356, checked in by mistic100, 13 years ago

Reorganize language files

File size: 1.3 KB
RevLine 
[9421]1<?php
2if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
3
4// +-----------------------------------------------------------------------+
[12356]5//        Modification de la configuration
[9421]6// +-----------------------------------------------------------------------+
7if (isset($_POST['config_submit'])) {
[12356]8  $user_config = array(
9    'nb_messages' => $_POST['nb_messages'],
10    'free_name' => (isset($_POST['free_name'])) ? 1 : 0,
11  );
12 
[10982]13  conf_update_param('admin_messages', serialize($user_config));
[12356]14  array_push($page['infos'], l10n('Information data registered in database'));
[9421]15}
16
[12356]17 
[9421]18// +-----------------------------------------------------------------------+
[12356]19//        Définition des variables template
[9421]20// +-----------------------------------------------------------------------+
21$template->assign(array(
[12356]22  'NB_MESSAGES' => $conf['admin_messages']['nb_messages'],
23  'FREE_NAME' => ($conf['admin_messages']['free_name']) ? 'checked="checked"' : '',
[9421]24));
25
26
27// +-----------------------------------------------------------------------+
[12356]28//        Template
[9421]29// +-----------------------------------------------------------------------+
30$template->set_filenames(array('plugin_admin_content' => dirname(__FILE__).'/template/config.tpl'));
31$template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
32?>
Note: See TracBrowser for help on using the repository browser.