DI::config()->set('blockbot', 'good_crawlers', $_POST['good_crawlers'] ?? false);
DI::config()->set('blockbot', 'block_gab', $_POST['block_gab'] ?? false);
DI::config()->set('blockbot', 'training', $_POST['training'] ?? false);
- info(DI::l10n()->t('Settings updated.'). EOL);
}
function blockbot_init_1(App $a) {
if (!empty($_POST['blockem-submit'])) {
DI::pConfig()->set(local_user(), 'blockem', 'words', trim($_POST['blockem-words']));
- info(DI::l10n()->t('BLOCKEM Settings saved.') . EOL);
}
}
}
DI::pConfig()->set(local_user(), 'blockem', 'words', $words);
- info(DI::l10n()->t('blockem settings updated') . EOL);
exit();
}
DI::config()->set('buffer', 'client_id' , $client_id);
DI::config()->set('buffer', 'client_secret', $client_secret);
-
- info(DI::l10n()->t('Settings updated.'). EOL);
}
function buffer_connect(App $a)
if ($_POST['cookienotice-submit']) {
DI::config()->set('cookienotice', 'text', trim(strip_tags($_POST['cookienotice-text'])));
DI::config()->set('cookienotice', 'oktext', trim(strip_tags($_POST['cookienotice-oktext'])));
- info(DI::l10n()->t('cookienotice Settings saved.'));
}
}
$res = new SimpleXMLElement(Network::fetchUrl($url));
} catch (Exception $e) {
if (empty($_SESSION['curweather_notice_shown'])) {
- info(DI::l10n()->t('Error fetching weather data. Error was: '.$e->getMessage()));
+ notice(DI::l10n()->t('Error fetching weather data. Error was: '.$e->getMessage()));
$_SESSION['curweather_notice_shown'] = true;
}
DI::pConfig()->set(local_user(), 'curweather', 'curweather_loc' , trim($_POST['curweather_loc']));
DI::pConfig()->set(local_user(), 'curweather', 'curweather_enable', intval($_POST['curweather_enable']));
DI::pConfig()->set(local_user(), 'curweather', 'curweather_units' , trim($_POST['curweather_units']));
-
- info(DI::l10n()->t('Current Weather settings updated.') . EOL);
}
function curweather_addon_settings(App $a, &$s)
if (!empty($_POST['curweather-submit'])) {
DI::config()->set('curweather', 'appid', trim($_POST['appid']));
DI::config()->set('curweather', 'cachetime', trim($_POST['cachetime']));
-
- info(DI::l10n()->t('Curweather settings saved.' . PHP_EOL));
}
}
DI::pConfig()->set(local_user(),'diaspora', 'aspect' , trim($_POST['aspect']));
DI::pConfig()->set(local_user(),'diaspora', 'post_by_default', intval($_POST['post_by_default']));
}
- notice(DI::l10n()->t('Diaspora settings updated.'));
} else {
DI::pConfig()->delete(local_user(), 'diaspora', 'password');
- notice(DI::l10n()->t('Diaspora connector disabled.'));
}
}
}
}
DBA::close($r);
} else {
- info(DI::l10n()->t("No entries \x28some entries may be hidden\x29.") . EOL);
+ notice(DI::l10n()->t("No entries \x28some entries may be hidden\x29.") . EOL);
}
$tpl = Renderer::getMarkupTemplate('directory_header.tpl');
DI::pConfig()->set(local_user(), 'fromapp', 'app', $_POST['fromapp-input']);
DI::pConfig()->set(local_user(), 'fromapp', 'force', intval($_POST['fromapp-force']));
-
- info(DI::l10n()->t('Fromapp settings updated.') . EOL);
}
function fromapp_settings(&$a, &$s)
$language = (!empty($_POST['language']) ? Strings::escapeTags(trim($_POST['language'])) : '');
DI::config()->set('geocoordinates', 'language', $language);
- info(DI::l10n()->t('Settings updated.') . EOL);
}
}
DI::pConfig()->set(local_user(), 'geonames', 'enable', intval($_POST['geonames-enable']));
-
- info(DI::l10n()->t('Geonames settings updated.'));
}
/**
return;
DI::pConfig()->set(local_user(),'gnot','enable',intval($_POST['gnot']));
- info(DI::l10n()->t('Gnot settings updated.') . EOL);
}
$rating = (!empty($_POST['rating']) ? Strings::escapeTags(trim($_POST['rating'])) : 'g');
DI::config()->set('gravatar', 'default_avatar', $default_avatar);
DI::config()->set('gravatar', 'rating', $rating);
- info(DI::l10n()->t('Gravatar settings updated.') .EOL);
}
if(! local_user() || empty($_POST['group_text-submit']))
return;
DI::pConfig()->set(local_user(),'system','groupedit_image_limit',intval($_POST['group_text']));
-
- info(DI::l10n()->t('Group Text settings updated.') . EOL);
}
DI::config()->set('impressum','email',strip_tags($email));
DI::config()->set('impressum','notes',strip_tags($notes));
DI::config()->set('impressum','footer_text',strip_tags($footer_text));
- info(DI::l10n()->t('Settings updated.'). EOL );
}
function impressum_addon_admin (&$a, &$o) {
$t = Renderer::getMarkupTemplate( "admin.tpl", "addon/impressum/" );
DI::pConfig()->set(local_user(), 'irc', 'sitechats', trim($_POST['sitechats']));
}
/* upid pop-up thing */
- info(DI::l10n()->t('IRC settings saved.') . EOL);
}
}
if($_POST['irc-submit']) {
DI::config()->set('irc','autochans',trim($_POST['autochans']));
DI::config()->set('irc','sitechats',trim($_POST['sitechats']));
- /* stupid pop-up thing */
- info(DI::l10n()->t('IRC settings saved.') . EOL);
}
}
function irc_addon_admin (&$a, &$o) {
// check that Jabber password was encrypted with correct Friendica password
$friendica_password = trim($b['jappixmini-friendica-password']);
if (!User::authenticate((int) $uid, $friendica_password)) {
- info("Wrong friendica password!");
+ notice("Wrong friendica password!");
return;
}
}
DI::pConfig()->set($uid, 'jappixmini', 'activate' , intval($b['jappixmini-activate']));
DI::pConfig()->set($uid, 'jappixmini', 'dontinsertchat', intval($b['jappixmini-dont-insertchat']));
DI::pConfig()->set($uid, 'jappixmini', 'encrypt' , $encrypt);
- info('Jappix Mini settings saved.');
if ($purge) {
q("DELETE FROM `pconfig` WHERE `uid`=$uid AND `cat`='jappixmini' AND `k` LIKE 'id:%%'");
- info('List of addresses purged.');
}
}
}
DI::pConfig()->set(local_user(), 'langfilter', 'languages' , $languages);
DI::pConfig()->set(local_user(), 'langfilter', 'minconfidence', $minconfidence);
DI::pConfig()->set(local_user(), 'langfilter', 'minlength' , $minlength);
-
- info(DI::l10n()->t('Language Filter Settings saved.'));
}
}
$default_avatar = (!empty($_POST['avatar']) ? Strings::escapeTags(trim($_POST['avatar'])) : 'identicon');
DI::config()->set('libravatar', 'default_avatar', $default_avatar);
- info(DI::l10n()->t('Libravatar settings updated.') .EOL);
}
DI::emailer()->send($notifyEmail->withRecipient($recipient['email']));
}
- notice(DI::l10n()->t('Emails sent'));
+ info(DI::l10n()->t('Emails sent'));
DI::baseUrl()->redirect('admin');
}
}
DI::pConfig()->set(local_user(), 'system', 'no_wall_archive_widget', intval($_POST['notimeline']));
- info(DI::l10n()->t('No Timeline settings updated.') . EOL);
}
function notimeline_settings(&$a, &$s)
$enable = (!empty($_POST['nsfw-enable']) ? intval($_POST['nsfw-enable']) : 0);
$disable = 1 - $enable;
DI::pConfig()->set(local_user(), 'nsfw', 'disable', $disable);
- info(DI::l10n()->t('NSFW Settings saved.') . EOL);
}
}
return;
DI::pConfig()->set(local_user(),'system','display_friend_count',intval($_POST['numfriends']));
- info( DI::l10n()->t('Numfriends settings updated.') . EOL);
}
DI::config()->set('openstreetmap', 'nomserver', $urlnom);
DI::config()->set('openstreetmap', 'zoom', $zoom);
DI::config()->set('openstreetmap', 'marker', $marker);
-
- info(DI::l10n()->t('Settings updated.') . EOL);
}
if (isset($_POST['pageheader-words'])) {
DI::config()->set('pageheader', 'text', trim(strip_tags($_POST['pageheader-words'])));
}
- info(DI::l10n()->t('pageheader Settings saved.'));
}
}
DI::config()->set('piwik', 'siteid', $id);
DI::config()->set('piwik', 'optout', $optout);
DI::config()->set('piwik', 'async', $async);
- info(DI::l10n()->t('Settings updated.'). EOL);
}
DI::config()->set('public_server', 'flagusers', $flagusers);
DI::config()->set('public_server', 'flagposts', $flagposts);
DI::config()->set('public_server', 'flagpostsexpire', $flagpostsexpire);
- info(DI::l10n()->t('Settings saved').EOL);
}
function public_server_addon_admin(&$a, &$o)
if ($_POST['qcomment-submit']) {
DI::pConfig()->set(local_user(), 'qcomment', 'words', XML::escape($_POST['qcomment-words']));
- info(DI::l10n()->t('Quick Comment settings saved.') . EOL);
}
}
return;
DI::pConfig()->set(local_user(),'remote_perms','show',intval($_POST['remote-perms']));
- info(DI::l10n()->t('Remote Permissions settings updated.') . EOL);
}
function remote_permissions_content($a, $item_copy) {
function remote_permissions_addon_admin_post(&$a){
$choice = (!empty($_POST['remotepermschoice']) ? Strings::escapeTags(trim($_POST['remotepermschoice'])) : '');
DI::config()->set('remote_perms','global',($choice == 1 ? 1 : 0));
- info(DI::l10n()->t('Settings updated.'). EOL);
}
DI::pConfig()->set(local_user(), 'securemail', 'pkey', trim($_POST['securemail-pkey']));
$enable = (!empty($_POST['securemail-enable']) ? 1 : 0);
DI::pConfig()->set(local_user(), 'securemail', 'enable', $enable);
- info(DI::l10n()->t('Secure Mail Settings saved.') . EOL);
if ($_POST['securemail-submit'] == DI::l10n()->t('Save and send test')) {
$enable = (!empty($_POST['showmore-enable']) ? intval($_POST['showmore-enable']) : 0);
$disable = 1-$enable;
DI::pConfig()->set(local_user(), 'showmore', 'disable', $disable);
- info(DI::l10n()->t('Show More Settings saved.') . EOL);
}
}
if (!intval($_POST['statusnet-mirror']))
DI::pConfig()->delete(local_user(), 'statusnet', 'lastid');
-
- info(DI::l10n()->t('GNU Social settings updated.') . EOL);
}
}
}
if (!empty($_POST['superblock-submit'])) {
DI::pConfig()->set(local_user(), 'system', 'blocked',trim($_POST['superblock-words']));
- info(DI::l10n()->t('SUPERBLOCK Settings saved.') . EOL);
}
}
}
DI::pConfig()->set(local_user(), 'system', 'blocked', $words);
- info(DI::l10n()->t('superblock settings updated') . EOL );
exit();
}
DI::config()->set('tumblr', 'consumer_key',$consumer_key);
DI::config()->set('tumblr', 'consumer_secret',$consumer_secret);
-
- info(DI::l10n()->t('Settings updated.'). EOL);
}
function tumblr_connect(App $a)
DI::pConfig()->set(local_user(), 'twitter', 'oauthsecret', $token['oauth_token_secret']);
DI::pConfig()->set(local_user(), 'twitter', 'post', 1);
} catch(Exception $e) {
- info($e->getMessage());
+ notice($e->getMessage());
} catch(TwitterOAuthException $e) {
- info($e->getMessage());
+ notice($e->getMessage());
}
// reload the Addon Settings page, if we don't do it see Bug #42
DI::baseUrl()->redirect('settings/connectors');
if (!intval($_POST['twitter-mirror'])) {
DI::pConfig()->delete(local_user(), 'twitter', 'lastid');
}
-
- info(DI::l10n()->t('Twitter settings updated.') . EOL);
}
}
}
$consumersecret = !empty($_POST['consumersecret']) ? Strings::escapeTags(trim($_POST['consumersecret'])) : '';
DI::config()->set('twitter', 'consumerkey', $consumerkey);
DI::config()->set('twitter', 'consumersecret', $consumersecret);
- info(DI::l10n()->t('Settings updated.') . EOL);
}
function twitter_addon_admin(App $a, &$o)
function webrtc_addon_admin_post (&$a) {
$url = (!empty($_POST['webrtcurl']) ? Strings::escapeTags(trim($_POST['webrtcurl'])) : '');
DI::config()->set('webrtc', 'webrtcurl', $url);
- info(DI::l10n()->t('Settings updated.'). EOL);
}
function webrtc_module() {
}
DI::pConfig()->set(local_user(), 'windowsphonepush', 'senditemtext', intval($_POST['windowsphonepush-senditemtext']));
-
- info(DI::l10n()->t('WindowsPhonePush settings updated.') . EOL);
}
/* Called from the Addon Setting form.
DI::pConfig()->set(local_user(), 'xmpp', 'enabled', $_POST['xmpp_enabled'] ?? false);
DI::pConfig()->set(local_user(), 'xmpp', 'individual', $_POST['xmpp_individual'] ?? false);
DI::pConfig()->set(local_user(), 'xmpp', 'bosh_proxy', $_POST['xmpp_bosh_proxy'] ?? '');
-
- info(DI::l10n()->t('XMPP settings updated.') . EOL);
}
function xmpp_addon_settings(App $a, &$s)
DI::config()->set('xmpp', 'bosh_proxy', $bosh_proxy);
DI::config()->set('xmpp', 'central_userbase', $central_userbase);
-
- info(DI::l10n()->t('Settings updated.') . EOL);
}
function xmpp_script(App $a)