X-Git-Url: https://git.mxchange.org/?p=friendica-addons.git;a=blobdiff_plain;f=snautofollow%2Fsnautofollow.php;fp=snautofollow%2Fsnautofollow.php;h=0000000000000000000000000000000000000000;hp=2d953d5b371b7da8f8ef73cf424a16da53c7609c;hb=dbe8118e406510d85404d9577f83d68782cfe2a0;hpb=39dd3dffe07efd69fa1ac6d0bd243c7fc0e3a66f;ds=sidebyside
diff --git a/snautofollow/snautofollow.php b/snautofollow/snautofollow.php
deleted file mode 100644
index 2d953d5b..00000000
--- a/snautofollow/snautofollow.php
+++ /dev/null
@@ -1,71 +0,0 @@
-
- * Status: Unsupported
- */
-
-
-function snautofollow_install() {
-
- register_hook('connector_settings', 'addon/snautofollow/snautofollow.php', 'snautofollow_settings');
- register_hook('connector_settings_post', 'addon/snautofollow/snautofollow.php', 'snautofollow_settings_post');
-
-}
-
-
-function snautofollow_uninstall() {
- unregister_hook('connector_settings', 'addon/snautofollow/snautofollow.php', 'snautofollow_settings');
- unregister_hook('connector_settings_post', 'addon/snautofollow/snautofollow.php', 'snautofollow_settings_post');
-
-}
-
-
-function snautofollow_settings_post($a,$post) {
- if(! local_user() || (! x($_POST,'snautofollow-submit')))
- return;
-
- set_pconfig(local_user(),'system','ostatus_autofriend',intval($_POST['snautofollow']));
- info( t('StatusNet AutoFollow settings updated.') . EOL);
-}
-
-function snautofollow_settings(&$a,&$s) {
-
- if(! local_user())
- return;
-
- /* Add our stylesheet to the page so we can make our settings look nice */
-
- $a->page['htmlhead'] .= '' . "\r\n";
-
- /* Get the current state of our config variable */
-
- $snautofollow = get_pconfig(local_user(),'system','ostatus_autofriend');
- if($snautofollow === false)
- $snautofollow = false;
-
- $snautofollow_checked = (($snautofollow) ? ' checked="checked" ' : '');
-
-
- /* Add some HTML to the existing form */
-
- $s .= '';
- $s .= '' . t('StatusNet AutoFollow') . '
';
- $s .= '';
- $s .= '