From 32d71dbfccd90ad37cd49162acf26703402ab440 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Sat, 25 Nov 2017 16:55:58 +0100 Subject: [PATCH 1/3] update to the silence script --- util/global_community_silence.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/util/global_community_silence.php b/util/global_community_silence.php index d18efd345e..221a3f355b 100755 --- a/util/global_community_silence.php +++ b/util/global_community_silence.php @@ -5,16 +5,16 @@ * @brief tool to silence accounts on the global community page * * With this tool, you can silence an account on the global community page. - * Postings from silenced accounts will not be displayes on the community + * Postings from silenced accounts will not be displayed on the community * page. This silencing does only affect the display on the community page, * accounts following the silenced accounts will still get their postings. * - * Usage: pass the URL of the to be silenced account as only parameter + * Usage: pass the URL of the profile to be silenced account as only parameter * at the command line when running this tool. E.g. * * $> util/global_community_silence.php http://example.com/profile/bob * - * will silence bob@example.com so that his postings wont appear at + * will silence bob@example.com so that his postings won't appear at * the global community page. * * Author: Tobias Diekershoff @@ -22,7 +22,7 @@ * License: AGPLv3 or later, same as Friendica **/ -if ($argc!=2 || $argv[1]=="-h" || $argv[1]=="--help" || $argv[1]=="-?") { +if ($argc != 2 || $argv[1] == "-h" || $argv[1] == "--help" || $argv[1] == "-?") { echo "Usage: ".$argv[0]." [-h|profile_url]\r\n"; echo " -h, -?, --help ... show this help\r\n"; echo " profile_url ...... The URL of the profile you want to silence\r\n"; @@ -36,11 +36,11 @@ if ($argc!=2 || $argv[1]=="-h" || $argv[1]=="--help" || $argv[1]=="-?") { use Friendica\Database\DBM; use Friendica\Network\Probe; -require_once("boot.php"); +require_once'"boot.php'); require_once('include/dba.php'); -require_once("include/text.php"); +require_once('include/text.php'); $a = get_app(); -require_once ".htconfig.php"; +require_once('.htconfig.php'); dba::connect($db_host, $db_user, $db_pass, $db_data); unset($db_host, $db_user, $db_pass, $db_data); From 2d61aaf118efcaae102d201ccfd4062490b0a49b Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Sat, 25 Nov 2017 17:05:27 +0100 Subject: [PATCH 2/3] some minor stuff --- util/global_community_silence.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/util/global_community_silence.php b/util/global_community_silence.php index 221a3f355b..b90ea10eac 100755 --- a/util/global_community_silence.php +++ b/util/global_community_silence.php @@ -36,11 +36,11 @@ if ($argc != 2 || $argv[1] == "-h" || $argv[1] == "--help" || $argv[1] == "-?") use Friendica\Database\DBM; use Friendica\Network\Probe; -require_once'"boot.php'); -require_once('include/dba.php'); -require_once('include/text.php'); +require_once 'boot.php'; +require_once 'include/dba.php'; +require_once 'include/text.php'; $a = get_app(); -require_once('.htconfig.php'); +require_once'.htconfig.php'; dba::connect($db_host, $db_user, $db_pass, $db_data); unset($db_host, $db_user, $db_pass, $db_data); From 2ac797be8e0ba3f1daf19415b73d64e35a37c608 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Sat, 25 Nov 2017 17:10:29 +0100 Subject: [PATCH 3/3] let there be SPACE --- util/global_community_silence.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/global_community_silence.php b/util/global_community_silence.php index b90ea10eac..e6c936f0dd 100755 --- a/util/global_community_silence.php +++ b/util/global_community_silence.php @@ -40,7 +40,7 @@ require_once 'boot.php'; require_once 'include/dba.php'; require_once 'include/text.php'; $a = get_app(); -require_once'.htconfig.php'; +require_once '.htconfig.php'; dba::connect($db_host, $db_user, $db_pass, $db_data); unset($db_host, $db_user, $db_pass, $db_data);