removed unneeded use statements

This commit is contained in:
Thomas Tsiakalakis 2018-07-07 13:32:34 +02:00
parent 1cc10402d7
commit e4cab5b0e1
3 changed files with 0 additions and 3 deletions

View File

@ -1,7 +1,6 @@
<?php
namespace HalcyonSuite\HalcyonForMastodon;
require_once('mastodon-api/mastodon.php');
use Exception;
class Mastodon extends \Mastodon_api {
function __construct(){
$appSettings = parse_ini_file('../config.ini',true);

View File

@ -13,7 +13,6 @@ location.href = '/logout';
<?php
require_once('../authorize/mastodon.php');
use HalcyonSuite\HalcyonForMastodon\Mastodon;
use Exception;
$api = new Mastodon();
if ($_GET['code']) {
$domain = htmlspecialchars((string)filter_input(INPUT_GET, 'host'), ENT_QUOTES);

View File

@ -1,7 +1,6 @@
<?php
require_once('../authorize/mastodon.php');
use HalcyonSuite\HalcyonForMastodon\Mastodon;
use Exception;
if (isset($_POST['acct'])) {
$domain = explode("@", mb_strtolower(htmlspecialchars((string)filter_input(INPUT_POST, 'acct'), ENT_QUOTES)))[2];
$URL= 'https://'.$domain;