diff options
author | Mario <mario@mariovavti.com> | 2019-03-23 20:33:43 +0100 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2019-03-23 20:33:43 +0100 |
commit | c11fbe0868016a070468599145728dd31cf66158 (patch) | |
tree | c83315246ed069b98de6ed570fca224323550bd2 /Zotlabs/Module/Settings | |
parent | c676689df039ac62ed7eda3daba7efda1929b312 (diff) | |
download | volse-hubzilla-c11fbe0868016a070468599145728dd31cf66158.tar.gz volse-hubzilla-c11fbe0868016a070468599145728dd31cf66158.tar.bz2 volse-hubzilla-c11fbe0868016a070468599145728dd31cf66158.zip |
revert accidental moving of Features.php
Diffstat (limited to 'Zotlabs/Module/Settings')
-rw-r--r-- | Zotlabs/Module/Settings/Features.php | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/Zotlabs/Module/Settings/Features.php b/Zotlabs/Module/Settings/Features.php deleted file mode 100644 index 6a3ab104b..000000000 --- a/Zotlabs/Module/Settings/Features.php +++ /dev/null @@ -1,52 +0,0 @@ -<?php - -namespace Zotlabs\Module\Settings; - - -class Features { - - function post() { - check_form_security_token_redirectOnErr('/settings/features', 'settings_features'); - - $features = get_features(false); - - foreach($features as $fname => $fdata) { - foreach(array_slice($fdata,1) as $f) { - $k = $f[0]; - if(array_key_exists("feature_$k",$_POST)) - set_pconfig(local_channel(),'feature',$k, (string) $_POST["feature_$k"]); - else - set_pconfig(local_channel(),'feature', $k, ''); - } - } - build_sync_packet(); - return; - } - - function get() { - - $arr = []; - - $features = get_features(false); - - foreach($features as $fname => $fdata) { - $arr[$fname] = array(); - $arr[$fname][0] = $fdata[0]; - foreach(array_slice($fdata,1) as $f) { - $arr[$fname][1][] = array('feature_' . $f[0],$f[1],((intval(feature_enabled(local_channel(),$f[0]))) ? "1" : ''),$f[2],array(t('Off'),t('On'))); - } - } - - $tpl = get_markup_template("settings_features.tpl"); - $o .= replace_macros($tpl, array( - '$form_security_token' => get_form_security_token("settings_features"), - '$title' => t('Additional Features'), - '$features' => $arr, - '$baseurl' => z_root(), - '$submit' => t('Submit'), - )); - - return $o; - } - -} |