From 45e5a7f59ff9ee5f088d4b3eef6f989c9876d083 Mon Sep 17 00:00:00 2001 From: Jonny Tischbein Date: Wed, 17 Oct 2018 18:39:27 +0200 Subject: [PATCH] remove unsed require_onces of security.php --- mod/community.php | 1 - mod/filer.php | 1 - mod/item.php | 4 ---- mod/like.php | 1 - mod/notes.php | 1 - mod/poke.php | 1 - mod/search.php | 1 - mod/tagger.php | 1 - mod/videos.php | 1 - src/Module/Logout.php | 1 - src/Module/Proxy.php | 2 -- src/Util/Proxy.php | 2 -- 12 files changed, 17 deletions(-) diff --git a/mod/community.php b/mod/community.php index d1432b7bbb..01cf3ec70b 100644 --- a/mod/community.php +++ b/mod/community.php @@ -90,7 +90,6 @@ function community_content(App $a, $update = 0) } } - require_once 'include/security.php'; require_once 'include/conversation.php'; if (!$update) { diff --git a/mod/filer.php b/mod/filer.php index 9b0017322c..d8c89f8554 100644 --- a/mod/filer.php +++ b/mod/filer.php @@ -6,7 +6,6 @@ use Friendica\App; use Friendica\Core\L10n; use Friendica\Core\PConfig; -require_once 'include/security.php'; require_once 'include/items.php'; function filer_content(App $a) diff --git a/mod/item.php b/mod/item.php index 5a665fc7c8..98ab1cbd81 100644 --- a/mod/item.php +++ b/mod/item.php @@ -43,8 +43,6 @@ function item_post(App $a) { return 0; } - require_once 'include/security.php'; - $uid = local_user(); if (!empty($_REQUEST['dropitems'])) { @@ -872,8 +870,6 @@ function item_content(App $a) return; } - require_once 'include/security.php'; - $o = ''; if (($a->argc == 3) && ($a->argv[1] === 'drop') && intval($a->argv[2])) { diff --git a/mod/like.php b/mod/like.php index 957fe5fc42..08e3febbbc 100644 --- a/mod/like.php +++ b/mod/like.php @@ -4,7 +4,6 @@ use Friendica\App; use Friendica\Core\System; use Friendica\Model\Item; -require_once 'include/security.php'; require_once 'include/items.php'; function like_content(App $a) { diff --git a/mod/notes.php b/mod/notes.php index da8352966e..55a92f8e64 100644 --- a/mod/notes.php +++ b/mod/notes.php @@ -33,7 +33,6 @@ function notes_content(App $a, $update = false) return; } - require_once 'include/security.php'; require_once 'include/conversation.php'; $o = Profile::getTabs($a, true); diff --git a/mod/poke.php b/mod/poke.php index 6ebb8632c1..80d476005c 100644 --- a/mod/poke.php +++ b/mod/poke.php @@ -21,7 +21,6 @@ use Friendica\Core\Worker; use Friendica\Database\DBA; use Friendica\Model\Item; -require_once 'include/security.php'; require_once 'include/items.php'; function poke_init(App $a) diff --git a/mod/search.php b/mod/search.php index 64336e3487..b6e1a7e7f2 100644 --- a/mod/search.php +++ b/mod/search.php @@ -13,7 +13,6 @@ use Friendica\Core\System; use Friendica\Database\DBA; use Friendica\Model\Item; -require_once 'include/security.php'; require_once 'include/conversation.php'; require_once 'mod/dirfind.php'; diff --git a/mod/tagger.php b/mod/tagger.php index fd79d54150..f661968f35 100644 --- a/mod/tagger.php +++ b/mod/tagger.php @@ -10,7 +10,6 @@ use Friendica\Core\Worker; use Friendica\Database\DBA; use Friendica\Model\Item; -require_once 'include/security.php'; require_once 'include/items.php'; function tagger_content(App $a) { diff --git a/mod/videos.php b/mod/videos.php index 0d217ef9c4..50ce361d81 100644 --- a/mod/videos.php +++ b/mod/videos.php @@ -193,7 +193,6 @@ function videos_content(App $a) return; } - require_once 'include/security.php'; require_once 'include/conversation.php'; if (empty($a->data['user'])) { diff --git a/src/Module/Logout.php b/src/Module/Logout.php index 74586dc69e..b2c03bf91f 100644 --- a/src/Module/Logout.php +++ b/src/Module/Logout.php @@ -10,7 +10,6 @@ use Friendica\Core\Authentication; use Friendica\Core\L10n; require_once 'boot.php'; -require_once 'include/security.php'; /** * Logout module diff --git a/src/Module/Proxy.php b/src/Module/Proxy.php index 776dcccb35..8c3493b2ad 100644 --- a/src/Module/Proxy.php +++ b/src/Module/Proxy.php @@ -17,8 +17,6 @@ use Friendica\Util\DateTimeFormat; use Friendica\Util\Network; use Friendica\Util\Proxy as ProxyUtils; -require_once 'include/security.php'; - /** * @brief Module Proxy */ diff --git a/src/Util/Proxy.php b/src/Util/Proxy.php index 0bb7537f78..8478ce868a 100644 --- a/src/Util/Proxy.php +++ b/src/Util/Proxy.php @@ -7,8 +7,6 @@ use Friendica\BaseObject; use Friendica\Core\Config; use Friendica\Core\System; -require_once 'include/security.php'; - /** * @brief Proxy utilities class */ -- 2.39.5