Changeset 10983 for extensions/bbcode_bar/admin.php
- Timestamp:
- May 22, 2011, 12:23:03 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/bbcode_bar/admin.php
r9965 r10983 8 8 if (strpos($conf['bbcode_bar'],',') !== false) 9 9 { 10 11 10 include(BBcode_PATH .'maintain.inc.php'); 11 plugin_activate(); 12 12 } 13 13 … … 16 16 // Enregistrement de la configuration 17 17 if (isset($_POST['submit'])) 18 { 19 // nouveau tableau de config 20 unset($conf_bbcode_bar); 21 foreach(unserialize(BBcode_codes) as $key) { 22 $conf_bbcode_bar[$key] = (isset($_POST[$key])) ? true : false; 23 } 24 25 // enregistrement 26 $query = "UPDATE " . CONFIG_TABLE . " 27 SET value='" . serialize($conf_bbcode_bar) . "' 28 WHERE param='bbcode_bar'"; 29 pwg_query($query); 30 array_push($page['infos'], l10n('Information data registered in database')); 18 { 19 // nouveau tableau de config 20 unset($conf_bbcode_bar); 21 foreach(unserialize(BBcode_codes) as $key) { 22 $conf_bbcode_bar[$key] = (isset($_POST[$key])) ? true : false; 23 } 24 25 // enregistrement 26 conf_update_param('bbcode_bar', serialize($conf_bbcode_bar)); 27 array_push($page['infos'], l10n('Information data registered in database')); 31 28 } 32 29 33 30 // Parametrage du template 34 31 foreach(unserialize(BBcode_codes) as $key) { 35 32 $template->assign(strtoupper($key).'_STATUS', ($conf_bbcode_bar[$key] == 1) ? 'checked="checked"' : null); 36 33 } 37 34
Note: See TracChangeset
for help on using the changeset viewer.