diff options
author | tomtom84 <63dc41d76451@ba77e90e49a6.anonbox.net> | 2012-03-23 07:41:32 -0700 |
---|---|---|
committer | tomtom84 <63dc41d76451@ba77e90e49a6.anonbox.net> | 2012-03-23 07:41:32 -0700 |
commit | ce8cfb7b0531e72fe28b3a6a6440016e482bd016 (patch) | |
tree | 61dd6d3a8fc5368ad86b5d38a5d177ae9cd2d9f8 /mod/settings.php | |
parent | c35b9ec24f1449a691afeeb985a41fbaf07b2af1 (diff) | |
parent | 1780fff1611809a6069603eceb643e210b4b3f36 (diff) | |
download | volse-hubzilla-ce8cfb7b0531e72fe28b3a6a6440016e482bd016.tar.gz volse-hubzilla-ce8cfb7b0531e72fe28b3a6a6440016e482bd016.tar.bz2 volse-hubzilla-ce8cfb7b0531e72fe28b3a6a6440016e482bd016.zip |
Merge pull request #160 from fabrixxm/master
work on diabook theme and settings
Diffstat (limited to 'mod/settings.php')
-rwxr-xr-x | mod/settings.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mod/settings.php b/mod/settings.php index 59ede4729..99bf8842d 100755 --- a/mod/settings.php +++ b/mod/settings.php @@ -263,7 +263,7 @@ function settings_post(&$a) { $suggestme = ((x($_POST,'suggestme')) ? intval($_POST['suggestme']) : 0); $hide_friends = (($_POST['hide-friends'] == 1) ? 1: 0); $hidewall = (($_POST['hidewall'] == 1) ? 1: 0); - + $nosmile = ((x($_POST,'nosmile')) ? intval($_POST['nosmile']) : 0); $notify = 0; @@ -347,6 +347,7 @@ function settings_post(&$a) { set_pconfig(local_user(),'system','suggestme', $suggestme); set_pconfig(local_user(),'system','update_interval', $browser_update); set_pconfig(local_user(),'system','itemspage_network', $itemspage_network); + set_pconfig(local_user(),'system','no_smilies',$nosmile); $r = q("UPDATE `user` SET `username` = '%s', `email` = '%s', `openid` = '%s', `timezone` = '%s', `allow_cid` = '%s', `allow_gid` = '%s', `deny_cid` = '%s', `deny_gid` = '%s', `notify-flags` = %d, `page-flags` = %d, `default-location` = '%s', `allow_location` = %d, `theme` = '%s', `maxreq` = %d, `expire` = %d, `openidserver` = '%s', `blockwall` = %d, `hidewall` = %d, `blocktags` = %d WHERE `uid` = %d LIMIT 1", dbesc($username), @@ -674,6 +675,9 @@ function settings_content(&$a) { $itemspage_network = intval(get_pconfig(local_user(), 'system','itemspage_network')); $itemspage_network = (($itemspage_network > 0 && $itemspage_network < 101) ? $itemspage_network : 40); // default if not set: 40 items + $nosmile = get_pconfig(local_user(),'system','no_smilies'); + $nosmile = (($nosmile===false)? '0': $nosmile); // default if not set: 0 + if(! strlen($a->user['timezone'])) $timezone = date_default_timezone_get(); @@ -841,6 +845,7 @@ function settings_content(&$a) { '$theme' => array('theme', t('Display Theme:'), $theme_selected, '', $themes), '$ajaxint' => array('browser_update', t("Update browser every xx seconds"), $browser_update, t('Minimum of 10 seconds, no maximum')), '$itemspage_network' => array('itemspage_network', t("Number of items to display on the network page:"), $itemspage_network, t('Maximum of 100 items')), + '$nosmile' => array('nosmile', t("Don't show emoticons"), $nosmile, ''), '$h_prv' => t('Security and Privacy Settings'), |