removed unneeded use statements
This commit is contained in:
parent
1cc10402d7
commit
e4cab5b0e1
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue