aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-11-09 12:14:06 -0800
committerfriendica <info@friendica.com>2013-11-09 12:14:06 -0800
commite06b0aa76759c406b4ef555680fac5a0087d4708 (patch)
tree55e5a8dc91756c54779e8b2142950abcc97a06b9 /include
parentb2bb308e24421558f02a6bed2201140486be337b (diff)
parent1f16dd3bb029476c67d1707077b98af91d374597 (diff)
downloadvolse-hubzilla-e06b0aa76759c406b4ef555680fac5a0087d4708.tar.gz
volse-hubzilla-e06b0aa76759c406b4ef555680fac5a0087d4708.tar.bz2
volse-hubzilla-e06b0aa76759c406b4ef555680fac5a0087d4708.zip
Merge https://github.com/friendica/red into zpull
Conflicts: mod/directory.php
Diffstat (limited to 'include')
-rw-r--r--include/dir_fns.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/dir_fns.php b/include/dir_fns.php
index e234ae0fa..0d0507059 100644
--- a/include/dir_fns.php
+++ b/include/dir_fns.php
@@ -20,6 +20,21 @@ function dir_sort_links() {
return $o;
}
+function dir_safe_mode(&$a) {
+ $observer = get_observer_hash();
+
+ if ($observer)
+ $safe_mode = get_xconfig($observer,'directory','safe_mode');
+ if($safe_mode == 0)
+ $toggle = t('Enable Safe Search');
+ else
+ $toggle = t('Disable Safe Search');
+ $o = replace_macros(get_markup_template('safesearch.tpl'), array(
+ '$toggle' => $toggle,
+ ));
+
+ return $o;
+}
function sync_directories($dirmode) {